Class ManagedRuleSetDefinitionProperties

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

public final class ManagedRuleSetDefinitionProperties extends Object implements com.azure.json.JsonSerializable<ManagedRuleSetDefinitionProperties>
Properties for a managed rule set definition.
  • Constructor Details

    • ManagedRuleSetDefinitionProperties

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

    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Provisioning state of the managed rule set.
      Returns:
      the provisioningState value.
    • ruleSetType

      public String ruleSetType()
      Get the ruleSetType property: Type of the managed rule set.
      Returns:
      the ruleSetType value.
    • ruleSetVersion

      public String ruleSetVersion()
      Get the ruleSetVersion property: Version of the managed rule set type.
      Returns:
      the ruleSetVersion value.
    • ruleGroups

      public List<ManagedRuleGroupDefinition> ruleGroups()
      Get the ruleGroups property: Rule groups of the managed rule set.
      Returns:
      the ruleGroups value.
    • 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<ManagedRuleSetDefinitionProperties>
      Throws:
      IOException
    • fromJson

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