@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CachingConfig extends Object implements Serializable, Cloneable, StructuredPojo
The caching configuration for a resolver that has caching enabled.
Constructor and Description |
---|
CachingConfig() |
Modifier and Type | Method and Description |
---|---|
CachingConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCachingKeys()
The caching keys for a resolver that has caching enabled.
|
Long |
getTtl()
The TTL in seconds for a resolver that has caching enabled.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCachingKeys(Collection<String> cachingKeys)
The caching keys for a resolver that has caching enabled.
|
void |
setTtl(Long ttl)
The TTL in seconds for a resolver that has caching enabled.
|
String |
toString()
Returns a string representation of this object.
|
CachingConfig |
withCachingKeys(Collection<String> cachingKeys)
The caching keys for a resolver that has caching enabled.
|
CachingConfig |
withCachingKeys(String... cachingKeys)
The caching keys for a resolver that has caching enabled.
|
CachingConfig |
withTtl(Long ttl)
The TTL in seconds for a resolver that has caching enabled.
|
public void setTtl(Long ttl)
The TTL in seconds for a resolver that has caching enabled.
Valid values are between 1 and 3600 seconds.
ttl
- The TTL in seconds for a resolver that has caching enabled.
Valid values are between 1 and 3600 seconds.
public Long getTtl()
The TTL in seconds for a resolver that has caching enabled.
Valid values are between 1 and 3600 seconds.
Valid values are between 1 and 3600 seconds.
public CachingConfig withTtl(Long ttl)
The TTL in seconds for a resolver that has caching enabled.
Valid values are between 1 and 3600 seconds.
ttl
- The TTL in seconds for a resolver that has caching enabled.
Valid values are between 1 and 3600 seconds.
public List<String> getCachingKeys()
The caching keys for a resolver that has caching enabled.
Valid values are entries from the $context.arguments
, $context.source
, and
$context.identity
maps.
Valid values are entries from the $context.arguments
, $context.source
, and
$context.identity
maps.
public void setCachingKeys(Collection<String> cachingKeys)
The caching keys for a resolver that has caching enabled.
Valid values are entries from the $context.arguments
, $context.source
, and
$context.identity
maps.
cachingKeys
- The caching keys for a resolver that has caching enabled.
Valid values are entries from the $context.arguments
, $context.source
, and
$context.identity
maps.
public CachingConfig withCachingKeys(String... cachingKeys)
The caching keys for a resolver that has caching enabled.
Valid values are entries from the $context.arguments
, $context.source
, and
$context.identity
maps.
NOTE: This method appends the values to the existing list (if any). Use
setCachingKeys(java.util.Collection)
or withCachingKeys(java.util.Collection)
if you want to
override the existing values.
cachingKeys
- The caching keys for a resolver that has caching enabled.
Valid values are entries from the $context.arguments
, $context.source
, and
$context.identity
maps.
public CachingConfig withCachingKeys(Collection<String> cachingKeys)
The caching keys for a resolver that has caching enabled.
Valid values are entries from the $context.arguments
, $context.source
, and
$context.identity
maps.
cachingKeys
- The caching keys for a resolver that has caching enabled.
Valid values are entries from the $context.arguments
, $context.source
, and
$context.identity
maps.
public String toString()
toString
in class Object
Object.toString()
public CachingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.