Struct aws_sdk_athena::operation::put_capacity_assignment_configuration::builders::PutCapacityAssignmentConfigurationInputBuilder
source · #[non_exhaustive]pub struct PutCapacityAssignmentConfigurationInputBuilder { /* private fields */ }Expand description
A builder for PutCapacityAssignmentConfigurationInput.
Implementations§
source§impl PutCapacityAssignmentConfigurationInputBuilder
impl PutCapacityAssignmentConfigurationInputBuilder
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 capacity reservation to put a capacity assignment configuration for.
This field is required.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 capacity reservation to put a capacity assignment configuration for.
sourcepub fn get_capacity_reservation_name(&self) -> &Option<String>
pub fn get_capacity_reservation_name(&self) -> &Option<String>
The name of the capacity reservation to put a capacity assignment configuration 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 for 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 for 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 for the capacity assignment configuration.
sourcepub fn build(
self,
) -> Result<PutCapacityAssignmentConfigurationInput, BuildError>
pub fn build( self, ) -> Result<PutCapacityAssignmentConfigurationInput, BuildError>
Consumes the builder and constructs a PutCapacityAssignmentConfigurationInput.
source§impl PutCapacityAssignmentConfigurationInputBuilder
impl PutCapacityAssignmentConfigurationInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<PutCapacityAssignmentConfigurationOutput, SdkError<PutCapacityAssignmentConfigurationError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<PutCapacityAssignmentConfigurationOutput, SdkError<PutCapacityAssignmentConfigurationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutCapacityAssignmentConfigurationInputBuilder
impl Clone for PutCapacityAssignmentConfigurationInputBuilder
source§fn clone(&self) -> PutCapacityAssignmentConfigurationInputBuilder
fn clone(&self) -> PutCapacityAssignmentConfigurationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PutCapacityAssignmentConfigurationInputBuilder
impl Default for PutCapacityAssignmentConfigurationInputBuilder
source§fn default() -> PutCapacityAssignmentConfigurationInputBuilder
fn default() -> PutCapacityAssignmentConfigurationInputBuilder
source§impl PartialEq for PutCapacityAssignmentConfigurationInputBuilder
impl PartialEq for PutCapacityAssignmentConfigurationInputBuilder
source§fn eq(&self, other: &PutCapacityAssignmentConfigurationInputBuilder) -> bool
fn eq(&self, other: &PutCapacityAssignmentConfigurationInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PutCapacityAssignmentConfigurationInputBuilder
Auto Trait Implementations§
impl Freeze for PutCapacityAssignmentConfigurationInputBuilder
impl RefUnwindSafe for PutCapacityAssignmentConfigurationInputBuilder
impl Send for PutCapacityAssignmentConfigurationInputBuilder
impl Sync for PutCapacityAssignmentConfigurationInputBuilder
impl Unpin for PutCapacityAssignmentConfigurationInputBuilder
impl UnwindSafe for PutCapacityAssignmentConfigurationInputBuilder
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