CacheExpirationActionParameters Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. CacheExpirationActionParameters
- com.
public final class CacheExpirationActionParameters
Defines the parameters for the cache expiration action.
Constructor Summary
Constructor | Description |
---|---|
CacheExpirationActionParameters() |
Creates an instance of Cache |
Method Summary
Modifier and Type | Method and Description |
---|---|
Cache |
cacheBehavior()
Get the cache |
String |
cacheDuration()
Get the cache |
Cache |
cacheType()
Get the cache |
String |
typeName()
Get the type |
void |
validate()
Validates the instance. |
Cache |
withCacheBehavior(CacheBehavior cacheBehavior)
Set the cache |
Cache |
withCacheDuration(String cacheDuration)
Set the cache |
Cache |
withCacheType(CacheType cacheType)
Set the cache |
Cache |
withTypeName(String typeName)
Set the type |
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:
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:
cacheType
public CacheType cacheType()
Get the cacheType property: The level at which the content needs to be cached.
Returns:
typeName
public String typeName()
Get the typeName property: The typeName property.
Returns:
validate
public void validate()
Validates the instance.
withCacheBehavior
public CacheExpirationActionParameters withCacheBehavior(CacheBehavior cacheBehavior)
Set the cacheBehavior property: Caching behavior for the requests.
Parameters:
Returns:
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:
Returns:
withCacheType
public CacheExpirationActionParameters withCacheType(CacheType cacheType)
Set the cacheType property: The level at which the content needs to be cached.
Parameters:
Returns:
withTypeName
public CacheExpirationActionParameters withTypeName(String typeName)
Set the typeName property: The typeName property.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for