Struct aws_sdk_ec2::types::builders::SpotPlacementBuilder
source · #[non_exhaustive]pub struct SpotPlacementBuilder { /* private fields */ }
Expand description
A builder for SpotPlacement
.
Implementations§
source§impl SpotPlacementBuilder
impl SpotPlacementBuilder
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone.
\[Spot Fleet only\] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone.
\[Spot Fleet only\] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone.
\[Spot Fleet only\] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
sourcepub fn group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
The name of the placement group.
sourcepub fn set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
The name of the placement group.
sourcepub fn get_group_name(&self) -> &Option<String>
pub fn get_group_name(&self) -> &Option<String>
The name of the placement group.
sourcepub fn tenancy(self, input: Tenancy) -> Self
pub fn tenancy(self, input: Tenancy) -> Self
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated
runs on single-tenant hardware. The host
tenancy is not supported for Spot Instances.
sourcepub fn set_tenancy(self, input: Option<Tenancy>) -> Self
pub fn set_tenancy(self, input: Option<Tenancy>) -> Self
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated
runs on single-tenant hardware. The host
tenancy is not supported for Spot Instances.
sourcepub fn get_tenancy(&self) -> &Option<Tenancy>
pub fn get_tenancy(&self) -> &Option<Tenancy>
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated
runs on single-tenant hardware. The host
tenancy is not supported for Spot Instances.
sourcepub fn build(self) -> SpotPlacement
pub fn build(self) -> SpotPlacement
Consumes the builder and constructs a SpotPlacement
.
Trait Implementations§
source§impl Clone for SpotPlacementBuilder
impl Clone for SpotPlacementBuilder
source§fn clone(&self) -> SpotPlacementBuilder
fn clone(&self) -> SpotPlacementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SpotPlacementBuilder
impl Debug for SpotPlacementBuilder
source§impl Default for SpotPlacementBuilder
impl Default for SpotPlacementBuilder
source§fn default() -> SpotPlacementBuilder
fn default() -> SpotPlacementBuilder
source§impl PartialEq for SpotPlacementBuilder
impl PartialEq for SpotPlacementBuilder
source§fn eq(&self, other: &SpotPlacementBuilder) -> bool
fn eq(&self, other: &SpotPlacementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SpotPlacementBuilder
Auto Trait Implementations§
impl Freeze for SpotPlacementBuilder
impl RefUnwindSafe for SpotPlacementBuilder
impl Send for SpotPlacementBuilder
impl Sync for SpotPlacementBuilder
impl Unpin for SpotPlacementBuilder
impl UnwindSafe for SpotPlacementBuilder
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