Class DeliveryRuleSocketAddrCondition

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

public final class DeliveryRuleSocketAddrCondition extends DeliveryRuleCondition
Defines the SocketAddress condition for the delivery rule.
  • Constructor Details

    • DeliveryRuleSocketAddrCondition

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

    • name

      public MatchVariable name()
      Get the name property: The name of the condition for the delivery rule.
      Overrides:
      name in class DeliveryRuleCondition
      Returns:
      the name value.
    • parameters

      Get the parameters property: Defines the parameters for the condition.
      Returns:
      the parameters value.
    • withParameters

      Set the parameters property: Defines the parameters for the condition.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the DeliveryRuleSocketAddrCondition object itself.
    • validate

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

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