public class Cluster extends Object implements Serializable
The detailed description of the cluster.
Constructor and Description |
---|
Cluster() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<Application> |
getApplications()
The applications installed on this cluster.
|
Boolean |
getAutoTerminate()
Specifies whether the cluster should terminate after completing all
steps.
|
Ec2InstanceAttributes |
getEc2InstanceAttributes()
Provides information about the EC2 instances in a cluster grouped by
category.
|
String |
getId()
The unique identifier for the cluster.
|
String |
getLogUri()
The path to the Amazon S3 location where logs for this cluster are
stored.
|
String |
getName()
The name of the cluster.
|
String |
getRequestedAmiVersion()
The AMI version requested for this cluster.
|
String |
getRunningAmiVersion()
The AMI version running on this cluster.
|
ClusterStatus |
getStatus()
The current status details about the cluster.
|
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.
|
Boolean |
getVisibleToAllUsers()
Indicates whether the job flow is visible to all IAM users of the AWS
account associated with the job flow.
|
int |
hashCode() |
Boolean |
isAutoTerminate()
Specifies whether the cluster should terminate after completing all
steps.
|
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.
|
Boolean |
isVisibleToAllUsers()
Indicates whether the job flow is visible to all IAM users of the AWS
account associated with the job flow.
|
void |
setApplications(Collection<Application> applications)
The applications installed on this cluster.
|
void |
setAutoTerminate(Boolean autoTerminate)
Specifies whether the cluster should terminate after completing all
steps.
|
void |
setEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes)
Provides information about the EC2 instances in a cluster grouped by
category.
|
void |
setId(String id)
The unique identifier for the cluster.
|
void |
setLogUri(String logUri)
The path to the Amazon S3 location where logs for this cluster are
stored.
|
void |
setName(String name)
The name of the cluster.
|
void |
setRequestedAmiVersion(String requestedAmiVersion)
The AMI version requested for this cluster.
|
void |
setRunningAmiVersion(String runningAmiVersion)
The AMI version running on this cluster.
|
void |
setStatus(ClusterStatus status)
The current status details about the cluster.
|
void |
setTerminationProtected(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(Boolean visibleToAllUsers)
Indicates whether the job flow is visible to all IAM users of the AWS
account associated with the job flow.
|
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(Collection<Application> applications)
The applications installed on this cluster.
|
Cluster |
withAutoTerminate(Boolean autoTerminate)
Specifies whether the cluster should terminate after completing all
steps.
|
Cluster |
withEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes)
Provides information about the EC2 instances in a cluster grouped by
category.
|
Cluster |
withId(String id)
The unique identifier for the cluster.
|
Cluster |
withLogUri(String logUri)
The path to the Amazon S3 location where logs for this cluster are
stored.
|
Cluster |
withName(String name)
The name of the cluster.
|
Cluster |
withRequestedAmiVersion(String requestedAmiVersion)
The AMI version requested for this cluster.
|
Cluster |
withRunningAmiVersion(String runningAmiVersion)
The AMI version running on this cluster.
|
Cluster |
withStatus(ClusterStatus status)
The current status details about the cluster.
|
Cluster |
withTerminationProtected(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(Boolean visibleToAllUsers)
Indicates whether the job flow is visible to all IAM users of the AWS
account associated with the job flow.
|
public String getId()
Constraints:
Length: 1 - 64
public void setId(String id)
Constraints:
Length: 1 - 64
id
- The unique identifier for the cluster.public Cluster withId(String id)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
id
- The unique identifier for the cluster.public String getName()
Constraints:
Length: 0 - 256
public void setName(String name)
Constraints:
Length: 0 - 256
name
- The name of the cluster.public Cluster withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
name
- The name of the cluster.public ClusterStatus getStatus()
public void setStatus(ClusterStatus status)
status
- The current status details about the cluster.public Cluster withStatus(ClusterStatus status)
Returns a reference to this object so that method calls can be chained together.
status
- The current status details about the cluster.public Ec2InstanceAttributes getEc2InstanceAttributes()
public void setEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes)
ec2InstanceAttributes
- Provides information about the EC2 instances in a cluster grouped by
category. For example, EC2 Key Name, Subnet Id, Instance Profile, and
so on.public Cluster withEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes)
Returns a reference to this object so that method calls can be chained together.
ec2InstanceAttributes
- Provides information about the EC2 instances in a cluster grouped by
category. For example, EC2 Key Name, Subnet Id, Instance Profile, and
so on.public String getLogUri()
public void setLogUri(String logUri)
logUri
- The path to the Amazon S3 location where logs for this cluster are
stored.public Cluster withLogUri(String logUri)
Returns a reference to this object so that method calls can be chained together.
logUri
- The path to the Amazon S3 location where logs for this cluster are
stored.public String getRequestedAmiVersion()
Constraints:
Length: 0 - 256
public void setRequestedAmiVersion(String requestedAmiVersion)
Constraints:
Length: 0 - 256
requestedAmiVersion
- The AMI version requested for this cluster.public Cluster withRequestedAmiVersion(String requestedAmiVersion)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
requestedAmiVersion
- The AMI version requested for this cluster.public String getRunningAmiVersion()
Constraints:
Length: 0 - 256
public void setRunningAmiVersion(String runningAmiVersion)
Constraints:
Length: 0 - 256
runningAmiVersion
- The AMI version running on this cluster. This differs from the
requested version only if the requested version is a meta version,
such as "latest". public Cluster withRunningAmiVersion(String runningAmiVersion)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
runningAmiVersion
- The AMI version running on this cluster. This differs from the
requested version only if the requested version is a meta version,
such as "latest". public Boolean isAutoTerminate()
public void setAutoTerminate(Boolean autoTerminate)
autoTerminate
- Specifies whether the cluster should terminate after completing all
steps.public Cluster withAutoTerminate(Boolean autoTerminate)
Returns a reference to this object so that method calls can be chained together.
autoTerminate
- Specifies whether the cluster should terminate after completing all
steps.public Boolean getAutoTerminate()
public Boolean isTerminationProtected()
public void setTerminationProtected(Boolean terminationProtected)
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 Cluster withTerminationProtected(Boolean terminationProtected)
Returns a reference to this object so that method calls can be chained together.
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 Boolean getTerminationProtected()
public Boolean isVisibleToAllUsers()
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 void setVisibleToAllUsers(Boolean visibleToAllUsers)
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 Cluster withVisibleToAllUsers(Boolean visibleToAllUsers)
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.
Returns a reference to this object so that method calls can be chained together.
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 Boolean getVisibleToAllUsers()
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 List<Application> getApplications()
public void setApplications(Collection<Application> applications)
applications
- The applications installed on this cluster.public Cluster withApplications(Application... applications)
Returns a reference to this object so that method calls can be chained together.
applications
- The applications installed on this cluster.public Cluster withApplications(Collection<Application> applications)
Returns a reference to this object so that method calls can be chained together.
applications
- The applications installed on this cluster.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.