DdosTcpPerSourceConnectionRateLimitPolicy Class

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

Implements

public final class DdosTcpPerSourceConnectionRateLimitPolicy
implements JsonSerializable<DdosTcpPerSourceConnectionRateLimitPolicy>

A per-source TCP connection establishment rate limit.

Constructor Summary

Constructor Description
DdosTcpPerSourceConnectionRateLimitPolicy()

Creates an instance of DdosTcpPerSourceConnectionRateLimitPolicy class.

Method Summary

Modifier and Type Method and Description
int connectionsPerSecond()

Get the connectionsPerSecond property: The maximum number of new TCP connections established per second from a source IP.

static DdosTcpPerSourceConnectionRateLimitPolicy fromJson(JsonReader jsonReader)

Reads an instance of DdosTcpPerSourceConnectionRateLimitPolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DdosTcpPerSourceConnectionRateLimitPolicy withConnectionsPerSecond(int connectionsPerSecond)

Set the connectionsPerSecond property: The maximum number of new TCP connections established per second from a source IP.

Methods inherited from java.lang.Object

Constructor Details

DdosTcpPerSourceConnectionRateLimitPolicy

public DdosTcpPerSourceConnectionRateLimitPolicy()

Creates an instance of DdosTcpPerSourceConnectionRateLimitPolicy class.

Method Details

connectionsPerSecond

public int connectionsPerSecond()

Get the connectionsPerSecond property: The maximum number of new TCP connections established per second from a source IP.

Returns:

the connectionsPerSecond value.

fromJson

public static DdosTcpPerSourceConnectionRateLimitPolicy fromJson(JsonReader jsonReader)

Reads an instance of DdosTcpPerSourceConnectionRateLimitPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConnectionsPerSecond

public DdosTcpPerSourceConnectionRateLimitPolicy withConnectionsPerSecond(int connectionsPerSecond)

Set the connectionsPerSecond property: The maximum number of new TCP connections established per second from a source IP.

Parameters:

connectionsPerSecond - the connectionsPerSecond value to set.

Returns:

the DdosTcpPerSourceConnectionRateLimitPolicy object itself.

Applies to