
com.amazonaws.services.elasticmapreduce.model.RunJobFlowRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-emr Show documentation
/*
* Copyright 2010-2016 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 com.amazonaws.AmazonWebServiceRequest;
/**
*
* Input to the RunJobFlow operation.
*
*/
public class RunJobFlowRequest extends 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;
/**
*
* A JSON string for selecting additional features.
*
*/
private String additionalInfo;
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and
* greater, use ReleaseLabel.
*
*
*
* The version of the Amazon Machine Image (AMI) to use when launching
* Amazon EC2 instances in the job flow. The following values are valid:
*
*
* - The version number of the AMI to use, for example, "2.0."
*
*
* If the AMI supports multiple versions of Hadoop (for example, AMI 1.0
* supports both Hadoop 0.18 and 0.20) you can use the
* JobFlowInstancesConfig HadoopVersion
parameter to
* modify the version of Hadoop from the defaults shown above.
*
*
* For details about the AMI versions currently supported by Amazon Elastic
* MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic
* MapReduce Developer's Guide.
*
*/
private String amiVersion;
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x
* AMIs, use amiVersion instead instead of ReleaseLabel.
*
*/
private String releaseLabel;
/**
*
* A specification of the number and type of Amazon EC2 instances on which
* to run the job flow.
*
*/
private JobFlowInstancesConfig instances;
/**
*
* A list of steps to be executed by the job flow.
*
*/
private com.amazonaws.internal.SdkInternalList steps;
/**
*
* A list of bootstrap actions that will be run before Hadoop is started 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
* greater, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job
* flow. For more information, go to Use Third Party Applications with Amazon EMR. 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
* greater, 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. Currently
* 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 Analtics 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;
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* A list of applications for the cluster. Valid values are: "Hadoop",
* "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.
*
*/
private com.amazonaws.internal.SdkInternalList applications;
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* The list of configurations supplied for the EMR cluster you are creating.
*
*/
private com.amazonaws.internal.SdkInternalList configurations;
/**
*
* Whether the job flow is visible to all IAM users of the AWS account
* associated with the job flow. If this value is set to true
,
* all IAM users of that AWS account can view and (if they have the proper
* policy permissions set) manage the job flow. If it is set to
* false
, only the IAM user that created the job flow can view
* and manage it.
*
*/
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 will be assumed by the Amazon EMR service to access AWS
* 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;
/**
* 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 on
* which to run the job flow.
*/
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;
}
/**
*
* 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;
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and
* greater, use ReleaseLabel.
*
*
*
* The version of the Amazon Machine Image (AMI) to use when launching
* Amazon EC2 instances in the job flow. The following values are valid:
*
*
* - The version number of the AMI to use, for example, "2.0."
*
*
* If the AMI supports multiple versions of Hadoop (for example, AMI 1.0
* supports both Hadoop 0.18 and 0.20) you can use the
* JobFlowInstancesConfig HadoopVersion
parameter to
* modify the version of Hadoop from the defaults shown above.
*
*
* For details about the AMI versions currently supported by Amazon Elastic
* MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic
* MapReduce Developer's Guide.
*
*
* @param amiVersion
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x
* and greater, use ReleaseLabel.
*
* The version of the Amazon Machine Image (AMI) to use when
* launching Amazon EC2 instances in the job flow. The following
* values are valid:
*
*
* - The version number of the AMI to use, for example, "2.0."
*
*
* If the AMI supports multiple versions of Hadoop (for example, AMI
* 1.0 supports both Hadoop 0.18 and 0.20) you can use the
* JobFlowInstancesConfig HadoopVersion
parameter
* to modify the version of Hadoop from the defaults shown above.
*
*
* For details about the AMI versions currently supported by Amazon
* Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon
* Elastic MapReduce Developer's Guide.
*/
public void setAmiVersion(String amiVersion) {
this.amiVersion = amiVersion;
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and
* greater, use ReleaseLabel.
*
*
*
* The version of the Amazon Machine Image (AMI) to use when launching
* Amazon EC2 instances in the job flow. The following values are valid:
*
*
* - The version number of the AMI to use, for example, "2.0."
*
*
* If the AMI supports multiple versions of Hadoop (for example, AMI 1.0
* supports both Hadoop 0.18 and 0.20) you can use the
* JobFlowInstancesConfig HadoopVersion
parameter to
* modify the version of Hadoop from the defaults shown above.
*
*
* For details about the AMI versions currently supported by Amazon Elastic
* MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic
* MapReduce Developer's Guide.
*
*
* @return For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x
* and greater, use ReleaseLabel.
*
* The version of the Amazon Machine Image (AMI) to use when
* launching Amazon EC2 instances in the job flow. The following
* values are valid:
*
*
* - The version number of the AMI to use, for example, "2.0."
*
*
* If the AMI supports multiple versions of Hadoop (for example, AMI
* 1.0 supports both Hadoop 0.18 and 0.20) you can use the
* JobFlowInstancesConfig HadoopVersion
* parameter to modify the version of Hadoop from the defaults shown
* above.
*
*
* For details about the AMI versions currently supported by Amazon
* Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon
* Elastic MapReduce Developer's Guide.
*/
public String getAmiVersion() {
return this.amiVersion;
}
/**
*
*
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and
* greater, use ReleaseLabel.
*
*
*
* The version of the Amazon Machine Image (AMI) to use when launching
* Amazon EC2 instances in the job flow. The following values are valid:
*
*
* - The version number of the AMI to use, for example, "2.0."
*
*
* If the AMI supports multiple versions of Hadoop (for example, AMI 1.0
* supports both Hadoop 0.18 and 0.20) you can use the
* JobFlowInstancesConfig HadoopVersion
parameter to
* modify the version of Hadoop from the defaults shown above.
*
*
* For details about the AMI versions currently supported by Amazon Elastic
* MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic
* MapReduce Developer's Guide.
*
*
* @param amiVersion
* For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x
* and greater, use ReleaseLabel.
*
* The version of the Amazon Machine Image (AMI) to use when
* launching Amazon EC2 instances in the job flow. The following
* values are valid:
*
*
* - The version number of the AMI to use, for example, "2.0."
*
*
* If the AMI supports multiple versions of Hadoop (for example, AMI
* 1.0 supports both Hadoop 0.18 and 0.20) you can use the
* JobFlowInstancesConfig HadoopVersion
parameter
* to modify the version of Hadoop from the defaults shown above.
*
*
* For details about the AMI versions currently supported by Amazon
* Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon
* Elastic MapReduce Developer's Guide.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public RunJobFlowRequest withAmiVersion(String amiVersion) {
setAmiVersion(amiVersion);
return this;
}
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x
* AMIs, use amiVersion instead instead of ReleaseLabel.
*
*
* @param releaseLabel
* Amazon EMR releases 4.x or later.
*/
public void setReleaseLabel(String releaseLabel) {
this.releaseLabel = releaseLabel;
}
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x
* AMIs, use amiVersion instead instead of ReleaseLabel.
*
*
* @return Amazon EMR releases 4.x or later.
*/
public String getReleaseLabel() {
return this.releaseLabel;
}
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x
* AMIs, use amiVersion instead instead of ReleaseLabel.
*
*
* @param releaseLabel
* Amazon EMR releases 4.x or later.
* @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 on which
* to run the job flow.
*
*
* @param instances
* A specification of the number and type of Amazon EC2 instances on
* which to run the job flow.
*/
public void setInstances(JobFlowInstancesConfig instances) {
this.instances = instances;
}
/**
*
* A specification of the number and type of Amazon EC2 instances on which
* to run the job flow.
*
*
* @return A specification of the number and type of Amazon EC2 instances on
* which to run the job flow.
*/
public JobFlowInstancesConfig getInstances() {
return this.instances;
}
/**
*
* A specification of the number and type of Amazon EC2 instances on which
* to run the job flow.
*
*
* @param instances
* A specification of the number and type of Amazon EC2 instances on
* which to run the job flow.
* @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 be executed by the job flow.
*
*
* @return A list of steps to be executed by the job flow.
*/
public java.util.List getSteps() {
if (steps == null) {
steps = new com.amazonaws.internal.SdkInternalList();
}
return steps;
}
/**
*
* A list of steps to be executed by the job flow.
*
*
* @param steps
* A list of steps to be executed by the job flow.
*/
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 be executed by the job flow.
*
*
* 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 be executed by the job flow.
* @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 be executed by the job flow.
*
*
* @param steps
* A list of steps to be executed by the job flow.
* @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 that will be run before Hadoop is started on
* the cluster nodes.
*
*
* @return A list of bootstrap actions that will be run before Hadoop is
* started 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 that will be run before Hadoop is started on
* the cluster nodes.
*
*
* @param bootstrapActions
* A list of bootstrap actions that will be run before Hadoop is
* started 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 that will be run before Hadoop is started 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 that will be run before Hadoop is
* started 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 that will be run before Hadoop is started on
* the cluster nodes.
*
*
* @param bootstrapActions
* A list of bootstrap actions that will be run before Hadoop is
* started 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
* greater, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job
* flow. For more information, go to Use Third Party Applications with Amazon EMR. 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 greater, use Applications.
*
* A list of strings that indicates third-party software to use with
* the job flow. For more information, go to Use Third Party Applications with Amazon EMR. 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
* greater, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job
* flow. For more information, go to Use Third Party Applications with Amazon EMR. 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 greater, use Applications.
*
* A list of strings that indicates third-party software to use with
* the job flow. For more information, go to Use Third Party Applications with Amazon EMR. 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
* greater, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job
* flow. For more information, go to Use Third Party Applications with Amazon EMR. 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 greater, use Applications.
*
* A list of strings that indicates third-party software to use with
* the job flow. For more information, go to Use Third Party Applications with Amazon EMR. 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
* greater, use Applications.
*
*
*
* A list of strings that indicates third-party software to use with the job
* flow. For more information, go to Use Third Party Applications with Amazon EMR. 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 greater, use Applications.
*
* A list of strings that indicates third-party software to use with
* the job flow. For more information, go to Use Third Party Applications with Amazon EMR. 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
* greater, 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. Currently
* 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 Analtics 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 greater, 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.
* Currently 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 Analtics
* 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
* greater, 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. Currently
* 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 Analtics 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 greater, 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.
* Currently 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 Analtics
* 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
* greater, 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. Currently
* 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 Analtics 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 greater, 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.
* Currently 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 Analtics
* 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
* greater, 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. Currently
* 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 Analtics 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 greater, 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.
* Currently 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 Analtics
* 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;
}
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* A list of applications for the cluster. Valid values are: "Hadoop",
* "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.
*
*
* @return Amazon EMR releases 4.x or later.
*/
public java.util.List getApplications() {
if (applications == null) {
applications = new com.amazonaws.internal.SdkInternalList();
}
return applications;
}
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* A list of applications for the cluster. Valid values are: "Hadoop",
* "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.
*
*
* @param applications
* Amazon EMR releases 4.x or later.
*/
public void setApplications(java.util.Collection applications) {
if (applications == null) {
this.applications = null;
return;
}
this.applications = new com.amazonaws.internal.SdkInternalList(
applications);
}
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* A list of applications for the cluster. Valid values are: "Hadoop",
* "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.
*
*
* 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
* Amazon EMR releases 4.x or later.
* @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;
}
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* A list of applications for the cluster. Valid values are: "Hadoop",
* "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.
*
*
* @param applications
* Amazon EMR releases 4.x or later.
* @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;
}
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* The list of configurations supplied for the EMR cluster you are creating.
*
*
* @return Amazon EMR releases 4.x or later.
*/
public java.util.List getConfigurations() {
if (configurations == null) {
configurations = new com.amazonaws.internal.SdkInternalList();
}
return configurations;
}
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* The list of configurations supplied for the EMR cluster you are creating.
*
*
* @param configurations
* Amazon EMR releases 4.x or later.
*/
public void setConfigurations(
java.util.Collection configurations) {
if (configurations == null) {
this.configurations = null;
return;
}
this.configurations = new com.amazonaws.internal.SdkInternalList(
configurations);
}
/**
*
*
* Amazon EMR releases 4.x or 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
* Amazon EMR releases 4.x or later.
* @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;
}
/**
*
*
* Amazon EMR releases 4.x or later.
*
*
*
* The list of configurations supplied for the EMR cluster you are creating.
*
*
* @param configurations
* Amazon EMR releases 4.x or later.
* @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;
}
/**
*
* Whether the job flow is visible to all IAM users of the AWS account
* associated with the job flow. If this value is set to true
,
* all IAM users of that AWS account can view and (if they have the proper
* policy permissions set) manage the job flow. If it is set to
* false
, only the IAM user that created the job flow can view
* and manage it.
*
*
* @param visibleToAllUsers
* Whether the job flow is visible to all IAM users of the AWS
* account associated with the job flow. If this value is set to
* true
, all IAM users of that AWS account can view and
* (if they have the proper policy permissions set) manage the job
* flow. If it is set to false
, only the IAM user that
* created the job flow can view and manage it.
*/
public void setVisibleToAllUsers(Boolean visibleToAllUsers) {
this.visibleToAllUsers = visibleToAllUsers;
}
/**
*
* Whether the job flow is visible to all IAM users of the AWS account
* associated with the job flow. If this value is set to true
,
* all IAM users of that AWS account can view and (if they have the proper
* policy permissions set) manage the job flow. If it is set to
* false
, only the IAM user that created the job flow can view
* and manage it.
*
*
* @return Whether the job flow is visible to all IAM users of the AWS
* account associated with the job flow. If this value is set to
* true
, all IAM users of that AWS account can view and
* (if they have the proper policy permissions set) manage the job
* flow. If it is set to false
, only the IAM user that
* created the job flow can view and manage it.
*/
public Boolean getVisibleToAllUsers() {
return this.visibleToAllUsers;
}
/**
*
* Whether the job flow is visible to all IAM users of the AWS account
* associated with the job flow. If this value is set to true
,
* all IAM users of that AWS account can view and (if they have the proper
* policy permissions set) manage the job flow. If it is set to
* false
, only the IAM user that created the job flow can view
* and manage it.
*
*
* @param visibleToAllUsers
* Whether the job flow is visible to all IAM users of the AWS
* account associated with the job flow. If this value is set to
* true
, all IAM users of that AWS account can view and
* (if they have the proper policy permissions set) manage the job
* flow. If it is set to false
, only the IAM user that
* created the job flow can view and manage it.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public RunJobFlowRequest withVisibleToAllUsers(Boolean visibleToAllUsers) {
setVisibleToAllUsers(visibleToAllUsers);
return this;
}
/**
*
* Whether the job flow is visible to all IAM users of the AWS account
* associated with the job flow. If this value is set to true
,
* all IAM users of that AWS account can view and (if they have the proper
* policy permissions set) manage the job flow. If it is set to
* false
, only the IAM user that created the job flow can view
* and manage it.
*
*
* @return Whether the job flow is visible to all IAM users of the AWS
* account associated with the job flow. If this value is set to
* true
, all IAM users of that AWS account can view and
* (if they have the proper policy permissions set) manage the job
* flow. If it is set to false
, only the IAM user that
* created the job flow can view and manage it.
*/
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 will be assumed by the Amazon EMR service to access AWS
* resources on your behalf.
*
*
* @param serviceRole
* The IAM role that will be assumed by the Amazon EMR service to
* access AWS resources on your behalf.
*/
public void setServiceRole(String serviceRole) {
this.serviceRole = serviceRole;
}
/**
*
* The IAM role that will be assumed by the Amazon EMR service to access AWS
* resources on your behalf.
*
*
* @return The IAM role that will be assumed by the Amazon EMR service to
* access AWS resources on your behalf.
*/
public String getServiceRole() {
return this.serviceRole;
}
/**
*
* The IAM role that will be assumed by the Amazon EMR service to access AWS
* resources on your behalf.
*
*
* @param serviceRole
* The IAM role that will be assumed by the Amazon EMR service to
* access AWS 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;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @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: " + getName() + ",");
if (getLogUri() != null)
sb.append("LogUri: " + getLogUri() + ",");
if (getAdditionalInfo() != null)
sb.append("AdditionalInfo: " + getAdditionalInfo() + ",");
if (getAmiVersion() != null)
sb.append("AmiVersion: " + getAmiVersion() + ",");
if (getReleaseLabel() != null)
sb.append("ReleaseLabel: " + getReleaseLabel() + ",");
if (getInstances() != null)
sb.append("Instances: " + getInstances() + ",");
if (getSteps() != null)
sb.append("Steps: " + getSteps() + ",");
if (getBootstrapActions() != null)
sb.append("BootstrapActions: " + getBootstrapActions() + ",");
if (getSupportedProducts() != null)
sb.append("SupportedProducts: " + getSupportedProducts() + ",");
if (getNewSupportedProducts() != null)
sb.append("NewSupportedProducts: " + getNewSupportedProducts()
+ ",");
if (getApplications() != null)
sb.append("Applications: " + getApplications() + ",");
if (getConfigurations() != null)
sb.append("Configurations: " + getConfigurations() + ",");
if (getVisibleToAllUsers() != null)
sb.append("VisibleToAllUsers: " + getVisibleToAllUsers() + ",");
if (getJobFlowRole() != null)
sb.append("JobFlowRole: " + getJobFlowRole() + ",");
if (getServiceRole() != null)
sb.append("ServiceRole: " + getServiceRole() + ",");
if (getTags() != null)
sb.append("Tags: " + getTags());
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.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;
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
+ ((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());
return hashCode;
}
@Override
public RunJobFlowRequest clone() {
return (RunJobFlowRequest) super.clone();
}
}