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