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
impl StructuralPartialEq for CachingConfigBuilder
Auto Trait Implementations§
impl Freeze for CachingConfigBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more