pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEc2LaunchTemplateDataPlacementDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn affinity(self, input: impl Into<String>) -> Self
pub fn affinity(self, input: impl Into<String>) -> Self
The affinity setting for an instance on an EC2 Dedicated Host.
sourcepub fn set_affinity(self, input: Option<String>) -> Self
pub fn set_affinity(self, input: Option<String>) -> Self
The affinity setting for an instance on an EC2 Dedicated Host.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone for 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 for the instance.
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 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 host_resource_group_arn(self, input: impl Into<String>) -> Self
pub fn host_resource_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (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 Amazon Resource Name (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.
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.
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 tenancy(self, input: impl Into<String>) -> Self
pub fn tenancy(self, input: impl Into<String>) -> 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.
sourcepub fn set_tenancy(self, input: Option<String>) -> Self
pub fn set_tenancy(self, input: Option<String>) -> 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.
sourcepub fn build(self) -> AwsEc2LaunchTemplateDataPlacementDetails
pub fn build(self) -> AwsEc2LaunchTemplateDataPlacementDetails
Consumes the builder and constructs a AwsEc2LaunchTemplateDataPlacementDetails
.