Struct aws_sdk_cloudfront::model::cached_methods::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for CachedMethods
.
Implementations
sourceimpl Builder
impl Builder
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 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 build(self) -> CachedMethods
pub fn build(self) -> CachedMethods
Consumes the builder and constructs a CachedMethods
.