Struct aws_sdk_ec2::types::builders::InstanceTypeOfferingBuilder
source · #[non_exhaustive]pub struct InstanceTypeOfferingBuilder { /* private fields */ }
Expand description
A builder for InstanceTypeOffering
.
Implementations§
source§impl InstanceTypeOfferingBuilder
impl InstanceTypeOfferingBuilder
sourcepub fn instance_type(self, input: InstanceType) -> Self
pub fn instance_type(self, input: InstanceType) -> Self
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
sourcepub fn set_instance_type(self, input: Option<InstanceType>) -> Self
pub fn set_instance_type(self, input: Option<InstanceType>) -> Self
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
sourcepub fn get_instance_type(&self) -> &Option<InstanceType>
pub fn get_instance_type(&self) -> &Option<InstanceType>
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
sourcepub fn location_type(self, input: LocationType) -> Self
pub fn location_type(self, input: LocationType) -> Self
The location type.
sourcepub fn set_location_type(self, input: Option<LocationType>) -> Self
pub fn set_location_type(self, input: Option<LocationType>) -> Self
The location type.
sourcepub fn get_location_type(&self) -> &Option<LocationType>
pub fn get_location_type(&self) -> &Option<LocationType>
The location type.
sourcepub fn location(self, input: impl Into<String>) -> Self
pub fn location(self, input: impl Into<String>) -> Self
The identifier for the location. This depends on the location type. For example, if the location type is region
, the location is the Region code (for example, us-east-2
.)
sourcepub fn set_location(self, input: Option<String>) -> Self
pub fn set_location(self, input: Option<String>) -> Self
The identifier for the location. This depends on the location type. For example, if the location type is region
, the location is the Region code (for example, us-east-2
.)
sourcepub fn get_location(&self) -> &Option<String>
pub fn get_location(&self) -> &Option<String>
The identifier for the location. This depends on the location type. For example, if the location type is region
, the location is the Region code (for example, us-east-2
.)
sourcepub fn build(self) -> InstanceTypeOffering
pub fn build(self) -> InstanceTypeOffering
Consumes the builder and constructs a InstanceTypeOffering
.
Trait Implementations§
source§impl Clone for InstanceTypeOfferingBuilder
impl Clone for InstanceTypeOfferingBuilder
source§fn clone(&self) -> InstanceTypeOfferingBuilder
fn clone(&self) -> InstanceTypeOfferingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceTypeOfferingBuilder
impl Debug for InstanceTypeOfferingBuilder
source§impl Default for InstanceTypeOfferingBuilder
impl Default for InstanceTypeOfferingBuilder
source§fn default() -> InstanceTypeOfferingBuilder
fn default() -> InstanceTypeOfferingBuilder
source§impl PartialEq for InstanceTypeOfferingBuilder
impl PartialEq for InstanceTypeOfferingBuilder
source§fn eq(&self, other: &InstanceTypeOfferingBuilder) -> bool
fn eq(&self, other: &InstanceTypeOfferingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceTypeOfferingBuilder
Auto Trait Implementations§
impl Freeze for InstanceTypeOfferingBuilder
impl RefUnwindSafe for InstanceTypeOfferingBuilder
impl Send for InstanceTypeOfferingBuilder
impl Sync for InstanceTypeOfferingBuilder
impl Unpin for InstanceTypeOfferingBuilder
impl UnwindSafe for InstanceTypeOfferingBuilder
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