Class RuleSetProperties

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

public final class RuleSetProperties extends AfdStateProperties
The JSON object that contains the properties of the Rule Set to create.
  • Constructor Details

    • RuleSetProperties

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

    • profileName

      public String profileName()
      Get the profileName property: The name of the profile which holds the rule set.
      Returns:
      the profileName value.
    • deploymentStatus

      public DeploymentStatus deploymentStatus()
      Get the deploymentStatus property: The deploymentStatus property.
      Overrides:
      deploymentStatus in class AfdStateProperties
      Returns:
      the deploymentStatus value.
    • provisioningState

      public AfdProvisioningState provisioningState()
      Get the provisioningState property: Provisioning status.
      Overrides:
      provisioningState in class AfdStateProperties
      Returns:
      the provisioningState value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class AfdStateProperties
      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<AfdStateProperties>
      Overrides:
      toJson in class AfdStateProperties
      Throws:
      IOException
    • fromJson

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