CacheExpirationActionParameters Class

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

public final class CacheExpirationActionParameters

Defines the parameters for the cache expiration action.

Constructor Summary

Constructor Description
CacheExpirationActionParameters()

Creates an instance of CacheExpirationActionParameters class.

Method Summary

Modifier and Type Method and Description
CacheBehavior cacheBehavior()

Get the cacheBehavior property: Caching behavior for the requests.

String cacheDuration()

Get the cacheDuration property: The duration for which the content needs to be cached.

CacheType cacheType()

Get the cacheType property: The level at which the content needs to be cached.

String typeName()

Get the typeName property: The typeName property.

void validate()

Validates the instance.

CacheExpirationActionParameters withCacheBehavior(CacheBehavior cacheBehavior)

Set the cacheBehavior property: Caching behavior for the requests.

CacheExpirationActionParameters withCacheDuration(String cacheDuration)

Set the cacheDuration property: The duration for which the content needs to be cached.

CacheExpirationActionParameters withCacheType(CacheType cacheType)

Set the cacheType property: The level at which the content needs to be cached.

CacheExpirationActionParameters withTypeName(String typeName)

Set the typeName property: The typeName property.

Methods inherited from java.lang.Object

Constructor Details

CacheExpirationActionParameters

public CacheExpirationActionParameters()

Creates an instance of CacheExpirationActionParameters class.

Method Details

cacheBehavior

public CacheBehavior cacheBehavior()

Get the cacheBehavior property: Caching behavior for the requests.

Returns:

the cacheBehavior value.

cacheDuration

public String cacheDuration()

Get the cacheDuration property: The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss.

Returns:

the cacheDuration value.

cacheType

public CacheType cacheType()

Get the cacheType property: The level at which the content needs to be cached.

Returns:

the cacheType value.

typeName

public String typeName()

Get the typeName property: The typeName property.

Returns:

the typeName value.

validate

public void validate()

Validates the instance.

withCacheBehavior

public CacheExpirationActionParameters withCacheBehavior(CacheBehavior cacheBehavior)

Set the cacheBehavior property: Caching behavior for the requests.

Parameters:

cacheBehavior - the cacheBehavior value to set.

Returns:

the CacheExpirationActionParameters object itself.

withCacheDuration

public CacheExpirationActionParameters withCacheDuration(String cacheDuration)

Set the cacheDuration property: The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss.

Parameters:

cacheDuration - the cacheDuration value to set.

Returns:

the CacheExpirationActionParameters object itself.

withCacheType

public CacheExpirationActionParameters withCacheType(CacheType cacheType)

Set the cacheType property: The level at which the content needs to be cached.

Parameters:

cacheType - the cacheType value to set.

Returns:

the CacheExpirationActionParameters object itself.

withTypeName

public CacheExpirationActionParameters withTypeName(String typeName)

Set the typeName property: The typeName property.

Parameters:

typeName - the typeName value to set.

Returns:

the CacheExpirationActionParameters object itself.

Applies to