CacheExpirationActionParameters Class

  • java.lang.Object
    • com.microsoft.azure.management.cdn.CacheExpirationActionParameters

public 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 caching behavior for the requests.

java.lang.String cacheDuration()

Get the duration for which the content needs to be cached.

java.lang.String cacheType()

Get the level at which the content needs to be cached.

java.lang.String odatatype()

Get the odatatype value.

CacheExpirationActionParameters withCacheBehavior(CacheBehavior cacheBehavior)

Set caching behavior for the requests.

CacheExpirationActionParameters withCacheDuration(String cacheDuration)

Set the duration for which the content needs to be cached.

CacheExpirationActionParameters withCacheType(String cacheType)

Set the level at which the content needs to be cached.

CacheExpirationActionParameters withOdatatype(String odatatype)

Set the odatatype value.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

CacheExpirationActionParameters

public CacheExpirationActionParameters()

Creates an instance of CacheExpirationActionParameters class.

Method Details

cacheBehavior

public CacheBehavior cacheBehavior()

Get caching behavior for the requests. Possible values include: 'BypassCache', 'Override', 'SetIfMissing'.

Returns:

the cacheBehavior value

cacheDuration

public String cacheDuration()

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

Returns:

the cacheDuration value

cacheType

public String cacheType()

Get the level at which the content needs to be cached.

Returns:

the cacheType value

odatatype

public String odatatype()

Get the odatatype value.

Returns:

the odatatype value

withCacheBehavior

public CacheExpirationActionParameters withCacheBehavior(CacheBehavior cacheBehavior)

Set caching behavior for the requests. Possible values include: 'BypassCache', 'Override', 'SetIfMissing'.

Parameters:

cacheBehavior - the cacheBehavior value to set

Returns:

the CacheExpirationActionParameters object itself.

withCacheDuration

public CacheExpirationActionParameters withCacheDuration(String cacheDuration)

Set 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(String cacheType)

Set the level at which the content needs to be cached.

Parameters:

cacheType - the cacheType value to set

Returns:

the CacheExpirationActionParameters object itself.

withOdatatype

public CacheExpirationActionParameters withOdatatype(String odatatype)

Set the odatatype value.

Parameters:

odatatype - the odatatype value to set

Returns:

the CacheExpirationActionParameters object itself.

Applies to