public class Cluster
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The detailed description of the cluster.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Application> |
applications
The applications installed on this cluster.
|
private java.lang.Boolean |
autoTerminate
Specifies whether the cluster should terminate after completing all
steps.
|
private SdkInternalList<Configuration> |
configurations
|
private Ec2InstanceAttributes |
ec2InstanceAttributes |
private java.lang.String |
id
The unique identifier for the cluster.
|
private java.lang.String |
logUri
The path to the Amazon S3 location where logs for this cluster are
stored.
|
private java.lang.String |
masterPublicDnsName
The public DNS name of the master EC2 instance.
|
private java.lang.String |
name
The name of the cluster.
|
private java.lang.Integer |
normalizedInstanceHours
An approximation of the cost of the job flow, represented in
m1.small/hours.
|
private java.lang.String |
releaseLabel
The release label for the Amazon EMR release.
|
private java.lang.String |
requestedAmiVersion
The AMI version requested for this cluster.
|
private java.lang.String |
runningAmiVersion
The AMI version running on this cluster.
|
private java.lang.String |
serviceRole
The IAM role that will be assumed by the Amazon EMR service to access AWS
resources on your behalf.
|
private ClusterStatus |
status
The current status details about the cluster.
|
private SdkInternalList<Tag> |
tags
A list of tags associated with a cluster.
|
private java.lang.Boolean |
terminationProtected
Indicates whether Amazon EMR will lock the cluster to prevent the EC2
instances from being terminated by an API call or user intervention, or
in the event of a cluster error.
|
private java.lang.Boolean |
visibleToAllUsers
Indicates whether the job flow is visible to all IAM users of the AWS
account associated with the job flow.
|
Constructor and Description |
---|
Cluster() |
Modifier and Type | Method and Description |
---|---|
Cluster |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Application> |
getApplications()
The applications installed on this cluster.
|
java.lang.Boolean |
getAutoTerminate()
Specifies whether the cluster should terminate after completing all
steps.
|
java.util.List<Configuration> |
getConfigurations()
|
Ec2InstanceAttributes |
getEc2InstanceAttributes() |
java.lang.String |
getId()
The unique identifier for the cluster.
|
java.lang.String |
getLogUri()
The path to the Amazon S3 location where logs for this cluster are
stored.
|
java.lang.String |
getMasterPublicDnsName()
The public DNS name of the master EC2 instance.
|
java.lang.String |
getName()
The name of the cluster.
|
java.lang.Integer |
getNormalizedInstanceHours()
An approximation of the cost of the job flow, represented in
m1.small/hours.
|
java.lang.String |
getReleaseLabel()
The release label for the Amazon EMR release.
|
java.lang.String |
getRequestedAmiVersion()
The AMI version requested for this cluster.
|
java.lang.String |
getRunningAmiVersion()
The AMI version running on this cluster.
|
java.lang.String |
getServiceRole()
The IAM role that will be assumed by the Amazon EMR service to access AWS
resources on your behalf.
|
ClusterStatus |
getStatus()
The current status details about the cluster.
|
java.util.List<Tag> |
getTags()
A list of tags associated with a cluster.
|
java.lang.Boolean |
getTerminationProtected()
Indicates whether Amazon EMR will lock the cluster to prevent the EC2
instances from being terminated by an API call or user intervention, or
in the event of a cluster error.
|
java.lang.Boolean |
getVisibleToAllUsers()
Indicates whether the job flow is visible to all IAM users of the AWS
account associated with the job flow.
|
int |
hashCode() |
java.lang.Boolean |
isAutoTerminate()
Specifies whether the cluster should terminate after completing all
steps.
|
java.lang.Boolean |
isTerminationProtected()
Indicates whether Amazon EMR will lock the cluster to prevent the EC2
instances from being terminated by an API call or user intervention, or
in the event of a cluster error.
|
java.lang.Boolean |
isVisibleToAllUsers()
Indicates whether the job flow is visible to all IAM users of the AWS
account associated with the job flow.
|
void |
setApplications(java.util.Collection<Application> applications)
The applications installed on this cluster.
|
void |
setAutoTerminate(java.lang.Boolean autoTerminate)
Specifies whether the cluster should terminate after completing all
steps.
|
void |
setConfigurations(java.util.Collection<Configuration> configurations)
|
void |
setEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes) |
void |
setId(java.lang.String id)
The unique identifier for the cluster.
|
void |
setLogUri(java.lang.String logUri)
The path to the Amazon S3 location where logs for this cluster are
stored.
|
void |
setMasterPublicDnsName(java.lang.String masterPublicDnsName)
The public DNS name of the master EC2 instance.
|
void |
setName(java.lang.String name)
The name of the cluster.
|
void |
setNormalizedInstanceHours(java.lang.Integer normalizedInstanceHours)
An approximation of the cost of the job flow, represented in
m1.small/hours.
|
void |
setReleaseLabel(java.lang.String releaseLabel)
The release label for the Amazon EMR release.
|
void |
setRequestedAmiVersion(java.lang.String requestedAmiVersion)
The AMI version requested for this cluster.
|
void |
setRunningAmiVersion(java.lang.String runningAmiVersion)
The AMI version running on this cluster.
|
void |
setServiceRole(java.lang.String serviceRole)
The IAM role that will be assumed by the Amazon EMR service to access AWS
resources on your behalf.
|
void |
setStatus(ClusterStatus status)
The current status details about the cluster.
|
void |
setTags(java.util.Collection<Tag> tags)
A list of tags associated with a cluster.
|
void |
setTerminationProtected(java.lang.Boolean terminationProtected)
Indicates whether Amazon EMR will lock the cluster to prevent the EC2
instances from being terminated by an API call or user intervention, or
in the event of a cluster error.
|
void |
setVisibleToAllUsers(java.lang.Boolean visibleToAllUsers)
Indicates whether the job flow is visible to all IAM users of the AWS
account associated with the job flow.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Cluster |
withApplications(Application... applications)
The applications installed on this cluster.
|
Cluster |
withApplications(java.util.Collection<Application> applications)
The applications installed on this cluster.
|
Cluster |
withAutoTerminate(java.lang.Boolean autoTerminate)
Specifies whether the cluster should terminate after completing all
steps.
|
Cluster |
withConfigurations(java.util.Collection<Configuration> configurations)
|
Cluster |
withConfigurations(Configuration... configurations)
|
Cluster |
withEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes) |
Cluster |
withId(java.lang.String id)
The unique identifier for the cluster.
|
Cluster |
withLogUri(java.lang.String logUri)
The path to the Amazon S3 location where logs for this cluster are
stored.
|
Cluster |
withMasterPublicDnsName(java.lang.String masterPublicDnsName)
The public DNS name of the master EC2 instance.
|
Cluster |
withName(java.lang.String name)
The name of the cluster.
|
Cluster |
withNormalizedInstanceHours(java.lang.Integer normalizedInstanceHours)
An approximation of the cost of the job flow, represented in
m1.small/hours.
|
Cluster |
withReleaseLabel(java.lang.String releaseLabel)
The release label for the Amazon EMR release.
|
Cluster |
withRequestedAmiVersion(java.lang.String requestedAmiVersion)
The AMI version requested for this cluster.
|
Cluster |
withRunningAmiVersion(java.lang.String runningAmiVersion)
The AMI version running on this cluster.
|
Cluster |
withServiceRole(java.lang.String serviceRole)
The IAM role that will be assumed by the Amazon EMR service to access AWS
resources on your behalf.
|
Cluster |
withStatus(ClusterStatus status)
The current status details about the cluster.
|
Cluster |
withTags(java.util.Collection<Tag> tags)
A list of tags associated with a cluster.
|
Cluster |
withTags(Tag... tags)
A list of tags associated with a cluster.
|
Cluster |
withTerminationProtected(java.lang.Boolean terminationProtected)
Indicates whether Amazon EMR will lock the cluster to prevent the EC2
instances from being terminated by an API call or user intervention, or
in the event of a cluster error.
|
Cluster |
withVisibleToAllUsers(java.lang.Boolean visibleToAllUsers)
Indicates whether the job flow is visible to all IAM users of the AWS
account associated with the job flow.
|
private java.lang.String id
The unique identifier for the cluster.
private java.lang.String name
The name of the cluster.
private ClusterStatus status
The current status details about the cluster.
private Ec2InstanceAttributes ec2InstanceAttributes
private java.lang.String logUri
The path to the Amazon S3 location where logs for this cluster are stored.
private java.lang.String requestedAmiVersion
The AMI version requested for this cluster.
private java.lang.String runningAmiVersion
The AMI version running on this cluster.
private java.lang.String releaseLabel
The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.
private java.lang.Boolean autoTerminate
Specifies whether the cluster should terminate after completing all steps.
private java.lang.Boolean terminationProtected
Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances from being terminated by an API call or user intervention, or in the event of a cluster error.
private java.lang.Boolean visibleToAllUsers
Indicates 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 manage
the job flow if they have the proper policy permissions set. If this
value is false
, only the IAM user that created the cluster
can view and manage it. This value can be changed using the
SetVisibleToAllUsers action.
private SdkInternalList<Application> applications
The applications installed on this cluster.
private SdkInternalList<Tag> tags
A list of tags associated with a cluster.
private java.lang.String serviceRole
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
private java.lang.Integer normalizedInstanceHours
An approximation of the cost of the job flow, 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 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 java.lang.String masterPublicDnsName
The public DNS name of the master EC2 instance.
private SdkInternalList<Configuration> configurations
Amazon EMR releases 4.x or later.
The list of Configurations supplied to the EMR cluster.
public void setId(java.lang.String id)
The unique identifier for the cluster.
id
- The unique identifier for the cluster.public java.lang.String getId()
The unique identifier for the cluster.
public Cluster withId(java.lang.String id)
The unique identifier for the cluster.
id
- The unique identifier for the cluster.public void setName(java.lang.String name)
The name of the cluster.
name
- The name of the cluster.public java.lang.String getName()
The name of the cluster.
public Cluster withName(java.lang.String name)
The name of the cluster.
name
- The name of the cluster.public void setStatus(ClusterStatus status)
The current status details about the cluster.
status
- The current status details about the cluster.public ClusterStatus getStatus()
The current status details about the cluster.
public Cluster withStatus(ClusterStatus status)
The current status details about the cluster.
status
- The current status details about the cluster.public void setEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes)
ec2InstanceAttributes
- public Ec2InstanceAttributes getEc2InstanceAttributes()
public Cluster withEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes)
ec2InstanceAttributes
- public void setLogUri(java.lang.String logUri)
The path to the Amazon S3 location where logs for this cluster are stored.
logUri
- The path to the Amazon S3 location where logs for this cluster are
stored.public java.lang.String getLogUri()
The path to the Amazon S3 location where logs for this cluster are stored.
public Cluster withLogUri(java.lang.String logUri)
The path to the Amazon S3 location where logs for this cluster are stored.
logUri
- The path to the Amazon S3 location where logs for this cluster are
stored.public void setRequestedAmiVersion(java.lang.String requestedAmiVersion)
The AMI version requested for this cluster.
requestedAmiVersion
- The AMI version requested for this cluster.public java.lang.String getRequestedAmiVersion()
The AMI version requested for this cluster.
public Cluster withRequestedAmiVersion(java.lang.String requestedAmiVersion)
The AMI version requested for this cluster.
requestedAmiVersion
- The AMI version requested for this cluster.public void setRunningAmiVersion(java.lang.String runningAmiVersion)
The AMI version running on this cluster.
runningAmiVersion
- The AMI version running on this cluster.public java.lang.String getRunningAmiVersion()
The AMI version running on this cluster.
public Cluster withRunningAmiVersion(java.lang.String runningAmiVersion)
The AMI version running on this cluster.
runningAmiVersion
- The AMI version running on this cluster.public void setReleaseLabel(java.lang.String releaseLabel)
The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.
releaseLabel
- The release label for the Amazon EMR release. For Amazon EMR 3.x
and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.public java.lang.String getReleaseLabel()
The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.
public Cluster withReleaseLabel(java.lang.String releaseLabel)
The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.
releaseLabel
- The release label for the Amazon EMR release. For Amazon EMR 3.x
and 2.x AMIs, use amiVersion instead instead of ReleaseLabel.public void setAutoTerminate(java.lang.Boolean autoTerminate)
Specifies whether the cluster should terminate after completing all steps.
autoTerminate
- Specifies whether the cluster should terminate after completing
all steps.public java.lang.Boolean getAutoTerminate()
Specifies whether the cluster should terminate after completing all steps.
public Cluster withAutoTerminate(java.lang.Boolean autoTerminate)
Specifies whether the cluster should terminate after completing all steps.
autoTerminate
- Specifies whether the cluster should terminate after completing
all steps.public java.lang.Boolean isAutoTerminate()
Specifies whether the cluster should terminate after completing all steps.
public void setTerminationProtected(java.lang.Boolean terminationProtected)
Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances from being terminated by an API call or user intervention, or in the event of a cluster error.
terminationProtected
- Indicates whether Amazon EMR will lock the cluster to prevent the
EC2 instances from being terminated by an API call or user
intervention, or in the event of a cluster error.public java.lang.Boolean getTerminationProtected()
Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances from being terminated by an API call or user intervention, or in the event of a cluster error.
public Cluster withTerminationProtected(java.lang.Boolean terminationProtected)
Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances from being terminated by an API call or user intervention, or in the event of a cluster error.
terminationProtected
- Indicates whether Amazon EMR will lock the cluster to prevent the
EC2 instances from being terminated by an API call or user
intervention, or in the event of a cluster error.public java.lang.Boolean isTerminationProtected()
Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances from being terminated by an API call or user intervention, or in the event of a cluster error.
public void setVisibleToAllUsers(java.lang.Boolean visibleToAllUsers)
Indicates 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 manage
the job flow if they have the proper policy permissions set. If this
value is false
, only the IAM user that created the cluster
can view and manage it. This value can be changed using the
SetVisibleToAllUsers action.
visibleToAllUsers
- Indicates 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
manage the job flow if they have the proper policy permissions
set. If this value is false
, only the IAM user that
created the cluster can view and manage it. This value can be
changed using the SetVisibleToAllUsers action.public java.lang.Boolean getVisibleToAllUsers()
Indicates 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 manage
the job flow if they have the proper policy permissions set. If this
value is false
, only the IAM user that created the cluster
can view and manage it. This value can be changed using the
SetVisibleToAllUsers action.
true
, all IAM users of that AWS account can view and
manage the job flow if they have the proper policy permissions
set. If this value is false
, only the IAM user that
created the cluster can view and manage it. This value can be
changed using the SetVisibleToAllUsers action.public Cluster withVisibleToAllUsers(java.lang.Boolean visibleToAllUsers)
Indicates 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 manage
the job flow if they have the proper policy permissions set. If this
value is false
, only the IAM user that created the cluster
can view and manage it. This value can be changed using the
SetVisibleToAllUsers action.
visibleToAllUsers
- Indicates 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
manage the job flow if they have the proper policy permissions
set. If this value is false
, only the IAM user that
created the cluster can view and manage it. This value can be
changed using the SetVisibleToAllUsers action.public java.lang.Boolean isVisibleToAllUsers()
Indicates 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 manage
the job flow if they have the proper policy permissions set. If this
value is false
, only the IAM user that created the cluster
can view and manage it. This value can be changed using the
SetVisibleToAllUsers action.
true
, all IAM users of that AWS account can view and
manage the job flow if they have the proper policy permissions
set. If this value is false
, only the IAM user that
created the cluster can view and manage it. This value can be
changed using the SetVisibleToAllUsers action.public java.util.List<Application> getApplications()
The applications installed on this cluster.
public void setApplications(java.util.Collection<Application> applications)
The applications installed on this cluster.
applications
- The applications installed on this cluster.public Cluster withApplications(Application... applications)
The applications installed on this cluster.
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.
applications
- The applications installed on this cluster.public Cluster withApplications(java.util.Collection<Application> applications)
The applications installed on this cluster.
applications
- The applications installed on this cluster.public java.util.List<Tag> getTags()
A list of tags associated with a cluster.
public void setTags(java.util.Collection<Tag> tags)
A list of tags associated with a cluster.
tags
- A list of tags associated with a cluster.public Cluster withTags(Tag... tags)
A list of tags associated with a cluster.
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.
tags
- A list of tags associated with a cluster.public Cluster withTags(java.util.Collection<Tag> tags)
A list of tags associated with a cluster.
tags
- A list of tags associated with a cluster.public void setServiceRole(java.lang.String serviceRole)
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
serviceRole
- The IAM role that will be assumed by the Amazon EMR service to
access AWS resources on your behalf.public java.lang.String getServiceRole()
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
public Cluster withServiceRole(java.lang.String serviceRole)
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
serviceRole
- The IAM role that will be assumed by the Amazon EMR service to
access AWS resources on your behalf.public void setNormalizedInstanceHours(java.lang.Integer normalizedInstanceHours)
An approximation of the cost of the job flow, 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 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.
normalizedInstanceHours
- An approximation of the cost of the job flow, 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 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 java.lang.Integer getNormalizedInstanceHours()
An approximation of the cost of the job flow, 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 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 Cluster withNormalizedInstanceHours(java.lang.Integer normalizedInstanceHours)
An approximation of the cost of the job flow, 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 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.
normalizedInstanceHours
- An approximation of the cost of the job flow, 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 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 setMasterPublicDnsName(java.lang.String masterPublicDnsName)
The public DNS name of the master EC2 instance.
masterPublicDnsName
- The public DNS name of the master EC2 instance.public java.lang.String getMasterPublicDnsName()
The public DNS name of the master EC2 instance.
public Cluster withMasterPublicDnsName(java.lang.String masterPublicDnsName)
The public DNS name of the master EC2 instance.
masterPublicDnsName
- The public DNS name of the master EC2 instance.public java.util.List<Configuration> getConfigurations()
Amazon EMR releases 4.x or later.
The list of Configurations supplied to the EMR cluster.
public void setConfigurations(java.util.Collection<Configuration> configurations)
Amazon EMR releases 4.x or later.
The list of Configurations supplied to the EMR cluster.
configurations
- Amazon EMR releases 4.x or later.public Cluster withConfigurations(Configuration... configurations)
Amazon EMR releases 4.x or later.
The list of Configurations supplied to the EMR cluster.
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.
configurations
- Amazon EMR releases 4.x or later.public Cluster withConfigurations(java.util.Collection<Configuration> configurations)
Amazon EMR releases 4.x or later.
The list of Configurations supplied to the EMR cluster.
configurations
- Amazon EMR releases 4.x or later.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Cluster clone()
clone
in class java.lang.Object