DdosUdpDefaultMitigations Class

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

Implements

public final class DdosUdpDefaultMitigations
implements JsonSerializable<DdosUdpDefaultMitigations>

Default mitigations for UDP traffic.

Constructor Summary

Constructor Description
DdosUdpDefaultMitigations()

Creates an instance of DdosUdpDefaultMitigations class.

Method Summary

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

Reads an instance of DdosUdpDefaultMitigations from the JsonReader.

DdosUdpPerSourceRateLimitPolicy perSourceRateLimiting()

Get the perSourceRateLimiting property: The per-source UDP packet rate limit.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DdosUdpDefaultMitigations withPerSourceRateLimiting(DdosUdpPerSourceRateLimitPolicy perSourceRateLimiting)

Set the perSourceRateLimiting property: The per-source UDP packet rate limit.

Methods inherited from java.lang.Object

Constructor Details

DdosUdpDefaultMitigations

public DdosUdpDefaultMitigations()

Creates an instance of DdosUdpDefaultMitigations class.

Method Details

fromJson

public static DdosUdpDefaultMitigations fromJson(JsonReader jsonReader)

Reads an instance of DdosUdpDefaultMitigations from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DdosUdpDefaultMitigations 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 DdosUdpDefaultMitigations.

perSourceRateLimiting

public DdosUdpPerSourceRateLimitPolicy perSourceRateLimiting()

Get the perSourceRateLimiting property: The per-source UDP packet rate limit.

Returns:

the perSourceRateLimiting value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPerSourceRateLimiting

public DdosUdpDefaultMitigations withPerSourceRateLimiting(DdosUdpPerSourceRateLimitPolicy perSourceRateLimiting)

Set the perSourceRateLimiting property: The per-source UDP packet rate limit.

Parameters:

perSourceRateLimiting - the perSourceRateLimiting value to set.

Returns:

the DdosUdpDefaultMitigations object itself.

Applies to