Struct aws_sdk_cloudfront::types::builders::CachedMethodsBuilder
source · #[non_exhaustive]pub struct CachedMethodsBuilder { /* private fields */ }
Expand description
A builder for CachedMethods
.
Implementations§
source§impl CachedMethodsBuilder
impl CachedMethodsBuilder
sourcepub fn quantity(self, input: i32) -> Self
pub fn quantity(self, input: i32) -> Self
The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2
(for caching responses to GET
and HEAD
requests) and 3
(for caching responses to GET
, HEAD
, and OPTIONS
requests).
sourcepub fn set_quantity(self, input: Option<i32>) -> Self
pub fn set_quantity(self, input: Option<i32>) -> Self
The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2
(for caching responses to GET
and HEAD
requests) and 3
(for caching responses to GET
, HEAD
, and OPTIONS
requests).
sourcepub fn get_quantity(&self) -> &Option<i32>
pub fn get_quantity(&self) -> &Option<i32>
The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2
(for caching responses to GET
and HEAD
requests) and 3
(for caching responses to GET
, HEAD
, and OPTIONS
requests).
sourcepub fn items(self, input: Method) -> Self
pub fn items(self, input: Method) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.
sourcepub fn set_items(self, input: Option<Vec<Method>>) -> Self
pub fn set_items(self, input: Option<Vec<Method>>) -> Self
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.
sourcepub fn get_items(&self) -> &Option<Vec<Method>>
pub fn get_items(&self) -> &Option<Vec<Method>>
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.
sourcepub fn build(self) -> Result<CachedMethods, BuildError>
pub fn build(self) -> Result<CachedMethods, BuildError>
Consumes the builder and constructs a CachedMethods
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CachedMethodsBuilder
impl Clone for CachedMethodsBuilder
source§fn clone(&self) -> CachedMethodsBuilder
fn clone(&self) -> CachedMethodsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CachedMethodsBuilder
impl Debug for CachedMethodsBuilder
source§impl Default for CachedMethodsBuilder
impl Default for CachedMethodsBuilder
source§fn default() -> CachedMethodsBuilder
fn default() -> CachedMethodsBuilder
source§impl PartialEq for CachedMethodsBuilder
impl PartialEq for CachedMethodsBuilder
source§fn eq(&self, other: &CachedMethodsBuilder) -> bool
fn eq(&self, other: &CachedMethodsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CachedMethodsBuilder
Auto Trait Implementations§
impl Freeze for CachedMethodsBuilder
impl RefUnwindSafe for CachedMethodsBuilder
impl Send for CachedMethodsBuilder
impl Sync for CachedMethodsBuilder
impl Unpin for CachedMethodsBuilder
impl UnwindSafe for CachedMethodsBuilder
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> 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