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 Details

    • DdosSettings

      public DdosSettings()
      Creates an instance of DdosSettings class.
  • Method Details

    • protectionMode

      public DdosSettingsProtectionMode protectionMode()
      Get the protectionMode property: The DDoS protection mode of the public IP.
      Returns:
      the protectionMode value.
    • withProtectionMode

      public DdosSettings withProtectionMode(DdosSettingsProtectionMode protectionMode)
      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.