Partager via


CacheKeyQueryStringActionParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.CacheKeyQueryStringActionParameters

Implements

public final class CacheKeyQueryStringActionParameters
implements JsonSerializable<CacheKeyQueryStringActionParameters>

Defines the parameters for the cache-key query string action.

Constructor Summary

Constructor Description
CacheKeyQueryStringActionParameters()

Creates an instance of CacheKeyQueryStringActionParameters class.

Method Summary

Modifier and Type Method and Description
static CacheKeyQueryStringActionParameters fromJson(JsonReader jsonReader)

Reads an instance of CacheKeyQueryStringActionParameters from the JsonReader.

String queryParameters()

Get the queryParameters property: query parameters to include or exclude (comma separated).

QueryStringBehavior queryStringBehavior()

Get the queryStringBehavior property: Caching behavior for the requests.

JsonWriter toJson(JsonWriter jsonWriter)
String typeName()

Get the typeName property: The typeName property.

void validate()

Validates the instance.

CacheKeyQueryStringActionParameters withQueryParameters(String queryParameters)

Set the queryParameters property: query parameters to include or exclude (comma separated).

CacheKeyQueryStringActionParameters withQueryStringBehavior(QueryStringBehavior queryStringBehavior)

Set the queryStringBehavior property: Caching behavior for the requests.

CacheKeyQueryStringActionParameters withTypeName(String typeName)

Set the typeName property: The typeName property.

Methods inherited from java.lang.Object

Constructor Details

CacheKeyQueryStringActionParameters

public CacheKeyQueryStringActionParameters()

Creates an instance of CacheKeyQueryStringActionParameters class.

Method Details

fromJson

public static CacheKeyQueryStringActionParameters fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

queryParameters

public String queryParameters()

Get the queryParameters property: query parameters to include or exclude (comma separated).

Returns:

the queryParameters value.

queryStringBehavior

public QueryStringBehavior queryStringBehavior()

Get the queryStringBehavior property: Caching behavior for the requests.

Returns:

the queryStringBehavior value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

typeName

public String typeName()

Get the typeName property: The typeName property.

Returns:

the typeName value.

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to