/* * Copyright 2018-2023 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The detailed description of the cluster. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Cluster implements Serializable, Cloneable, StructuredPojo { /** ** The unique identifier for the cluster. *
*/ private String id; /** ** The name of the cluster. *
*/ private String name; /** ** The current status details about the cluster. *
*/ private ClusterStatus status; /** ** Provides information about the Amazon EC2 instances in a cluster grouped by category. For example, key name, * subnet ID, IAM instance profile, and so on. *
*/ private Ec2InstanceAttributes ec2InstanceAttributes; /** ** The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x * versions. *
*
* The instance group configuration of the cluster. A value of INSTANCE_GROUP
indicates a uniform
* instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets configuration.
*
* The path to the Amazon S3 location where logs for this cluster are stored. *
*/ private String logUri; /** ** The KMS key used for encrypting log files. This attribute is only available with Amazon EMR 5.30.0 and later, * excluding Amazon EMR 6.0.0. *
*/ private String logEncryptionKmsKeyId; /** ** The AMI version requested for this cluster. *
*/ private String requestedAmiVersion; /** ** The AMI version running on this cluster. *
*/ private String runningAmiVersion; /** *
* The Amazon EMR release label, which determines the version of open-source application packages installed on the
* cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such
* as emr-5.14.0
. For more information about Amazon EMR release versions and included application
* versions and features, see https://docs.aws.amazon.
* com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later.
* Earlier versions use AmiVersion
.
*
* Specifies whether the cluster should terminate after completing all steps. *
*/ private Boolean autoTerminate; /** ** Indicates whether Amazon EMR will lock the cluster to prevent the Amazon EC2 instances from being terminated by * an API call or user intervention, or in the event of a cluster error. *
*/ private Boolean terminationProtected; /** *
* Indicates whether the cluster is visible to IAM principals in the Amazon Web Services account associated with the
* cluster. When true
, IAM principals in the Amazon Web Services account can perform Amazon EMR cluster
* actions on the cluster that their IAM policies allow. When false
, only the IAM principal that
* created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions, regardless of
* IAM permissions policies attached to other IAM principals.
*
* The default value is true
if a value is not provided when creating a cluster using the Amazon EMR
* API RunJobFlow command, the CLI create-cluster command, or
* the Amazon Web Services Management Console.
*
* The applications installed on this cluster. *
*/ private com.amazonaws.internal.SdkInternalList* A list of tags associated with a cluster. *
*/ private com.amazonaws.internal.SdkInternalList* The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. *
*/ private String serviceRole; /** ** An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one time * for every hour an m1.small instance runs. Larger instances are weighted more, so an Amazon EC2 instance that is * roughly four times more expensive would result in the normalized instance hours being incremented by four. This * result is only an approximation and does not reflect the actual billing rate. *
*/ private Integer normalizedInstanceHours; /** ** The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public * subnet, this is the public DNS name. *
*/ private String masterPublicDnsName; /** ** Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the Amazon EMR * cluster. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the security configuration applied 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 Amazon EC2
* instances in an instance group.
*
* The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance
* group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes at the
* instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is
* only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version.
* TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes to a deny list and drains tasks
* from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either
* behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to
* HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is available only in Amazon EMR releases 4.1.0 and
* later, and is the default for versions of Amazon EMR earlier than 5.1.0.
*
* Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if the * cluster uses a custom AMI. *
*/ private String customAmiId; /** ** The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 * instance. Available in Amazon EMR releases 4.x and later. *
*/ private Integer ebsRootVolumeSize; /** *
* Applies only when CustomAmiID
is used. Specifies the type of updates that the Amazon Linux AMI
* package repositories apply when an instance boots using the AMI.
*
* Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For * more information see Use * Kerberos Authentication in the Amazon EMR Management Guide. *
*/ private KerberosAttributes kerberosAttributes; /** ** The Amazon Resource Name of the cluster. *
*/ private String clusterArn; /** ** The Amazon Resource Name (ARN) of the Outpost where the cluster is launched. *
*/ private String outpostArn; /** ** Specifies the number of steps that can be executed concurrently. *
*/ private Integer stepConcurrencyLevel; /** ** Placement group configured for an Amazon EMR cluster. *
*/ private com.amazonaws.internal.SdkInternalList* The Amazon Linux release specified in a cluster launch RunJobFlow request. If no Amazon Linux release was * specified, the default Amazon Linux release is shown in the response. *
*/ private String oSReleaseLabel; /** ** The unique identifier for the cluster. *
* * @param id * The unique identifier for the cluster. */ public void setId(String id) { this.id = id; } /** ** The unique identifier for the cluster. *
* * @return The unique identifier for the cluster. */ public String getId() { return this.id; } /** ** The unique identifier for the cluster. *
* * @param id * The unique identifier for the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withId(String id) { setId(id); return this; } /** ** The name of the cluster. *
* * @param name * The name of the cluster. */ public void setName(String name) { this.name = name; } /** ** The name of the cluster. *
* * @return The name of the cluster. */ public String getName() { return this.name; } /** ** The name of the cluster. *
* * @param name * The name of the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withName(String name) { setName(name); return this; } /** ** The current status details about the cluster. *
* * @param status * The current status details about the cluster. */ public void setStatus(ClusterStatus status) { this.status = status; } /** ** The current status details about the cluster. *
* * @return The current status details about the cluster. */ public ClusterStatus getStatus() { return this.status; } /** ** The current status details about the cluster. *
* * @param status * The current status details about the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withStatus(ClusterStatus status) { setStatus(status); return this; } /** ** Provides information about the Amazon EC2 instances in a cluster grouped by category. For example, key name, * subnet ID, IAM instance profile, and so on. *
* * @param ec2InstanceAttributes * Provides information about the Amazon EC2 instances in a cluster grouped by category. For example, key * name, subnet ID, IAM instance profile, and so on. */ public void setEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes) { this.ec2InstanceAttributes = ec2InstanceAttributes; } /** ** Provides information about the Amazon EC2 instances in a cluster grouped by category. For example, key name, * subnet ID, IAM instance profile, and so on. *
* * @return Provides information about the Amazon EC2 instances in a cluster grouped by category. For example, key * name, subnet ID, IAM instance profile, and so on. */ public Ec2InstanceAttributes getEc2InstanceAttributes() { return this.ec2InstanceAttributes; } /** ** Provides information about the Amazon EC2 instances in a cluster grouped by category. For example, key name, * subnet ID, IAM instance profile, and so on. *
* * @param ec2InstanceAttributes * Provides information about the Amazon EC2 instances in a cluster grouped by category. For example, key * name, subnet ID, IAM instance profile, and so on. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes) { setEc2InstanceAttributes(ec2InstanceAttributes); return this; } /** ** The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x * versions. *
*
* The instance group configuration of the cluster. A value of INSTANCE_GROUP
indicates a uniform
* instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets configuration.
*
* The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x * versions. *
* *
* The instance group configuration of the cluster. A value of
* The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x
* versions.
* INSTANCE_GROUP
indicates a
* uniform instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets
* configuration.
* @see InstanceCollectionType
*/
public void setInstanceCollectionType(String instanceCollectionType) {
this.instanceCollectionType = instanceCollectionType;
}
/**
*
* The instance group configuration of the cluster. A value of INSTANCE_GROUP
indicates a uniform
* instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets configuration.
*
* The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding * 5.0.x versions. *
* *
* The instance group configuration of the cluster. A value of
* The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x
* versions.
* INSTANCE_GROUP
indicates a
* uniform instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets
* configuration.
* @see InstanceCollectionType
*/
public String getInstanceCollectionType() {
return this.instanceCollectionType;
}
/**
*
* The instance group configuration of the cluster. A value of INSTANCE_GROUP
indicates a uniform
* instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets configuration.
*
* The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x * versions. *
* *
* The instance group configuration of the cluster. A value of
* The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x
* versions.
* INSTANCE_GROUP
indicates a
* uniform instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets
* configuration.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstanceCollectionType
*/
public Cluster withInstanceCollectionType(String instanceCollectionType) {
setInstanceCollectionType(instanceCollectionType);
return this;
}
/**
*
* The instance group configuration of the cluster. A value of INSTANCE_GROUP
indicates a uniform
* instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets configuration.
*
* The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x * versions. *
* *
* The instance group configuration of the cluster. A value of
* The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x
* versions.
* INSTANCE_GROUP
indicates a
* uniform instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets
* configuration.
* @see InstanceCollectionType
*/
public void setInstanceCollectionType(InstanceCollectionType instanceCollectionType) {
withInstanceCollectionType(instanceCollectionType);
}
/**
*
* The instance group configuration of the cluster. A value of INSTANCE_GROUP
indicates a uniform
* instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets configuration.
*
* The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x * versions. *
* *
* The instance group configuration of the cluster. A value of INSTANCE_GROUP
indicates a
* uniform instance group configuration. A value of INSTANCE_FLEET
indicates an instance fleets
* configuration.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstanceCollectionType
*/
public Cluster withInstanceCollectionType(InstanceCollectionType instanceCollectionType) {
this.instanceCollectionType = instanceCollectionType.toString();
return this;
}
/**
*
* The path to the Amazon S3 location where logs for this cluster are stored. *
* * @param logUri * The path to the Amazon S3 location where logs for this cluster are stored. */ public void setLogUri(String logUri) { this.logUri = logUri; } /** ** The path to the Amazon S3 location where logs for this cluster are stored. *
* * @return The path to the Amazon S3 location where logs for this cluster are stored. */ public String getLogUri() { return this.logUri; } /** ** The path to the Amazon S3 location where logs for this cluster are stored. *
* * @param logUri * The path to the Amazon S3 location where logs for this cluster are stored. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withLogUri(String logUri) { setLogUri(logUri); return this; } /** ** The KMS key used for encrypting log files. This attribute is only available with Amazon EMR 5.30.0 and later, * excluding Amazon EMR 6.0.0. *
* * @param logEncryptionKmsKeyId * The KMS key used for encrypting log files. This attribute is only available with Amazon EMR 5.30.0 and * later, excluding Amazon EMR 6.0.0. */ public void setLogEncryptionKmsKeyId(String logEncryptionKmsKeyId) { this.logEncryptionKmsKeyId = logEncryptionKmsKeyId; } /** ** The KMS key used for encrypting log files. This attribute is only available with Amazon EMR 5.30.0 and later, * excluding Amazon EMR 6.0.0. *
* * @return The KMS key used for encrypting log files. This attribute is only available with Amazon EMR 5.30.0 and * later, excluding Amazon EMR 6.0.0. */ public String getLogEncryptionKmsKeyId() { return this.logEncryptionKmsKeyId; } /** ** The KMS key used for encrypting log files. This attribute is only available with Amazon EMR 5.30.0 and later, * excluding Amazon EMR 6.0.0. *
* * @param logEncryptionKmsKeyId * The KMS key used for encrypting log files. This attribute is only available with Amazon EMR 5.30.0 and * later, excluding Amazon EMR 6.0.0. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withLogEncryptionKmsKeyId(String logEncryptionKmsKeyId) { setLogEncryptionKmsKeyId(logEncryptionKmsKeyId); return this; } /** ** The AMI version requested for this cluster. *
* * @param requestedAmiVersion * The AMI version requested for this cluster. */ public void setRequestedAmiVersion(String requestedAmiVersion) { this.requestedAmiVersion = requestedAmiVersion; } /** ** The AMI version requested for this cluster. *
* * @return The AMI version requested for this cluster. */ public String getRequestedAmiVersion() { return this.requestedAmiVersion; } /** ** The AMI version requested for this cluster. *
* * @param requestedAmiVersion * The AMI version requested for this cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withRequestedAmiVersion(String requestedAmiVersion) { setRequestedAmiVersion(requestedAmiVersion); return this; } /** ** The AMI version running on this cluster. *
* * @param runningAmiVersion * The AMI version running on this cluster. */ public void setRunningAmiVersion(String runningAmiVersion) { this.runningAmiVersion = runningAmiVersion; } /** ** The AMI version running on this cluster. *
* * @return The AMI version running on this cluster. */ public String getRunningAmiVersion() { return this.runningAmiVersion; } /** ** The AMI version running on this cluster. *
* * @param runningAmiVersion * The AMI version running on this cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withRunningAmiVersion(String runningAmiVersion) { setRunningAmiVersion(runningAmiVersion); return this; } /** *
* The Amazon EMR release label, which determines the version of open-source application packages installed on the
* cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such
* as emr-5.14.0
. For more information about Amazon EMR release versions and included application
* versions and features, see https://docs.aws.amazon.
* com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later.
* Earlier versions use AmiVersion
.
*
emr-x.x.x
, where x.x.x is an Amazon EMR
* release version such as emr-5.14.0
. For more information about Amazon EMR release versions
* and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR
* releases version 4.0 and later. Earlier versions use AmiVersion
.
*/
public void setReleaseLabel(String releaseLabel) {
this.releaseLabel = releaseLabel;
}
/**
*
* The Amazon EMR release label, which determines the version of open-source application packages installed on the
* cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such
* as emr-5.14.0
. For more information about Amazon EMR release versions and included application
* versions and features, see https://docs.aws.amazon.
* com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later.
* Earlier versions use AmiVersion
.
*
emr-x.x.x
, where x.x.x is an Amazon EMR
* release version such as emr-5.14.0
. For more information about Amazon EMR release versions
* and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR
* releases version 4.0 and later. Earlier versions use AmiVersion
.
*/
public String getReleaseLabel() {
return this.releaseLabel;
}
/**
*
* The Amazon EMR release label, which determines the version of open-source application packages installed on the
* cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such
* as emr-5.14.0
. For more information about Amazon EMR release versions and included application
* versions and features, see https://docs.aws.amazon.
* com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later.
* Earlier versions use AmiVersion
.
*
emr-x.x.x
, where x.x.x is an Amazon EMR
* release version such as emr-5.14.0
. For more information about Amazon EMR release versions
* and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR
* releases version 4.0 and later. Earlier versions use AmiVersion
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Cluster withReleaseLabel(String releaseLabel) {
setReleaseLabel(releaseLabel);
return this;
}
/**
* * Specifies whether the cluster should terminate after completing all steps. *
* * @param autoTerminate * Specifies whether the cluster should terminate after completing all steps. */ public void setAutoTerminate(Boolean autoTerminate) { this.autoTerminate = autoTerminate; } /** ** Specifies whether the cluster should terminate after completing all steps. *
* * @return Specifies whether the cluster should terminate after completing all steps. */ public Boolean getAutoTerminate() { return this.autoTerminate; } /** ** Specifies whether the cluster should terminate after completing all steps. *
* * @param autoTerminate * Specifies whether the cluster should terminate after completing all steps. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withAutoTerminate(Boolean autoTerminate) { setAutoTerminate(autoTerminate); return this; } /** ** Specifies whether the cluster should terminate after completing all steps. *
* * @return Specifies whether the cluster should terminate after completing all steps. */ public Boolean isAutoTerminate() { return this.autoTerminate; } /** ** Indicates whether Amazon EMR will lock the cluster to prevent the Amazon EC2 instances from being terminated by * an API call or user intervention, or in the event of a cluster error. *
* * @param terminationProtected * Indicates whether Amazon EMR will lock the cluster to prevent the Amazon EC2 instances from being * terminated by an API call or user intervention, or in the event of a cluster error. */ public void setTerminationProtected(Boolean terminationProtected) { this.terminationProtected = terminationProtected; } /** ** Indicates whether Amazon EMR will lock the cluster to prevent the Amazon EC2 instances from being terminated by * an API call or user intervention, or in the event of a cluster error. *
* * @return Indicates whether Amazon EMR will lock the cluster to prevent the Amazon EC2 instances from being * terminated by an API call or user intervention, or in the event of a cluster error. */ public Boolean getTerminationProtected() { return this.terminationProtected; } /** ** Indicates whether Amazon EMR will lock the cluster to prevent the Amazon EC2 instances from being terminated by * an API call or user intervention, or in the event of a cluster error. *
* * @param terminationProtected * Indicates whether Amazon EMR will lock the cluster to prevent the Amazon EC2 instances from being * terminated by an API call or user intervention, or in the event of a cluster error. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withTerminationProtected(Boolean terminationProtected) { setTerminationProtected(terminationProtected); return this; } /** ** Indicates whether Amazon EMR will lock the cluster to prevent the Amazon EC2 instances from being terminated by * an API call or user intervention, or in the event of a cluster error. *
* * @return Indicates whether Amazon EMR will lock the cluster to prevent the Amazon EC2 instances from being * terminated by an API call or user intervention, or in the event of a cluster error. */ public Boolean isTerminationProtected() { return this.terminationProtected; } /** *
* Indicates whether the cluster is visible to IAM principals in the Amazon Web Services account associated with the
* cluster. When true
, IAM principals in the Amazon Web Services account can perform Amazon EMR cluster
* actions on the cluster that their IAM policies allow. When false
, only the IAM principal that
* created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions, regardless of
* IAM permissions policies attached to other IAM principals.
*
* The default value is true
if a value is not provided when creating a cluster using the Amazon EMR
* API RunJobFlow command, the CLI create-cluster command, or
* the Amazon Web Services Management Console.
*
true
, IAM principals in the Amazon Web Services account can perform
* Amazon EMR cluster actions on the cluster that their IAM policies allow. When false
, only the
* IAM principal that created the cluster and the Amazon Web Services account root user can perform Amazon
* EMR actions, regardless of IAM permissions policies attached to other IAM principals.
*
* The default value is true
if a value is not provided when creating a cluster using the Amazon
* EMR API RunJobFlow command, the CLI create-cluster
* command, or the Amazon Web Services Management Console.
*/
public void setVisibleToAllUsers(Boolean visibleToAllUsers) {
this.visibleToAllUsers = visibleToAllUsers;
}
/**
*
* Indicates whether the cluster is visible to IAM principals in the Amazon Web Services account associated with the
* cluster. When true
, IAM principals in the Amazon Web Services account can perform Amazon EMR cluster
* actions on the cluster that their IAM policies allow. When false
, only the IAM principal that
* created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions, regardless of
* IAM permissions policies attached to other IAM principals.
*
* The default value is true
if a value is not provided when creating a cluster using the Amazon EMR
* API RunJobFlow command, the CLI create-cluster command, or
* the Amazon Web Services Management Console.
*
true
, IAM principals in the Amazon Web Services account can perform
* Amazon EMR cluster actions on the cluster that their IAM policies allow. When false
, only
* the IAM principal that created the cluster and the Amazon Web Services account root user can perform
* Amazon EMR actions, regardless of IAM permissions policies attached to other IAM principals.
*
* The default value is true
if a value is not provided when creating a cluster using the
* Amazon EMR API RunJobFlow command, the CLI create-cluster
* command, or the Amazon Web Services Management Console.
*/
public Boolean getVisibleToAllUsers() {
return this.visibleToAllUsers;
}
/**
*
* Indicates whether the cluster is visible to IAM principals in the Amazon Web Services account associated with the
* cluster. When true
, IAM principals in the Amazon Web Services account can perform Amazon EMR cluster
* actions on the cluster that their IAM policies allow. When false
, only the IAM principal that
* created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions, regardless of
* IAM permissions policies attached to other IAM principals.
*
* The default value is true
if a value is not provided when creating a cluster using the Amazon EMR
* API RunJobFlow command, the CLI create-cluster command, or
* the Amazon Web Services Management Console.
*
true
, IAM principals in the Amazon Web Services account can perform
* Amazon EMR cluster actions on the cluster that their IAM policies allow. When false
, only the
* IAM principal that created the cluster and the Amazon Web Services account root user can perform Amazon
* EMR actions, regardless of IAM permissions policies attached to other IAM principals.
*
* The default value is true
if a value is not provided when creating a cluster using the Amazon
* EMR API RunJobFlow command, the CLI create-cluster
* command, or the Amazon Web Services Management Console.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Cluster withVisibleToAllUsers(Boolean visibleToAllUsers) {
setVisibleToAllUsers(visibleToAllUsers);
return this;
}
/**
*
* Indicates whether the cluster is visible to IAM principals in the Amazon Web Services account associated with the
* cluster. When true
, IAM principals in the Amazon Web Services account can perform Amazon EMR cluster
* actions on the cluster that their IAM policies allow. When false
, only the IAM principal that
* created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions, regardless of
* IAM permissions policies attached to other IAM principals.
*
* The default value is true
if a value is not provided when creating a cluster using the Amazon EMR
* API RunJobFlow command, the CLI create-cluster command, or
* the Amazon Web Services Management Console.
*
true
, IAM principals in the Amazon Web Services account can perform
* Amazon EMR cluster actions on the cluster that their IAM policies allow. When false
, only
* the IAM principal that created the cluster and the Amazon Web Services account root user can perform
* Amazon EMR actions, regardless of IAM permissions policies attached to other IAM principals.
*
* The default value is true
if a value is not provided when creating a cluster using the
* Amazon EMR API RunJobFlow command, the CLI create-cluster
* command, or the Amazon Web Services Management Console.
*/
public Boolean isVisibleToAllUsers() {
return this.visibleToAllUsers;
}
/**
*
* The applications installed on this cluster. *
* * @return The applications installed on this cluster. */ public java.util.List* The applications installed on this cluster. *
* * @param applications * The applications installed on this cluster. */ public void setApplications(java.util.Collection* The applications installed on this cluster. *
** 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 * The applications installed on this cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withApplications(Application... applications) { if (this.applications == null) { setApplications(new com.amazonaws.internal.SdkInternalList* The applications installed on this cluster. *
* * @param applications * The applications installed on this cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withApplications(java.util.Collection* A list of tags associated with a cluster. *
* * @return A list of tags associated with a cluster. */ public java.util.List* A list of tags associated with a cluster. *
* * @param tags * A list of tags associated with a cluster. */ public void setTags(java.util.Collection* A list of tags associated with a cluster. *
** 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 associated with a cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* A list of tags associated with a cluster. *
* * @param tags * A list of tags associated with a cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withTags(java.util.Collection* The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. *
* * @param serviceRole * The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. */ public void setServiceRole(String serviceRole) { this.serviceRole = serviceRole; } /** ** The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. *
* * @return The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. */ public String getServiceRole() { return this.serviceRole; } /** ** The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. *
* * @param serviceRole * The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withServiceRole(String serviceRole) { setServiceRole(serviceRole); return this; } /** ** An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one time * for every hour an m1.small instance runs. Larger instances are weighted more, so an Amazon EC2 instance that is * roughly four times more expensive would result in the normalized instance hours being incremented by four. This * result is only an approximation and does not reflect the actual billing rate. *
* * @param normalizedInstanceHours * An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one * time for every hour an m1.small instance runs. Larger instances are weighted more, so an Amazon EC2 * instance that is roughly four times more expensive would result in the normalized instance hours being * incremented by four. This result is only an approximation and does not reflect the actual billing rate. */ public void setNormalizedInstanceHours(Integer normalizedInstanceHours) { this.normalizedInstanceHours = normalizedInstanceHours; } /** ** An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one time * for every hour an m1.small instance runs. Larger instances are weighted more, so an Amazon EC2 instance that is * roughly four times more expensive would result in the normalized instance hours being incremented by four. This * result is only an approximation and does not reflect the actual billing rate. *
* * @return An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one * time for every hour an m1.small instance runs. Larger instances are weighted more, so an Amazon EC2 * instance that is roughly four times more expensive would result in the normalized instance hours being * incremented by four. This result is only an approximation and does not reflect the actual billing rate. */ public Integer getNormalizedInstanceHours() { return this.normalizedInstanceHours; } /** ** An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one time * for every hour an m1.small instance runs. Larger instances are weighted more, so an Amazon EC2 instance that is * roughly four times more expensive would result in the normalized instance hours being incremented by four. This * result is only an approximation and does not reflect the actual billing rate. *
* * @param normalizedInstanceHours * An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one * time for every hour an m1.small instance runs. Larger instances are weighted more, so an Amazon EC2 * instance that is roughly four times more expensive would result in the normalized instance hours being * incremented by four. This result is only an approximation and does not reflect the actual billing rate. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withNormalizedInstanceHours(Integer normalizedInstanceHours) { setNormalizedInstanceHours(normalizedInstanceHours); return this; } /** ** The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public * subnet, this is the public DNS name. *
* * @param masterPublicDnsName * The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a * public subnet, this is the public DNS name. */ public void setMasterPublicDnsName(String masterPublicDnsName) { this.masterPublicDnsName = masterPublicDnsName; } /** ** The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public * subnet, this is the public DNS name. *
* * @return The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On * a public subnet, this is the public DNS name. */ public String getMasterPublicDnsName() { return this.masterPublicDnsName; } /** ** The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public * subnet, this is the public DNS name. *
* * @param masterPublicDnsName * The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a * public subnet, this is the public DNS name. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withMasterPublicDnsName(String masterPublicDnsName) { setMasterPublicDnsName(masterPublicDnsName); return this; } /** ** Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the Amazon EMR * cluster. *
* * @return Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the * Amazon EMR cluster. */ public java.util.List* Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the Amazon EMR * cluster. *
* * @param configurations * Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the * Amazon EMR cluster. */ public void setConfigurations(java.util.Collection* Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the Amazon EMR * cluster. *
** 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 * Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the * Amazon EMR cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withConfigurations(Configuration... configurations) { if (this.configurations == null) { setConfigurations(new com.amazonaws.internal.SdkInternalList* Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the Amazon EMR * cluster. *
* * @param configurations * Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the * Amazon EMR cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withConfigurations(java.util.Collection* The name of the security configuration applied to the cluster. *
* * @param securityConfiguration * The name of the security configuration applied to the cluster. */ public void setSecurityConfiguration(String securityConfiguration) { this.securityConfiguration = securityConfiguration; } /** ** The name of the security configuration applied to the cluster. *
* * @return The name of the security configuration applied to the cluster. */ public String getSecurityConfiguration() { return this.securityConfiguration; } /** ** The name of the security configuration applied to the cluster. *
* * @param securityConfiguration * The name of the security configuration applied to the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster 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 Amazon EC2
* instances in an instance group.
*
EMR_AutoScaling_DefaultRole
.
* The IAM role provides permissions that the automatic scaling feature requires to launch and terminate
* Amazon 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 Amazon EC2
* instances in an instance group.
*
EMR_AutoScaling_DefaultRole
.
* The IAM role provides permissions that the automatic scaling feature requires to launch and terminate
* Amazon 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 Amazon EC2
* instances in an instance group.
*
EMR_AutoScaling_DefaultRole
.
* The IAM role provides permissions that the automatic scaling feature requires to launch and terminate
* Amazon EC2 instances in an instance group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Cluster withAutoScalingRole(String autoScalingRole) {
setAutoScalingRole(autoScalingRole);
return this;
}
/**
*
* The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance
* group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes at the
* instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is
* only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version.
* TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes to a deny list and drains tasks
* from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either
* behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to
* HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is available only in Amazon EMR releases 4.1.0 and
* later, and is the default for versions of Amazon EMR earlier than 5.1.0.
*
TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates
* nodes at the instance-hour boundary, regardless of when the request to terminate the instance was
* submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters
* created using that version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes
* to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the
* instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks
* instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is
* available only in Amazon EMR releases 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;
}
/**
*
* The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance
* group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes at the
* instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is
* only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version.
* TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes to a deny list and drains tasks
* from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either
* behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to
* HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is available only in Amazon EMR releases 4.1.0 and
* later, and is the default for versions of Amazon EMR earlier than 5.1.0.
*
TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates
* nodes at the instance-hour boundary, regardless of when the request to terminate the instance was
* submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters
* created using that version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds
* nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless
* of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and
* blocks instance termination if it could lead to HDFS corruption.
* TERMINATE_AT_TASK_COMPLETION
is available only in Amazon EMR releases 4.1.0 and later, and
* is the default for versions of Amazon EMR earlier than 5.1.0.
* @see ScaleDownBehavior
*/
public String getScaleDownBehavior() {
return this.scaleDownBehavior;
}
/**
*
* The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance
* group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes at the
* instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is
* only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version.
* TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes to a deny list and drains tasks
* from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either
* behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to
* HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is available only in Amazon EMR releases 4.1.0 and
* later, and is the default for versions of Amazon EMR earlier than 5.1.0.
*
TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates
* nodes at the instance-hour boundary, regardless of when the request to terminate the instance was
* submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters
* created using that version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes
* to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the
* instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks
* instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is
* available only in Amazon EMR releases 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 Cluster withScaleDownBehavior(String scaleDownBehavior) {
setScaleDownBehavior(scaleDownBehavior);
return this;
}
/**
*
* The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance
* group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes at the
* instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is
* only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version.
* TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes to a deny list and drains tasks
* from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either
* behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to
* HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is available only in Amazon EMR releases 4.1.0 and
* later, and is the default for versions of Amazon EMR earlier than 5.1.0.
*
TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates
* nodes at the instance-hour boundary, regardless of when the request to terminate the instance was
* submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters
* created using that version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes
* to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the
* instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks
* instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is
* available only in Amazon EMR releases 4.1.0 and later, and is the default for versions of Amazon EMR
* earlier than 5.1.0.
* @see ScaleDownBehavior
*/
public void setScaleDownBehavior(ScaleDownBehavior scaleDownBehavior) {
withScaleDownBehavior(scaleDownBehavior);
}
/**
*
* The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance
* group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes at the
* instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is
* only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version.
* TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes to a deny list and drains tasks
* from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either
* behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to
* HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is available only in Amazon EMR releases 4.1.0 and
* later, and is the default for versions of Amazon EMR earlier than 5.1.0.
*
TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates
* nodes at the instance-hour boundary, regardless of when the request to terminate the instance was
* submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters
* created using that version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes
* to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the
* instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks
* instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is
* available only in Amazon EMR releases 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 Cluster withScaleDownBehavior(ScaleDownBehavior scaleDownBehavior) {
this.scaleDownBehavior = scaleDownBehavior.toString();
return this;
}
/**
* * Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if the * cluster uses a custom AMI. *
* * @param customAmiId * Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if * the cluster uses a custom AMI. */ public void setCustomAmiId(String customAmiId) { this.customAmiId = customAmiId; } /** ** Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if the * cluster uses a custom AMI. *
* * @return Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if * the cluster uses a custom AMI. */ public String getCustomAmiId() { return this.customAmiId; } /** ** Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if the * cluster uses a custom AMI. *
* * @param customAmiId * Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if * the cluster uses a custom AMI. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withCustomAmiId(String customAmiId) { setCustomAmiId(customAmiId); return this; } /** ** The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 * instance. Available in Amazon EMR releases 4.x and later. *
* * @param ebsRootVolumeSize * The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 * instance. Available in Amazon EMR releases 4.x and later. */ public void setEbsRootVolumeSize(Integer ebsRootVolumeSize) { this.ebsRootVolumeSize = ebsRootVolumeSize; } /** ** The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 * instance. Available in Amazon EMR releases 4.x and later. *
* * @return The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 * instance. Available in Amazon EMR releases 4.x and later. */ public Integer getEbsRootVolumeSize() { return this.ebsRootVolumeSize; } /** ** The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 * instance. Available in Amazon EMR releases 4.x and later. *
* * @param ebsRootVolumeSize * The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 * instance. Available in Amazon EMR releases 4.x and later. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withEbsRootVolumeSize(Integer ebsRootVolumeSize) { setEbsRootVolumeSize(ebsRootVolumeSize); return this; } /** *
* Applies only when CustomAmiID
is used. Specifies the type of updates that the Amazon Linux AMI
* package repositories apply when an instance boots using the AMI.
*
CustomAmiID
is used. Specifies the type of updates that the Amazon Linux
* AMI package repositories apply when an instance boots using the AMI.
* @see RepoUpgradeOnBoot
*/
public void setRepoUpgradeOnBoot(String repoUpgradeOnBoot) {
this.repoUpgradeOnBoot = repoUpgradeOnBoot;
}
/**
*
* Applies only when CustomAmiID
is used. Specifies the type of updates that the Amazon Linux AMI
* package repositories apply when an instance boots using the AMI.
*
CustomAmiID
is used. Specifies the type of updates that the Amazon Linux
* AMI package repositories apply when an instance boots using the AMI.
* @see RepoUpgradeOnBoot
*/
public String getRepoUpgradeOnBoot() {
return this.repoUpgradeOnBoot;
}
/**
*
* Applies only when CustomAmiID
is used. Specifies the type of updates that the Amazon Linux AMI
* package repositories apply when an instance boots using the AMI.
*
CustomAmiID
is used. Specifies the type of updates that the Amazon Linux
* AMI package repositories apply when an instance boots using the AMI.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RepoUpgradeOnBoot
*/
public Cluster withRepoUpgradeOnBoot(String repoUpgradeOnBoot) {
setRepoUpgradeOnBoot(repoUpgradeOnBoot);
return this;
}
/**
*
* Applies only when CustomAmiID
is used. Specifies the type of updates that the Amazon Linux AMI
* package repositories apply when an instance boots using the AMI.
*
CustomAmiID
is used. Specifies the type of updates that the Amazon Linux
* AMI package repositories apply when an instance boots using the AMI.
* @see RepoUpgradeOnBoot
*/
public void setRepoUpgradeOnBoot(RepoUpgradeOnBoot repoUpgradeOnBoot) {
withRepoUpgradeOnBoot(repoUpgradeOnBoot);
}
/**
*
* Applies only when CustomAmiID
is used. Specifies the type of updates that the Amazon Linux AMI
* package repositories apply when an instance boots using the AMI.
*
CustomAmiID
is used. Specifies the type of updates that the Amazon Linux
* AMI package repositories apply when an instance boots using the AMI.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RepoUpgradeOnBoot
*/
public Cluster withRepoUpgradeOnBoot(RepoUpgradeOnBoot repoUpgradeOnBoot) {
this.repoUpgradeOnBoot = repoUpgradeOnBoot.toString();
return this;
}
/**
* * Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For * more information see Use * Kerberos Authentication in the Amazon EMR Management Guide. *
* * @param kerberosAttributes * Attributes for Kerberos configuration when Kerberos authentication is enabled using a security * configuration. For more information see Use Kerberos * Authentication in the Amazon EMR Management Guide. */ public void setKerberosAttributes(KerberosAttributes kerberosAttributes) { this.kerberosAttributes = kerberosAttributes; } /** ** Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For * more information see Use * Kerberos Authentication in the Amazon EMR Management Guide. *
* * @return Attributes for Kerberos configuration when Kerberos authentication is enabled using a security * configuration. For more information see Use Kerberos * Authentication in the Amazon EMR Management Guide. */ public KerberosAttributes getKerberosAttributes() { return this.kerberosAttributes; } /** ** Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For * more information see Use * Kerberos Authentication in the Amazon EMR Management Guide. *
* * @param kerberosAttributes * Attributes for Kerberos configuration when Kerberos authentication is enabled using a security * configuration. For more information see Use Kerberos * Authentication in the Amazon EMR Management Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withKerberosAttributes(KerberosAttributes kerberosAttributes) { setKerberosAttributes(kerberosAttributes); return this; } /** ** The Amazon Resource Name of the cluster. *
* * @param clusterArn * The Amazon Resource Name of the cluster. */ public void setClusterArn(String clusterArn) { this.clusterArn = clusterArn; } /** ** The Amazon Resource Name of the cluster. *
* * @return The Amazon Resource Name of the cluster. */ public String getClusterArn() { return this.clusterArn; } /** ** The Amazon Resource Name of the cluster. *
* * @param clusterArn * The Amazon Resource Name of the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withClusterArn(String clusterArn) { setClusterArn(clusterArn); return this; } /** ** The Amazon Resource Name (ARN) of the Outpost where the cluster is launched. *
* * @param outpostArn * The Amazon Resource Name (ARN) of the Outpost where the cluster is launched. */ public void setOutpostArn(String outpostArn) { this.outpostArn = outpostArn; } /** ** The Amazon Resource Name (ARN) of the Outpost where the cluster is launched. *
* * @return The Amazon Resource Name (ARN) of the Outpost where the cluster is launched. */ public String getOutpostArn() { return this.outpostArn; } /** ** The Amazon Resource Name (ARN) of the Outpost where the cluster is launched. *
* * @param outpostArn * The Amazon Resource Name (ARN) of the Outpost where the cluster is launched. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withOutpostArn(String outpostArn) { setOutpostArn(outpostArn); return this; } /** ** Specifies the number of steps that can be executed concurrently. *
* * @param stepConcurrencyLevel * Specifies the number of steps that can be executed concurrently. */ public void setStepConcurrencyLevel(Integer stepConcurrencyLevel) { this.stepConcurrencyLevel = stepConcurrencyLevel; } /** ** Specifies the number of steps that can be executed concurrently. *
* * @return Specifies the number of steps that can be executed concurrently. */ public Integer getStepConcurrencyLevel() { return this.stepConcurrencyLevel; } /** ** Specifies the number of steps that can be executed concurrently. *
* * @param stepConcurrencyLevel * Specifies the number of steps that can be executed concurrently. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withStepConcurrencyLevel(Integer stepConcurrencyLevel) { setStepConcurrencyLevel(stepConcurrencyLevel); return this; } /** ** Placement group configured for an Amazon EMR cluster. *
* * @return Placement group configured for an Amazon EMR cluster. */ public java.util.List* Placement group configured for an Amazon EMR cluster. *
* * @param placementGroups * Placement group configured for an Amazon EMR cluster. */ public void setPlacementGroups(java.util.Collection* Placement group configured for an Amazon EMR cluster. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPlacementGroups(java.util.Collection)} or {@link #withPlacementGroups(java.util.Collection)} if you * want to override the existing values. *
* * @param placementGroups * Placement group configured for an Amazon EMR cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withPlacementGroups(PlacementGroupConfig... placementGroups) { if (this.placementGroups == null) { setPlacementGroups(new com.amazonaws.internal.SdkInternalList* Placement group configured for an Amazon EMR cluster. *
* * @param placementGroups * Placement group configured for an Amazon EMR cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withPlacementGroups(java.util.Collection* The Amazon Linux release specified in a cluster launch RunJobFlow request. If no Amazon Linux release was * specified, the default Amazon Linux release is shown in the response. *
* * @param oSReleaseLabel * The Amazon Linux release specified in a cluster launch RunJobFlow request. If no Amazon Linux release was * specified, the default Amazon Linux release is shown in the response. */ public void setOSReleaseLabel(String oSReleaseLabel) { this.oSReleaseLabel = oSReleaseLabel; } /** ** The Amazon Linux release specified in a cluster launch RunJobFlow request. If no Amazon Linux release was * specified, the default Amazon Linux release is shown in the response. *
* * @return The Amazon Linux release specified in a cluster launch RunJobFlow request. If no Amazon Linux release was * specified, the default Amazon Linux release is shown in the response. */ public String getOSReleaseLabel() { return this.oSReleaseLabel; } /** ** The Amazon Linux release specified in a cluster launch RunJobFlow request. If no Amazon Linux release was * specified, the default Amazon Linux release is shown in the response. *
* * @param oSReleaseLabel * The Amazon Linux release specified in a cluster launch RunJobFlow request. If no Amazon Linux release was * specified, the default Amazon Linux release is shown in the response. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withOSReleaseLabel(String oSReleaseLabel) { setOSReleaseLabel(oSReleaseLabel); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getEc2InstanceAttributes() != null) sb.append("Ec2InstanceAttributes: ").append(getEc2InstanceAttributes()).append(","); if (getInstanceCollectionType() != null) sb.append("InstanceCollectionType: ").append(getInstanceCollectionType()).append(","); if (getLogUri() != null) sb.append("LogUri: ").append(getLogUri()).append(","); if (getLogEncryptionKmsKeyId() != null) sb.append("LogEncryptionKmsKeyId: ").append(getLogEncryptionKmsKeyId()).append(","); if (getRequestedAmiVersion() != null) sb.append("RequestedAmiVersion: ").append(getRequestedAmiVersion()).append(","); if (getRunningAmiVersion() != null) sb.append("RunningAmiVersion: ").append(getRunningAmiVersion()).append(","); if (getReleaseLabel() != null) sb.append("ReleaseLabel: ").append(getReleaseLabel()).append(","); if (getAutoTerminate() != null) sb.append("AutoTerminate: ").append(getAutoTerminate()).append(","); if (getTerminationProtected() != null) sb.append("TerminationProtected: ").append(getTerminationProtected()).append(","); if (getVisibleToAllUsers() != null) sb.append("VisibleToAllUsers: ").append(getVisibleToAllUsers()).append(","); if (getApplications() != null) sb.append("Applications: ").append(getApplications()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getServiceRole() != null) sb.append("ServiceRole: ").append(getServiceRole()).append(","); if (getNormalizedInstanceHours() != null) sb.append("NormalizedInstanceHours: ").append(getNormalizedInstanceHours()).append(","); if (getMasterPublicDnsName() != null) sb.append("MasterPublicDnsName: ").append(getMasterPublicDnsName()).append(","); if (getConfigurations() != null) sb.append("Configurations: ").append(getConfigurations()).append(","); if (getSecurityConfiguration() != null) sb.append("SecurityConfiguration: ").append(getSecurityConfiguration()).append(","); if (getAutoScalingRole() != null) sb.append("AutoScalingRole: ").append(getAutoScalingRole()).append(","); if (getScaleDownBehavior() != null) sb.append("ScaleDownBehavior: ").append(getScaleDownBehavior()).append(","); if (getCustomAmiId() != null) sb.append("CustomAmiId: ").append(getCustomAmiId()).append(","); if (getEbsRootVolumeSize() != null) sb.append("EbsRootVolumeSize: ").append(getEbsRootVolumeSize()).append(","); if (getRepoUpgradeOnBoot() != null) sb.append("RepoUpgradeOnBoot: ").append(getRepoUpgradeOnBoot()).append(","); if (getKerberosAttributes() != null) sb.append("KerberosAttributes: ").append(getKerberosAttributes()).append(","); if (getClusterArn() != null) sb.append("ClusterArn: ").append(getClusterArn()).append(","); if (getOutpostArn() != null) sb.append("OutpostArn: ").append(getOutpostArn()).append(","); if (getStepConcurrencyLevel() != null) sb.append("StepConcurrencyLevel: ").append(getStepConcurrencyLevel()).append(","); if (getPlacementGroups() != null) sb.append("PlacementGroups: ").append(getPlacementGroups()).append(","); if (getOSReleaseLabel() != null) sb.append("OSReleaseLabel: ").append(getOSReleaseLabel()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Cluster == false) return false; Cluster other = (Cluster) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getEc2InstanceAttributes() == null ^ this.getEc2InstanceAttributes() == null) return false; if (other.getEc2InstanceAttributes() != null && other.getEc2InstanceAttributes().equals(this.getEc2InstanceAttributes()) == false) return false; if (other.getInstanceCollectionType() == null ^ this.getInstanceCollectionType() == null) return false; if (other.getInstanceCollectionType() != null && other.getInstanceCollectionType().equals(this.getInstanceCollectionType()) == false) return false; if (other.getLogUri() == null ^ this.getLogUri() == null) return false; if (other.getLogUri() != null && other.getLogUri().equals(this.getLogUri()) == false) return false; if (other.getLogEncryptionKmsKeyId() == null ^ this.getLogEncryptionKmsKeyId() == null) return false; if (other.getLogEncryptionKmsKeyId() != null && other.getLogEncryptionKmsKeyId().equals(this.getLogEncryptionKmsKeyId()) == false) return false; if (other.getRequestedAmiVersion() == null ^ this.getRequestedAmiVersion() == null) return false; if (other.getRequestedAmiVersion() != null && other.getRequestedAmiVersion().equals(this.getRequestedAmiVersion()) == false) return false; if (other.getRunningAmiVersion() == null ^ this.getRunningAmiVersion() == null) return false; if (other.getRunningAmiVersion() != null && other.getRunningAmiVersion().equals(this.getRunningAmiVersion()) == 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.getAutoTerminate() == null ^ this.getAutoTerminate() == null) return false; if (other.getAutoTerminate() != null && other.getAutoTerminate().equals(this.getAutoTerminate()) == false) return false; if (other.getTerminationProtected() == null ^ this.getTerminationProtected() == null) return false; if (other.getTerminationProtected() != null && other.getTerminationProtected().equals(this.getTerminationProtected()) == 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.getApplications() == null ^ this.getApplications() == null) return false; if (other.getApplications() != null && other.getApplications().equals(this.getApplications()) == 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.getServiceRole() == null ^ this.getServiceRole() == null) return false; if (other.getServiceRole() != null && other.getServiceRole().equals(this.getServiceRole()) == false) return false; if (other.getNormalizedInstanceHours() == null ^ this.getNormalizedInstanceHours() == null) return false; if (other.getNormalizedInstanceHours() != null && other.getNormalizedInstanceHours().equals(this.getNormalizedInstanceHours()) == false) return false; if (other.getMasterPublicDnsName() == null ^ this.getMasterPublicDnsName() == null) return false; if (other.getMasterPublicDnsName() != null && other.getMasterPublicDnsName().equals(this.getMasterPublicDnsName()) == 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.getSecurityConfiguration() == null ^ this.getSecurityConfiguration() == null) return false; if (other.getSecurityConfiguration() != null && other.getSecurityConfiguration().equals(this.getSecurityConfiguration()) == false) return false; if (other.getAutoScalingRole() == null ^ this.getAutoScalingRole() == null) return false; if (other.getAutoScalingRole() != null && other.getAutoScalingRole().equals(this.getAutoScalingRole()) == false) return false; if (other.getScaleDownBehavior() == null ^ this.getScaleDownBehavior() == null) return false; if (other.getScaleDownBehavior() != null && other.getScaleDownBehavior().equals(this.getScaleDownBehavior()) == false) return false; if (other.getCustomAmiId() == null ^ this.getCustomAmiId() == null) return false; if (other.getCustomAmiId() != null && other.getCustomAmiId().equals(this.getCustomAmiId()) == false) return false; if (other.getEbsRootVolumeSize() == null ^ this.getEbsRootVolumeSize() == null) return false; if (other.getEbsRootVolumeSize() != null && other.getEbsRootVolumeSize().equals(this.getEbsRootVolumeSize()) == false) return false; if (other.getRepoUpgradeOnBoot() == null ^ this.getRepoUpgradeOnBoot() == null) return false; if (other.getRepoUpgradeOnBoot() != null && other.getRepoUpgradeOnBoot().equals(this.getRepoUpgradeOnBoot()) == false) return false; if (other.getKerberosAttributes() == null ^ this.getKerberosAttributes() == null) return false; if (other.getKerberosAttributes() != null && other.getKerberosAttributes().equals(this.getKerberosAttributes()) == false) return false; if (other.getClusterArn() == null ^ this.getClusterArn() == null) return false; if (other.getClusterArn() != null && other.getClusterArn().equals(this.getClusterArn()) == false) return false; if (other.getOutpostArn() == null ^ this.getOutpostArn() == null) return false; if (other.getOutpostArn() != null && other.getOutpostArn().equals(this.getOutpostArn()) == false) return false; if (other.getStepConcurrencyLevel() == null ^ this.getStepConcurrencyLevel() == null) return false; if (other.getStepConcurrencyLevel() != null && other.getStepConcurrencyLevel().equals(this.getStepConcurrencyLevel()) == false) return false; if (other.getPlacementGroups() == null ^ this.getPlacementGroups() == null) return false; if (other.getPlacementGroups() != null && other.getPlacementGroups().equals(this.getPlacementGroups()) == false) return false; if (other.getOSReleaseLabel() == null ^ this.getOSReleaseLabel() == null) return false; if (other.getOSReleaseLabel() != null && other.getOSReleaseLabel().equals(this.getOSReleaseLabel()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getEc2InstanceAttributes() == null) ? 0 : getEc2InstanceAttributes().hashCode()); hashCode = prime * hashCode + ((getInstanceCollectionType() == null) ? 0 : getInstanceCollectionType().hashCode()); hashCode = prime * hashCode + ((getLogUri() == null) ? 0 : getLogUri().hashCode()); hashCode = prime * hashCode + ((getLogEncryptionKmsKeyId() == null) ? 0 : getLogEncryptionKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getRequestedAmiVersion() == null) ? 0 : getRequestedAmiVersion().hashCode()); hashCode = prime * hashCode + ((getRunningAmiVersion() == null) ? 0 : getRunningAmiVersion().hashCode()); hashCode = prime * hashCode + ((getReleaseLabel() == null) ? 0 : getReleaseLabel().hashCode()); hashCode = prime * hashCode + ((getAutoTerminate() == null) ? 0 : getAutoTerminate().hashCode()); hashCode = prime * hashCode + ((getTerminationProtected() == null) ? 0 : getTerminationProtected().hashCode()); hashCode = prime * hashCode + ((getVisibleToAllUsers() == null) ? 0 : getVisibleToAllUsers().hashCode()); hashCode = prime * hashCode + ((getApplications() == null) ? 0 : getApplications().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getServiceRole() == null) ? 0 : getServiceRole().hashCode()); hashCode = prime * hashCode + ((getNormalizedInstanceHours() == null) ? 0 : getNormalizedInstanceHours().hashCode()); hashCode = prime * hashCode + ((getMasterPublicDnsName() == null) ? 0 : getMasterPublicDnsName().hashCode()); hashCode = prime * hashCode + ((getConfigurations() == null) ? 0 : getConfigurations().hashCode()); hashCode = prime * hashCode + ((getSecurityConfiguration() == null) ? 0 : getSecurityConfiguration().hashCode()); hashCode = prime * hashCode + ((getAutoScalingRole() == null) ? 0 : getAutoScalingRole().hashCode()); hashCode = prime * hashCode + ((getScaleDownBehavior() == null) ? 0 : getScaleDownBehavior().hashCode()); hashCode = prime * hashCode + ((getCustomAmiId() == null) ? 0 : getCustomAmiId().hashCode()); hashCode = prime * hashCode + ((getEbsRootVolumeSize() == null) ? 0 : getEbsRootVolumeSize().hashCode()); hashCode = prime * hashCode + ((getRepoUpgradeOnBoot() == null) ? 0 : getRepoUpgradeOnBoot().hashCode()); hashCode = prime * hashCode + ((getKerberosAttributes() == null) ? 0 : getKerberosAttributes().hashCode()); hashCode = prime * hashCode + ((getClusterArn() == null) ? 0 : getClusterArn().hashCode()); hashCode = prime * hashCode + ((getOutpostArn() == null) ? 0 : getOutpostArn().hashCode()); hashCode = prime * hashCode + ((getStepConcurrencyLevel() == null) ? 0 : getStepConcurrencyLevel().hashCode()); hashCode = prime * hashCode + ((getPlacementGroups() == null) ? 0 : getPlacementGroups().hashCode()); hashCode = prime * hashCode + ((getOSReleaseLabel() == null) ? 0 : getOSReleaseLabel().hashCode()); return hashCode; } @Override public Cluster clone() { try { return (Cluster) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.elasticmapreduce.model.transform.ClusterMarshaller.getInstance().marshall(this, protocolMarshaller); } }