#[non_exhaustive]pub struct CapacityAssignmentConfigurationBuilder { /* private fields */ }Expand description
A builder for CapacityAssignmentConfiguration.
Implementations§
source§impl CapacityAssignmentConfigurationBuilder
impl CapacityAssignmentConfigurationBuilder
sourcepub fn capacity_reservation_name(self, input: impl Into<String>) -> Self
pub fn capacity_reservation_name(self, input: impl Into<String>) -> Self
The name of the reservation that the capacity assignment configuration is for.
sourcepub fn set_capacity_reservation_name(self, input: Option<String>) -> Self
pub fn set_capacity_reservation_name(self, input: Option<String>) -> Self
The name of the reservation that the capacity assignment configuration is for.
sourcepub fn get_capacity_reservation_name(&self) -> &Option<String>
pub fn get_capacity_reservation_name(&self) -> &Option<String>
The name of the reservation that the capacity assignment configuration is for.
sourcepub fn capacity_assignments(self, input: CapacityAssignment) -> Self
pub fn capacity_assignments(self, input: CapacityAssignment) -> Self
Appends an item to capacity_assignments.
To override the contents of this collection use set_capacity_assignments.
The list of assignments that make up the capacity assignment configuration.
sourcepub fn set_capacity_assignments(
self,
input: Option<Vec<CapacityAssignment>>
) -> Self
pub fn set_capacity_assignments( self, input: Option<Vec<CapacityAssignment>> ) -> Self
The list of assignments that make up the capacity assignment configuration.
sourcepub fn get_capacity_assignments(&self) -> &Option<Vec<CapacityAssignment>>
pub fn get_capacity_assignments(&self) -> &Option<Vec<CapacityAssignment>>
The list of assignments that make up the capacity assignment configuration.
sourcepub fn build(self) -> CapacityAssignmentConfiguration
pub fn build(self) -> CapacityAssignmentConfiguration
Consumes the builder and constructs a CapacityAssignmentConfiguration.
Trait Implementations§
source§impl Clone for CapacityAssignmentConfigurationBuilder
impl Clone for CapacityAssignmentConfigurationBuilder
source§fn clone(&self) -> CapacityAssignmentConfigurationBuilder
fn clone(&self) -> CapacityAssignmentConfigurationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for CapacityAssignmentConfigurationBuilder
impl Default for CapacityAssignmentConfigurationBuilder
source§fn default() -> CapacityAssignmentConfigurationBuilder
fn default() -> CapacityAssignmentConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CapacityAssignmentConfigurationBuilder
impl PartialEq for CapacityAssignmentConfigurationBuilder
source§fn eq(&self, other: &CapacityAssignmentConfigurationBuilder) -> bool
fn eq(&self, other: &CapacityAssignmentConfigurationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CapacityAssignmentConfigurationBuilder
Auto Trait Implementations§
impl Freeze for CapacityAssignmentConfigurationBuilder
impl RefUnwindSafe for CapacityAssignmentConfigurationBuilder
impl Send for CapacityAssignmentConfigurationBuilder
impl Sync for CapacityAssignmentConfigurationBuilder
impl Unpin for CapacityAssignmentConfigurationBuilder
impl UnwindSafe for CapacityAssignmentConfigurationBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.