public final class CacheExpirationActionParameters extends Object
| Constructor and Description |
|---|
CacheExpirationActionParameters()
Creates an instance of CacheExpirationActionParameters class.
|
| 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 |
odataType()
Get the odataType property: The @odata.type 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 |
withOdataType(String odataType)
Set the odataType property: The @odata.type property.
|
public CacheExpirationActionParameters()
public String odataType()
public CacheExpirationActionParameters withOdataType(String odataType)
odataType - the odataType value to set.public CacheBehavior cacheBehavior()
public CacheExpirationActionParameters withCacheBehavior(CacheBehavior cacheBehavior)
cacheBehavior - the cacheBehavior value to set.public CacheType cacheType()
public CacheExpirationActionParameters withCacheType(CacheType cacheType)
cacheType - the cacheType value to set.public String cacheDuration()
public CacheExpirationActionParameters withCacheDuration(String cacheDuration)
cacheDuration - the cacheDuration value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.