Struct aws_sdk_emr::types::builders::JobFlowInstancesDetailBuilder
source · #[non_exhaustive]pub struct JobFlowInstancesDetailBuilder { /* private fields */ }
Expand description
A builder for JobFlowInstancesDetail
.
Implementations§
source§impl JobFlowInstancesDetailBuilder
impl JobFlowInstancesDetailBuilder
sourcepub fn master_instance_type(self, input: impl Into<String>) -> Self
pub fn master_instance_type(self, input: impl Into<String>) -> Self
The Amazon EC2 master node instance type.
This field is required.sourcepub fn set_master_instance_type(self, input: Option<String>) -> Self
pub fn set_master_instance_type(self, input: Option<String>) -> Self
The Amazon EC2 master node instance type.
sourcepub fn get_master_instance_type(&self) -> &Option<String>
pub fn get_master_instance_type(&self) -> &Option<String>
The Amazon EC2 master node instance type.
sourcepub fn master_public_dns_name(self, input: impl Into<String>) -> Self
pub fn master_public_dns_name(self, input: impl Into<String>) -> Self
The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public subnet, this is the public DNS name.
sourcepub fn set_master_public_dns_name(self, input: Option<String>) -> Self
pub fn set_master_public_dns_name(self, input: Option<String>) -> Self
The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public subnet, this is the public DNS name.
sourcepub fn get_master_public_dns_name(&self) -> &Option<String>
pub fn get_master_public_dns_name(&self) -> &Option<String>
The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public subnet, this is the public DNS name.
sourcepub fn master_instance_id(self, input: impl Into<String>) -> Self
pub fn master_instance_id(self, input: impl Into<String>) -> Self
The Amazon EC2 instance identifier of the master node.
sourcepub fn set_master_instance_id(self, input: Option<String>) -> Self
pub fn set_master_instance_id(self, input: Option<String>) -> Self
The Amazon EC2 instance identifier of the master node.
sourcepub fn get_master_instance_id(&self) -> &Option<String>
pub fn get_master_instance_id(&self) -> &Option<String>
The Amazon EC2 instance identifier of the master node.
sourcepub fn slave_instance_type(self, input: impl Into<String>) -> Self
pub fn slave_instance_type(self, input: impl Into<String>) -> Self
The Amazon EC2 core and task node instance type.
This field is required.sourcepub fn set_slave_instance_type(self, input: Option<String>) -> Self
pub fn set_slave_instance_type(self, input: Option<String>) -> Self
The Amazon EC2 core and task node instance type.
sourcepub fn get_slave_instance_type(&self) -> &Option<String>
pub fn get_slave_instance_type(&self) -> &Option<String>
The Amazon EC2 core and task node instance type.
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and core and task node. If the value is greater than 1, one instance is the master node and all others are core and task nodes.
This field is required.sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and core and task node. If the value is greater than 1, one instance is the master node and all others are core and task nodes.
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_instance_count(&self) -> &Option<i32>
The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and core and task node. If the value is greater than 1, one instance is the master node and all others are core and task nodes.
sourcepub fn instance_groups(self, input: InstanceGroupDetail) -> Self
pub fn instance_groups(self, input: InstanceGroupDetail) -> Self
Appends an item to instance_groups
.
To override the contents of this collection use set_instance_groups
.
Details about the instance groups in a cluster.
sourcepub fn set_instance_groups(
self,
input: Option<Vec<InstanceGroupDetail>>
) -> Self
pub fn set_instance_groups( self, input: Option<Vec<InstanceGroupDetail>> ) -> Self
Details about the instance groups in a cluster.
sourcepub fn get_instance_groups(&self) -> &Option<Vec<InstanceGroupDetail>>
pub fn get_instance_groups(&self) -> &Option<Vec<InstanceGroupDetail>>
Details about the instance groups in a cluster.
sourcepub fn normalized_instance_hours(self, input: i32) -> Self
pub fn normalized_instance_hours(self, input: i32) -> Self
An approximation of the cost of the cluster, represented in m1.small/hours. This value is increased one time for every hour that an m1.small instance runs. Larger instances are weighted more heavily, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being increased incrementally four times. This result is only an approximation and does not reflect the actual billing rate.
sourcepub fn set_normalized_instance_hours(self, input: Option<i32>) -> Self
pub fn set_normalized_instance_hours(self, input: Option<i32>) -> Self
An approximation of the cost of the cluster, represented in m1.small/hours. This value is increased one time for every hour that an m1.small instance runs. Larger instances are weighted more heavily, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being increased incrementally four times. This result is only an approximation and does not reflect the actual billing rate.
sourcepub fn get_normalized_instance_hours(&self) -> &Option<i32>
pub fn get_normalized_instance_hours(&self) -> &Option<i32>
An approximation of the cost of the cluster, represented in m1.small/hours. This value is increased one time for every hour that an m1.small instance runs. Larger instances are weighted more heavily, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being increased incrementally four times. This result is only an approximation and does not reflect the actual billing rate.
sourcepub fn ec2_key_name(self, input: impl Into<String>) -> Self
pub fn ec2_key_name(self, input: impl Into<String>) -> Self
The name of an Amazon EC2 key pair that can be used to connect to the master node using SSH.
sourcepub fn set_ec2_key_name(self, input: Option<String>) -> Self
pub fn set_ec2_key_name(self, input: Option<String>) -> Self
The name of an Amazon EC2 key pair that can be used to connect to the master node using SSH.
sourcepub fn get_ec2_key_name(&self) -> &Option<String>
pub fn get_ec2_key_name(&self) -> &Option<String>
The name of an Amazon EC2 key pair that can be used to connect to the master node using SSH.
sourcepub fn ec2_subnet_id(self, input: impl Into<String>) -> Self
pub fn ec2_subnet_id(self, input: impl Into<String>) -> Self
For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the cluster was launched.
sourcepub fn set_ec2_subnet_id(self, input: Option<String>) -> Self
pub fn set_ec2_subnet_id(self, input: Option<String>) -> Self
For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the cluster was launched.
sourcepub fn get_ec2_subnet_id(&self) -> &Option<String>
pub fn get_ec2_subnet_id(&self) -> &Option<String>
For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the cluster was launched.
sourcepub fn placement(self, input: PlacementType) -> Self
pub fn placement(self, input: PlacementType) -> Self
The Amazon EC2 Availability Zone for the cluster.
sourcepub fn set_placement(self, input: Option<PlacementType>) -> Self
pub fn set_placement(self, input: Option<PlacementType>) -> Self
The Amazon EC2 Availability Zone for the cluster.
sourcepub fn get_placement(&self) -> &Option<PlacementType>
pub fn get_placement(&self) -> &Option<PlacementType>
The Amazon EC2 Availability Zone for the cluster.
sourcepub fn keep_job_flow_alive_when_no_steps(self, input: bool) -> Self
pub fn keep_job_flow_alive_when_no_steps(self, input: bool) -> Self
Specifies whether the cluster should remain available after completing all steps.
sourcepub fn set_keep_job_flow_alive_when_no_steps(self, input: Option<bool>) -> Self
pub fn set_keep_job_flow_alive_when_no_steps(self, input: Option<bool>) -> Self
Specifies whether the cluster should remain available after completing all steps.
sourcepub fn get_keep_job_flow_alive_when_no_steps(&self) -> &Option<bool>
pub fn get_keep_job_flow_alive_when_no_steps(&self) -> &Option<bool>
Specifies whether the cluster should remain available after completing all steps.
sourcepub fn termination_protected(self, input: bool) -> Self
pub fn termination_protected(self, input: bool) -> Self
Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job-flow error.
sourcepub fn set_termination_protected(self, input: Option<bool>) -> Self
pub fn set_termination_protected(self, input: Option<bool>) -> Self
Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job-flow error.
sourcepub fn get_termination_protected(&self) -> &Option<bool>
pub fn get_termination_protected(&self) -> &Option<bool>
Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job-flow error.
sourcepub fn hadoop_version(self, input: impl Into<String>) -> Self
pub fn hadoop_version(self, input: impl Into<String>) -> Self
The Hadoop version for the cluster.
sourcepub fn set_hadoop_version(self, input: Option<String>) -> Self
pub fn set_hadoop_version(self, input: Option<String>) -> Self
The Hadoop version for the cluster.
sourcepub fn get_hadoop_version(&self) -> &Option<String>
pub fn get_hadoop_version(&self) -> &Option<String>
The Hadoop version for the cluster.
sourcepub fn build(self) -> JobFlowInstancesDetail
pub fn build(self) -> JobFlowInstancesDetail
Consumes the builder and constructs a JobFlowInstancesDetail
.
Trait Implementations§
source§impl Clone for JobFlowInstancesDetailBuilder
impl Clone for JobFlowInstancesDetailBuilder
source§fn clone(&self) -> JobFlowInstancesDetailBuilder
fn clone(&self) -> JobFlowInstancesDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for JobFlowInstancesDetailBuilder
impl Default for JobFlowInstancesDetailBuilder
source§fn default() -> JobFlowInstancesDetailBuilder
fn default() -> JobFlowInstancesDetailBuilder
source§impl PartialEq for JobFlowInstancesDetailBuilder
impl PartialEq for JobFlowInstancesDetailBuilder
source§fn eq(&self, other: &JobFlowInstancesDetailBuilder) -> bool
fn eq(&self, other: &JobFlowInstancesDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.