Class RequestSchemeMatchConditionParameters

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

public final class RequestSchemeMatchConditionParameters extends Object implements com.azure.json.JsonSerializable<RequestSchemeMatchConditionParameters>
Defines the parameters for RequestScheme match conditions.
  • Constructor Details

    • RequestSchemeMatchConditionParameters

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

    • typeName

      public String typeName()
      Get the typeName property: The typeName property.
      Returns:
      the typeName value.
    • withTypeName

      public RequestSchemeMatchConditionParameters withTypeName(String typeName)
      Set the typeName property: The typeName property.
      Parameters:
      typeName - the typeName value to set.
      Returns:
      the RequestSchemeMatchConditionParameters object itself.
    • operator

      public String operator()
      Get the operator property: Describes operator to be matched.
      Returns:
      the operator value.
    • withOperator

      public RequestSchemeMatchConditionParameters withOperator(String operator)
      Set the operator property: Describes operator to be matched.
      Parameters:
      operator - the operator value to set.
      Returns:
      the RequestSchemeMatchConditionParameters object itself.
    • negateCondition

      public Boolean negateCondition()
      Get the negateCondition property: Describes if this is negate condition or not.
      Returns:
      the negateCondition value.
    • withNegateCondition

      public RequestSchemeMatchConditionParameters withNegateCondition(Boolean negateCondition)
      Set the negateCondition property: Describes if this is negate condition or not.
      Parameters:
      negateCondition - the negateCondition value to set.
      Returns:
      the RequestSchemeMatchConditionParameters object itself.
    • transforms

      public List<Transform> transforms()
      Get the transforms property: List of transforms.
      Returns:
      the transforms value.
    • withTransforms

      public RequestSchemeMatchConditionParameters withTransforms(List<Transform> transforms)
      Set the transforms property: List of transforms.
      Parameters:
      transforms - the transforms value to set.
      Returns:
      the RequestSchemeMatchConditionParameters object itself.
    • matchValues

      Get the matchValues property: The match value for the condition of the delivery rule.
      Returns:
      the matchValues value.
    • withMatchValues

      Set the matchValues property: The match value for the condition of the delivery rule.
      Parameters:
      matchValues - the matchValues value to set.
      Returns:
      the RequestSchemeMatchConditionParameters 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<RequestSchemeMatchConditionParameters>
      Throws:
      IOException
    • fromJson

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