Struct aws_sdk_amplify::types::builders::CacheConfigBuilder
source · #[non_exhaustive]pub struct CacheConfigBuilder { /* private fields */ }Expand description
A builder for CacheConfig.
Implementations§
source§impl CacheConfigBuilder
impl CacheConfigBuilder
sourcepub fn type(self, input: CacheConfigType) -> Self
pub fn type(self, input: CacheConfigType) -> Self
The type of cache configuration to use for an Amplify app.
The AMPLIFY_MANAGED cache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.
The AMPLIFY_MANAGED_NO_COOKIES cache configuration type is the same as AMPLIFY_MANAGED, except that it excludes all cookies from the cache key.
sourcepub fn set_type(self, input: Option<CacheConfigType>) -> Self
pub fn set_type(self, input: Option<CacheConfigType>) -> Self
The type of cache configuration to use for an Amplify app.
The AMPLIFY_MANAGED cache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.
The AMPLIFY_MANAGED_NO_COOKIES cache configuration type is the same as AMPLIFY_MANAGED, except that it excludes all cookies from the cache key.
sourcepub fn get_type(&self) -> &Option<CacheConfigType>
pub fn get_type(&self) -> &Option<CacheConfigType>
The type of cache configuration to use for an Amplify app.
The AMPLIFY_MANAGED cache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.
The AMPLIFY_MANAGED_NO_COOKIES cache configuration type is the same as AMPLIFY_MANAGED, except that it excludes all cookies from the cache key.
sourcepub fn build(self) -> Result<CacheConfig, BuildError>
pub fn build(self) -> Result<CacheConfig, BuildError>
Consumes the builder and constructs a CacheConfig.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CacheConfigBuilder
impl Clone for CacheConfigBuilder
source§fn clone(&self) -> CacheConfigBuilder
fn clone(&self) -> CacheConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CacheConfigBuilder
impl Debug for CacheConfigBuilder
source§impl Default for CacheConfigBuilder
impl Default for CacheConfigBuilder
source§fn default() -> CacheConfigBuilder
fn default() -> CacheConfigBuilder
source§impl PartialEq for CacheConfigBuilder
impl PartialEq for CacheConfigBuilder
impl StructuralPartialEq for CacheConfigBuilder
Auto Trait Implementations§
impl Freeze for CacheConfigBuilder
impl RefUnwindSafe for CacheConfigBuilder
impl Send for CacheConfigBuilder
impl Sync for CacheConfigBuilder
impl Unpin for CacheConfigBuilder
impl UnwindSafe for CacheConfigBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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