DdosSourceMatchConditions Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.DdosSourceMatchConditions

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 DdosSourceMatchConditions class.

Method Summary

Modifier and Type Method and Description
static DdosSourceMatchConditions fromJson(JsonReader jsonReader)

Reads an instance of DdosSourceMatchConditions from the JsonReader.

List<DdosGeoMatch> geoMatches()

Get the geoMatches property: The geographic matches.

List<String> ipPrefixes()

Get the ipPrefixes property: The IPv4 or IPv6 CIDR prefixes in `

/<prefix-length>` format.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DdosSourceMatchConditions withGeoMatches(List<DdosGeoMatch> geoMatches)

Set the geoMatches property: The geographic matches.

DdosSourceMatchConditions withIpPrefixes(List<String> ipPrefixes)

Set the ipPrefixes property: The IPv4 or IPv6 CIDR prefixes in `

/<prefix-length>` format.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of DdosSourceMatchConditions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DdosSourceMatchConditions.

geoMatches

public List<DdosGeoMatch> geoMatches()

Get the geoMatches property: The geographic matches. Entries are evaluated with OR semantics.

Returns:

the geoMatches value.

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:

the ipPrefixes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

geoMatches - the geoMatches value to set.

Returns:

the DdosSourceMatchConditions object itself.

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:

ipPrefixes - the ipPrefixes value to set.

Returns:

the DdosSourceMatchConditions object itself.

Applies to