Class DefaultRuleSetPropertyFormat

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

public final class DefaultRuleSetPropertyFormat extends Object implements com.azure.json.JsonSerializable<DefaultRuleSetPropertyFormat>
the default web application firewall rule set.
  • Constructor Details

    • DefaultRuleSetPropertyFormat

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

    • ruleSetType

      public String ruleSetType()
      Get the ruleSetType property: The type of the web application firewall rule set.
      Returns:
      the ruleSetType value.
    • withRuleSetType

      public DefaultRuleSetPropertyFormat withRuleSetType(String ruleSetType)
      Set the ruleSetType property: The type of the web application firewall rule set.
      Parameters:
      ruleSetType - the ruleSetType value to set.
      Returns:
      the DefaultRuleSetPropertyFormat object itself.
    • ruleSetVersion

      public String ruleSetVersion()
      Get the ruleSetVersion property: The version of the web application firewall rule set type.
      Returns:
      the ruleSetVersion value.
    • withRuleSetVersion

      public DefaultRuleSetPropertyFormat withRuleSetVersion(String ruleSetVersion)
      Set the ruleSetVersion property: The version of the web application firewall rule set type.
      Parameters:
      ruleSetVersion - the ruleSetVersion value to set.
      Returns:
      the DefaultRuleSetPropertyFormat 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<DefaultRuleSetPropertyFormat>
      Throws:
      IOException
    • fromJson

      public static DefaultRuleSetPropertyFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DefaultRuleSetPropertyFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DefaultRuleSetPropertyFormat 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 DefaultRuleSetPropertyFormat.