#[non_exhaustive]pub struct FunctionAssociationsBuilder { /* private fields */ }
Expand description
A builder for FunctionAssociations
.
Implementations§
source§impl FunctionAssociationsBuilder
impl FunctionAssociationsBuilder
sourcepub fn quantity(self, input: i32) -> Self
pub fn quantity(self, input: i32) -> Self
The number of CloudFront functions in the list.
This field is required.sourcepub fn set_quantity(self, input: Option<i32>) -> Self
pub fn set_quantity(self, input: Option<i32>) -> Self
The number of CloudFront functions in the list.
sourcepub fn get_quantity(&self) -> &Option<i32>
pub fn get_quantity(&self) -> &Option<i32>
The number of CloudFront functions in the list.
sourcepub fn items(self, input: FunctionAssociation) -> Self
pub fn items(self, input: FunctionAssociation) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
The CloudFront functions that are associated with a cache behavior in a CloudFront distribution. Your functions must be published to the LIVE
stage to associate them with a cache behavior.
sourcepub fn set_items(self, input: Option<Vec<FunctionAssociation>>) -> Self
pub fn set_items(self, input: Option<Vec<FunctionAssociation>>) -> Self
The CloudFront functions that are associated with a cache behavior in a CloudFront distribution. Your functions must be published to the LIVE
stage to associate them with a cache behavior.
sourcepub fn get_items(&self) -> &Option<Vec<FunctionAssociation>>
pub fn get_items(&self) -> &Option<Vec<FunctionAssociation>>
The CloudFront functions that are associated with a cache behavior in a CloudFront distribution. Your functions must be published to the LIVE
stage to associate them with a cache behavior.
sourcepub fn build(self) -> Result<FunctionAssociations, BuildError>
pub fn build(self) -> Result<FunctionAssociations, BuildError>
Consumes the builder and constructs a FunctionAssociations
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FunctionAssociationsBuilder
impl Clone for FunctionAssociationsBuilder
source§fn clone(&self) -> FunctionAssociationsBuilder
fn clone(&self) -> FunctionAssociationsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionAssociationsBuilder
impl Debug for FunctionAssociationsBuilder
source§impl Default for FunctionAssociationsBuilder
impl Default for FunctionAssociationsBuilder
source§fn default() -> FunctionAssociationsBuilder
fn default() -> FunctionAssociationsBuilder
source§impl PartialEq for FunctionAssociationsBuilder
impl PartialEq for FunctionAssociationsBuilder
source§fn eq(&self, other: &FunctionAssociationsBuilder) -> bool
fn eq(&self, other: &FunctionAssociationsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FunctionAssociationsBuilder
Auto Trait Implementations§
impl Freeze for FunctionAssociationsBuilder
impl RefUnwindSafe for FunctionAssociationsBuilder
impl Send for FunctionAssociationsBuilder
impl Sync for FunctionAssociationsBuilder
impl Unpin for FunctionAssociationsBuilder
impl UnwindSafe for FunctionAssociationsBuilder
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