public static interface JobFlowDetail.Builder extends CopyableBuilder<JobFlowDetail.Builder,JobFlowDetail>
Modifier and Type | Method and Description |
---|---|
JobFlowDetail.Builder |
amiVersion(String amiVersion)
Used only for version 2.x and 3.x of Amazon EMR.
|
JobFlowDetail.Builder |
autoScalingRole(String autoScalingRole)
An IAM role for automatic scaling policies.
|
JobFlowDetail.Builder |
bootstrapActions(BootstrapActionDetail... bootstrapActions)
A list of the bootstrap actions run by the job flow.
|
JobFlowDetail.Builder |
bootstrapActions(Collection<BootstrapActionDetail> bootstrapActions)
A list of the bootstrap actions run by the job flow.
|
JobFlowDetail.Builder |
bootstrapActions(Consumer<BootstrapActionDetail.Builder>... bootstrapActions)
A list of the bootstrap actions run by the job flow.
|
default JobFlowDetail.Builder |
executionStatusDetail(Consumer<JobFlowExecutionStatusDetail.Builder> executionStatusDetail)
Describes the execution status of the job flow.
|
JobFlowDetail.Builder |
executionStatusDetail(JobFlowExecutionStatusDetail executionStatusDetail)
Describes the execution status of the job flow.
|
default JobFlowDetail.Builder |
instances(Consumer<JobFlowInstancesDetail.Builder> instances)
Describes the Amazon EC2 instances of the job flow.
|
JobFlowDetail.Builder |
instances(JobFlowInstancesDetail instances)
Describes the Amazon EC2 instances of the job flow.
|
JobFlowDetail.Builder |
jobFlowId(String jobFlowId)
The job flow identifier.
|
JobFlowDetail.Builder |
jobFlowRole(String jobFlowRole)
The IAM role that was specified when the job flow was launched.
|
JobFlowDetail.Builder |
logUri(String logUri)
The location in Amazon S3 where log files for the job are stored.
|
JobFlowDetail.Builder |
name(String name)
The name of the job flow.
|
JobFlowDetail.Builder |
scaleDownBehavior(ScaleDownBehavior scaleDownBehavior)
The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an
instance group is resized.
|
JobFlowDetail.Builder |
scaleDownBehavior(String scaleDownBehavior)
The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an
instance group is resized.
|
JobFlowDetail.Builder |
serviceRole(String serviceRole)
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
|
JobFlowDetail.Builder |
steps(Collection<StepDetail> steps)
A list of steps run by the job flow.
|
JobFlowDetail.Builder |
steps(Consumer<StepDetail.Builder>... steps)
A list of steps run by the job flow.
|
JobFlowDetail.Builder |
steps(StepDetail... steps)
A list of steps run by the job flow.
|
JobFlowDetail.Builder |
supportedProducts(Collection<String> supportedProducts)
A list of strings set by third party software when the job flow is launched.
|
JobFlowDetail.Builder |
supportedProducts(String... supportedProducts)
A list of strings set by third party software when the job flow is launched.
|
JobFlowDetail.Builder |
visibleToAllUsers(Boolean visibleToAllUsers)
Specifies whether the cluster is visible to all IAM users of the AWS account associated with the cluster.
|
copy
applyMutation, build
JobFlowDetail.Builder jobFlowId(String jobFlowId)
The job flow identifier.
jobFlowId
- The job flow identifier.JobFlowDetail.Builder name(String name)
The name of the job flow.
name
- The name of the job flow.JobFlowDetail.Builder logUri(String logUri)
The location in Amazon S3 where log files for the job are stored.
logUri
- The location in Amazon S3 where log files for the job are stored.JobFlowDetail.Builder amiVersion(String amiVersion)
Used only for version 2.x and 3.x of Amazon EMR. The version of the AMI used to initialize Amazon EC2 instances in the job flow. For a list of AMI versions supported by Amazon EMR, see AMI Versions Supported in EMR in the Amazon EMR Developer Guide.
amiVersion
- Used only for version 2.x and 3.x of Amazon EMR. The version of the AMI used to initialize Amazon EC2
instances in the job flow. For a list of AMI versions supported by Amazon EMR, see AMI Versions Supported in EMR in the Amazon EMR Developer Guide.JobFlowDetail.Builder executionStatusDetail(JobFlowExecutionStatusDetail executionStatusDetail)
Describes the execution status of the job flow.
executionStatusDetail
- Describes the execution status of the job flow.default JobFlowDetail.Builder executionStatusDetail(Consumer<JobFlowExecutionStatusDetail.Builder> executionStatusDetail)
Describes the execution status of the job flow.
This is a convenience that creates an instance of theJobFlowExecutionStatusDetail.Builder
avoiding
the need to create one manually via JobFlowExecutionStatusDetail.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to executionStatusDetail(JobFlowExecutionStatusDetail)
.executionStatusDetail
- a consumer that will call methods on JobFlowExecutionStatusDetail.Builder
executionStatusDetail(JobFlowExecutionStatusDetail)
JobFlowDetail.Builder instances(JobFlowInstancesDetail instances)
Describes the Amazon EC2 instances of the job flow.
instances
- Describes the Amazon EC2 instances of the job flow.default JobFlowDetail.Builder instances(Consumer<JobFlowInstancesDetail.Builder> instances)
Describes the Amazon EC2 instances of the job flow.
This is a convenience that creates an instance of theJobFlowInstancesDetail.Builder
avoiding the
need to create one manually via JobFlowInstancesDetail.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to instances(JobFlowInstancesDetail)
.instances
- a consumer that will call methods on JobFlowInstancesDetail.Builder
instances(JobFlowInstancesDetail)
JobFlowDetail.Builder steps(Collection<StepDetail> steps)
A list of steps run by the job flow.
steps
- A list of steps run by the job flow.JobFlowDetail.Builder steps(StepDetail... steps)
A list of steps run by the job flow.
steps
- A list of steps run by the job flow.JobFlowDetail.Builder steps(Consumer<StepDetail.Builder>... steps)
A list of steps run by the job flow.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #steps(List)
.steps
- a consumer that will call methods on List.Builder
#steps(List)
JobFlowDetail.Builder bootstrapActions(Collection<BootstrapActionDetail> bootstrapActions)
A list of the bootstrap actions run by the job flow.
bootstrapActions
- A list of the bootstrap actions run by the job flow.JobFlowDetail.Builder bootstrapActions(BootstrapActionDetail... bootstrapActions)
A list of the bootstrap actions run by the job flow.
bootstrapActions
- A list of the bootstrap actions run by the job flow.JobFlowDetail.Builder bootstrapActions(Consumer<BootstrapActionDetail.Builder>... bootstrapActions)
A list of the bootstrap actions run by the job flow.
This is a convenience that creates an instance of theList.Builder
avoiding
the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #bootstrapActions(List)
.bootstrapActions
- a consumer that will call methods on List.Builder
#bootstrapActions(List)
JobFlowDetail.Builder supportedProducts(Collection<String> supportedProducts)
A list of strings set by third party software when the job flow is launched. If you are not using third party software to manage the job flow this value is empty.
supportedProducts
- A list of strings set by third party software when the job flow is launched. If you are not using
third party software to manage the job flow this value is empty.JobFlowDetail.Builder supportedProducts(String... supportedProducts)
A list of strings set by third party software when the job flow is launched. If you are not using third party software to manage the job flow this value is empty.
supportedProducts
- A list of strings set by third party software when the job flow is launched. If you are not using
third party software to manage the job flow this value is empty.JobFlowDetail.Builder visibleToAllUsers(Boolean visibleToAllUsers)
Specifies whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If
this value is set to true
, all IAM users of that AWS account can view and (if they have the
proper policy permissions set) manage the cluster. If it is set to false
, only the IAM user that
created the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers
action.
visibleToAllUsers
- Specifies whether the cluster is visible to all IAM users of the AWS account associated with the
cluster. If this value is set to true
, all IAM users of that AWS account can view and (if
they have the proper policy permissions set) manage the cluster. If it is set to false
,
only the IAM user that created the cluster can view and manage it. This value can be changed using the
SetVisibleToAllUsers action.JobFlowDetail.Builder jobFlowRole(String jobFlowRole)
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
jobFlowRole
- The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow
assume this role.JobFlowDetail.Builder serviceRole(String serviceRole)
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
serviceRole
- The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.JobFlowDetail.Builder autoScalingRole(String autoScalingRole)
An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The
IAM role provides a way for the automatic scaling feature to get the required permissions it needs to launch
and terminate EC2 instances in an instance group.
autoScalingRole
- An IAM role for automatic scaling policies. The default role is
EMR_AutoScaling_DefaultRole
. The IAM role provides a way for the automatic scaling
feature to get the required permissions it needs to launch and terminate EC2 instances in an instance
group.JobFlowDetail.Builder scaleDownBehavior(String scaleDownBehavior)
The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an
instance group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes
at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This
option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that
version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR blacklists and drains tasks from
nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either
behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to
HDFS corruption. TERMINATE_AT_TASK_COMPLETION
available only in Amazon EMR version 4.1.0 and
later, and is the default for versions of Amazon EMR earlier than 5.1.0.
scaleDownBehavior
- The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or
an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR
terminates nodes at the instance-hour boundary, regardless of when the request to terminate the
instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the
default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION
indicates
that Amazon EMR blacklists and drains tasks from nodes before terminating the Amazon EC2 instances,
regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active
nodes first and blocks instance termination if it could lead to HDFS corruption.
TERMINATE_AT_TASK_COMPLETION
available only in Amazon EMR version 4.1.0 and later, and is
the default for versions of Amazon EMR earlier than 5.1.0.ScaleDownBehavior
,
ScaleDownBehavior
JobFlowDetail.Builder scaleDownBehavior(ScaleDownBehavior scaleDownBehavior)
The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an
instance group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes
at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This
option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that
version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR blacklists and drains tasks from
nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either
behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to
HDFS corruption. TERMINATE_AT_TASK_COMPLETION
available only in Amazon EMR version 4.1.0 and
later, and is the default for versions of Amazon EMR earlier than 5.1.0.
scaleDownBehavior
- The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or
an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR
terminates nodes at the instance-hour boundary, regardless of when the request to terminate the
instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the
default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION
indicates
that Amazon EMR blacklists and drains tasks from nodes before terminating the Amazon EC2 instances,
regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active
nodes first and blocks instance termination if it could lead to HDFS corruption.
TERMINATE_AT_TASK_COMPLETION
available only in Amazon EMR version 4.1.0 and later, and is
the default for versions of Amazon EMR earlier than 5.1.0.ScaleDownBehavior
,
ScaleDownBehavior
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.