Class DdosSettings
- java.lang.Object
-
- com.azure.resourcemanager.network.models.DdosSettings
-
public final class DdosSettings extends Object
Contains the DDoS protection settings of the public IP.
-
-
Constructor Summary
Constructors Constructor Description DdosSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.management.SubResourceddosCustomPolicy()Get the ddosCustomPolicy property: The DDoS custom policy associated with the public IP.BooleanprotectedIp()Get the protectedIp property: Enables DDoS protection on the public IP.DdosSettingsProtectionCoverageprotectionCoverage()Get the protectionCoverage property: The DDoS protection policy customizability of the public IP.voidvalidate()Validates the instance.DdosSettingswithDdosCustomPolicy(com.azure.core.management.SubResource ddosCustomPolicy)Set the ddosCustomPolicy property: The DDoS custom policy associated with the public IP.DdosSettingswithProtectedIp(Boolean protectedIp)Set the protectedIp property: Enables DDoS protection on the public IP.DdosSettingswithProtectionCoverage(DdosSettingsProtectionCoverage protectionCoverage)Set the protectionCoverage property: The DDoS protection policy customizability of the public IP.
-
-
-
Method Detail
-
ddosCustomPolicy
public com.azure.core.management.SubResource ddosCustomPolicy()
Get the ddosCustomPolicy property: The DDoS custom policy associated with the public IP.- Returns:
- the ddosCustomPolicy value.
-
withDdosCustomPolicy
public DdosSettings withDdosCustomPolicy(com.azure.core.management.SubResource ddosCustomPolicy)
Set the ddosCustomPolicy property: The DDoS custom policy associated with the public IP.- Parameters:
ddosCustomPolicy- the ddosCustomPolicy value to set.- Returns:
- the DdosSettings object itself.
-
protectionCoverage
public DdosSettingsProtectionCoverage protectionCoverage()
Get the protectionCoverage property: The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized.- Returns:
- the protectionCoverage value.
-
withProtectionCoverage
public DdosSettings withProtectionCoverage(DdosSettingsProtectionCoverage protectionCoverage)
Set the protectionCoverage property: The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized.- Parameters:
protectionCoverage- the protectionCoverage value to set.- Returns:
- the DdosSettings object itself.
-
protectedIp
public Boolean protectedIp()
Get the protectedIp property: Enables DDoS protection on the public IP.- Returns:
- the protectedIp value.
-
withProtectedIp
public DdosSettings withProtectedIp(Boolean protectedIp)
Set the protectedIp property: Enables DDoS protection on the public IP.- Parameters:
protectedIp- the protectedIp value to set.- Returns:
- the DdosSettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-