Struct aws_sdk_emr::types::builders::InstanceBuilder
source · #[non_exhaustive]pub struct InstanceBuilder { /* private fields */ }
Expand description
A builder for Instance
.
Implementations§
source§impl InstanceBuilder
impl InstanceBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier for the instance in Amazon EMR.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier for the instance in Amazon EMR.
sourcepub fn ec2_instance_id(self, input: impl Into<String>) -> Self
pub fn ec2_instance_id(self, input: impl Into<String>) -> Self
The unique identifier of the instance in Amazon EC2.
sourcepub fn set_ec2_instance_id(self, input: Option<String>) -> Self
pub fn set_ec2_instance_id(self, input: Option<String>) -> Self
The unique identifier of the instance in Amazon EC2.
sourcepub fn get_ec2_instance_id(&self) -> &Option<String>
pub fn get_ec2_instance_id(&self) -> &Option<String>
The unique identifier of the instance in Amazon EC2.
sourcepub fn public_dns_name(self, input: impl Into<String>) -> Self
pub fn public_dns_name(self, input: impl Into<String>) -> Self
The public DNS name of the instance.
sourcepub fn set_public_dns_name(self, input: Option<String>) -> Self
pub fn set_public_dns_name(self, input: Option<String>) -> Self
The public DNS name of the instance.
sourcepub fn get_public_dns_name(&self) -> &Option<String>
pub fn get_public_dns_name(&self) -> &Option<String>
The public DNS name of the instance.
sourcepub fn public_ip_address(self, input: impl Into<String>) -> Self
pub fn public_ip_address(self, input: impl Into<String>) -> Self
The public IP address of the instance.
sourcepub fn set_public_ip_address(self, input: Option<String>) -> Self
pub fn set_public_ip_address(self, input: Option<String>) -> Self
The public IP address of the instance.
sourcepub fn get_public_ip_address(&self) -> &Option<String>
pub fn get_public_ip_address(&self) -> &Option<String>
The public IP address of the instance.
sourcepub fn private_dns_name(self, input: impl Into<String>) -> Self
pub fn private_dns_name(self, input: impl Into<String>) -> Self
The private DNS name of the instance.
sourcepub fn set_private_dns_name(self, input: Option<String>) -> Self
pub fn set_private_dns_name(self, input: Option<String>) -> Self
The private DNS name of the instance.
sourcepub fn get_private_dns_name(&self) -> &Option<String>
pub fn get_private_dns_name(&self) -> &Option<String>
The private DNS name of the instance.
sourcepub fn private_ip_address(self, input: impl Into<String>) -> Self
pub fn private_ip_address(self, input: impl Into<String>) -> Self
The private IP address of the instance.
sourcepub fn set_private_ip_address(self, input: Option<String>) -> Self
pub fn set_private_ip_address(self, input: Option<String>) -> Self
The private IP address of the instance.
sourcepub fn get_private_ip_address(&self) -> &Option<String>
pub fn get_private_ip_address(&self) -> &Option<String>
The private IP address of the instance.
sourcepub fn status(self, input: InstanceStatus) -> Self
pub fn status(self, input: InstanceStatus) -> Self
The current status of the instance.
sourcepub fn set_status(self, input: Option<InstanceStatus>) -> Self
pub fn set_status(self, input: Option<InstanceStatus>) -> Self
The current status of the instance.
sourcepub fn get_status(&self) -> &Option<InstanceStatus>
pub fn get_status(&self) -> &Option<InstanceStatus>
The current status of the instance.
sourcepub fn instance_group_id(self, input: impl Into<String>) -> Self
pub fn instance_group_id(self, input: impl Into<String>) -> Self
The identifier of the instance group to which this instance belongs.
sourcepub fn set_instance_group_id(self, input: Option<String>) -> Self
pub fn set_instance_group_id(self, input: Option<String>) -> Self
The identifier of the instance group to which this instance belongs.
sourcepub fn get_instance_group_id(&self) -> &Option<String>
pub fn get_instance_group_id(&self) -> &Option<String>
The identifier of the instance group to which this instance belongs.
sourcepub fn instance_fleet_id(self, input: impl Into<String>) -> Self
pub fn instance_fleet_id(self, input: impl Into<String>) -> Self
The unique identifier of the instance fleet to which an Amazon EC2 instance belongs.
sourcepub fn set_instance_fleet_id(self, input: Option<String>) -> Self
pub fn set_instance_fleet_id(self, input: Option<String>) -> Self
The unique identifier of the instance fleet to which an Amazon EC2 instance belongs.
sourcepub fn get_instance_fleet_id(&self) -> &Option<String>
pub fn get_instance_fleet_id(&self) -> &Option<String>
The unique identifier of the instance fleet to which an Amazon EC2 instance belongs.
sourcepub fn market(self, input: MarketType) -> Self
pub fn market(self, input: MarketType) -> Self
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
sourcepub fn set_market(self, input: Option<MarketType>) -> Self
pub fn set_market(self, input: Option<MarketType>) -> Self
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
sourcepub fn get_market(&self) -> &Option<MarketType>
pub fn get_market(&self) -> &Option<MarketType>
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The Amazon EC2 instance type, for example m3.xlarge
.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The Amazon EC2 instance type, for example m3.xlarge
.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The Amazon EC2 instance type, for example m3.xlarge
.
sourcepub fn ebs_volumes(self, input: EbsVolume) -> Self
pub fn ebs_volumes(self, input: EbsVolume) -> Self
Appends an item to ebs_volumes
.
To override the contents of this collection use set_ebs_volumes
.
The list of Amazon EBS volumes that are attached to this instance.
sourcepub fn set_ebs_volumes(self, input: Option<Vec<EbsVolume>>) -> Self
pub fn set_ebs_volumes(self, input: Option<Vec<EbsVolume>>) -> Self
The list of Amazon EBS volumes that are attached to this instance.
sourcepub fn get_ebs_volumes(&self) -> &Option<Vec<EbsVolume>>
pub fn get_ebs_volumes(&self) -> &Option<Vec<EbsVolume>>
The list of Amazon EBS volumes that are attached to this instance.
Trait Implementations§
source§impl Clone for InstanceBuilder
impl Clone for InstanceBuilder
source§fn clone(&self) -> InstanceBuilder
fn clone(&self) -> InstanceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceBuilder
impl Debug for InstanceBuilder
source§impl Default for InstanceBuilder
impl Default for InstanceBuilder
source§fn default() -> InstanceBuilder
fn default() -> InstanceBuilder
source§impl PartialEq for InstanceBuilder
impl PartialEq for InstanceBuilder
source§fn eq(&self, other: &InstanceBuilder) -> bool
fn eq(&self, other: &InstanceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.