DdosMitigationRulePropertiesFormat Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. DdosMitigationRulePropertiesFormat
- com.
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 Ddos |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Ddos |
fromJson(JsonReader jsonReader)
Reads an instance of Ddos |
|
Common |
provisioningState()
Get the provisioning |
|
List<Ddos |
sourcePolicyOverrides()
Get the source |
|
Ddos |
tcpDefaultMitigations()
Get the tcp |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Ddos |
trafficScope()
Get the traffic |
|
Ddos |
udpDefaultMitigations()
Get the udp |
| void |
validate()
Validates the instance. |
|
Ddos |
withSourcePolicyOverrides(List<DdosSourcePolicyOverride> sourcePolicyOverrides)
Set the source |
|
Ddos |
withTcpDefaultMitigations(DdosTcpDefaultMitigations tcpDefaultMitigations)
Set the tcp |
|
Ddos |
withTrafficScope(DdosMitigationTrafficScope trafficScope)
Set the traffic |
|
Ddos |
withUdpDefaultMitigations(DdosUdpDefaultMitigations udpDefaultMitigations)
Set the udp |
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:
Returns:
Throws:
provisioningState
public CommonProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the DDoS mitigation rule.
Returns:
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:
tcpDefaultMitigations
public DdosTcpDefaultMitigations tcpDefaultMitigations()
Get the tcpDefaultMitigations property: The default TCP mitigations. This property is valid only when trafficScope is Tcp.
Returns:
toJson
trafficScope
public DdosMitigationTrafficScope trafficScope()
Get the trafficScope property: The traffic protocol to which the mitigation rule applies.
Returns:
udpDefaultMitigations
public DdosUdpDefaultMitigations udpDefaultMitigations()
Get the udpDefaultMitigations property: The default UDP mitigations. This property is valid only when trafficScope is Udp.
Returns:
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:
Returns:
withTcpDefaultMitigations
public DdosMitigationRulePropertiesFormat withTcpDefaultMitigations(DdosTcpDefaultMitigations tcpDefaultMitigations)
Set the tcpDefaultMitigations property: The default TCP mitigations. This property is valid only when trafficScope is Tcp.
Parameters:
Returns:
withTrafficScope
public DdosMitigationRulePropertiesFormat withTrafficScope(DdosMitigationTrafficScope trafficScope)
Set the trafficScope property: The traffic protocol to which the mitigation rule applies.
Parameters:
Returns:
withUdpDefaultMitigations
public DdosMitigationRulePropertiesFormat withUdpDefaultMitigations(DdosUdpDefaultMitigations udpDefaultMitigations)
Set the udpDefaultMitigations property: The default UDP mitigations. This property is valid only when trafficScope is Udp.
Parameters:
Returns: