CacheExpirationActionParameters Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. CacheExpirationActionParameters
- com.
public 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 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. |
Cache |
withCacheBehavior(CacheBehavior cacheBehavior)
Set caching behavior for the requests. |
Cache |
withCacheDuration(String cacheDuration)
Set the duration for which the content needs to be cached. |
Cache |
withCacheType(String cacheType)
Set the level at which the content needs to be cached. |
Cache |
withOdatatype(String odatatype)
Set the odatatype value. |
Methods inherited from java.lang.Object
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:
cacheDuration
public String cacheDuration()
Get the duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss.
Returns:
cacheType
public String cacheType()
Get the level at which the content needs to be cached.
Returns:
odatatype
public String odatatype()
Get the odatatype value.
Returns:
withCacheBehavior
public CacheExpirationActionParameters withCacheBehavior(CacheBehavior cacheBehavior)
Set caching behavior for the requests. Possible values include: 'BypassCache', 'Override', 'SetIfMissing'.
Parameters:
Returns:
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:
Returns:
withCacheType
public CacheExpirationActionParameters withCacheType(String cacheType)
Set the level at which the content needs to be cached.
Parameters:
Returns:
withOdatatype
public CacheExpirationActionParameters withOdatatype(String odatatype)
Set the odatatype value.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor