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 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 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 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
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 InstanceTypeOfferingBuilder
impl Debug for InstanceTypeOfferingBuilder
source§impl Default for InstanceTypeOfferingBuilder
impl Default for InstanceTypeOfferingBuilder
source§fn default() -> InstanceTypeOfferingBuilder
fn default() -> InstanceTypeOfferingBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<InstanceTypeOfferingBuilder> for InstanceTypeOfferingBuilder
impl PartialEq<InstanceTypeOfferingBuilder> for InstanceTypeOfferingBuilder
source§fn eq(&self, other: &InstanceTypeOfferingBuilder) -> bool
fn eq(&self, other: &InstanceTypeOfferingBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceTypeOfferingBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more