Struct aws_sdk_athena::operation::put_capacity_assignment_configuration::builders::PutCapacityAssignmentConfigurationFluentBuilder
source · pub struct PutCapacityAssignmentConfigurationFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to PutCapacityAssignmentConfiguration.
Puts a new capacity assignment configuration for a specified capacity reservation. If a capacity assignment configuration already exists for the capacity reservation, replaces the existing capacity assignment configuration.
Implementations§
source§impl PutCapacityAssignmentConfigurationFluentBuilder
impl PutCapacityAssignmentConfigurationFluentBuilder
sourcepub fn as_input(&self) -> &PutCapacityAssignmentConfigurationInputBuilder
pub fn as_input(&self) -> &PutCapacityAssignmentConfigurationInputBuilder
Access the PutCapacityAssignmentConfiguration as a reference.
sourcepub async fn send(
self
) -> Result<PutCapacityAssignmentConfigurationOutput, SdkError<PutCapacityAssignmentConfigurationError, HttpResponse>>
pub async fn send( self ) -> Result<PutCapacityAssignmentConfigurationOutput, SdkError<PutCapacityAssignmentConfigurationError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<PutCapacityAssignmentConfigurationOutput, PutCapacityAssignmentConfigurationError, Self>
pub fn customize( self ) -> CustomizableOperation<PutCapacityAssignmentConfigurationOutput, PutCapacityAssignmentConfigurationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
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 CapacityAssignments.
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.
Trait Implementations§
source§impl Clone for PutCapacityAssignmentConfigurationFluentBuilder
impl Clone for PutCapacityAssignmentConfigurationFluentBuilder
source§fn clone(&self) -> PutCapacityAssignmentConfigurationFluentBuilder
fn clone(&self) -> PutCapacityAssignmentConfigurationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more