DdosMitigationRulePropertiesFormat Class

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

Implements

public final class DdosMitigationRulePropertiesFormat
implements JsonSerializable<DdosMitigationRulePropertiesFormat>

DDoS mitigation rule properties. The service validates that each rule specifies at least one applicable default mitigation or source policy override and that the default mitigations match the selected trafficScope.

Constructor Summary

Constructor Description
DdosMitigationRulePropertiesFormat()

Creates an instance of DdosMitigationRulePropertiesFormat class.

Method Summary

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

Reads an instance of DdosMitigationRulePropertiesFormat from the JsonReader.

CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the DDoS mitigation rule.

List<DdosSourcePolicyOverride> sourcePolicyOverrides()

Get the sourcePolicyOverrides property: Source-specific actions that override the default mitigations.

DdosTcpDefaultMitigations tcpDefaultMitigations()

Get the tcpDefaultMitigations property: The default TCP mitigations.

JsonWriter toJson(JsonWriter jsonWriter)
DdosMitigationTrafficScope trafficScope()

Get the trafficScope property: The traffic protocol to which the mitigation rule applies.

DdosUdpDefaultMitigations udpDefaultMitigations()

Get the udpDefaultMitigations property: The default UDP mitigations.

void validate()

Validates the instance.

DdosMitigationRulePropertiesFormat withSourcePolicyOverrides(List<DdosSourcePolicyOverride> sourcePolicyOverrides)

Set the sourcePolicyOverrides property: Source-specific actions that override the default mitigations.

DdosMitigationRulePropertiesFormat withTcpDefaultMitigations(DdosTcpDefaultMitigations tcpDefaultMitigations)

Set the tcpDefaultMitigations property: The default TCP mitigations.

DdosMitigationRulePropertiesFormat withTrafficScope(DdosMitigationTrafficScope trafficScope)

Set the trafficScope property: The traffic protocol to which the mitigation rule applies.

DdosMitigationRulePropertiesFormat withUdpDefaultMitigations(DdosUdpDefaultMitigations udpDefaultMitigations)

Set the udpDefaultMitigations property: The default UDP mitigations.

Methods inherited from java.lang.Object

Constructor Details

DdosMitigationRulePropertiesFormat

public DdosMitigationRulePropertiesFormat()

Creates an instance of DdosMitigationRulePropertiesFormat class.

Method Details

fromJson

public static DdosMitigationRulePropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of DdosMitigationRulePropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the DDoS mitigation rule.

Returns:

the provisioningState value.

sourcePolicyOverrides

public List<DdosSourcePolicyOverride> sourcePolicyOverrides()

Get the sourcePolicyOverrides property: Source-specific actions that override the default mitigations. A rule supports at most one Deny override and one Permit override.

Returns:

the sourcePolicyOverrides value.

tcpDefaultMitigations

public DdosTcpDefaultMitigations tcpDefaultMitigations()

Get the tcpDefaultMitigations property: The default TCP mitigations. This property is valid only when trafficScope is Tcp.

Returns:

the tcpDefaultMitigations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trafficScope

public DdosMitigationTrafficScope trafficScope()

Get the trafficScope property: The traffic protocol to which the mitigation rule applies.

Returns:

the trafficScope value.

udpDefaultMitigations

public DdosUdpDefaultMitigations udpDefaultMitigations()

Get the udpDefaultMitigations property: The default UDP mitigations. This property is valid only when trafficScope is Udp.

Returns:

the udpDefaultMitigations value.

validate

public void validate()

Validates the instance.

withSourcePolicyOverrides

public DdosMitigationRulePropertiesFormat withSourcePolicyOverrides(List<DdosSourcePolicyOverride> sourcePolicyOverrides)

Set the sourcePolicyOverrides property: Source-specific actions that override the default mitigations. A rule supports at most one Deny override and one Permit override.

Parameters:

sourcePolicyOverrides - the sourcePolicyOverrides value to set.

Returns:

the DdosMitigationRulePropertiesFormat object itself.

withTcpDefaultMitigations

public DdosMitigationRulePropertiesFormat withTcpDefaultMitigations(DdosTcpDefaultMitigations tcpDefaultMitigations)

Set the tcpDefaultMitigations property: The default TCP mitigations. This property is valid only when trafficScope is Tcp.

Parameters:

tcpDefaultMitigations - the tcpDefaultMitigations value to set.

Returns:

the DdosMitigationRulePropertiesFormat object itself.

withTrafficScope

public DdosMitigationRulePropertiesFormat withTrafficScope(DdosMitigationTrafficScope trafficScope)

Set the trafficScope property: The traffic protocol to which the mitigation rule applies.

Parameters:

trafficScope - the trafficScope value to set.

Returns:

the DdosMitigationRulePropertiesFormat object itself.

withUdpDefaultMitigations

public DdosMitigationRulePropertiesFormat withUdpDefaultMitigations(DdosUdpDefaultMitigations udpDefaultMitigations)

Set the udpDefaultMitigations property: The default UDP mitigations. This property is valid only when trafficScope is Udp.

Parameters:

udpDefaultMitigations - the udpDefaultMitigations value to set.

Returns:

the DdosMitigationRulePropertiesFormat object itself.

Applies to