@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 activated.
| 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 activated.
|
Long |
getTtl()
The TTL in seconds for a resolver that has caching activated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCachingKeys(Collection<String> cachingKeys)
The caching keys for a resolver that has caching activated.
|
void |
setTtl(Long ttl)
The TTL in seconds for a resolver that has caching activated.
|
String |
toString()
Returns a string representation of this object.
|
CachingConfig |
withCachingKeys(Collection<String> cachingKeys)
The caching keys for a resolver that has caching activated.
|
CachingConfig |
withCachingKeys(String... cachingKeys)
The caching keys for a resolver that has caching activated.
|
CachingConfig |
withTtl(Long ttl)
The TTL in seconds for a resolver that has caching activated.
|
public void setTtl(Long ttl)
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
ttl - The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
public Long getTtl()
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
Valid values are 1–3,600 seconds.
public CachingConfig withTtl(Long ttl)
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
ttl - The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
public List<String> getCachingKeys()
The caching keys for a resolver that has caching activated.
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 activated.
Valid values are entries from the $context.arguments, $context.source, and
$context.identity maps.
cachingKeys - The caching keys for a resolver that has caching activated.
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 activated.
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 activated.
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 activated.
Valid values are entries from the $context.arguments, $context.source, and
$context.identity maps.
cachingKeys - The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments, $context.source, and
$context.identity maps.
public String toString()
toString in class ObjectObject.toString()public CachingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.