All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.elasticmapreduce.model.RunJobFlowRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EMR module holds the client classes that are used for communicating with Amazon Elastic MapReduce Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2012-2017 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; /** *

* A JSON string for selecting additional features. *

*/ private String additionalInfo; /** *

* For Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, the Linux AMI is determined by * the ReleaseLabel specified or by CustomAmiID. The version of the Amazon Machine Image * (AMI) to use when launching Amazon EC2 instances in the job flow. For details about the AMI versions currently * supported in EMR version 3.x and 2.x, see AMI Versions Supported * in EMR in the Amazon EMR Developer Guide. *

*

* 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. *

* *

* Previously, the EMR AMI version API parameter options allowed you to use latest for the latest AMI version rather * than specify a numerical value. Some regions no longer support this deprecated option as they only have a newer * release label version of EMR, which requires you to specify an EMR release label release (EMR 4.x or later). *

*
*/ private String amiVersion; /** *

* The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use AmiVersion * instead. *

*/ 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 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 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 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; /** *

* For Amazon EMR releases 4.0 and 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; /** *

* 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; /** *

* Whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is * set to true, all IAM users of that AWS account can view and (if they have the proper policy * permissions set) manage the cluster. If it is set to false, only the IAM user that created the * cluster can view and manage it. *

*/ 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; /** *

* 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 blacklists and drains tasks from nodes before * terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR * removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. * TERMINATE_AT_TASK_COMPLETION available only in Amazon EMR version 4.1.0 and later, and is the * default for versions of Amazon EMR earlier than 5.1.0. *

*/ 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 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; /** * 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; } /** *

* 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 AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, the Linux AMI is determined by * the ReleaseLabel specified or by CustomAmiID. The version of the Amazon Machine Image * (AMI) to use when launching Amazon EC2 instances in the job flow. For details about the AMI versions currently * supported in EMR version 3.x and 2.x, see AMI Versions Supported * in EMR in the Amazon EMR Developer Guide. *

*

* 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. *

* *

* Previously, the EMR AMI version API parameter options allowed you to use latest for the latest AMI version rather * than specify a numerical value. Some regions no longer support this deprecated option as they only have a newer * release label version of EMR, which requires you to specify an EMR release label release (EMR 4.x or later). *

*
* * @param amiVersion * For Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, the Linux AMI is * determined by the ReleaseLabel specified or by CustomAmiID. The version of the * Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. For details about * the AMI versions currently supported in EMR version 3.x and 2.x, see AMI Versions * Supported in EMR in the Amazon EMR Developer Guide.

*

* 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. *

* *

* Previously, the EMR AMI version API parameter options allowed you to use latest for the latest AMI version * rather than specify a numerical value. Some regions no longer support this deprecated option as they only * have a newer release label version of EMR, which requires you to specify an EMR release label release (EMR * 4.x or later). *

*/ public void setAmiVersion(String amiVersion) { this.amiVersion = amiVersion; } /** *

* For Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, the Linux AMI is determined by * the ReleaseLabel specified or by CustomAmiID. The version of the Amazon Machine Image * (AMI) to use when launching Amazon EC2 instances in the job flow. For details about the AMI versions currently * supported in EMR version 3.x and 2.x, see AMI Versions Supported * in EMR in the Amazon EMR Developer Guide. *

*

* 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. *

* *

* Previously, the EMR AMI version API parameter options allowed you to use latest for the latest AMI version rather * than specify a numerical value. Some regions no longer support this deprecated option as they only have a newer * release label version of EMR, which requires you to specify an EMR release label release (EMR 4.x or later). *

*
* * @return For Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, the Linux AMI is * determined by the ReleaseLabel specified or by CustomAmiID. The version of the * Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. For details about * the AMI versions currently supported in EMR version 3.x and 2.x, see AMI Versions * Supported in EMR in the Amazon EMR Developer Guide.

*

* 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. *

* *

* Previously, the EMR AMI version API parameter options allowed you to use latest for the latest AMI * version rather than specify a numerical value. Some regions no longer support this deprecated option as * they only have a newer release label version of EMR, which requires you to specify an EMR release label * release (EMR 4.x or later). *

*/ public String getAmiVersion() { return this.amiVersion; } /** *

* For Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, the Linux AMI is determined by * the ReleaseLabel specified or by CustomAmiID. The version of the Amazon Machine Image * (AMI) to use when launching Amazon EC2 instances in the job flow. For details about the AMI versions currently * supported in EMR version 3.x and 2.x, see AMI Versions Supported * in EMR in the Amazon EMR Developer Guide. *

*

* 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. *

* *

* Previously, the EMR AMI version API parameter options allowed you to use latest for the latest AMI version rather * than specify a numerical value. Some regions no longer support this deprecated option as they only have a newer * release label version of EMR, which requires you to specify an EMR release label release (EMR 4.x or later). *

*
* * @param amiVersion * For Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, the Linux AMI is * determined by the ReleaseLabel specified or by CustomAmiID. The version of the * Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. For details about * the AMI versions currently supported in EMR version 3.x and 2.x, see AMI Versions * Supported in EMR in the Amazon EMR Developer Guide.

*

* 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. *

* *

* Previously, the EMR AMI version API parameter options allowed you to use latest for the latest AMI version * rather than specify a numerical value. Some regions no longer support this deprecated option as they only * have a newer release label version of EMR, which requires you to specify an EMR release label release (EMR * 4.x or later). *

* @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 release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use AmiVersion * instead. *

* * @param releaseLabel * The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use AmiVersion * instead. */ public void setReleaseLabel(String releaseLabel) { this.releaseLabel = releaseLabel; } /** *

* The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use AmiVersion * instead. *

* * @return The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use * AmiVersion instead. */ public String getReleaseLabel() { return this.releaseLabel; } /** *

* The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use AmiVersion * instead. *

* * @param releaseLabel * The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use AmiVersion * instead. * @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 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 later, use Applications. *

*
*

* A list of strings that indicates third-party software to use. For more information, see 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 later, use Applications. *

    *
    *

    * A list of strings that indicates third-party software to use. For more information, see 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 later, use Applications. *

    * *

    * A list of strings that indicates third-party software to use. For more information, see 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 later, use Applications. *

      *
      *

      * A list of strings that indicates third-party software to use. For more information, see 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 later, use Applications. *

      * *

      * A list of strings that indicates third-party software to use. For more information, see 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 later, use Applications. *

        *
        *

        * A list of strings that indicates third-party software to use. For more information, see 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 later, use Applications. *

        * *

        * A list of strings that indicates third-party software to use. For more information, see 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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; } /** *

                  * For Amazon EMR releases 4.0 and later. A list of applications for the cluster. Valid values are: "Hadoop", * "Hive", "Mahout", "Pig", and "Spark." They are case insensitive. *

                  * * @return For Amazon EMR releases 4.0 and later. A list of applications for the cluster. Valid values are: * "Hadoop", "Hive", "Mahout", "Pig", and "Spark." They are case insensitive. */ public java.util.List getApplications() { if (applications == null) { applications = new com.amazonaws.internal.SdkInternalList(); } return applications; } /** *

                  * For Amazon EMR releases 4.0 and later. A list of applications for the cluster. Valid values are: "Hadoop", * "Hive", "Mahout", "Pig", and "Spark." They are case insensitive. *

                  * * @param applications * For Amazon EMR releases 4.0 and later. A list of applications for the cluster. Valid values are: "Hadoop", * "Hive", "Mahout", "Pig", and "Spark." They are case insensitive. */ public void setApplications(java.util.Collection applications) { if (applications == null) { this.applications = null; return; } this.applications = new com.amazonaws.internal.SdkInternalList(applications); } /** *

                  * For Amazon EMR releases 4.0 and 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 * For Amazon EMR releases 4.0 and later. A list of applications for the cluster. Valid values are: "Hadoop", * "Hive", "Mahout", "Pig", and "Spark." They are case insensitive. * @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; } /** *

                  * For Amazon EMR releases 4.0 and later. A list of applications for the cluster. Valid values are: "Hadoop", * "Hive", "Mahout", "Pig", and "Spark." They are case insensitive. *

                  * * @param applications * For Amazon EMR releases 4.0 and later. A list of applications for the cluster. Valid values are: "Hadoop", * "Hive", "Mahout", "Pig", and "Spark." They are case insensitive. * @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; } /** *

                  * Whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is * set to true, all IAM users of that AWS account can view and (if they have the proper policy * permissions set) manage the cluster. If it is set to false, only the IAM user that created the * cluster can view and manage it. *

                  * * @param visibleToAllUsers * Whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this * value is set to true, all IAM users of that AWS account can view and (if they have the proper * policy permissions set) manage the cluster. If it is set to false, only the IAM user that * created the cluster can view and manage it. */ public void setVisibleToAllUsers(Boolean visibleToAllUsers) { this.visibleToAllUsers = visibleToAllUsers; } /** *

                  * Whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is * set to true, all IAM users of that AWS account can view and (if they have the proper policy * permissions set) manage the cluster. If it is set to false, only the IAM user that created the * cluster can view and manage it. *

                  * * @return Whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this * value is set to true, all IAM users of that AWS account can view and (if they have the * proper policy permissions set) manage the cluster. If it is set to false, only the IAM user * that created the cluster can view and manage it. */ public Boolean getVisibleToAllUsers() { return this.visibleToAllUsers; } /** *

                  * Whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is * set to true, all IAM users of that AWS account can view and (if they have the proper policy * permissions set) manage the cluster. If it is set to false, only the IAM user that created the * cluster can view and manage it. *

                  * * @param visibleToAllUsers * Whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this * value is set to true, all IAM users of that AWS account can view and (if they have the proper * policy permissions set) manage the cluster. If it is set to false, only the IAM user that * created the cluster can view and manage it. * @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 cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is * set to true, all IAM users of that AWS account can view and (if they have the proper policy * permissions set) manage the cluster. If it is set to false, only the IAM user that created the * cluster can view and manage it. *

                  * * @return Whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this * value is set to true, all IAM users of that AWS account can view and (if they have the * proper policy permissions set) manage the cluster. If it is set to false, only the IAM user * that created the cluster can view and manage it. */ 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; } /** *

                  * 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 blacklists and drains tasks from nodes before * terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR * removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. * TERMINATE_AT_TASK_COMPLETION available only in Amazon EMR version 4.1.0 and later, and is the * default for versions of Amazon EMR earlier than 5.1.0. *

                  * * @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 * blacklists and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the * instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks * instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION * available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR * earlier than 5.1.0. * @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 blacklists and drains tasks from nodes before * terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR * removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. * TERMINATE_AT_TASK_COMPLETION available only in Amazon EMR version 4.1.0 and later, and is the * default for versions of Amazon EMR earlier than 5.1.0. *

                  * * @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 * blacklists and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the * instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks * instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION * available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR * earlier than 5.1.0. * @see ScaleDownBehavior */ @com.fasterxml.jackson.annotation.JsonProperty("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 blacklists and drains tasks from nodes before * terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR * removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. * TERMINATE_AT_TASK_COMPLETION available only in Amazon EMR version 4.1.0 and later, and is the * default for versions of Amazon EMR earlier than 5.1.0. *

                  * * @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 * blacklists and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the * instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks * instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION * available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR * earlier than 5.1.0. * @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 blacklists and drains tasks from nodes before * terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR * removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. * TERMINATE_AT_TASK_COMPLETION available only in Amazon EMR version 4.1.0 and later, and is the * default for versions of Amazon EMR earlier than 5.1.0. *

                  * * @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 * blacklists and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the * instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks * instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION * available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR * earlier than 5.1.0. * @see ScaleDownBehavior */ @com.fasterxml.jackson.annotation.JsonIgnore 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 blacklists and drains tasks from nodes before * terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR * removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. * TERMINATE_AT_TASK_COMPLETION available only in Amazon EMR version 4.1.0 and later, and is the * default for versions of Amazon EMR earlier than 5.1.0. *

                  * * @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 * blacklists and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the * instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks * instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION * available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR * earlier than 5.1.0. * @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 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 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 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 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 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 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 */ @com.fasterxml.jackson.annotation.JsonProperty("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 */ @com.fasterxml.jackson.annotation.JsonIgnore 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; } /** * 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: ").append(getName()).append(","); if (getLogUri() != null) sb.append("LogUri: ").append(getLogUri()).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()); 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; 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; 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()); 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()); return hashCode; } @Override public RunJobFlowRequest clone() { return (RunJobFlowRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy