Class DdosDetectionRulePropertiesFormat

java.lang.Object
com.azure.resourcemanager.network.fluent.models.DdosDetectionRulePropertiesFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<DdosDetectionRulePropertiesFormat>

public final class DdosDetectionRulePropertiesFormat extends Object implements com.azure.json.JsonSerializable<DdosDetectionRulePropertiesFormat>
DDoS detection rule properties.
  • Constructor Details

    • DdosDetectionRulePropertiesFormat

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

    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the DDoS detection rule.
      Returns:
      the provisioningState value.
    • detectionMode

      public DdosDetectionMode detectionMode()
      Get the detectionMode property: The detection mode for the DDoS detection rule.
      Returns:
      the detectionMode value.
    • withDetectionMode

      public DdosDetectionRulePropertiesFormat withDetectionMode(DdosDetectionMode detectionMode)
      Set the detectionMode property: The detection mode for the DDoS detection rule.
      Parameters:
      detectionMode - the detectionMode value to set.
      Returns:
      the DdosDetectionRulePropertiesFormat object itself.
    • trafficDetectionRule

      public TrafficDetectionRule trafficDetectionRule()
      Get the trafficDetectionRule property: The traffic detection rule details.
      Returns:
      the trafficDetectionRule value.
    • withTrafficDetectionRule

      public DdosDetectionRulePropertiesFormat withTrafficDetectionRule(TrafficDetectionRule trafficDetectionRule)
      Set the trafficDetectionRule property: The traffic detection rule details.
      Parameters:
      trafficDetectionRule - the trafficDetectionRule value to set.
      Returns:
      the DdosDetectionRulePropertiesFormat object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DdosDetectionRulePropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static DdosDetectionRulePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DdosDetectionRulePropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DdosDetectionRulePropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the DdosDetectionRulePropertiesFormat.