Struct aws_sdk_appsync::types::builders::CachingConfigBuilder
source · #[non_exhaustive]pub struct CachingConfigBuilder { /* private fields */ }
Expand description
A builder for CachingConfig
.
Implementations§
source§impl CachingConfigBuilder
impl CachingConfigBuilder
sourcepub fn ttl(self, input: i64) -> Self
pub fn ttl(self, input: i64) -> Self
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
This field is required.sourcepub fn set_ttl(self, input: Option<i64>) -> Self
pub fn set_ttl(self, input: Option<i64>) -> Self
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
sourcepub fn get_ttl(&self) -> &Option<i64>
pub fn get_ttl(&self) -> &Option<i64>
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
sourcepub fn caching_keys(self, input: impl Into<String>) -> Self
pub fn caching_keys(self, input: impl Into<String>) -> Self
Appends an item to caching_keys
.
To override the contents of this collection use set_caching_keys
.
The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments
, $context.source
, and $context.identity
maps.
sourcepub fn set_caching_keys(self, input: Option<Vec<String>>) -> Self
pub fn set_caching_keys(self, input: Option<Vec<String>>) -> Self
The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments
, $context.source
, and $context.identity
maps.
sourcepub fn get_caching_keys(&self) -> &Option<Vec<String>>
pub fn get_caching_keys(&self) -> &Option<Vec<String>>
The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments
, $context.source
, and $context.identity
maps.
sourcepub fn build(self) -> CachingConfig
pub fn build(self) -> CachingConfig
Consumes the builder and constructs a CachingConfig
.
Trait Implementations§
source§impl Clone for CachingConfigBuilder
impl Clone for CachingConfigBuilder
source§fn clone(&self) -> CachingConfigBuilder
fn clone(&self) -> CachingConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CachingConfigBuilder
impl Debug for CachingConfigBuilder
source§impl Default for CachingConfigBuilder
impl Default for CachingConfigBuilder
source§fn default() -> CachingConfigBuilder
fn default() -> CachingConfigBuilder
source§impl PartialEq for CachingConfigBuilder
impl PartialEq for CachingConfigBuilder
source§fn eq(&self, other: &CachingConfigBuilder) -> bool
fn eq(&self, other: &CachingConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.