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<InstanceTypeOfferingBuilder> for InstanceTypeOfferingBuilder
impl PartialEq<InstanceTypeOfferingBuilder> 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 ==
.