@Generated(value="software.amazon.awssdk:codegen") public final class DBCluster extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DBCluster.Builder,DBCluster>
Detailed information about a cluster.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DBCluster.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<DBClusterRole> |
associatedRoles()
Provides a list of the Identity and Access Management (IAM) roles that are associated with the cluster.
|
List<String> |
availabilityZones()
Provides the list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
|
Integer |
backupRetentionPeriod()
Specifies the number of days for which automatic snapshots are retained.
|
static DBCluster.Builder |
builder() |
Instant |
clusterCreateTime()
Specifies the time when the cluster was created, in Universal Coordinated Time (UTC).
|
String |
dbClusterArn()
The Amazon Resource Name (ARN) for the cluster.
|
String |
dbClusterIdentifier()
Contains a user-supplied cluster identifier.
|
List<DBClusterMember> |
dbClusterMembers()
Provides the list of instances that make up the cluster.
|
String |
dbClusterParameterGroup()
Specifies the name of the cluster parameter group for the cluster.
|
String |
dbClusterResourceId()
The Region-unique, immutable identifier for the cluster.
|
String |
dbSubnetGroup()
Specifies information on the subnet group that is associated with the cluster, including the name, description,
and subnets in the subnet group.
|
Boolean |
deletionProtection()
Specifies whether this cluster can be deleted.
|
Instant |
earliestRestorableTime()
The earliest time to which a database can be restored with point-in-time restore.
|
List<String> |
enabledCloudwatchLogsExports()
A list of log types that this cluster is configured to export to Amazon CloudWatch Logs.
|
String |
endpoint()
Specifies the connection endpoint for the primary instance of the cluster.
|
String |
engine()
Provides the name of the database engine to be used for this cluster.
|
String |
engineVersion()
Indicates the database engine version.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAssociatedRoles()
For responses, this returns true if the service returned a value for the AssociatedRoles property.
|
boolean |
hasAvailabilityZones()
For responses, this returns true if the service returned a value for the AvailabilityZones property.
|
boolean |
hasDbClusterMembers()
For responses, this returns true if the service returned a value for the DBClusterMembers property.
|
boolean |
hasEnabledCloudwatchLogsExports()
For responses, this returns true if the service returned a value for the EnabledCloudwatchLogsExports property.
|
int |
hashCode() |
boolean |
hasReadReplicaIdentifiers()
For responses, this returns true if the service returned a value for the ReadReplicaIdentifiers property.
|
boolean |
hasVpcSecurityGroups()
For responses, this returns true if the service returned a value for the VpcSecurityGroups property.
|
String |
hostedZoneId()
Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
|
String |
kmsKeyId()
If
StorageEncrypted is true, the KMS key identifier for the encrypted cluster. |
Instant |
latestRestorableTime()
Specifies the latest time to which a database can be restored with point-in-time restore.
|
String |
masterUsername()
Contains the master user name for the cluster.
|
Boolean |
multiAZ()
Specifies whether the cluster has instances in multiple Availability Zones.
|
String |
percentProgress()
Specifies the progress of the operation as a percentage.
|
Integer |
port()
Specifies the port that the database engine is listening on.
|
String |
preferredBackupWindow()
Specifies the daily time range during which automated backups are created if automated backups are enabled, as
determined by the
BackupRetentionPeriod. |
String |
preferredMaintenanceWindow()
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
|
String |
readerEndpoint()
The reader endpoint for the cluster.
|
List<String> |
readReplicaIdentifiers()
Contains one or more identifiers of the secondary clusters that are associated with this cluster.
|
String |
replicationSourceIdentifier()
Contains the identifier of the source cluster if this cluster is a secondary cluster.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DBCluster.Builder> |
serializableBuilderClass() |
String |
status()
Specifies the current state of this cluster.
|
Boolean |
storageEncrypted()
Specifies whether the cluster is encrypted.
|
DBCluster.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<VpcSecurityGroupMembership> |
vpcSecurityGroups()
Provides a list of virtual private cloud (VPC) security groups that the cluster belongs to.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasAvailabilityZones()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> availabilityZones()
Provides the list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAvailabilityZones() method.
public final Integer backupRetentionPeriod()
Specifies the number of days for which automatic snapshots are retained.
public final String dbClusterIdentifier()
Contains a user-supplied cluster identifier. This identifier is the unique key that identifies a cluster.
public final String dbClusterParameterGroup()
Specifies the name of the cluster parameter group for the cluster.
public final String dbSubnetGroup()
Specifies information on the subnet group that is associated with the cluster, including the name, description, and subnets in the subnet group.
public final String status()
Specifies the current state of this cluster.
public final String percentProgress()
Specifies the progress of the operation as a percentage.
public final Instant earliestRestorableTime()
The earliest time to which a database can be restored with point-in-time restore.
public final String endpoint()
Specifies the connection endpoint for the primary instance of the cluster.
public final String readerEndpoint()
The reader endpoint for the cluster. The reader endpoint for a cluster load balances connections across the Amazon DocumentDB replicas that are available in a cluster. As clients request new connections to the reader endpoint, Amazon DocumentDB distributes the connection requests among the Amazon DocumentDB replicas in the cluster. This functionality can help balance your read workload across multiple Amazon DocumentDB replicas in your cluster.
If a failover occurs, and the Amazon DocumentDB replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Amazon DocumentDB replicas in the cluster, you can then reconnect to the reader endpoint.
If a failover occurs, and the Amazon DocumentDB replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Amazon DocumentDB replicas in the cluster, you can then reconnect to the reader endpoint.
public final Boolean multiAZ()
Specifies whether the cluster has instances in multiple Availability Zones.
public final String engine()
Provides the name of the database engine to be used for this cluster.
public final String engineVersion()
Indicates the database engine version.
public final Instant latestRestorableTime()
Specifies the latest time to which a database can be restored with point-in-time restore.
public final Integer port()
Specifies the port that the database engine is listening on.
public final String masterUsername()
Contains the master user name for the cluster.
public final String preferredBackupWindow()
Specifies the daily time range during which automated backups are created if automated backups are enabled, as
determined by the BackupRetentionPeriod.
BackupRetentionPeriod.public final String preferredMaintenanceWindow()
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
public final String replicationSourceIdentifier()
Contains the identifier of the source cluster if this cluster is a secondary cluster.
public final boolean hasReadReplicaIdentifiers()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> readReplicaIdentifiers()
Contains one or more identifiers of the secondary clusters that are associated with this cluster.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasReadReplicaIdentifiers() method.
public final boolean hasDbClusterMembers()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<DBClusterMember> dbClusterMembers()
Provides the list of instances that make up the cluster.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDbClusterMembers() method.
public final boolean hasVpcSecurityGroups()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<VpcSecurityGroupMembership> vpcSecurityGroups()
Provides a list of virtual private cloud (VPC) security groups that the cluster belongs to.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasVpcSecurityGroups() method.
public final String hostedZoneId()
Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
public final Boolean storageEncrypted()
Specifies whether the cluster is encrypted.
public final String kmsKeyId()
If StorageEncrypted is true, the KMS key identifier for the encrypted cluster.
StorageEncrypted is true, the KMS key identifier for the encrypted cluster.public final String dbClusterResourceId()
The Region-unique, immutable identifier for the cluster. This identifier is found in CloudTrail log entries whenever the KMS key for the cluster is accessed.
public final String dbClusterArn()
The Amazon Resource Name (ARN) for the cluster.
public final boolean hasAssociatedRoles()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<DBClusterRole> associatedRoles()
Provides a list of the Identity and Access Management (IAM) roles that are associated with the cluster. (IAM) roles that are associated with a cluster grant permission for the cluster to access other Amazon Web Services services on your behalf.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAssociatedRoles() method.
public final Instant clusterCreateTime()
Specifies the time when the cluster was created, in Universal Coordinated Time (UTC).
public final boolean hasEnabledCloudwatchLogsExports()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> enabledCloudwatchLogsExports()
A list of log types that this cluster is configured to export to Amazon CloudWatch Logs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasEnabledCloudwatchLogsExports() method.
public final Boolean deletionProtection()
Specifies whether this cluster can be deleted. If DeletionProtection is enabled, the cluster cannot
be deleted unless it is modified and DeletionProtection is disabled. DeletionProtection
protects clusters from being accidentally deleted.
DeletionProtection is enabled, the cluster
cannot be deleted unless it is modified and DeletionProtection is disabled.
DeletionProtection protects clusters from being accidentally deleted.public DBCluster.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DBCluster.Builder,DBCluster>public static DBCluster.Builder builder()
public static Class<? extends DBCluster.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.