DdosSourceMatchConditions Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. DdosSourceMatchConditions
- com.
Implements
public final class DdosSourceMatchConditions
implements JsonSerializable<DdosSourceMatchConditions>
Source conditions for a DDoS source policy override. A source matches when it matches any IP prefix or any geographic match.
Constructor Summary
| Constructor | Description |
|---|---|
| DdosSourceMatchConditions() |
Creates an instance of Ddos |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Ddos |
fromJson(JsonReader jsonReader)
Reads an instance of Ddos |
|
List<Ddos |
geoMatches()
Get the geo |
| List<String> |
ipPrefixes()
Get the ip |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Ddos |
withGeoMatches(List<DdosGeoMatch> geoMatches)
Set the geo |
|
Ddos |
withIpPrefixes(List<String> ipPrefixes)
Set the ip |
Methods inherited from java.lang.Object
Constructor Details
DdosSourceMatchConditions
public DdosSourceMatchConditions()
Creates an instance of DdosSourceMatchConditions class.
Method Details
fromJson
public static DdosSourceMatchConditions fromJson(JsonReader jsonReader)
Reads an instance of DdosSourceMatchConditions from the JsonReader.
Parameters:
Returns:
Throws:
geoMatches
public List<DdosGeoMatch> geoMatches()
Get the geoMatches property: The geographic matches. Entries are evaluated with OR semantics.
Returns:
ipPrefixes
public List<String> ipPrefixes()
Get the ipPrefixes property: The IPv4 or IPv6 CIDR prefixes in `
/<prefix-length>` format. Entries are evaluated with OR semantics.Returns:
toJson
validate
public void validate()
Validates the instance.
withGeoMatches
public DdosSourceMatchConditions withGeoMatches(List<DdosGeoMatch> geoMatches)
Set the geoMatches property: The geographic matches. Entries are evaluated with OR semantics.
Parameters:
Returns:
withIpPrefixes
public DdosSourceMatchConditions withIpPrefixes(List<String> ipPrefixes)
Set the ipPrefixes property: The IPv4 or IPv6 CIDR prefixes in `
/<prefix-length>` format. Entries are evaluated with OR semantics.Parameters:
Returns: