Class DdosSettings
java.lang.Object
com.azure.resourcemanager.network.models.DdosSettings
Contains the DDoS protection settings of the public IP.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResourceGet the ddosProtectionPlan property: The DDoS protection plan associated with the public IP.Get the protectionMode property: The DDoS protection mode of the public IP.voidvalidate()Validates the instance.withDdosProtectionPlan(com.azure.core.management.SubResource ddosProtectionPlan) Set the ddosProtectionPlan property: The DDoS protection plan associated with the public IP.withProtectionMode(DdosSettingsProtectionMode protectionMode) Set the protectionMode property: The DDoS protection mode of the public IP.
-
Constructor Details
-
DdosSettings
public DdosSettings()Creates an instance of DdosSettings class.
-
-
Method Details
-
protectionMode
Get the protectionMode property: The DDoS protection mode of the public IP.- Returns:
- the protectionMode value.
-
withProtectionMode
Set the protectionMode property: The DDoS protection mode of the public IP.- Parameters:
protectionMode- the protectionMode value to set.- Returns:
- the DdosSettings object itself.
-
ddosProtectionPlan
public com.azure.core.management.SubResource ddosProtectionPlan()Get the ddosProtectionPlan property: The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled.- Returns:
- the ddosProtectionPlan value.
-
withDdosProtectionPlan
public DdosSettings withDdosProtectionPlan(com.azure.core.management.SubResource ddosProtectionPlan) Set the ddosProtectionPlan property: The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled.- Parameters:
ddosProtectionPlan- the ddosProtectionPlan value to set.- Returns:
- the DdosSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-