DdosGeoMatch Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. DdosGeoMatch
- com.
Implements
public final class DdosGeoMatch
implements JsonSerializable<DdosGeoMatch>
A geographic source match. The service validates that at least one of continent or countryCode is specified. If both are specified, the service validates that the country belongs to the continent according to the service-defined mapping. For example, RU, TR, and KZ map to Asia, EG maps to Africa, and CY maps to Europe.
Constructor Summary
| Constructor | Description |
|---|---|
| DdosGeoMatch() |
Creates an instance of Ddos |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Ddos |
continent()
Get the continent property: The continent to match. |
| String |
countryCode()
Get the country |
|
static
Ddos |
fromJson(JsonReader jsonReader)
Reads an instance of Ddos |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Ddos |
withContinent(DdosContinent continent)
Set the continent property: The continent to match. |
|
Ddos |
withCountryCode(String countryCode)
Set the country |
Methods inherited from java.lang.Object
Constructor Details
DdosGeoMatch
public DdosGeoMatch()
Creates an instance of DdosGeoMatch class.
Method Details
continent
public DdosContinent continent()
Get the continent property: The continent to match. Country membership follows the service-defined mapping documented on DdosGeoMatch.
Returns:
countryCode
public String countryCode()
Get the countryCode property: The uppercase two-letter ISO 3166-1 alpha-2 code for the country or territory to match.
Returns:
fromJson
public static DdosGeoMatch fromJson(JsonReader jsonReader)
Reads an instance of DdosGeoMatch from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withContinent
public DdosGeoMatch withContinent(DdosContinent continent)
Set the continent property: The continent to match. Country membership follows the service-defined mapping documented on DdosGeoMatch.
Parameters:
Returns:
withCountryCode
public DdosGeoMatch withCountryCode(String countryCode)
Set the countryCode property: The uppercase two-letter ISO 3166-1 alpha-2 code for the country or territory to match.
Parameters:
Returns: