#[non_exhaustive]pub struct QueryStringCacheKeysBuilder { /* private fields */ }
Expand description
A builder for QueryStringCacheKeys
.
Implementations§
source§impl QueryStringCacheKeysBuilder
impl QueryStringCacheKeysBuilder
sourcepub fn quantity(self, input: i32) -> Self
pub fn quantity(self, input: i32) -> Self
The number of whitelisted
query string parameters for a cache behavior.
sourcepub fn set_quantity(self, input: Option<i32>) -> Self
pub fn set_quantity(self, input: Option<i32>) -> Self
The number of whitelisted
query string parameters for a cache behavior.
sourcepub fn get_quantity(&self) -> &Option<i32>
pub fn get_quantity(&self) -> &Option<i32>
The number of whitelisted
query string parameters for a cache behavior.
sourcepub fn items(self, input: impl Into<String>) -> Self
pub fn items(self, input: impl Into<String>) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
A list that contains the query string parameters that you want CloudFront to use as a basis for caching for a cache behavior. If Quantity
is 0, you can omit Items
.
sourcepub fn set_items(self, input: Option<Vec<String>>) -> Self
pub fn set_items(self, input: Option<Vec<String>>) -> Self
A list that contains the query string parameters that you want CloudFront to use as a basis for caching for a cache behavior. If Quantity
is 0, you can omit Items
.
sourcepub fn get_items(&self) -> &Option<Vec<String>>
pub fn get_items(&self) -> &Option<Vec<String>>
A list that contains the query string parameters that you want CloudFront to use as a basis for caching for a cache behavior. If Quantity
is 0, you can omit Items
.
sourcepub fn build(self) -> Result<QueryStringCacheKeys, BuildError>
pub fn build(self) -> Result<QueryStringCacheKeys, BuildError>
Consumes the builder and constructs a QueryStringCacheKeys
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for QueryStringCacheKeysBuilder
impl Clone for QueryStringCacheKeysBuilder
source§fn clone(&self) -> QueryStringCacheKeysBuilder
fn clone(&self) -> QueryStringCacheKeysBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryStringCacheKeysBuilder
impl Debug for QueryStringCacheKeysBuilder
source§impl Default for QueryStringCacheKeysBuilder
impl Default for QueryStringCacheKeysBuilder
source§fn default() -> QueryStringCacheKeysBuilder
fn default() -> QueryStringCacheKeysBuilder
source§impl PartialEq for QueryStringCacheKeysBuilder
impl PartialEq for QueryStringCacheKeysBuilder
source§fn eq(&self, other: &QueryStringCacheKeysBuilder) -> bool
fn eq(&self, other: &QueryStringCacheKeysBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.