Struct aws_sdk_ec2::types::builders::TargetConfigurationBuilder
source · #[non_exhaustive]pub struct TargetConfigurationBuilder { /* private fields */ }
Expand description
A builder for TargetConfiguration
.
Implementations§
source§impl TargetConfigurationBuilder
impl TargetConfigurationBuilder
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
The number of instances the Convertible Reserved Instance offering can be applied to. This parameter is reserved and cannot be specified in a request
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
The number of instances the Convertible Reserved Instance offering can be applied to. This parameter is reserved and cannot be specified in a request
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_instance_count(&self) -> &Option<i32>
The number of instances the Convertible Reserved Instance offering can be applied to. This parameter is reserved and cannot be specified in a request
sourcepub fn offering_id(self, input: impl Into<String>) -> Self
pub fn offering_id(self, input: impl Into<String>) -> Self
The ID of the Convertible Reserved Instance offering.
sourcepub fn set_offering_id(self, input: Option<String>) -> Self
pub fn set_offering_id(self, input: Option<String>) -> Self
The ID of the Convertible Reserved Instance offering.
sourcepub fn get_offering_id(&self) -> &Option<String>
pub fn get_offering_id(&self) -> &Option<String>
The ID of the Convertible Reserved Instance offering.
sourcepub fn build(self) -> TargetConfiguration
pub fn build(self) -> TargetConfiguration
Consumes the builder and constructs a TargetConfiguration
.
Trait Implementations§
source§impl Clone for TargetConfigurationBuilder
impl Clone for TargetConfigurationBuilder
source§fn clone(&self) -> TargetConfigurationBuilder
fn clone(&self) -> TargetConfigurationBuilder
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 Debug for TargetConfigurationBuilder
impl Debug for TargetConfigurationBuilder
source§impl Default for TargetConfigurationBuilder
impl Default for TargetConfigurationBuilder
source§fn default() -> TargetConfigurationBuilder
fn default() -> TargetConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TargetConfigurationBuilder
impl PartialEq for TargetConfigurationBuilder
source§fn eq(&self, other: &TargetConfigurationBuilder) -> bool
fn eq(&self, other: &TargetConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetConfigurationBuilder
Auto Trait Implementations§
impl Freeze for TargetConfigurationBuilder
impl RefUnwindSafe for TargetConfigurationBuilder
impl Send for TargetConfigurationBuilder
impl Sync for TargetConfigurationBuilder
impl Unpin for TargetConfigurationBuilder
impl UnwindSafe for TargetConfigurationBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.