Class RunJobFlowRequest

    • Constructor Detail

      • RunJobFlowRequest

        public RunJobFlowRequest()
        Default constructor for RunJobFlowRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
      • RunJobFlowRequest

        public RunJobFlowRequest​(String name,
                                 JobFlowInstancesConfig instances)
        Constructs a new RunJobFlowRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        name - The name of the job flow.
        instances - A specification of the number and type of Amazon EC2 instances on which to run the job flow.
    • Method Detail

      • setName

        public void setName​(String name)

        The name of the job flow.

        Parameters:
        name - The name of the job flow.
      • getName

        public String getName()

        The name of the job flow.

        Returns:
        The name of the job flow.
      • withName

        public RunJobFlowRequest withName​(String name)

        The name of the job flow.

        Parameters:
        name - The name of the job flow.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLogUri

        public void setLogUri​(String 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.

        Parameters:
        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.
      • getLogUri

        public String getLogUri()

        The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.

        Returns:
        The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
      • withLogUri

        public RunJobFlowRequest withLogUri​(String 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAdditionalInfo

        public void setAdditionalInfo​(String additionalInfo)

        A JSON string for selecting additional features.

        Parameters:
        additionalInfo - A JSON string for selecting additional features.
      • getAdditionalInfo

        public String getAdditionalInfo()

        A JSON string for selecting additional features.

        Returns:
        A JSON string for selecting additional features.
      • withAdditionalInfo

        public RunJobFlowRequest withAdditionalInfo​(String additionalInfo)

        A JSON string for selecting additional features.

        Parameters:
        additionalInfo - A JSON string for selecting additional features.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAmiVersion

        public void setAmiVersion​(String amiVersion)

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.

        The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:

        • The version number of the AMI to use, for example, "2.0."

        If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig HadoopVersion parameter to modify the version of Hadoop from the defaults shown above.

        For details about the AMI versions currently supported by Amazon Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.

        Parameters:
        amiVersion - For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.

        The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:

        • The version number of the AMI to use, for example, "2.0."

        If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig HadoopVersion parameter to modify the version of Hadoop from the defaults shown above.

        For details about the AMI versions currently supported by Amazon Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.

      • getAmiVersion

        public String getAmiVersion()

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.

        The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:

        • The version number of the AMI to use, for example, "2.0."

        If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig HadoopVersion parameter to modify the version of Hadoop from the defaults shown above.

        For details about the AMI versions currently supported by Amazon Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.

        Returns:
        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.

        The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:

        • The version number of the AMI to use, for example, "2.0."

        If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig HadoopVersion parameter to modify the version of Hadoop from the defaults shown above.

        For details about the AMI versions currently supported by Amazon Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.

      • withAmiVersion

        public RunJobFlowRequest withAmiVersion​(String amiVersion)

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.

        The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:

        • The version number of the AMI to use, for example, "2.0."

        If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig HadoopVersion parameter to modify the version of Hadoop from the defaults shown above.

        For details about the AMI versions currently supported by Amazon Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.

        Parameters:
        amiVersion - For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use ReleaseLabel.

        The version of the Amazon Machine Image (AMI) to use when launching Amazon EC2 instances in the job flow. The following values are valid:

        • The version number of the AMI to use, for example, "2.0."

        If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfig HadoopVersion parameter to modify the version of Hadoop from the defaults shown above.

        For details about the AMI versions currently supported by Amazon Elastic MapReduce, go to AMI Versions Supported in Elastic MapReduce in the Amazon Elastic MapReduce Developer's Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setReleaseLabel

        public void setReleaseLabel​(String releaseLabel)

        Amazon EMR releases 4.x or later.

        The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.

        Parameters:
        releaseLabel - Amazon EMR releases 4.x or later.

      • getReleaseLabel

        public String getReleaseLabel()

        Amazon EMR releases 4.x or later.

        The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.

        Returns:
        Amazon EMR releases 4.x or later.

      • withReleaseLabel

        public RunJobFlowRequest withReleaseLabel​(String releaseLabel)

        Amazon EMR releases 4.x or later.

        The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.

        Parameters:
        releaseLabel - Amazon EMR releases 4.x or later.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstances

        public void setInstances​(JobFlowInstancesConfig instances)

        A specification of the number and type of Amazon EC2 instances on which to run the job flow.

        Parameters:
        instances - A specification of the number and type of Amazon EC2 instances on which to run the job flow.
      • getInstances

        public JobFlowInstancesConfig getInstances()

        A specification of the number and type of Amazon EC2 instances on which to run the job flow.

        Returns:
        A specification of the number and type of Amazon EC2 instances on which to run the job flow.
      • withInstances

        public RunJobFlowRequest withInstances​(JobFlowInstancesConfig instances)

        A specification of the number and type of Amazon EC2 instances on which to run the job flow.

        Parameters:
        instances - A specification of the number and type of Amazon EC2 instances on which to run the job flow.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getSteps

        public List<StepConfig> getSteps()

        A list of steps to be executed by the job flow.

        Returns:
        A list of steps to be executed by the job flow.
      • setSteps

        public void setSteps​(Collection<StepConfig> steps)

        A list of steps to be executed by the job flow.

        Parameters:
        steps - A list of steps to be executed by the job flow.
      • withSteps

        public RunJobFlowRequest withSteps​(StepConfig... steps)

        A list of steps to be executed by the job flow.

        NOTE: This method appends the values to the existing list (if any). Use setSteps(java.util.Collection) or withSteps(java.util.Collection) if you want to override the existing values.

        Parameters:
        steps - A list of steps to be executed by the job flow.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withSteps

        public RunJobFlowRequest withSteps​(Collection<StepConfig> steps)

        A list of steps to be executed by the job flow.

        Parameters:
        steps - A list of steps to be executed by the job flow.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getBootstrapActions

        public List<BootstrapActionConfig> getBootstrapActions()

        A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.

        Returns:
        A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.
      • setBootstrapActions

        public void setBootstrapActions​(Collection<BootstrapActionConfig> bootstrapActions)

        A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.

        Parameters:
        bootstrapActions - A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.
      • withBootstrapActions

        public RunJobFlowRequest withBootstrapActions​(BootstrapActionConfig... bootstrapActions)

        A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.

        NOTE: This method appends the values to the existing list (if any). Use setBootstrapActions(java.util.Collection) or withBootstrapActions(java.util.Collection) if you want to override the existing values.

        Parameters:
        bootstrapActions - A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withBootstrapActions

        public RunJobFlowRequest withBootstrapActions​(Collection<BootstrapActionConfig> bootstrapActions)

        A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.

        Parameters:
        bootstrapActions - A list of bootstrap actions that will be run before Hadoop is started on the cluster nodes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getSupportedProducts

        public List<String> getSupportedProducts()

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:

        • "mapr-m3" - launch the job flow using MapR M3 Edition.
        • "mapr-m5" - launch the job flow using MapR M5 Edition.
        Returns:
        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:

        • "mapr-m3" - launch the job flow using MapR M3 Edition.
        • "mapr-m5" - launch the job flow using MapR M5 Edition.
      • setSupportedProducts

        public void setSupportedProducts​(Collection<String> supportedProducts)

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:

        • "mapr-m3" - launch the job flow using MapR M3 Edition.
        • "mapr-m5" - launch the job flow using MapR M5 Edition.
        Parameters:
        supportedProducts - For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:

        • "mapr-m3" - launch the job flow using MapR M3 Edition.
        • "mapr-m5" - launch the job flow using MapR M5 Edition.
      • withSupportedProducts

        public RunJobFlowRequest withSupportedProducts​(String... supportedProducts)

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:

        • "mapr-m3" - launch the job flow using MapR M3 Edition.
        • "mapr-m5" - launch the job flow using MapR M5 Edition.

        NOTE: This method appends the values to the existing list (if any). Use setSupportedProducts(java.util.Collection) or withSupportedProducts(java.util.Collection) if you want to override the existing values.

        Parameters:
        supportedProducts - For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:

        • "mapr-m3" - launch the job flow using MapR M3 Edition.
        • "mapr-m5" - launch the job flow using MapR M5 Edition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withSupportedProducts

        public RunJobFlowRequest withSupportedProducts​(Collection<String> supportedProducts)

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:

        • "mapr-m3" - launch the job flow using MapR M3 Edition.
        • "mapr-m5" - launch the job flow using MapR M5 Edition.
        Parameters:
        supportedProducts - For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow. For more information, go to Use Third Party Applications with Amazon EMR. Currently supported values are:

        • "mapr-m3" - launch the job flow using MapR M3 Edition.
        • "mapr-m5" - launch the job flow using MapR M5 Edition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getNewSupportedProducts

        public List<SupportedProductConfig> getNewSupportedProducts()

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

        • "mapr-m3" - launch the cluster using MapR M3 Edition.
        • "mapr-m5" - launch the cluster using MapR M5 Edition.
        • "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
        • "mapr-m7" - launch the cluster using MapR M7 Edition.
        • "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
        • "hue"- launch the cluster with Hue installed.
        • "spark" - launch the cluster with Apache Spark installed.
        • "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
        Returns:
        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

        • "mapr-m3" - launch the cluster using MapR M3 Edition.
        • "mapr-m5" - launch the cluster using MapR M5 Edition.
        • "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
        • "mapr-m7" - launch the cluster using MapR M7 Edition.
        • "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
        • "hue"- launch the cluster with Hue installed.
        • "spark" - launch the cluster with Apache Spark installed.
        • "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
      • setNewSupportedProducts

        public void setNewSupportedProducts​(Collection<SupportedProductConfig> newSupportedProducts)

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

        • "mapr-m3" - launch the cluster using MapR M3 Edition.
        • "mapr-m5" - launch the cluster using MapR M5 Edition.
        • "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
        • "mapr-m7" - launch the cluster using MapR M7 Edition.
        • "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
        • "hue"- launch the cluster with Hue installed.
        • "spark" - launch the cluster with Apache Spark installed.
        • "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
        Parameters:
        newSupportedProducts - For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

        • "mapr-m3" - launch the cluster using MapR M3 Edition.
        • "mapr-m5" - launch the cluster using MapR M5 Edition.
        • "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
        • "mapr-m7" - launch the cluster using MapR M7 Edition.
        • "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
        • "hue"- launch the cluster with Hue installed.
        • "spark" - launch the cluster with Apache Spark installed.
        • "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
      • withNewSupportedProducts

        public RunJobFlowRequest withNewSupportedProducts​(SupportedProductConfig... newSupportedProducts)

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

        • "mapr-m3" - launch the cluster using MapR M3 Edition.
        • "mapr-m5" - launch the cluster using MapR M5 Edition.
        • "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
        • "mapr-m7" - launch the cluster using MapR M7 Edition.
        • "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
        • "hue"- launch the cluster with Hue installed.
        • "spark" - launch the cluster with Apache Spark installed.
        • "ganglia" - launch the cluster with the Ganglia Monitoring System installed.

        NOTE: This method appends the values to the existing list (if any). Use setNewSupportedProducts(java.util.Collection) or withNewSupportedProducts(java.util.Collection) if you want to override the existing values.

        Parameters:
        newSupportedProducts - For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

        • "mapr-m3" - launch the cluster using MapR M3 Edition.
        • "mapr-m5" - launch the cluster using MapR M5 Edition.
        • "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
        • "mapr-m7" - launch the cluster using MapR M7 Edition.
        • "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
        • "hue"- launch the cluster with Hue installed.
        • "spark" - launch the cluster with Apache Spark installed.
        • "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withNewSupportedProducts

        public RunJobFlowRequest withNewSupportedProducts​(Collection<SupportedProductConfig> newSupportedProducts)

        For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

        • "mapr-m3" - launch the cluster using MapR M3 Edition.
        • "mapr-m5" - launch the cluster using MapR M5 Edition.
        • "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
        • "mapr-m7" - launch the cluster using MapR M7 Edition.
        • "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
        • "hue"- launch the cluster with Hue installed.
        • "spark" - launch the cluster with Apache Spark installed.
        • "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
        Parameters:
        newSupportedProducts - For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater, use Applications.

        A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:

        • "mapr-m3" - launch the cluster using MapR M3 Edition.
        • "mapr-m5" - launch the cluster using MapR M5 Edition.
        • "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
        • "mapr-m7" - launch the cluster using MapR M7 Edition.
        • "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
        • "hue"- launch the cluster with Hue installed.
        • "spark" - launch the cluster with Apache Spark installed.
        • "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getApplications

        public List<Application> getApplications()

        Amazon EMR releases 4.x or later.

        A list of applications for the cluster. Valid values are: "Hadoop", "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.

        Returns:
        Amazon EMR releases 4.x or later.

      • setApplications

        public void setApplications​(Collection<Application> applications)

        Amazon EMR releases 4.x or later.

        A list of applications for the cluster. Valid values are: "Hadoop", "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.

        Parameters:
        applications - Amazon EMR releases 4.x or later.

      • withApplications

        public RunJobFlowRequest withApplications​(Application... applications)

        Amazon EMR releases 4.x or later.

        A list of applications for the cluster. Valid values are: "Hadoop", "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.

        NOTE: This method appends the values to the existing list (if any). Use setApplications(java.util.Collection) or withApplications(java.util.Collection) if you want to override the existing values.

        Parameters:
        applications - Amazon EMR releases 4.x or later.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withApplications

        public RunJobFlowRequest withApplications​(Collection<Application> applications)

        Amazon EMR releases 4.x or later.

        A list of applications for the cluster. Valid values are: "Hadoop", "Hive", "Mahout", "Pig", and "Spark." They are case insensitive.

        Parameters:
        applications - Amazon EMR releases 4.x or later.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getConfigurations

        public List<Configuration> getConfigurations()

        Amazon EMR releases 4.x or later.

        The list of configurations supplied for the EMR cluster you are creating.

        Returns:
        Amazon EMR releases 4.x or later.

      • setConfigurations

        public void setConfigurations​(Collection<Configuration> configurations)

        Amazon EMR releases 4.x or later.

        The list of configurations supplied for the EMR cluster you are creating.

        Parameters:
        configurations - Amazon EMR releases 4.x or later.

      • withConfigurations

        public RunJobFlowRequest withConfigurations​(Configuration... configurations)

        Amazon EMR releases 4.x or later.

        The list of configurations supplied for the EMR cluster you are creating.

        NOTE: This method appends the values to the existing list (if any). Use setConfigurations(java.util.Collection) or withConfigurations(java.util.Collection) if you want to override the existing values.

        Parameters:
        configurations - Amazon EMR releases 4.x or later.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withConfigurations

        public RunJobFlowRequest withConfigurations​(Collection<Configuration> configurations)

        Amazon EMR releases 4.x or later.

        The list of configurations supplied for the EMR cluster you are creating.

        Parameters:
        configurations - Amazon EMR releases 4.x or later.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setVisibleToAllUsers

        public void setVisibleToAllUsers​(Boolean visibleToAllUsers)

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

        Parameters:
        visibleToAllUsers - Whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set to true, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set to false, only the IAM user that created the job flow can view and manage it.
      • getVisibleToAllUsers

        public Boolean getVisibleToAllUsers()

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

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

        public RunJobFlowRequest withVisibleToAllUsers​(Boolean visibleToAllUsers)

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

        Parameters:
        visibleToAllUsers - Whether the job flow is visible to all IAM users of the AWS account associated with the job flow. If this value is set to true, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the job flow. If it is set to false, only the IAM user that created the job flow can view and manage it.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isVisibleToAllUsers

        public Boolean isVisibleToAllUsers()

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

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

        public void setJobFlowRole​(String 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.

        Parameters:
        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.
      • getJobFlowRole

        public String getJobFlowRole()

        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.

        Returns:
        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.
      • withJobFlowRole

        public RunJobFlowRequest withJobFlowRole​(String 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setServiceRole

        public void setServiceRole​(String serviceRole)

        The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.

        Parameters:
        serviceRole - The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
      • getServiceRole

        public String getServiceRole()

        The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.

        Returns:
        The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
      • withServiceRole

        public RunJobFlowRequest withServiceRole​(String serviceRole)

        The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.

        Parameters:
        serviceRole - The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTags

        public List<Tag> getTags()

        A list of tags to associate with a cluster and propagate to Amazon EC2 instances.

        Returns:
        A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
      • setTags

        public void setTags​(Collection<Tag> tags)

        A list of tags to associate with a cluster and propagate to Amazon EC2 instances.

        Parameters:
        tags - A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
      • withTags

        public RunJobFlowRequest withTags​(Tag... 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 setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

        Parameters:
        tags - A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withTags

        public RunJobFlowRequest withTags​(Collection<Tag> tags)

        A list of tags to associate with a cluster and propagate to Amazon EC2 instances.

        Parameters:
        tags - A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object