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 ==
.