@Generated(value="software.amazon.awssdk:codegen") public class Cluster extends Object implements ToCopyableBuilder<Cluster.Builder,Cluster>
Describes a cluster.
Modifier and Type | Class and Description |
---|---|
static interface |
Cluster.Builder |
Modifier and Type | Method and Description |
---|---|
Boolean |
allowVersionUpgrade()
A Boolean value that, if
true , indicates that major version upgrades will be applied automatically
to the cluster during the maintenance window. |
Integer |
automatedSnapshotRetentionPeriod()
The number of days that automatic cluster snapshots are retained.
|
String |
availabilityZone()
The name of the Availability Zone in which the cluster is located.
|
static Cluster.Builder |
builder() |
Instant |
clusterCreateTime()
The date and time that the cluster was created.
|
String |
clusterIdentifier()
The unique identifier of the cluster.
|
List<ClusterNode> |
clusterNodes()
The nodes in the cluster.
|
List<ClusterParameterGroupStatus> |
clusterParameterGroups()
The list of cluster parameter groups that are associated with this cluster.
|
String |
clusterPublicKey()
The public key for the cluster.
|
String |
clusterRevisionNumber()
The specific revision number of the database in the cluster.
|
List<ClusterSecurityGroupMembership> |
clusterSecurityGroups()
A list of cluster security group that are associated with the cluster.
|
ClusterSnapshotCopyStatus |
clusterSnapshotCopyStatus()
A value that returns the destination region and retention period that are configured for cross-region snapshot
copy.
|
String |
clusterStatus()
The current state of the cluster.
|
String |
clusterSubnetGroupName()
The name of the subnet group that is associated with the cluster.
|
String |
clusterVersion()
The version ID of the Amazon Redshift engine that is running on the cluster.
|
String |
dbName()
The name of the initial database that was created when the cluster was created.
|
ElasticIpStatus |
elasticIpStatus()
The status of the elastic IP (EIP) address.
|
Boolean |
encrypted()
A Boolean value that, if
true , indicates that data in the cluster is encrypted at rest. |
Endpoint |
endpoint()
The connection endpoint.
|
Boolean |
enhancedVpcRouting()
An option that specifies whether to create the cluster with enhanced VPC routing enabled.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HsmStatus |
hsmStatus()
A value that reports whether the Amazon Redshift cluster has finished applying any hardware security module (HSM)
settings changes specified in a modify cluster command.
|
List<ClusterIamRole> |
iamRoles()
A list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS
services.
|
String |
kmsKeyId()
The AWS Key Management Service (AWS KMS) key ID of the encryption key used to encrypt data in the cluster.
|
String |
masterUsername()
The master user name for the cluster.
|
String |
modifyStatus()
The status of a modify operation, if any, initiated for the cluster.
|
String |
nodeType()
The node type for the nodes in the cluster.
|
Integer |
numberOfNodes()
The number of compute nodes in the cluster.
|
PendingModifiedValues |
pendingModifiedValues()
A value that, if present, indicates that changes to the cluster are pending.
|
String |
preferredMaintenanceWindow()
The weekly time range, in Universal Coordinated Time (UTC), during which system maintenance can occur.
|
Boolean |
publiclyAccessible()
A Boolean value that, if
true , indicates that the cluster can be accessed from a public network. |
RestoreStatus |
restoreStatus()
A value that describes the status of a cluster restore action.
|
static Class<? extends Cluster.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
The list of tags for the cluster.
|
Cluster.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
vpcId()
The identifier of the VPC the cluster is in, if the cluster is in a VPC.
|
List<VpcSecurityGroupMembership> |
vpcSecurityGroups()
A list of Amazon Virtual Private Cloud (Amazon VPC) security groups that are associated with the cluster.
|
copy
public String clusterIdentifier()
The unique identifier of the cluster.
public String nodeType()
The node type for the nodes in the cluster.
public String clusterStatus()
The current state of the cluster. Possible values are the following:
available
creating
deleting
final-snapshot
hardware-failure
incompatible-hsm
incompatible-network
incompatible-parameters
incompatible-restore
modifying
rebooting
renaming
resizing
rotating-keys
storage-full
updating-hsm
available
creating
deleting
final-snapshot
hardware-failure
incompatible-hsm
incompatible-network
incompatible-parameters
incompatible-restore
modifying
rebooting
renaming
resizing
rotating-keys
storage-full
updating-hsm
public String modifyStatus()
The status of a modify operation, if any, initiated for the cluster.
public String masterUsername()
The master user name for the cluster. This name is used to connect to the database that is specified in the DBName parameter.
public String dbName()
The name of the initial database that was created when the cluster was created. This same name is returned for
the life of the cluster. If an initial database was not specified, a database named dev
dev was
created by default.
dev
dev was created by default.public Endpoint endpoint()
The connection endpoint.
public Instant clusterCreateTime()
The date and time that the cluster was created.
public Integer automatedSnapshotRetentionPeriod()
The number of days that automatic cluster snapshots are retained.
public List<ClusterSecurityGroupMembership> clusterSecurityGroups()
A list of cluster security group that are associated with the cluster. Each security group is represented by an
element that contains ClusterSecurityGroup.Name
and ClusterSecurityGroup.Status
subelements.
Cluster security groups are used when the cluster is not created in an Amazon Virtual Private Cloud (VPC). Clusters that are created in a VPC use VPC security groups, which are listed by the VpcSecurityGroups parameter.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ClusterSecurityGroup.Name
and
ClusterSecurityGroup.Status
subelements.
Cluster security groups are used when the cluster is not created in an Amazon Virtual Private Cloud (VPC). Clusters that are created in a VPC use VPC security groups, which are listed by the VpcSecurityGroups parameter.
public List<VpcSecurityGroupMembership> vpcSecurityGroups()
A list of Amazon Virtual Private Cloud (Amazon VPC) security groups that are associated with the cluster. This parameter is returned only if the cluster is in a VPC.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<ClusterParameterGroupStatus> clusterParameterGroups()
The list of cluster parameter groups that are associated with this cluster. Each parameter group in the list is returned with its status.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String clusterSubnetGroupName()
The name of the subnet group that is associated with the cluster. This parameter is valid only when the cluster is in a VPC.
public String vpcId()
The identifier of the VPC the cluster is in, if the cluster is in a VPC.
public String availabilityZone()
The name of the Availability Zone in which the cluster is located.
public String preferredMaintenanceWindow()
The weekly time range, in Universal Coordinated Time (UTC), during which system maintenance can occur.
public PendingModifiedValues pendingModifiedValues()
A value that, if present, indicates that changes to the cluster are pending. Specific pending changes are identified by subelements.
public String clusterVersion()
The version ID of the Amazon Redshift engine that is running on the cluster.
public Boolean allowVersionUpgrade()
A Boolean value that, if true
, indicates that major version upgrades will be applied automatically
to the cluster during the maintenance window.
true
, indicates that major version upgrades will be applied
automatically to the cluster during the maintenance window.public Integer numberOfNodes()
The number of compute nodes in the cluster.
public Boolean publiclyAccessible()
A Boolean value that, if true
, indicates that the cluster can be accessed from a public network.
true
, indicates that the cluster can be accessed from a public
network.public Boolean encrypted()
A Boolean value that, if true
, indicates that data in the cluster is encrypted at rest.
true
, indicates that data in the cluster is encrypted at rest.public RestoreStatus restoreStatus()
A value that describes the status of a cluster restore action. This parameter returns null if the cluster was not created by restoring a snapshot.
public HsmStatus hsmStatus()
A value that reports whether the Amazon Redshift cluster has finished applying any hardware security module (HSM) settings changes specified in a modify cluster command.
Values: active, applying
Values: active, applying
public ClusterSnapshotCopyStatus clusterSnapshotCopyStatus()
A value that returns the destination region and retention period that are configured for cross-region snapshot copy.
public String clusterPublicKey()
The public key for the cluster.
public List<ClusterNode> clusterNodes()
The nodes in the cluster.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public ElasticIpStatus elasticIpStatus()
The status of the elastic IP (EIP) address.
public String clusterRevisionNumber()
The specific revision number of the database in the cluster.
public List<Tag> tags()
The list of tags for the cluster.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String kmsKeyId()
The AWS Key Management Service (AWS KMS) key ID of the encryption key used to encrypt data in the cluster.
public Boolean enhancedVpcRouting()
An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
If this option is true
, enhanced VPC routing is enabled.
Default: false
If this option is true
, enhanced VPC routing is enabled.
Default: false
public List<ClusterIamRole> iamRoles()
A list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS services.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Cluster.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Cluster.Builder,Cluster>
public static Cluster.Builder builder()
public static Class<? extends Cluster.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.