Class CacheExpirationActionParameters
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.CacheExpirationActionParameters
-
public final class CacheExpirationActionParameters extends Object
Defines the parameters for the cache expiration action.
-
-
Constructor Summary
Constructors Constructor Description CacheExpirationActionParameters()Creates an instance of CacheExpirationActionParameters class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheBehaviorcacheBehavior()Get the cacheBehavior property: Caching behavior for the requests.StringcacheDuration()Get the cacheDuration property: The duration for which the content needs to be cached.CacheTypecacheType()Get the cacheType property: The level at which the content needs to be cached.StringodataType()Get the odataType property: The @odata.type property.voidvalidate()Validates the instance.CacheExpirationActionParameterswithCacheBehavior(CacheBehavior cacheBehavior)Set the cacheBehavior property: Caching behavior for the requests.CacheExpirationActionParameterswithCacheDuration(String cacheDuration)Set the cacheDuration property: The duration for which the content needs to be cached.CacheExpirationActionParameterswithCacheType(CacheType cacheType)Set the cacheType property: The level at which the content needs to be cached.CacheExpirationActionParameterswithOdataType(String odataType)Set the odataType property: The @odata.type property.
-
-
-
Method Detail
-
odataType
public String odataType()
Get the odataType property: The @odata.type property.- Returns:
- the odataType value.
-
withOdataType
public CacheExpirationActionParameters withOdataType(String odataType)
Set the odataType property: The @odata.type property.- Parameters:
odataType- the odataType value to set.- Returns:
- the CacheExpirationActionParameters object itself.
-
cacheBehavior
public CacheBehavior cacheBehavior()
Get the cacheBehavior property: Caching behavior for the requests.- Returns:
- the cacheBehavior value.
-
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.
-
cacheType
public CacheType cacheType()
Get the cacheType property: The level at which the content needs to be cached.- Returns:
- the cacheType value.
-
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.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-