Class CacheKeyQueryStringActionParameters

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

public final class CacheKeyQueryStringActionParameters extends Object implements com.azure.json.JsonSerializable<CacheKeyQueryStringActionParameters>
Defines the parameters for the cache-key query string action.
  • Constructor Details

    • CacheKeyQueryStringActionParameters

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

    • typeName

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

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

      public QueryStringBehavior queryStringBehavior()
      Get the queryStringBehavior property: Caching behavior for the requests.
      Returns:
      the queryStringBehavior value.
    • withQueryStringBehavior

      public CacheKeyQueryStringActionParameters withQueryStringBehavior(QueryStringBehavior queryStringBehavior)
      Set the queryStringBehavior property: Caching behavior for the requests.
      Parameters:
      queryStringBehavior - the queryStringBehavior value to set.
      Returns:
      the CacheKeyQueryStringActionParameters object itself.
    • queryParameters

      public String queryParameters()
      Get the queryParameters property: query parameters to include or exclude (comma separated).
      Returns:
      the queryParameters value.
    • withQueryParameters

      public CacheKeyQueryStringActionParameters withQueryParameters(String queryParameters)
      Set the queryParameters property: query parameters to include or exclude (comma separated).
      Parameters:
      queryParameters - the queryParameters value to set.
      Returns:
      the CacheKeyQueryStringActionParameters 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<CacheKeyQueryStringActionParameters>
      Throws:
      IOException
    • fromJson

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