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()
  • Method Details

    • 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.