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.
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 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 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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<CachingConfigBuilder> for CachingConfigBuilder
impl PartialEq<CachingConfigBuilder> for CachingConfigBuilder
source§fn eq(&self, other: &CachingConfigBuilder) -> bool
fn eq(&self, other: &CachingConfigBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CachingConfigBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CachingConfigBuilder
impl Send for CachingConfigBuilder
impl Sync for CachingConfigBuilder
impl Unpin for CachingConfigBuilder
impl UnwindSafe for CachingConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more