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 Summary
ConstructorsConstructorDescriptionCreates an instance of CacheKeyQueryStringActionParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CacheKeyQueryStringActionParameters from the JsonReader.Get the queryParameters property: query parameters to include or exclude (comma separated).Get the queryStringBehavior property: Caching behavior for the requests.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) typeName()Get the typeName property: The typeName property.voidvalidate()Validates the instance.withQueryParameters(String queryParameters) Set the queryParameters property: query parameters to include or exclude (comma separated).withQueryStringBehavior(QueryStringBehavior queryStringBehavior) Set the queryStringBehavior property: Caching behavior for the requests.withTypeName(String typeName) Set the typeName property: The typeName property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CacheKeyQueryStringActionParameters
public CacheKeyQueryStringActionParameters()Creates an instance of CacheKeyQueryStringActionParameters class.
-
-
Method Details
-
typeName
Get the typeName property: The typeName property.- Returns:
- the typeName value.
-
withTypeName
Set the typeName property: The typeName property.- Parameters:
typeName- the typeName value to set.- Returns:
- the CacheKeyQueryStringActionParameters object itself.
-
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
Get the queryParameters property: query parameters to include or exclude (comma separated).- Returns:
- the queryParameters value.
-
withQueryParameters
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
- Specified by:
toJsonin interfacecom.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.
-