com.amazonaws.services.elasticmapreduce.model.RunJobFlowRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-emr Show documentation
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.elasticmapreduce.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* Input to the RunJobFlow operation.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RunJobFlowRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the job flow.
*
*/
private String name;
/**
*
* The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not
* created.
*
*/
private String logUri;
/**
*
* The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by AES-256. This
* attribute is only available with Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0.
*
*/
private String logEncryptionKmsKeyId;
/**
*
* A JSON string for selecting additional features.
*
*/
private String additionalInfo;
/**
*
* Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later,
* ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
*
*/
private String amiVersion;
/**
*
* The Amazon EMR release label, which determines the version of open-source application packages installed on the
* cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such
* as emr-5.14.0
. For more information about Amazon EMR release versions and included application
* versions and features, see https://docs.aws.amazon.
* com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later.
* Earlier versions use AmiVersion
.
*
*/
private String releaseLabel;
/**
*
* A specification of the number and type of Amazon EC2 instances.
*
*/
private JobFlowInstancesConfig instances;
/**
*
* A list of steps to run.
*
*/
private com.amazonaws.internal.SdkInternalList steps;
/**
*
* A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
*
*/
private com.amazonaws.internal.SdkInternalList bootstrapActions;
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide. Currently
* supported values are:
*
*
* -
*
* "mapr-m3" - launch the job flow using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the job flow using MapR M5 Edition.
*
*
*
*/
private com.amazonaws.internal.SdkInternalList supportedProducts;
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job flow that accepts a user argument list.
* EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action
* arguments. For more information, see "Launch a Job Flow on the MapR Distribution for Hadoop" in the Amazon EMR Developer Guide. Supported
* values are:
*
*
* -
*
* "mapr-m3" - launch the cluster using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the cluster using MapR M5 Edition.
*
*
* -
*
* "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or
* M5 Edition respectively.
*
*
* -
*
* "mapr-m7" - launch the cluster using MapR M7 Edition.
*
*
* -
*
* "hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
*
*
* -
*
* "hue"- launch the cluster with Hue installed.
*
*
* -
*
* "spark" - launch the cluster with Apache Spark installed.
*
*
* -
*
* "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
*
*
*
*/
private com.amazonaws.internal.SdkInternalList newSupportedProducts;
/**
*
* Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install
* and configure when launching the cluster. For a list of applications available for each Amazon EMR release
* version, see the Amazon EMRRelease Guide.
*
*/
private com.amazonaws.internal.SdkInternalList applications;
/**
*
* For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are creating.
*
*/
private com.amazonaws.internal.SdkInternalList configurations;
/**
*
*
* The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
.
* Setting it to false
now has no effect.
*
*
*
* Set this value to true
so that IAM principals in the Amazon Web Services account associated with the
* cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults to
* true
for clusters created using the EMR API or the CLI create-cluster command.
*
*
* When set to false
, only the IAM principal that created the cluster and the Amazon Web Services
* account root user can perform EMR actions for the cluster, regardless of the IAM permissions policies attached to
* other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
*
*/
private Boolean visibleToAllUsers;
/**
*
* Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster
* assume this role. The default role is EMR_EC2_DefaultRole
. In order to use the default role, you
* must have already created it using the CLI or console.
*
*/
private String jobFlowRole;
/**
*
* The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf.
*
*/
private String serviceRole;
/**
*
* A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
*
*/
private com.amazonaws.internal.SdkInternalList tags;
/**
*
* The name of a security configuration to apply to the cluster.
*
*/
private String securityConfiguration;
/**
*
* An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The IAM
* role provides permissions that the automatic scaling feature requires to launch and terminate EC2 instances in an
* instance group.
*
*/
private String autoScalingRole;
/**
*
* Specifies 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 adds nodes to a deny list 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.
*
*/
private String scaleDownBehavior;
/**
*
* Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If
* specified, Amazon EMR uses this AMI when it launches cluster EC2 instances. For more information about custom
* AMIs in Amazon EMR, see Using a Custom AMI in the
* Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the
* ReleaseLabel
specified. For Amazon EMR versions 2.x and 3.x, use AmiVersion
instead.
*
*
* For information about creating a custom AMI, see Creating an Amazon EBS-Backed
* Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For information about
* finding an AMI ID, see Finding
* a Linux AMI.
*
*/
private String customAmiId;
/**
*
* The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2 instance.
* Available in Amazon EMR version 4.x and later.
*
*/
private Integer ebsRootVolumeSize;
/**
*
* Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI package
* repositories to apply automatically when the instance boots using the AMI. If omitted, the default is
* SECURITY
, which indicates that only security updates are applied. If NONE
is specified,
* no updates are applied, and all updates must be applied manually.
*
*/
private String repoUpgradeOnBoot;
/**
*
* Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For
* more information see Use
* Kerberos Authentication in the Amazon EMR Management Guide.
*
*/
private KerberosAttributes kerberosAttributes;
/**
*
* Specifies the number of steps that can be executed concurrently. The default value is 1
. The maximum
* value is 256
.
*
*/
private Integer stepConcurrencyLevel;
/**
*
* The specified managed scaling policy for an Amazon EMR cluster.
*
*/
private ManagedScalingPolicy managedScalingPolicy;
/**
*
* The specified placement group configuration for an Amazon EMR cluster.
*
*/
private com.amazonaws.internal.SdkInternalList placementGroupConfigs;
private AutoTerminationPolicy autoTerminationPolicy;
/**
* Default constructor for RunJobFlowRequest object. Callers should use the setter or fluent setter (with...)
* methods to initialize the object after creating it.
*/
public RunJobFlowRequest() {
}
/**
* Constructs a new RunJobFlowRequest object. Callers should use the setter or fluent setter (with...) methods to
* initialize any additional object members.
*
* @param name
* The name of the job flow.
* @param instances
* A specification of the number and type of Amazon EC2 instances.
*/
public RunJobFlowRequest(String name, JobFlowInstancesConfig instances) {
setName(name);
setInstances(instances);
}
/**
*
* The name of the job flow.
*
*
* @param name
* The name of the job flow.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the job flow.
*
*
* @return The name of the job flow.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the job flow.
*
*
* @param name
* The name of the job flow.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not
* created.
*
*
* @param logUri
* The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not
* created.
*/
public void setLogUri(String logUri) {
this.logUri = logUri;
}
/**
*
* The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not
* created.
*
*
* @return The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are
* not created.
*/
public String getLogUri() {
return this.logUri;
}
/**
*
* The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not
* created.
*
*
* @param logUri
* The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not
* created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withLogUri(String logUri) {
setLogUri(logUri);
return this;
}
/**
*
* The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by AES-256. This
* attribute is only available with Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0.
*
*
* @param logEncryptionKmsKeyId
* The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by
* AES-256. This attribute is only available with Amazon EMR version 5.30.0 and later, excluding Amazon EMR
* 6.0.0.
*/
public void setLogEncryptionKmsKeyId(String logEncryptionKmsKeyId) {
this.logEncryptionKmsKeyId = logEncryptionKmsKeyId;
}
/**
*
* The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by AES-256. This
* attribute is only available with Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0.
*
*
* @return The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by
* AES-256. This attribute is only available with Amazon EMR version 5.30.0 and later, excluding Amazon EMR
* 6.0.0.
*/
public String getLogEncryptionKmsKeyId() {
return this.logEncryptionKmsKeyId;
}
/**
*
* The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by AES-256. This
* attribute is only available with Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0.
*
*
* @param logEncryptionKmsKeyId
* The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by
* AES-256. This attribute is only available with Amazon EMR version 5.30.0 and later, excluding Amazon EMR
* 6.0.0.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withLogEncryptionKmsKeyId(String logEncryptionKmsKeyId) {
setLogEncryptionKmsKeyId(logEncryptionKmsKeyId);
return this;
}
/**
*
* A JSON string for selecting additional features.
*
*
* @param additionalInfo
* A JSON string for selecting additional features.
*/
public void setAdditionalInfo(String additionalInfo) {
this.additionalInfo = additionalInfo;
}
/**
*
* A JSON string for selecting additional features.
*
*
* @return A JSON string for selecting additional features.
*/
public String getAdditionalInfo() {
return this.additionalInfo;
}
/**
*
* A JSON string for selecting additional features.
*
*
* @param additionalInfo
* A JSON string for selecting additional features.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withAdditionalInfo(String additionalInfo) {
setAdditionalInfo(additionalInfo);
return this;
}
/**
*
* Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later,
* ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
*
*
* @param amiVersion
* Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later,
* ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
*/
public void setAmiVersion(String amiVersion) {
this.amiVersion = amiVersion;
}
/**
*
* Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later,
* ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
*
*
* @return Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later,
* ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
*/
public String getAmiVersion() {
return this.amiVersion;
}
/**
*
* Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later,
* ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
*
*
* @param amiVersion
* Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later,
* ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withAmiVersion(String amiVersion) {
setAmiVersion(amiVersion);
return this;
}
/**
*
* The Amazon EMR release label, which determines the version of open-source application packages installed on the
* cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such
* as emr-5.14.0
. For more information about Amazon EMR release versions and included application
* versions and features, see https://docs.aws.amazon.
* com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later.
* Earlier versions use AmiVersion
.
*
*
* @param releaseLabel
* The Amazon EMR release label, which determines the version of open-source application packages installed
* on the cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR
* release version such as emr-5.14.0
. For more information about Amazon EMR release versions
* and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR
* releases version 4.0 and later. Earlier versions use AmiVersion
.
*/
public void setReleaseLabel(String releaseLabel) {
this.releaseLabel = releaseLabel;
}
/**
*
* The Amazon EMR release label, which determines the version of open-source application packages installed on the
* cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such
* as emr-5.14.0
. For more information about Amazon EMR release versions and included application
* versions and features, see https://docs.aws.amazon.
* com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later.
* Earlier versions use AmiVersion
.
*
*
* @return The Amazon EMR release label, which determines the version of open-source application packages installed
* on the cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR
* release version such as emr-5.14.0
. For more information about Amazon EMR release versions
* and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR
* releases version 4.0 and later. Earlier versions use AmiVersion
.
*/
public String getReleaseLabel() {
return this.releaseLabel;
}
/**
*
* The Amazon EMR release label, which determines the version of open-source application packages installed on the
* cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such
* as emr-5.14.0
. For more information about Amazon EMR release versions and included application
* versions and features, see https://docs.aws.amazon.
* com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later.
* Earlier versions use AmiVersion
.
*
*
* @param releaseLabel
* The Amazon EMR release label, which determines the version of open-source application packages installed
* on the cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR
* release version such as emr-5.14.0
. For more information about Amazon EMR release versions
* and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR
* releases version 4.0 and later. Earlier versions use AmiVersion
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withReleaseLabel(String releaseLabel) {
setReleaseLabel(releaseLabel);
return this;
}
/**
*
* A specification of the number and type of Amazon EC2 instances.
*
*
* @param instances
* A specification of the number and type of Amazon EC2 instances.
*/
public void setInstances(JobFlowInstancesConfig instances) {
this.instances = instances;
}
/**
*
* A specification of the number and type of Amazon EC2 instances.
*
*
* @return A specification of the number and type of Amazon EC2 instances.
*/
public JobFlowInstancesConfig getInstances() {
return this.instances;
}
/**
*
* A specification of the number and type of Amazon EC2 instances.
*
*
* @param instances
* A specification of the number and type of Amazon EC2 instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withInstances(JobFlowInstancesConfig instances) {
setInstances(instances);
return this;
}
/**
*
* A list of steps to run.
*
*
* @return A list of steps to run.
*/
public java.util.List getSteps() {
if (steps == null) {
steps = new com.amazonaws.internal.SdkInternalList();
}
return steps;
}
/**
*
* A list of steps to run.
*
*
* @param steps
* A list of steps to run.
*/
public void setSteps(java.util.Collection steps) {
if (steps == null) {
this.steps = null;
return;
}
this.steps = new com.amazonaws.internal.SdkInternalList(steps);
}
/**
*
* A list of steps to run.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSteps(java.util.Collection)} or {@link #withSteps(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param steps
* A list of steps to run.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withSteps(StepConfig... steps) {
if (this.steps == null) {
setSteps(new com.amazonaws.internal.SdkInternalList(steps.length));
}
for (StepConfig ele : steps) {
this.steps.add(ele);
}
return this;
}
/**
*
* A list of steps to run.
*
*
* @param steps
* A list of steps to run.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withSteps(java.util.Collection steps) {
setSteps(steps);
return this;
}
/**
*
* A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
*
*
* @return A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
*/
public java.util.List getBootstrapActions() {
if (bootstrapActions == null) {
bootstrapActions = new com.amazonaws.internal.SdkInternalList();
}
return bootstrapActions;
}
/**
*
* A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
*
*
* @param bootstrapActions
* A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
*/
public void setBootstrapActions(java.util.Collection bootstrapActions) {
if (bootstrapActions == null) {
this.bootstrapActions = null;
return;
}
this.bootstrapActions = new com.amazonaws.internal.SdkInternalList(bootstrapActions);
}
/**
*
* A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setBootstrapActions(java.util.Collection)} or {@link #withBootstrapActions(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param bootstrapActions
* A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withBootstrapActions(BootstrapActionConfig... bootstrapActions) {
if (this.bootstrapActions == null) {
setBootstrapActions(new com.amazonaws.internal.SdkInternalList(bootstrapActions.length));
}
for (BootstrapActionConfig ele : bootstrapActions) {
this.bootstrapActions.add(ele);
}
return this;
}
/**
*
* A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
*
*
* @param bootstrapActions
* A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withBootstrapActions(java.util.Collection bootstrapActions) {
setBootstrapActions(bootstrapActions);
return this;
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide. Currently
* supported values are:
*
*
* -
*
* "mapr-m3" - launch the job flow using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the job flow using MapR M5 Edition.
*
*
*
*
* @return
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide.
* Currently supported values are:
*
*
* -
*
* "mapr-m3" - launch the job flow using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the job flow using MapR M5 Edition.
*
*
*/
public java.util.List getSupportedProducts() {
if (supportedProducts == null) {
supportedProducts = new com.amazonaws.internal.SdkInternalList();
}
return supportedProducts;
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide. Currently
* supported values are:
*
*
* -
*
* "mapr-m3" - launch the job flow using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the job flow using MapR M5 Edition.
*
*
*
*
* @param supportedProducts
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide.
* Currently supported values are:
*
*
* -
*
* "mapr-m3" - launch the job flow using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the job flow using MapR M5 Edition.
*
*
*/
public void setSupportedProducts(java.util.Collection supportedProducts) {
if (supportedProducts == null) {
this.supportedProducts = null;
return;
}
this.supportedProducts = new com.amazonaws.internal.SdkInternalList(supportedProducts);
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide. Currently
* supported values are:
*
*
* -
*
* "mapr-m3" - launch the job flow using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the job flow using MapR M5 Edition.
*
*
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSupportedProducts(java.util.Collection)} or {@link #withSupportedProducts(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param supportedProducts
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide.
* Currently supported values are:
*
*
* -
*
* "mapr-m3" - launch the job flow using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the job flow using MapR M5 Edition.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withSupportedProducts(String... supportedProducts) {
if (this.supportedProducts == null) {
setSupportedProducts(new com.amazonaws.internal.SdkInternalList(supportedProducts.length));
}
for (String ele : supportedProducts) {
this.supportedProducts.add(ele);
}
return this;
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide. Currently
* supported values are:
*
*
* -
*
* "mapr-m3" - launch the job flow using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the job flow using MapR M5 Edition.
*
*
*
*
* @param supportedProducts
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide.
* Currently supported values are:
*
*
* -
*
* "mapr-m3" - launch the job flow using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the job flow using MapR M5 Edition.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withSupportedProducts(java.util.Collection supportedProducts) {
setSupportedProducts(supportedProducts);
return this;
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job flow that accepts a user argument list.
* EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action
* arguments. For more information, see "Launch a Job Flow on the MapR Distribution for Hadoop" in the Amazon EMR Developer Guide. Supported
* values are:
*
*
* -
*
* "mapr-m3" - launch the cluster using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the cluster using MapR M5 Edition.
*
*
* -
*
* "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or
* M5 Edition respectively.
*
*
* -
*
* "mapr-m7" - launch the cluster using MapR M7 Edition.
*
*
* -
*
* "hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
*
*
* -
*
* "hue"- launch the cluster with Hue installed.
*
*
* -
*
* "spark" - launch the cluster with Apache Spark installed.
*
*
* -
*
* "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
*
*
*
*
* @return
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job flow that accepts a user
* argument list. EMR accepts and forwards the argument list to the corresponding installation script as
* bootstrap action arguments. For more information, see
* "Launch a Job Flow on the MapR Distribution for Hadoop" in the Amazon EMR Developer Guide.
* Supported values are:
*
*
* -
*
* "mapr-m3" - launch the cluster using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the cluster using MapR M5 Edition.
*
*
* -
*
* "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using
* MapR M3 or M5 Edition respectively.
*
*
* -
*
* "mapr-m7" - launch the cluster using MapR M7 Edition.
*
*
* -
*
* "hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
*
*
* -
*
* "hue"- launch the cluster with Hue installed.
*
*
* -
*
* "spark" - launch the cluster with Apache Spark installed.
*
*
* -
*
* "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
*
*
*/
public java.util.List getNewSupportedProducts() {
if (newSupportedProducts == null) {
newSupportedProducts = new com.amazonaws.internal.SdkInternalList();
}
return newSupportedProducts;
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job flow that accepts a user argument list.
* EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action
* arguments. For more information, see "Launch a Job Flow on the MapR Distribution for Hadoop" in the Amazon EMR Developer Guide. Supported
* values are:
*
*
* -
*
* "mapr-m3" - launch the cluster using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the cluster using MapR M5 Edition.
*
*
* -
*
* "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or
* M5 Edition respectively.
*
*
* -
*
* "mapr-m7" - launch the cluster using MapR M7 Edition.
*
*
* -
*
* "hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
*
*
* -
*
* "hue"- launch the cluster with Hue installed.
*
*
* -
*
* "spark" - launch the cluster with Apache Spark installed.
*
*
* -
*
* "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
*
*
*
*
* @param newSupportedProducts
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job flow that accepts a user
* argument list. EMR accepts and forwards the argument list to the corresponding installation script as
* bootstrap action arguments. For more information, see
* "Launch a Job Flow on the MapR Distribution for Hadoop" in the Amazon EMR Developer Guide.
* Supported values are:
*
*
* -
*
* "mapr-m3" - launch the cluster using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the cluster using MapR M5 Edition.
*
*
* -
*
* "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using
* MapR M3 or M5 Edition respectively.
*
*
* -
*
* "mapr-m7" - launch the cluster using MapR M7 Edition.
*
*
* -
*
* "hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
*
*
* -
*
* "hue"- launch the cluster with Hue installed.
*
*
* -
*
* "spark" - launch the cluster with Apache Spark installed.
*
*
* -
*
* "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
*
*
*/
public void setNewSupportedProducts(java.util.Collection newSupportedProducts) {
if (newSupportedProducts == null) {
this.newSupportedProducts = null;
return;
}
this.newSupportedProducts = new com.amazonaws.internal.SdkInternalList(newSupportedProducts);
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job flow that accepts a user argument list.
* EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action
* arguments. For more information, see "Launch a Job Flow on the MapR Distribution for Hadoop" in the Amazon EMR Developer Guide. Supported
* values are:
*
*
* -
*
* "mapr-m3" - launch the cluster using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the cluster using MapR M5 Edition.
*
*
* -
*
* "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or
* M5 Edition respectively.
*
*
* -
*
* "mapr-m7" - launch the cluster using MapR M7 Edition.
*
*
* -
*
* "hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
*
*
* -
*
* "hue"- launch the cluster with Hue installed.
*
*
* -
*
* "spark" - launch the cluster with Apache Spark installed.
*
*
* -
*
* "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
*
*
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setNewSupportedProducts(java.util.Collection)} or {@link #withNewSupportedProducts(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param newSupportedProducts
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job flow that accepts a user
* argument list. EMR accepts and forwards the argument list to the corresponding installation script as
* bootstrap action arguments. For more information, see
* "Launch a Job Flow on the MapR Distribution for Hadoop" in the Amazon EMR Developer Guide.
* Supported values are:
*
*
* -
*
* "mapr-m3" - launch the cluster using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the cluster using MapR M5 Edition.
*
*
* -
*
* "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using
* MapR M3 or M5 Edition respectively.
*
*
* -
*
* "mapr-m7" - launch the cluster using MapR M7 Edition.
*
*
* -
*
* "hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
*
*
* -
*
* "hue"- launch the cluster with Hue installed.
*
*
* -
*
* "spark" - launch the cluster with Apache Spark installed.
*
*
* -
*
* "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withNewSupportedProducts(SupportedProductConfig... newSupportedProducts) {
if (this.newSupportedProducts == null) {
setNewSupportedProducts(new com.amazonaws.internal.SdkInternalList(newSupportedProducts.length));
}
for (SupportedProductConfig ele : newSupportedProducts) {
this.newSupportedProducts.add(ele);
}
return this;
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job flow that accepts a user argument list.
* EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action
* arguments. For more information, see "Launch a Job Flow on the MapR Distribution for Hadoop" in the Amazon EMR Developer Guide. Supported
* values are:
*
*
* -
*
* "mapr-m3" - launch the cluster using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the cluster using MapR M5 Edition.
*
*
* -
*
* "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or
* M5 Edition respectively.
*
*
* -
*
* "mapr-m7" - launch the cluster using MapR M7 Edition.
*
*
* -
*
* "hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
*
*
* -
*
* "hue"- launch the cluster with Hue installed.
*
*
* -
*
* "spark" - launch the cluster with Apache Spark installed.
*
*
* -
*
* "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
*
*
*
*
* @param newSupportedProducts
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job flow that accepts a user
* argument list. EMR accepts and forwards the argument list to the corresponding installation script as
* bootstrap action arguments. For more information, see
* "Launch a Job Flow on the MapR Distribution for Hadoop" in the Amazon EMR Developer Guide.
* Supported values are:
*
*
* -
*
* "mapr-m3" - launch the cluster using MapR M3 Edition.
*
*
* -
*
* "mapr-m5" - launch the cluster using MapR M5 Edition.
*
*
* -
*
* "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using
* MapR M3 or M5 Edition respectively.
*
*
* -
*
* "mapr-m7" - launch the cluster using MapR M7 Edition.
*
*
* -
*
* "hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
*
*
* -
*
* "hue"- launch the cluster with Hue installed.
*
*
* -
*
* "spark" - launch the cluster with Apache Spark installed.
*
*
* -
*
* "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withNewSupportedProducts(java.util.Collection newSupportedProducts) {
setNewSupportedProducts(newSupportedProducts);
return this;
}
/**
*
* Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install
* and configure when launching the cluster. For a list of applications available for each Amazon EMR release
* version, see the Amazon EMRRelease Guide.
*
*
* @return Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to
* install and configure when launching the cluster. For a list of applications available for each Amazon
* EMR release version, see the Amazon
* EMRRelease Guide.
*/
public java.util.List getApplications() {
if (applications == null) {
applications = new com.amazonaws.internal.SdkInternalList();
}
return applications;
}
/**
*
* Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install
* and configure when launching the cluster. For a list of applications available for each Amazon EMR release
* version, see the Amazon EMRRelease Guide.
*
*
* @param applications
* Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to
* install and configure when launching the cluster. For a list of applications available for each Amazon EMR
* release version, see the Amazon EMRRelease
* Guide.
*/
public void setApplications(java.util.Collection applications) {
if (applications == null) {
this.applications = null;
return;
}
this.applications = new com.amazonaws.internal.SdkInternalList(applications);
}
/**
*
* Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install
* and configure when launching the cluster. For a list of applications available for each Amazon EMR release
* version, see the Amazon EMRRelease Guide.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setApplications(java.util.Collection)} or {@link #withApplications(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param applications
* Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to
* install and configure when launching the cluster. For a list of applications available for each Amazon EMR
* release version, see the Amazon EMRRelease
* Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withApplications(Application... applications) {
if (this.applications == null) {
setApplications(new com.amazonaws.internal.SdkInternalList(applications.length));
}
for (Application ele : applications) {
this.applications.add(ele);
}
return this;
}
/**
*
* Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install
* and configure when launching the cluster. For a list of applications available for each Amazon EMR release
* version, see the Amazon EMRRelease Guide.
*
*
* @param applications
* Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to
* install and configure when launching the cluster. For a list of applications available for each Amazon EMR
* release version, see the Amazon EMRRelease
* Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withApplications(java.util.Collection applications) {
setApplications(applications);
return this;
}
/**
*
* For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are creating.
*
*
* @return For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are
* creating.
*/
public java.util.List getConfigurations() {
if (configurations == null) {
configurations = new com.amazonaws.internal.SdkInternalList();
}
return configurations;
}
/**
*
* For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are creating.
*
*
* @param configurations
* For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are
* creating.
*/
public void setConfigurations(java.util.Collection configurations) {
if (configurations == null) {
this.configurations = null;
return;
}
this.configurations = new com.amazonaws.internal.SdkInternalList(configurations);
}
/**
*
* For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are creating.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setConfigurations(java.util.Collection)} or {@link #withConfigurations(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param configurations
* For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are
* creating.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withConfigurations(Configuration... configurations) {
if (this.configurations == null) {
setConfigurations(new com.amazonaws.internal.SdkInternalList(configurations.length));
}
for (Configuration ele : configurations) {
this.configurations.add(ele);
}
return this;
}
/**
*
* For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are creating.
*
*
* @param configurations
* For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are
* creating.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withConfigurations(java.util.Collection configurations) {
setConfigurations(configurations);
return this;
}
/**
*
*
* The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
.
* Setting it to false
now has no effect.
*
*
*
* Set this value to true
so that IAM principals in the Amazon Web Services account associated with the
* cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults to
* true
for clusters created using the EMR API or the CLI create-cluster command.
*
*
* When set to false
, only the IAM principal that created the cluster and the Amazon Web Services
* account root user can perform EMR actions for the cluster, regardless of the IAM permissions policies attached to
* other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
*
*
* @param visibleToAllUsers
*
* The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
.
* Setting it to false
now has no effect.
*
*
*
* Set this value to true
so that IAM principals in the Amazon Web Services account associated
* with the cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults
* to true
for clusters created using the EMR API or the CLI create-cluster
* command.
*
*
* When set to false
, only the IAM principal that created the cluster and the Amazon Web
* Services account root user can perform EMR actions for the cluster, regardless of the IAM permissions
* policies attached to other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
*/
public void setVisibleToAllUsers(Boolean visibleToAllUsers) {
this.visibleToAllUsers = visibleToAllUsers;
}
/**
*
*
* The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
.
* Setting it to false
now has no effect.
*
*
*
* Set this value to true
so that IAM principals in the Amazon Web Services account associated with the
* cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults to
* true
for clusters created using the EMR API or the CLI create-cluster command.
*
*
* When set to false
, only the IAM principal that created the cluster and the Amazon Web Services
* account root user can perform EMR actions for the cluster, regardless of the IAM permissions policies attached to
* other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
*
*
* @return
* The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
* . Setting it to false
now has no effect.
*
*
*
* Set this value to true
so that IAM principals in the Amazon Web Services account associated
* with the cluster can perform EMR actions on the cluster that their IAM policies allow. This value
* defaults to true
for clusters created using the EMR API or the CLI create-cluster
* command.
*
*
* When set to false
, only the IAM principal that created the cluster and the Amazon Web
* Services account root user can perform EMR actions for the cluster, regardless of the IAM permissions
* policies attached to other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
*/
public Boolean getVisibleToAllUsers() {
return this.visibleToAllUsers;
}
/**
*
*
* The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
.
* Setting it to false
now has no effect.
*
*
*
* Set this value to true
so that IAM principals in the Amazon Web Services account associated with the
* cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults to
* true
for clusters created using the EMR API or the CLI create-cluster command.
*
*
* When set to false
, only the IAM principal that created the cluster and the Amazon Web Services
* account root user can perform EMR actions for the cluster, regardless of the IAM permissions policies attached to
* other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
*
*
* @param visibleToAllUsers
*
* The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
.
* Setting it to false
now has no effect.
*
*
*
* Set this value to true
so that IAM principals in the Amazon Web Services account associated
* with the cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults
* to true
for clusters created using the EMR API or the CLI create-cluster
* command.
*
*
* When set to false
, only the IAM principal that created the cluster and the Amazon Web
* Services account root user can perform EMR actions for the cluster, regardless of the IAM permissions
* policies attached to other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withVisibleToAllUsers(Boolean visibleToAllUsers) {
setVisibleToAllUsers(visibleToAllUsers);
return this;
}
/**
*
*
* The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
.
* Setting it to false
now has no effect.
*
*
*
* Set this value to true
so that IAM principals in the Amazon Web Services account associated with the
* cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults to
* true
for clusters created using the EMR API or the CLI create-cluster command.
*
*
* When set to false
, only the IAM principal that created the cluster and the Amazon Web Services
* account root user can perform EMR actions for the cluster, regardless of the IAM permissions policies attached to
* other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
*
*
* @return
* The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
* . Setting it to false
now has no effect.
*
*
*
* Set this value to true
so that IAM principals in the Amazon Web Services account associated
* with the cluster can perform EMR actions on the cluster that their IAM policies allow. This value
* defaults to true
for clusters created using the EMR API or the CLI create-cluster
* command.
*
*
* When set to false
, only the IAM principal that created the cluster and the Amazon Web
* Services account root user can perform EMR actions for the cluster, regardless of the IAM permissions
* policies attached to other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
*/
public Boolean isVisibleToAllUsers() {
return this.visibleToAllUsers;
}
/**
*
* Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster
* assume this role. The default role is EMR_EC2_DefaultRole
. In order to use the default role, you
* must have already created it using the CLI or console.
*
*
* @param jobFlowRole
* Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the
* cluster assume this role. The default role is EMR_EC2_DefaultRole
. In order to use the
* default role, you must have already created it using the CLI or console.
*/
public void setJobFlowRole(String jobFlowRole) {
this.jobFlowRole = jobFlowRole;
}
/**
*
* Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster
* assume this role. The default role is EMR_EC2_DefaultRole
. In order to use the default role, you
* must have already created it using the CLI or console.
*
*
* @return Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the
* cluster assume this role. The default role is EMR_EC2_DefaultRole
. In order to use the
* default role, you must have already created it using the CLI or console.
*/
public String getJobFlowRole() {
return this.jobFlowRole;
}
/**
*
* Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster
* assume this role. The default role is EMR_EC2_DefaultRole
. In order to use the default role, you
* must have already created it using the CLI or console.
*
*
* @param jobFlowRole
* Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the
* cluster assume this role. The default role is EMR_EC2_DefaultRole
. In order to use the
* default role, you must have already created it using the CLI or console.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withJobFlowRole(String jobFlowRole) {
setJobFlowRole(jobFlowRole);
return this;
}
/**
*
* The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf.
*
*
* @param serviceRole
* The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf.
*/
public void setServiceRole(String serviceRole) {
this.serviceRole = serviceRole;
}
/**
*
* The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf.
*
*
* @return The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf.
*/
public String getServiceRole() {
return this.serviceRole;
}
/**
*
* The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf.
*
*
* @param serviceRole
* The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withServiceRole(String serviceRole) {
setServiceRole(serviceRole);
return this;
}
/**
*
* A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
*
*
* @return A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
*/
public java.util.List getTags() {
if (tags == null) {
tags = new com.amazonaws.internal.SdkInternalList();
}
return tags;
}
/**
*
* A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
*
*
* @param tags
* A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new com.amazonaws.internal.SdkInternalList(tags);
}
/**
*
* A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tags
* A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
*
*
* @param tags
* A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* The name of a security configuration to apply to the cluster.
*
*
* @param securityConfiguration
* The name of a security configuration to apply to the cluster.
*/
public void setSecurityConfiguration(String securityConfiguration) {
this.securityConfiguration = securityConfiguration;
}
/**
*
* The name of a security configuration to apply to the cluster.
*
*
* @return The name of a security configuration to apply to the cluster.
*/
public String getSecurityConfiguration() {
return this.securityConfiguration;
}
/**
*
* The name of a security configuration to apply to the cluster.
*
*
* @param securityConfiguration
* The name of a security configuration to apply to the cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withSecurityConfiguration(String securityConfiguration) {
setSecurityConfiguration(securityConfiguration);
return this;
}
/**
*
* An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The IAM
* role provides permissions that the automatic scaling feature requires to launch and terminate EC2 instances in an
* instance group.
*
*
* @param autoScalingRole
* An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
.
* The IAM role provides permissions that the automatic scaling feature requires to launch and terminate EC2
* instances in an instance group.
*/
public void setAutoScalingRole(String autoScalingRole) {
this.autoScalingRole = autoScalingRole;
}
/**
*
* An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The IAM
* role provides permissions that the automatic scaling feature requires to launch and terminate EC2 instances in an
* instance group.
*
*
* @return An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
.
* The IAM role provides permissions that the automatic scaling feature requires to launch and terminate EC2
* instances in an instance group.
*/
public String getAutoScalingRole() {
return this.autoScalingRole;
}
/**
*
* An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The IAM
* role provides permissions that the automatic scaling feature requires to launch and terminate EC2 instances in an
* instance group.
*
*
* @param autoScalingRole
* An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
.
* The IAM role provides permissions that the automatic scaling feature requires to launch and terminate EC2
* instances in an instance group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withAutoScalingRole(String autoScalingRole) {
setAutoScalingRole(autoScalingRole);
return this;
}
/**
*
* Specifies 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 adds nodes to a deny list 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.
*
*
* @param scaleDownBehavior
* Specifies 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
* adds nodes to a deny list 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.
* @see ScaleDownBehavior
*/
public void setScaleDownBehavior(String scaleDownBehavior) {
this.scaleDownBehavior = scaleDownBehavior;
}
/**
*
* Specifies 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 adds nodes to a deny list 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.
*
*
* @return Specifies 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
* adds nodes to a deny list 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.
* @see ScaleDownBehavior
*/
public String getScaleDownBehavior() {
return this.scaleDownBehavior;
}
/**
*
* Specifies 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 adds nodes to a deny list 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.
*
*
* @param scaleDownBehavior
* Specifies 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
* adds nodes to a deny list 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ScaleDownBehavior
*/
public RunJobFlowRequest withScaleDownBehavior(String scaleDownBehavior) {
setScaleDownBehavior(scaleDownBehavior);
return this;
}
/**
*
* Specifies 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 adds nodes to a deny list 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.
*
*
* @param scaleDownBehavior
* Specifies 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
* adds nodes to a deny list 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.
* @see ScaleDownBehavior
*/
public void setScaleDownBehavior(ScaleDownBehavior scaleDownBehavior) {
withScaleDownBehavior(scaleDownBehavior);
}
/**
*
* Specifies 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 adds nodes to a deny list 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.
*
*
* @param scaleDownBehavior
* Specifies 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
* adds nodes to a deny list 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ScaleDownBehavior
*/
public RunJobFlowRequest withScaleDownBehavior(ScaleDownBehavior scaleDownBehavior) {
this.scaleDownBehavior = scaleDownBehavior.toString();
return this;
}
/**
*
* Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If
* specified, Amazon EMR uses this AMI when it launches cluster EC2 instances. For more information about custom
* AMIs in Amazon EMR, see Using a Custom AMI in the
* Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the
* ReleaseLabel
specified. For Amazon EMR versions 2.x and 3.x, use AmiVersion
instead.
*
*
* For information about creating a custom AMI, see Creating an Amazon EBS-Backed
* Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For information about
* finding an AMI ID, see Finding
* a Linux AMI.
*
*
* @param customAmiId
* Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If
* specified, Amazon EMR uses this AMI when it launches cluster EC2 instances. For more information about
* custom AMIs in Amazon EMR, see Using a Custom AMI
* in the Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the
* ReleaseLabel
specified. For Amazon EMR versions 2.x and 3.x, use AmiVersion
* instead.
*
* For information about creating a custom AMI, see Creating an Amazon
* EBS-Backed Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For
* information about finding an AMI ID, see Finding a Linux AMI.
*/
public void setCustomAmiId(String customAmiId) {
this.customAmiId = customAmiId;
}
/**
*
* Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If
* specified, Amazon EMR uses this AMI when it launches cluster EC2 instances. For more information about custom
* AMIs in Amazon EMR, see Using a Custom AMI in the
* Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the
* ReleaseLabel
specified. For Amazon EMR versions 2.x and 3.x, use AmiVersion
instead.
*
*
* For information about creating a custom AMI, see Creating an Amazon EBS-Backed
* Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For information about
* finding an AMI ID, see Finding
* a Linux AMI.
*
*
* @return Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If
* specified, Amazon EMR uses this AMI when it launches cluster EC2 instances. For more information about
* custom AMIs in Amazon EMR, see Using a Custom AMI
* in the Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the
* ReleaseLabel
specified. For Amazon EMR versions 2.x and 3.x, use AmiVersion
* instead.
*
* For information about creating a custom AMI, see Creating an Amazon
* EBS-Backed Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For
* information about finding an AMI ID, see Finding a Linux AMI.
*/
public String getCustomAmiId() {
return this.customAmiId;
}
/**
*
* Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If
* specified, Amazon EMR uses this AMI when it launches cluster EC2 instances. For more information about custom
* AMIs in Amazon EMR, see Using a Custom AMI in the
* Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the
* ReleaseLabel
specified. For Amazon EMR versions 2.x and 3.x, use AmiVersion
instead.
*
*
* For information about creating a custom AMI, see Creating an Amazon EBS-Backed
* Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For information about
* finding an AMI ID, see Finding
* a Linux AMI.
*
*
* @param customAmiId
* Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If
* specified, Amazon EMR uses this AMI when it launches cluster EC2 instances. For more information about
* custom AMIs in Amazon EMR, see Using a Custom AMI
* in the Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the
* ReleaseLabel
specified. For Amazon EMR versions 2.x and 3.x, use AmiVersion
* instead.
*
* For information about creating a custom AMI, see Creating an Amazon
* EBS-Backed Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For
* information about finding an AMI ID, see Finding a Linux AMI.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withCustomAmiId(String customAmiId) {
setCustomAmiId(customAmiId);
return this;
}
/**
*
* The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2 instance.
* Available in Amazon EMR version 4.x and later.
*
*
* @param ebsRootVolumeSize
* The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2
* instance. Available in Amazon EMR version 4.x and later.
*/
public void setEbsRootVolumeSize(Integer ebsRootVolumeSize) {
this.ebsRootVolumeSize = ebsRootVolumeSize;
}
/**
*
* The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2 instance.
* Available in Amazon EMR version 4.x and later.
*
*
* @return The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2
* instance. Available in Amazon EMR version 4.x and later.
*/
public Integer getEbsRootVolumeSize() {
return this.ebsRootVolumeSize;
}
/**
*
* The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2 instance.
* Available in Amazon EMR version 4.x and later.
*
*
* @param ebsRootVolumeSize
* The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2
* instance. Available in Amazon EMR version 4.x and later.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withEbsRootVolumeSize(Integer ebsRootVolumeSize) {
setEbsRootVolumeSize(ebsRootVolumeSize);
return this;
}
/**
*
* Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI package
* repositories to apply automatically when the instance boots using the AMI. If omitted, the default is
* SECURITY
, which indicates that only security updates are applied. If NONE
is specified,
* no updates are applied, and all updates must be applied manually.
*
*
* @param repoUpgradeOnBoot
* Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI
* package repositories to apply automatically when the instance boots using the AMI. If omitted, the default
* is SECURITY
, which indicates that only security updates are applied. If NONE
is
* specified, no updates are applied, and all updates must be applied manually.
* @see RepoUpgradeOnBoot
*/
public void setRepoUpgradeOnBoot(String repoUpgradeOnBoot) {
this.repoUpgradeOnBoot = repoUpgradeOnBoot;
}
/**
*
* Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI package
* repositories to apply automatically when the instance boots using the AMI. If omitted, the default is
* SECURITY
, which indicates that only security updates are applied. If NONE
is specified,
* no updates are applied, and all updates must be applied manually.
*
*
* @return Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI
* package repositories to apply automatically when the instance boots using the AMI. If omitted, the
* default is SECURITY
, which indicates that only security updates are applied. If
* NONE
is specified, no updates are applied, and all updates must be applied manually.
* @see RepoUpgradeOnBoot
*/
public String getRepoUpgradeOnBoot() {
return this.repoUpgradeOnBoot;
}
/**
*
* Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI package
* repositories to apply automatically when the instance boots using the AMI. If omitted, the default is
* SECURITY
, which indicates that only security updates are applied. If NONE
is specified,
* no updates are applied, and all updates must be applied manually.
*
*
* @param repoUpgradeOnBoot
* Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI
* package repositories to apply automatically when the instance boots using the AMI. If omitted, the default
* is SECURITY
, which indicates that only security updates are applied. If NONE
is
* specified, no updates are applied, and all updates must be applied manually.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RepoUpgradeOnBoot
*/
public RunJobFlowRequest withRepoUpgradeOnBoot(String repoUpgradeOnBoot) {
setRepoUpgradeOnBoot(repoUpgradeOnBoot);
return this;
}
/**
*
* Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI package
* repositories to apply automatically when the instance boots using the AMI. If omitted, the default is
* SECURITY
, which indicates that only security updates are applied. If NONE
is specified,
* no updates are applied, and all updates must be applied manually.
*
*
* @param repoUpgradeOnBoot
* Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI
* package repositories to apply automatically when the instance boots using the AMI. If omitted, the default
* is SECURITY
, which indicates that only security updates are applied. If NONE
is
* specified, no updates are applied, and all updates must be applied manually.
* @see RepoUpgradeOnBoot
*/
public void setRepoUpgradeOnBoot(RepoUpgradeOnBoot repoUpgradeOnBoot) {
withRepoUpgradeOnBoot(repoUpgradeOnBoot);
}
/**
*
* Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI package
* repositories to apply automatically when the instance boots using the AMI. If omitted, the default is
* SECURITY
, which indicates that only security updates are applied. If NONE
is specified,
* no updates are applied, and all updates must be applied manually.
*
*
* @param repoUpgradeOnBoot
* Applies only when CustomAmiID
is used. Specifies which updates from the Amazon Linux AMI
* package repositories to apply automatically when the instance boots using the AMI. If omitted, the default
* is SECURITY
, which indicates that only security updates are applied. If NONE
is
* specified, no updates are applied, and all updates must be applied manually.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RepoUpgradeOnBoot
*/
public RunJobFlowRequest withRepoUpgradeOnBoot(RepoUpgradeOnBoot repoUpgradeOnBoot) {
this.repoUpgradeOnBoot = repoUpgradeOnBoot.toString();
return this;
}
/**
*
* Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For
* more information see Use
* Kerberos Authentication in the Amazon EMR Management Guide.
*
*
* @param kerberosAttributes
* Attributes for Kerberos configuration when Kerberos authentication is enabled using a security
* configuration. For more information see Use Kerberos
* Authentication in the Amazon EMR Management Guide.
*/
public void setKerberosAttributes(KerberosAttributes kerberosAttributes) {
this.kerberosAttributes = kerberosAttributes;
}
/**
*
* Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For
* more information see Use
* Kerberos Authentication in the Amazon EMR Management Guide.
*
*
* @return Attributes for Kerberos configuration when Kerberos authentication is enabled using a security
* configuration. For more information see Use Kerberos
* Authentication in the Amazon EMR Management Guide.
*/
public KerberosAttributes getKerberosAttributes() {
return this.kerberosAttributes;
}
/**
*
* Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For
* more information see Use
* Kerberos Authentication in the Amazon EMR Management Guide.
*
*
* @param kerberosAttributes
* Attributes for Kerberos configuration when Kerberos authentication is enabled using a security
* configuration. For more information see Use Kerberos
* Authentication in the Amazon EMR Management Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withKerberosAttributes(KerberosAttributes kerberosAttributes) {
setKerberosAttributes(kerberosAttributes);
return this;
}
/**
*
* Specifies the number of steps that can be executed concurrently. The default value is 1
. The maximum
* value is 256
.
*
*
* @param stepConcurrencyLevel
* Specifies the number of steps that can be executed concurrently. The default value is 1
. The
* maximum value is 256
.
*/
public void setStepConcurrencyLevel(Integer stepConcurrencyLevel) {
this.stepConcurrencyLevel = stepConcurrencyLevel;
}
/**
*
* Specifies the number of steps that can be executed concurrently. The default value is 1
. The maximum
* value is 256
.
*
*
* @return Specifies the number of steps that can be executed concurrently. The default value is 1
. The
* maximum value is 256
.
*/
public Integer getStepConcurrencyLevel() {
return this.stepConcurrencyLevel;
}
/**
*
* Specifies the number of steps that can be executed concurrently. The default value is 1
. The maximum
* value is 256
.
*
*
* @param stepConcurrencyLevel
* Specifies the number of steps that can be executed concurrently. The default value is 1
. The
* maximum value is 256
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withStepConcurrencyLevel(Integer stepConcurrencyLevel) {
setStepConcurrencyLevel(stepConcurrencyLevel);
return this;
}
/**
*
* The specified managed scaling policy for an Amazon EMR cluster.
*
*
* @param managedScalingPolicy
* The specified managed scaling policy for an Amazon EMR cluster.
*/
public void setManagedScalingPolicy(ManagedScalingPolicy managedScalingPolicy) {
this.managedScalingPolicy = managedScalingPolicy;
}
/**
*
* The specified managed scaling policy for an Amazon EMR cluster.
*
*
* @return The specified managed scaling policy for an Amazon EMR cluster.
*/
public ManagedScalingPolicy getManagedScalingPolicy() {
return this.managedScalingPolicy;
}
/**
*
* The specified managed scaling policy for an Amazon EMR cluster.
*
*
* @param managedScalingPolicy
* The specified managed scaling policy for an Amazon EMR cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withManagedScalingPolicy(ManagedScalingPolicy managedScalingPolicy) {
setManagedScalingPolicy(managedScalingPolicy);
return this;
}
/**
*
* The specified placement group configuration for an Amazon EMR cluster.
*
*
* @return The specified placement group configuration for an Amazon EMR cluster.
*/
public java.util.List getPlacementGroupConfigs() {
if (placementGroupConfigs == null) {
placementGroupConfigs = new com.amazonaws.internal.SdkInternalList();
}
return placementGroupConfigs;
}
/**
*
* The specified placement group configuration for an Amazon EMR cluster.
*
*
* @param placementGroupConfigs
* The specified placement group configuration for an Amazon EMR cluster.
*/
public void setPlacementGroupConfigs(java.util.Collection placementGroupConfigs) {
if (placementGroupConfigs == null) {
this.placementGroupConfigs = null;
return;
}
this.placementGroupConfigs = new com.amazonaws.internal.SdkInternalList(placementGroupConfigs);
}
/**
*
* The specified placement group configuration for an Amazon EMR cluster.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setPlacementGroupConfigs(java.util.Collection)} or
* {@link #withPlacementGroupConfigs(java.util.Collection)} if you want to override the existing values.
*
*
* @param placementGroupConfigs
* The specified placement group configuration for an Amazon EMR cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withPlacementGroupConfigs(PlacementGroupConfig... placementGroupConfigs) {
if (this.placementGroupConfigs == null) {
setPlacementGroupConfigs(new com.amazonaws.internal.SdkInternalList(placementGroupConfigs.length));
}
for (PlacementGroupConfig ele : placementGroupConfigs) {
this.placementGroupConfigs.add(ele);
}
return this;
}
/**
*
* The specified placement group configuration for an Amazon EMR cluster.
*
*
* @param placementGroupConfigs
* The specified placement group configuration for an Amazon EMR cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withPlacementGroupConfigs(java.util.Collection placementGroupConfigs) {
setPlacementGroupConfigs(placementGroupConfigs);
return this;
}
/**
* @param autoTerminationPolicy
*/
public void setAutoTerminationPolicy(AutoTerminationPolicy autoTerminationPolicy) {
this.autoTerminationPolicy = autoTerminationPolicy;
}
/**
* @return
*/
public AutoTerminationPolicy getAutoTerminationPolicy() {
return this.autoTerminationPolicy;
}
/**
* @param autoTerminationPolicy
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RunJobFlowRequest withAutoTerminationPolicy(AutoTerminationPolicy autoTerminationPolicy) {
setAutoTerminationPolicy(autoTerminationPolicy);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getLogUri() != null)
sb.append("LogUri: ").append(getLogUri()).append(",");
if (getLogEncryptionKmsKeyId() != null)
sb.append("LogEncryptionKmsKeyId: ").append(getLogEncryptionKmsKeyId()).append(",");
if (getAdditionalInfo() != null)
sb.append("AdditionalInfo: ").append(getAdditionalInfo()).append(",");
if (getAmiVersion() != null)
sb.append("AmiVersion: ").append(getAmiVersion()).append(",");
if (getReleaseLabel() != null)
sb.append("ReleaseLabel: ").append(getReleaseLabel()).append(",");
if (getInstances() != null)
sb.append("Instances: ").append(getInstances()).append(",");
if (getSteps() != null)
sb.append("Steps: ").append(getSteps()).append(",");
if (getBootstrapActions() != null)
sb.append("BootstrapActions: ").append(getBootstrapActions()).append(",");
if (getSupportedProducts() != null)
sb.append("SupportedProducts: ").append(getSupportedProducts()).append(",");
if (getNewSupportedProducts() != null)
sb.append("NewSupportedProducts: ").append(getNewSupportedProducts()).append(",");
if (getApplications() != null)
sb.append("Applications: ").append(getApplications()).append(",");
if (getConfigurations() != null)
sb.append("Configurations: ").append(getConfigurations()).append(",");
if (getVisibleToAllUsers() != null)
sb.append("VisibleToAllUsers: ").append(getVisibleToAllUsers()).append(",");
if (getJobFlowRole() != null)
sb.append("JobFlowRole: ").append(getJobFlowRole()).append(",");
if (getServiceRole() != null)
sb.append("ServiceRole: ").append(getServiceRole()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getSecurityConfiguration() != null)
sb.append("SecurityConfiguration: ").append(getSecurityConfiguration()).append(",");
if (getAutoScalingRole() != null)
sb.append("AutoScalingRole: ").append(getAutoScalingRole()).append(",");
if (getScaleDownBehavior() != null)
sb.append("ScaleDownBehavior: ").append(getScaleDownBehavior()).append(",");
if (getCustomAmiId() != null)
sb.append("CustomAmiId: ").append(getCustomAmiId()).append(",");
if (getEbsRootVolumeSize() != null)
sb.append("EbsRootVolumeSize: ").append(getEbsRootVolumeSize()).append(",");
if (getRepoUpgradeOnBoot() != null)
sb.append("RepoUpgradeOnBoot: ").append(getRepoUpgradeOnBoot()).append(",");
if (getKerberosAttributes() != null)
sb.append("KerberosAttributes: ").append(getKerberosAttributes()).append(",");
if (getStepConcurrencyLevel() != null)
sb.append("StepConcurrencyLevel: ").append(getStepConcurrencyLevel()).append(",");
if (getManagedScalingPolicy() != null)
sb.append("ManagedScalingPolicy: ").append(getManagedScalingPolicy()).append(",");
if (getPlacementGroupConfigs() != null)
sb.append("PlacementGroupConfigs: ").append(getPlacementGroupConfigs()).append(",");
if (getAutoTerminationPolicy() != null)
sb.append("AutoTerminationPolicy: ").append(getAutoTerminationPolicy());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof RunJobFlowRequest == false)
return false;
RunJobFlowRequest other = (RunJobFlowRequest) obj;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getLogUri() == null ^ this.getLogUri() == null)
return false;
if (other.getLogUri() != null && other.getLogUri().equals(this.getLogUri()) == false)
return false;
if (other.getLogEncryptionKmsKeyId() == null ^ this.getLogEncryptionKmsKeyId() == null)
return false;
if (other.getLogEncryptionKmsKeyId() != null && other.getLogEncryptionKmsKeyId().equals(this.getLogEncryptionKmsKeyId()) == false)
return false;
if (other.getAdditionalInfo() == null ^ this.getAdditionalInfo() == null)
return false;
if (other.getAdditionalInfo() != null && other.getAdditionalInfo().equals(this.getAdditionalInfo()) == false)
return false;
if (other.getAmiVersion() == null ^ this.getAmiVersion() == null)
return false;
if (other.getAmiVersion() != null && other.getAmiVersion().equals(this.getAmiVersion()) == false)
return false;
if (other.getReleaseLabel() == null ^ this.getReleaseLabel() == null)
return false;
if (other.getReleaseLabel() != null && other.getReleaseLabel().equals(this.getReleaseLabel()) == false)
return false;
if (other.getInstances() == null ^ this.getInstances() == null)
return false;
if (other.getInstances() != null && other.getInstances().equals(this.getInstances()) == false)
return false;
if (other.getSteps() == null ^ this.getSteps() == null)
return false;
if (other.getSteps() != null && other.getSteps().equals(this.getSteps()) == false)
return false;
if (other.getBootstrapActions() == null ^ this.getBootstrapActions() == null)
return false;
if (other.getBootstrapActions() != null && other.getBootstrapActions().equals(this.getBootstrapActions()) == false)
return false;
if (other.getSupportedProducts() == null ^ this.getSupportedProducts() == null)
return false;
if (other.getSupportedProducts() != null && other.getSupportedProducts().equals(this.getSupportedProducts()) == false)
return false;
if (other.getNewSupportedProducts() == null ^ this.getNewSupportedProducts() == null)
return false;
if (other.getNewSupportedProducts() != null && other.getNewSupportedProducts().equals(this.getNewSupportedProducts()) == false)
return false;
if (other.getApplications() == null ^ this.getApplications() == null)
return false;
if (other.getApplications() != null && other.getApplications().equals(this.getApplications()) == false)
return false;
if (other.getConfigurations() == null ^ this.getConfigurations() == null)
return false;
if (other.getConfigurations() != null && other.getConfigurations().equals(this.getConfigurations()) == false)
return false;
if (other.getVisibleToAllUsers() == null ^ this.getVisibleToAllUsers() == null)
return false;
if (other.getVisibleToAllUsers() != null && other.getVisibleToAllUsers().equals(this.getVisibleToAllUsers()) == false)
return false;
if (other.getJobFlowRole() == null ^ this.getJobFlowRole() == null)
return false;
if (other.getJobFlowRole() != null && other.getJobFlowRole().equals(this.getJobFlowRole()) == false)
return false;
if (other.getServiceRole() == null ^ this.getServiceRole() == null)
return false;
if (other.getServiceRole() != null && other.getServiceRole().equals(this.getServiceRole()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getSecurityConfiguration() == null ^ this.getSecurityConfiguration() == null)
return false;
if (other.getSecurityConfiguration() != null && other.getSecurityConfiguration().equals(this.getSecurityConfiguration()) == false)
return false;
if (other.getAutoScalingRole() == null ^ this.getAutoScalingRole() == null)
return false;
if (other.getAutoScalingRole() != null && other.getAutoScalingRole().equals(this.getAutoScalingRole()) == false)
return false;
if (other.getScaleDownBehavior() == null ^ this.getScaleDownBehavior() == null)
return false;
if (other.getScaleDownBehavior() != null && other.getScaleDownBehavior().equals(this.getScaleDownBehavior()) == false)
return false;
if (other.getCustomAmiId() == null ^ this.getCustomAmiId() == null)
return false;
if (other.getCustomAmiId() != null && other.getCustomAmiId().equals(this.getCustomAmiId()) == false)
return false;
if (other.getEbsRootVolumeSize() == null ^ this.getEbsRootVolumeSize() == null)
return false;
if (other.getEbsRootVolumeSize() != null && other.getEbsRootVolumeSize().equals(this.getEbsRootVolumeSize()) == false)
return false;
if (other.getRepoUpgradeOnBoot() == null ^ this.getRepoUpgradeOnBoot() == null)
return false;
if (other.getRepoUpgradeOnBoot() != null && other.getRepoUpgradeOnBoot().equals(this.getRepoUpgradeOnBoot()) == false)
return false;
if (other.getKerberosAttributes() == null ^ this.getKerberosAttributes() == null)
return false;
if (other.getKerberosAttributes() != null && other.getKerberosAttributes().equals(this.getKerberosAttributes()) == false)
return false;
if (other.getStepConcurrencyLevel() == null ^ this.getStepConcurrencyLevel() == null)
return false;
if (other.getStepConcurrencyLevel() != null && other.getStepConcurrencyLevel().equals(this.getStepConcurrencyLevel()) == false)
return false;
if (other.getManagedScalingPolicy() == null ^ this.getManagedScalingPolicy() == null)
return false;
if (other.getManagedScalingPolicy() != null && other.getManagedScalingPolicy().equals(this.getManagedScalingPolicy()) == false)
return false;
if (other.getPlacementGroupConfigs() == null ^ this.getPlacementGroupConfigs() == null)
return false;
if (other.getPlacementGroupConfigs() != null && other.getPlacementGroupConfigs().equals(this.getPlacementGroupConfigs()) == false)
return false;
if (other.getAutoTerminationPolicy() == null ^ this.getAutoTerminationPolicy() == null)
return false;
if (other.getAutoTerminationPolicy() != null && other.getAutoTerminationPolicy().equals(this.getAutoTerminationPolicy()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getLogUri() == null) ? 0 : getLogUri().hashCode());
hashCode = prime * hashCode + ((getLogEncryptionKmsKeyId() == null) ? 0 : getLogEncryptionKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getAdditionalInfo() == null) ? 0 : getAdditionalInfo().hashCode());
hashCode = prime * hashCode + ((getAmiVersion() == null) ? 0 : getAmiVersion().hashCode());
hashCode = prime * hashCode + ((getReleaseLabel() == null) ? 0 : getReleaseLabel().hashCode());
hashCode = prime * hashCode + ((getInstances() == null) ? 0 : getInstances().hashCode());
hashCode = prime * hashCode + ((getSteps() == null) ? 0 : getSteps().hashCode());
hashCode = prime * hashCode + ((getBootstrapActions() == null) ? 0 : getBootstrapActions().hashCode());
hashCode = prime * hashCode + ((getSupportedProducts() == null) ? 0 : getSupportedProducts().hashCode());
hashCode = prime * hashCode + ((getNewSupportedProducts() == null) ? 0 : getNewSupportedProducts().hashCode());
hashCode = prime * hashCode + ((getApplications() == null) ? 0 : getApplications().hashCode());
hashCode = prime * hashCode + ((getConfigurations() == null) ? 0 : getConfigurations().hashCode());
hashCode = prime * hashCode + ((getVisibleToAllUsers() == null) ? 0 : getVisibleToAllUsers().hashCode());
hashCode = prime * hashCode + ((getJobFlowRole() == null) ? 0 : getJobFlowRole().hashCode());
hashCode = prime * hashCode + ((getServiceRole() == null) ? 0 : getServiceRole().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getSecurityConfiguration() == null) ? 0 : getSecurityConfiguration().hashCode());
hashCode = prime * hashCode + ((getAutoScalingRole() == null) ? 0 : getAutoScalingRole().hashCode());
hashCode = prime * hashCode + ((getScaleDownBehavior() == null) ? 0 : getScaleDownBehavior().hashCode());
hashCode = prime * hashCode + ((getCustomAmiId() == null) ? 0 : getCustomAmiId().hashCode());
hashCode = prime * hashCode + ((getEbsRootVolumeSize() == null) ? 0 : getEbsRootVolumeSize().hashCode());
hashCode = prime * hashCode + ((getRepoUpgradeOnBoot() == null) ? 0 : getRepoUpgradeOnBoot().hashCode());
hashCode = prime * hashCode + ((getKerberosAttributes() == null) ? 0 : getKerberosAttributes().hashCode());
hashCode = prime * hashCode + ((getStepConcurrencyLevel() == null) ? 0 : getStepConcurrencyLevel().hashCode());
hashCode = prime * hashCode + ((getManagedScalingPolicy() == null) ? 0 : getManagedScalingPolicy().hashCode());
hashCode = prime * hashCode + ((getPlacementGroupConfigs() == null) ? 0 : getPlacementGroupConfigs().hashCode());
hashCode = prime * hashCode + ((getAutoTerminationPolicy() == null) ? 0 : getAutoTerminationPolicy().hashCode());
return hashCode;
}
@Override
public RunJobFlowRequest clone() {
return (RunJobFlowRequest) super.clone();
}
}