#[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 ==
.impl StructuralPartialEq for QueryStringCacheKeysBuilder
Auto Trait Implementations§
impl Freeze for QueryStringCacheKeysBuilder
impl RefUnwindSafe for QueryStringCacheKeysBuilder
impl Send for QueryStringCacheKeysBuilder
impl Sync for QueryStringCacheKeysBuilder
impl Unpin for QueryStringCacheKeysBuilder
impl UnwindSafe for QueryStringCacheKeysBuilder
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