@Generated(value="software.amazon.awssdk:codegen") public final class DBInstance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DBInstance.Builder,DBInstance>
Detailed information about an instance.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DBInstance.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
autoMinorVersionUpgrade()
Does not apply.
|
String |
availabilityZone()
Specifies the name of the Availability Zone that the instance is located in.
|
Integer |
backupRetentionPeriod()
Specifies the number of days for which automatic snapshots are retained.
|
static DBInstance.Builder |
builder() |
String |
caCertificateIdentifier()
The identifier of the CA certificate for this DB instance.
|
Boolean |
copyTagsToSnapshot()
A value that indicates whether to copy tags from the DB instance to snapshots of the DB instance.
|
String |
dbClusterIdentifier()
Contains the name of the cluster that the instance is a member of if the instance is a member of a cluster.
|
String |
dbInstanceArn()
The Amazon Resource Name (ARN) for the instance.
|
String |
dbInstanceClass()
Contains the name of the compute and memory capacity class of the instance.
|
String |
dbInstanceIdentifier()
Contains a user-provided database identifier.
|
String |
dbInstanceStatus()
Specifies the current state of this database.
|
String |
dbiResourceId()
The Amazon Web Services Region-unique, immutable identifier for the instance.
|
DBSubnetGroup |
dbSubnetGroup()
Specifies information on the subnet group that is associated with the instance, including the name, description,
and subnets in the subnet group.
|
List<String> |
enabledCloudwatchLogsExports()
A list of log types that this instance is configured to export to CloudWatch Logs.
|
Endpoint |
endpoint()
Specifies the connection endpoint.
|
String |
engine()
Provides the name of the database engine to be used for this instance.
|
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 |
hasEnabledCloudwatchLogsExports()
For responses, this returns true if the service returned a value for the EnabledCloudwatchLogsExports property.
|
int |
hashCode() |
boolean |
hasStatusInfos()
For responses, this returns true if the service returned a value for the StatusInfos property.
|
boolean |
hasVpcSecurityGroups()
For responses, this returns true if the service returned a value for the VpcSecurityGroups property.
|
Instant |
instanceCreateTime()
Provides the date and time that the instance was created.
|
String |
kmsKeyId()
If
StorageEncrypted is true, the KMS key identifier for the encrypted instance. |
Instant |
latestRestorableTime()
Specifies the latest time to which a database can be restored with point-in-time restore.
|
PendingModifiedValues |
pendingModifiedValues()
Specifies that changes to the instance are pending.
|
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).
|
Integer |
promotionTier()
A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after
a failure of the existing primary instance.
|
Boolean |
publiclyAccessible()
Not supported.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DBInstance.Builder> |
serializableBuilderClass() |
List<DBInstanceStatusInfo> |
statusInfos()
The status of a read replica.
|
Boolean |
storageEncrypted()
Specifies whether or not the instance is encrypted.
|
DBInstance.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<VpcSecurityGroupMembership> |
vpcSecurityGroups()
Provides a list of VPC security group elements that the instance belongs to.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String dbInstanceIdentifier()
Contains a user-provided database identifier. This identifier is the unique key that identifies an instance.
public final String dbInstanceClass()
Contains the name of the compute and memory capacity class of the instance.
public final String engine()
Provides the name of the database engine to be used for this instance.
public final String dbInstanceStatus()
Specifies the current state of this database.
public final Endpoint endpoint()
Specifies the connection endpoint.
public final Instant instanceCreateTime()
Provides the date and time that the instance was created.
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 Integer backupRetentionPeriod()
Specifies the number of days for which automatic snapshots are retained.
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 VPC security group elements that the instance 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 availabilityZone()
Specifies the name of the Availability Zone that the instance is located in.
public final DBSubnetGroup dbSubnetGroup()
Specifies information on the subnet group that is associated with the instance, including the name, description, and subnets in the subnet group.
public final String preferredMaintenanceWindow()
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
public final PendingModifiedValues pendingModifiedValues()
Specifies that changes to the instance are pending. This element is included only when changes are pending. Specific changes are identified by subelements.
public final Instant latestRestorableTime()
Specifies the latest time to which a database can be restored with point-in-time restore.
public final String engineVersion()
Indicates the database engine version.
public final Boolean autoMinorVersionUpgrade()
Does not apply. This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set.
public final Boolean publiclyAccessible()
Not supported. Amazon DocumentDB does not currently support public endpoints. The value of
PubliclyAccessible is always false.
PubliclyAccessible is always false.public final boolean hasStatusInfos()
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<DBInstanceStatusInfo> statusInfos()
The status of a read replica. If the instance is not a read replica, this is blank.
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 hasStatusInfos() method.
public final String dbClusterIdentifier()
Contains the name of the cluster that the instance is a member of if the instance is a member of a cluster.
public final Boolean storageEncrypted()
Specifies whether or not the instance is encrypted.
public final String kmsKeyId()
If StorageEncrypted is true, the KMS key identifier for the encrypted instance.
StorageEncrypted is true, the KMS key identifier for the encrypted instance.public final String dbiResourceId()
The Amazon Web Services Region-unique, immutable identifier for the instance. This identifier is found in CloudTrail log entries whenever the KMS key for the instance is accessed.
public final String caCertificateIdentifier()
The identifier of the CA certificate for this DB instance.
public final Boolean copyTagsToSnapshot()
A value that indicates whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.
public final Integer promotionTier()
A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after a failure of the existing primary instance.
public final String dbInstanceArn()
The Amazon Resource Name (ARN) for the instance.
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 instance is configured to export to 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 DBInstance.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DBInstance.Builder,DBInstance>public static DBInstance.Builder builder()
public static Class<? extends DBInstance.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.