Struct aws_sdk_ec2::operation::modify_reserved_instances::builders::ModifyReservedInstancesFluentBuilder
source · pub struct ModifyReservedInstancesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ModifyReservedInstances
.
Modifies the configuration of your Reserved Instances, such as the Availability Zone, instance count, or instance type. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.
For more information, see Modifying Reserved Instances in the Amazon EC2 User Guide.
Implementations§
source§impl ModifyReservedInstancesFluentBuilder
impl ModifyReservedInstancesFluentBuilder
sourcepub fn as_input(&self) -> &ModifyReservedInstancesInputBuilder
pub fn as_input(&self) -> &ModifyReservedInstancesInputBuilder
Access the ModifyReservedInstances as a reference.
sourcepub async fn send(
self
) -> Result<ModifyReservedInstancesOutput, SdkError<ModifyReservedInstancesError, HttpResponse>>
pub async fn send( self ) -> Result<ModifyReservedInstancesOutput, SdkError<ModifyReservedInstancesError, 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<ModifyReservedInstancesOutput, ModifyReservedInstancesError, Self>
pub fn customize( self ) -> CustomizableOperation<ModifyReservedInstancesOutput, ModifyReservedInstancesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn reserved_instances_ids(self, input: impl Into<String>) -> Self
pub fn reserved_instances_ids(self, input: impl Into<String>) -> Self
Appends an item to ReservedInstancesIds
.
To override the contents of this collection use set_reserved_instances_ids
.
The IDs of the Reserved Instances to modify.
sourcepub fn set_reserved_instances_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_reserved_instances_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the Reserved Instances to modify.
sourcepub fn get_reserved_instances_ids(&self) -> &Option<Vec<String>>
pub fn get_reserved_instances_ids(&self) -> &Option<Vec<String>>
The IDs of the Reserved Instances to modify.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
sourcepub fn target_configurations(
self,
input: ReservedInstancesConfiguration
) -> Self
pub fn target_configurations( self, input: ReservedInstancesConfiguration ) -> Self
Appends an item to TargetConfigurations
.
To override the contents of this collection use set_target_configurations
.
The configuration settings for the Reserved Instances to modify.
sourcepub fn set_target_configurations(
self,
input: Option<Vec<ReservedInstancesConfiguration>>
) -> Self
pub fn set_target_configurations( self, input: Option<Vec<ReservedInstancesConfiguration>> ) -> Self
The configuration settings for the Reserved Instances to modify.
sourcepub fn get_target_configurations(
&self
) -> &Option<Vec<ReservedInstancesConfiguration>>
pub fn get_target_configurations( &self ) -> &Option<Vec<ReservedInstancesConfiguration>>
The configuration settings for the Reserved Instances to modify.
Trait Implementations§
source§impl Clone for ModifyReservedInstancesFluentBuilder
impl Clone for ModifyReservedInstancesFluentBuilder
source§fn clone(&self) -> ModifyReservedInstancesFluentBuilder
fn clone(&self) -> ModifyReservedInstancesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more