Struct aws_sdk_ec2::operation::modify_reserved_instances::builders::ModifyReservedInstancesInputBuilder
source · #[non_exhaustive]pub struct ModifyReservedInstancesInputBuilder { /* private fields */ }
Expand description
A builder for ModifyReservedInstancesInput
.
Implementations§
source§impl ModifyReservedInstancesInputBuilder
impl ModifyReservedInstancesInputBuilder
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 reserved_instances_ids
.
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 target_configurations
.
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.
sourcepub fn build(self) -> Result<ModifyReservedInstancesInput, BuildError>
pub fn build(self) -> Result<ModifyReservedInstancesInput, BuildError>
Consumes the builder and constructs a ModifyReservedInstancesInput
.
source§impl ModifyReservedInstancesInputBuilder
impl ModifyReservedInstancesInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<ModifyReservedInstancesOutput, SdkError<ModifyReservedInstancesError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<ModifyReservedInstancesOutput, SdkError<ModifyReservedInstancesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyReservedInstancesInputBuilder
impl Clone for ModifyReservedInstancesInputBuilder
source§fn clone(&self) -> ModifyReservedInstancesInputBuilder
fn clone(&self) -> ModifyReservedInstancesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifyReservedInstancesInputBuilder
impl Default for ModifyReservedInstancesInputBuilder
source§fn default() -> ModifyReservedInstancesInputBuilder
fn default() -> ModifyReservedInstancesInputBuilder
source§impl PartialEq for ModifyReservedInstancesInputBuilder
impl PartialEq for ModifyReservedInstancesInputBuilder
source§fn eq(&self, other: &ModifyReservedInstancesInputBuilder) -> bool
fn eq(&self, other: &ModifyReservedInstancesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ModifyReservedInstancesInputBuilder
Auto Trait Implementations§
impl Freeze for ModifyReservedInstancesInputBuilder
impl RefUnwindSafe for ModifyReservedInstancesInputBuilder
impl Send for ModifyReservedInstancesInputBuilder
impl Sync for ModifyReservedInstancesInputBuilder
impl Unpin for ModifyReservedInstancesInputBuilder
impl UnwindSafe for ModifyReservedInstancesInputBuilder
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