#[non_exhaustive]pub struct LambdaFunctionAssociationsBuilder { /* private fields */ }
Expand description
A builder for LambdaFunctionAssociations
.
Implementations§
source§impl LambdaFunctionAssociationsBuilder
impl LambdaFunctionAssociationsBuilder
sourcepub fn quantity(self, input: i32) -> Self
pub fn quantity(self, input: i32) -> Self
The number of Lambda@Edge function associations for this cache behavior.
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 Lambda@Edge function associations for this cache behavior.
sourcepub fn get_quantity(&self) -> &Option<i32>
pub fn get_quantity(&self) -> &Option<i32>
The number of Lambda@Edge function associations for this cache behavior.
sourcepub fn items(self, input: LambdaFunctionAssociation) -> Self
pub fn items(self, input: LambdaFunctionAssociation) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
Optional: A complex type that contains LambdaFunctionAssociation
items for this cache behavior. If Quantity
is 0
, you can omit Items
.
sourcepub fn set_items(self, input: Option<Vec<LambdaFunctionAssociation>>) -> Self
pub fn set_items(self, input: Option<Vec<LambdaFunctionAssociation>>) -> Self
Optional: A complex type that contains LambdaFunctionAssociation
items for this cache behavior. If Quantity
is 0
, you can omit Items
.
sourcepub fn get_items(&self) -> &Option<Vec<LambdaFunctionAssociation>>
pub fn get_items(&self) -> &Option<Vec<LambdaFunctionAssociation>>
Optional: A complex type that contains LambdaFunctionAssociation
items for this cache behavior. If Quantity
is 0
, you can omit Items
.
sourcepub fn build(self) -> Result<LambdaFunctionAssociations, BuildError>
pub fn build(self) -> Result<LambdaFunctionAssociations, BuildError>
Consumes the builder and constructs a LambdaFunctionAssociations
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LambdaFunctionAssociationsBuilder
impl Clone for LambdaFunctionAssociationsBuilder
source§fn clone(&self) -> LambdaFunctionAssociationsBuilder
fn clone(&self) -> LambdaFunctionAssociationsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LambdaFunctionAssociationsBuilder
impl Default for LambdaFunctionAssociationsBuilder
source§fn default() -> LambdaFunctionAssociationsBuilder
fn default() -> LambdaFunctionAssociationsBuilder
source§impl PartialEq for LambdaFunctionAssociationsBuilder
impl PartialEq for LambdaFunctionAssociationsBuilder
source§fn eq(&self, other: &LambdaFunctionAssociationsBuilder) -> bool
fn eq(&self, other: &LambdaFunctionAssociationsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.