Class DBInstance
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DBInstance.Builder,DBInstance>
Detailed information about an instance.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanDoes not apply.final StringSpecifies the name of the Availability Zone that the instance is located in.final IntegerSpecifies the number of days for which automatic snapshots are retained.static DBInstance.Builderbuilder()final StringThe identifier of the CA certificate for this DB instance.final CertificateDetailsThe details of the DB instance's server certificate.final BooleanA value that indicates whether to copy tags from the DB instance to snapshots of the DB instance.final StringContains the name of the cluster that the instance is a member of if the instance is a member of a cluster.final StringThe Amazon Resource Name (ARN) for the instance.final StringContains the name of the compute and memory capacity class of the instance.final StringContains a user-provided database identifier.final StringSpecifies the current state of this database.final StringThe Amazon Web Services Region-unique, immutable identifier for the instance.final DBSubnetGroupSpecifies information on the subnet group that is associated with the instance, including the name, description, and subnets in the subnet group.A list of log types that this instance is configured to export to CloudWatch Logs.final Endpointendpoint()Specifies the connection endpoint.final Stringengine()Provides the name of the database engine to be used for this instance.final StringIndicates the database engine version.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the EnabledCloudwatchLogsExports property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the StatusInfos property.final booleanFor responses, this returns true if the service returned a value for the VpcSecurityGroups property.final InstantProvides the date and time that the instance was created.final StringkmsKeyId()IfStorageEncryptedistrue, the KMS key identifier for the encrypted instance.final InstantSpecifies the latest time to which a database can be restored with point-in-time restore.final PendingModifiedValuesSpecifies that changes to the instance are pending.final BooleanSet totrueif Amazon RDS Performance Insights is enabled for the DB instance, and otherwisefalse.final StringThe KMS key identifier for encryption of Performance Insights data.final StringSpecifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod.final StringSpecifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).final IntegerA 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.final BooleanNot supported.static Class<? extends DBInstance.Builder> final List<DBInstanceStatusInfo> The status of a read replica.final BooleanSpecifies whether or not the instance is encrypted.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final List<VpcSecurityGroupMembership> Provides a list of VPC security group elements that the instance belongs to.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
dbInstanceIdentifier
Contains a user-provided database identifier. This identifier is the unique key that identifies an instance.
- Returns:
- Contains a user-provided database identifier. This identifier is the unique key that identifies an instance.
-
dbInstanceClass
Contains the name of the compute and memory capacity class of the instance.
- Returns:
- Contains the name of the compute and memory capacity class of the instance.
-
engine
Provides the name of the database engine to be used for this instance.
- Returns:
- Provides the name of the database engine to be used for this instance.
-
dbInstanceStatus
Specifies the current state of this database.
- Returns:
- Specifies the current state of this database.
-
endpoint
Specifies the connection endpoint.
- Returns:
- Specifies the connection endpoint.
-
instanceCreateTime
Provides the date and time that the instance was created.
- Returns:
- Provides the date and time that the instance was created.
-
preferredBackupWindow
Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the
BackupRetentionPeriod.- Returns:
- Specifies the daily time range during which automated backups are created if automated backups are
enabled, as determined by the
BackupRetentionPeriod.
-
backupRetentionPeriod
Specifies the number of days for which automatic snapshots are retained.
- Returns:
- Specifies the number of days for which automatic snapshots are retained.
-
hasVpcSecurityGroups
public final boolean hasVpcSecurityGroups()For responses, this returns true if the service returned a value for the VpcSecurityGroups property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
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.- Returns:
- Provides a list of VPC security group elements that the instance belongs to.
-
availabilityZone
Specifies the name of the Availability Zone that the instance is located in.
- Returns:
- Specifies the name of the Availability Zone that the instance is located in.
-
dbSubnetGroup
Specifies information on the subnet group that is associated with the instance, including the name, description, and subnets in the subnet group.
- Returns:
- Specifies information on the subnet group that is associated with the instance, including the name, description, and subnets in the subnet group.
-
preferredMaintenanceWindow
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- Returns:
- Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
-
pendingModifiedValues
Specifies that changes to the instance are pending. This element is included only when changes are pending. Specific changes are identified by subelements.
- Returns:
- Specifies that changes to the instance are pending. This element is included only when changes are pending. Specific changes are identified by subelements.
-
latestRestorableTime
Specifies the latest time to which a database can be restored with point-in-time restore.
- Returns:
- Specifies the latest time to which a database can be restored with point-in-time restore.
-
engineVersion
Indicates the database engine version.
- Returns:
- Indicates the database engine version.
-
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.
- Returns:
- Does not apply. This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set.
-
publiclyAccessible
Not supported. Amazon DocumentDB does not currently support public endpoints. The value of
PubliclyAccessibleis alwaysfalse.- Returns:
- Not supported. Amazon DocumentDB does not currently support public endpoints. The value of
PubliclyAccessibleis alwaysfalse.
-
hasStatusInfos
public final boolean hasStatusInfos()For responses, this returns true if the service returned a value for the StatusInfos property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
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.- Returns:
- The status of a read replica. If the instance is not a read replica, this is blank.
-
dbClusterIdentifier
Contains the name of the cluster that the instance is a member of if the instance is a member of a cluster.
- Returns:
- Contains the name of the cluster that the instance is a member of if the instance is a member of a cluster.
-
storageEncrypted
Specifies whether or not the instance is encrypted.
- Returns:
- Specifies whether or not the instance is encrypted.
-
kmsKeyId
If
StorageEncryptedistrue, the KMS key identifier for the encrypted instance.- Returns:
- If
StorageEncryptedistrue, the KMS key identifier for the encrypted instance.
-
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.
- Returns:
- 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.
-
caCertificateIdentifier
The identifier of the CA certificate for this DB instance.
- Returns:
- The identifier of the CA certificate for this DB instance.
-
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.
- Returns:
- A value that indicates whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.
-
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.
- Returns:
- 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.
-
dbInstanceArn
The Amazon Resource Name (ARN) for the instance.
- Returns:
- The Amazon Resource Name (ARN) for the instance.
-
hasEnabledCloudwatchLogsExports
public final boolean hasEnabledCloudwatchLogsExports()For responses, this returns true if the service returned a value for the EnabledCloudwatchLogsExports property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
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.- Returns:
- A list of log types that this instance is configured to export to CloudWatch Logs.
-
certificateDetails
The details of the DB instance's server certificate.
- Returns:
- The details of the DB instance's server certificate.
-
performanceInsightsEnabled
Set to
trueif Amazon RDS Performance Insights is enabled for the DB instance, and otherwisefalse.- Returns:
- Set to
trueif Amazon RDS Performance Insights is enabled for the DB instance, and otherwisefalse.
-
performanceInsightsKMSKeyId
The KMS key identifier for encryption of Performance Insights data. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.
- Returns:
- The KMS key identifier for encryption of Performance Insights data. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DBInstance.Builder,DBInstance> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-