Struct aws_sdk_ec2::types::builders::LaunchTemplatePlacementBuilder
source · #[non_exhaustive]pub struct LaunchTemplatePlacementBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplatePlacement
.
Implementations§
source§impl LaunchTemplatePlacementBuilder
impl LaunchTemplatePlacementBuilder
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone of the instance.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone of the instance.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone of the instance.
sourcepub fn affinity(self, input: impl Into<String>) -> Self
pub fn affinity(self, input: impl Into<String>) -> Self
The affinity setting for the instance on the Dedicated Host.
sourcepub fn set_affinity(self, input: Option<String>) -> Self
pub fn set_affinity(self, input: Option<String>) -> Self
The affinity setting for the instance on the Dedicated Host.
sourcepub fn get_affinity(&self) -> &Option<String>
pub fn get_affinity(&self) -> &Option<String>
The affinity setting for the instance on the Dedicated Host.
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 for the instance.
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 for the instance.
sourcepub fn get_group_name(&self) -> &Option<String>
pub fn get_group_name(&self) -> &Option<String>
The name of the placement group for the instance.
sourcepub fn host_id(self, input: impl Into<String>) -> Self
pub fn host_id(self, input: impl Into<String>) -> Self
The ID of the Dedicated Host for the instance.
sourcepub fn set_host_id(self, input: Option<String>) -> Self
pub fn set_host_id(self, input: Option<String>) -> Self
The ID of the Dedicated Host for the instance.
sourcepub fn get_host_id(&self) -> &Option<String>
pub fn get_host_id(&self) -> &Option<String>
The ID of the Dedicated Host for the instance.
sourcepub fn tenancy(self, input: Tenancy) -> Self
pub fn tenancy(self, input: Tenancy) -> Self
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
sourcepub fn set_tenancy(self, input: Option<Tenancy>) -> Self
pub fn set_tenancy(self, input: Option<Tenancy>) -> Self
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
sourcepub fn get_tenancy(&self) -> &Option<Tenancy>
pub fn get_tenancy(&self) -> &Option<Tenancy>
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
sourcepub fn spread_domain(self, input: impl Into<String>) -> Self
pub fn spread_domain(self, input: impl Into<String>) -> Self
Reserved for future use.
sourcepub fn set_spread_domain(self, input: Option<String>) -> Self
pub fn set_spread_domain(self, input: Option<String>) -> Self
Reserved for future use.
sourcepub fn get_spread_domain(&self) -> &Option<String>
pub fn get_spread_domain(&self) -> &Option<String>
Reserved for future use.
sourcepub fn host_resource_group_arn(self, input: impl Into<String>) -> Self
pub fn host_resource_group_arn(self, input: impl Into<String>) -> Self
The ARN of the host resource group in which to launch the instances.
sourcepub fn set_host_resource_group_arn(self, input: Option<String>) -> Self
pub fn set_host_resource_group_arn(self, input: Option<String>) -> Self
The ARN of the host resource group in which to launch the instances.
sourcepub fn get_host_resource_group_arn(&self) -> &Option<String>
pub fn get_host_resource_group_arn(&self) -> &Option<String>
The ARN of the host resource group in which to launch the instances.
sourcepub fn partition_number(self, input: i32) -> Self
pub fn partition_number(self, input: i32) -> Self
The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition
.
sourcepub fn set_partition_number(self, input: Option<i32>) -> Self
pub fn set_partition_number(self, input: Option<i32>) -> Self
The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition
.
sourcepub fn get_partition_number(&self) -> &Option<i32>
pub fn get_partition_number(&self) -> &Option<i32>
The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition
.
sourcepub fn group_id(self, input: impl Into<String>) -> Self
pub fn group_id(self, input: impl Into<String>) -> Self
The Group ID of the placement group. You must specify the Placement Group Group ID to launch an instance in a shared placement group.
sourcepub fn set_group_id(self, input: Option<String>) -> Self
pub fn set_group_id(self, input: Option<String>) -> Self
The Group ID of the placement group. You must specify the Placement Group Group ID to launch an instance in a shared placement group.
sourcepub fn get_group_id(&self) -> &Option<String>
pub fn get_group_id(&self) -> &Option<String>
The Group ID of the placement group. You must specify the Placement Group Group ID to launch an instance in a shared placement group.
sourcepub fn build(self) -> LaunchTemplatePlacement
pub fn build(self) -> LaunchTemplatePlacement
Consumes the builder and constructs a LaunchTemplatePlacement
.
Trait Implementations§
source§impl Clone for LaunchTemplatePlacementBuilder
impl Clone for LaunchTemplatePlacementBuilder
source§fn clone(&self) -> LaunchTemplatePlacementBuilder
fn clone(&self) -> LaunchTemplatePlacementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LaunchTemplatePlacementBuilder
impl Default for LaunchTemplatePlacementBuilder
source§fn default() -> LaunchTemplatePlacementBuilder
fn default() -> LaunchTemplatePlacementBuilder
source§impl PartialEq for LaunchTemplatePlacementBuilder
impl PartialEq for LaunchTemplatePlacementBuilder
source§fn eq(&self, other: &LaunchTemplatePlacementBuilder) -> bool
fn eq(&self, other: &LaunchTemplatePlacementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplatePlacementBuilder
Auto Trait Implementations§
impl Freeze for LaunchTemplatePlacementBuilder
impl RefUnwindSafe for LaunchTemplatePlacementBuilder
impl Send for LaunchTemplatePlacementBuilder
impl Sync for LaunchTemplatePlacementBuilder
impl Unpin for LaunchTemplatePlacementBuilder
impl UnwindSafe for LaunchTemplatePlacementBuilder
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