Interface DBInstance.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DBInstance.Builder,
,DBInstance> SdkBuilder<DBInstance.Builder,
,DBInstance> SdkPojo
- Enclosing class:
DBInstance
-
Method Summary
Modifier and TypeMethodDescriptionautoMinorVersionUpgrade
(Boolean autoMinorVersionUpgrade) Does not apply.availabilityZone
(String availabilityZone) Specifies the name of the Availability Zone that the instance is located in.backupRetentionPeriod
(Integer backupRetentionPeriod) Specifies the number of days for which automatic snapshots are retained.caCertificateIdentifier
(String caCertificateIdentifier) The identifier of the CA certificate for this DB instance.default DBInstance.Builder
certificateDetails
(Consumer<CertificateDetails.Builder> certificateDetails) The details of the DB instance's server certificate.certificateDetails
(CertificateDetails certificateDetails) The details of the DB instance's server certificate.copyTagsToSnapshot
(Boolean copyTagsToSnapshot) A value that indicates whether to copy tags from the DB instance to snapshots of the DB instance.dbClusterIdentifier
(String dbClusterIdentifier) Contains the name of the cluster that the instance is a member of if the instance is a member of a cluster.dbInstanceArn
(String dbInstanceArn) The Amazon Resource Name (ARN) for the instance.dbInstanceClass
(String dbInstanceClass) Contains the name of the compute and memory capacity class of the instance.dbInstanceIdentifier
(String dbInstanceIdentifier) Contains a user-provided database identifier.dbInstanceStatus
(String dbInstanceStatus) Specifies the current state of this database.dbiResourceId
(String dbiResourceId) The Amazon Web Services Region-unique, immutable identifier for the instance.default DBInstance.Builder
dbSubnetGroup
(Consumer<DBSubnetGroup.Builder> dbSubnetGroup) Specifies information on the subnet group that is associated with the instance, including the name, description, and subnets in the subnet group.dbSubnetGroup
(DBSubnetGroup dbSubnetGroup) Specifies information on the subnet group that is associated with the instance, including the name, description, and subnets in the subnet group.enabledCloudwatchLogsExports
(String... enabledCloudwatchLogsExports) A list of log types that this instance is configured to export to CloudWatch Logs.enabledCloudwatchLogsExports
(Collection<String> enabledCloudwatchLogsExports) A list of log types that this instance is configured to export to CloudWatch Logs.default DBInstance.Builder
endpoint
(Consumer<Endpoint.Builder> endpoint) Specifies the connection endpoint.Specifies the connection endpoint.Provides the name of the database engine to be used for this instance.engineVersion
(String engineVersion) Indicates the database engine version.instanceCreateTime
(Instant instanceCreateTime) Provides the date and time that the instance was created.IfStorageEncrypted
istrue
, the KMS key identifier for the encrypted instance.latestRestorableTime
(Instant latestRestorableTime) Specifies the latest time to which a database can be restored with point-in-time restore.default DBInstance.Builder
pendingModifiedValues
(Consumer<PendingModifiedValues.Builder> pendingModifiedValues) Specifies that changes to the instance are pending.pendingModifiedValues
(PendingModifiedValues pendingModifiedValues) Specifies that changes to the instance are pending.performanceInsightsEnabled
(Boolean performanceInsightsEnabled) Set totrue
if Amazon RDS Performance Insights is enabled for the DB instance, and otherwisefalse
.performanceInsightsKMSKeyId
(String performanceInsightsKMSKeyId) The KMS key identifier for encryption of Performance Insights data.preferredBackupWindow
(String preferredBackupWindow) Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod
.preferredMaintenanceWindow
(String preferredMaintenanceWindow) Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).promotionTier
(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.publiclyAccessible
(Boolean publiclyAccessible) Not supported.statusInfos
(Collection<DBInstanceStatusInfo> statusInfos) The status of a read replica.statusInfos
(Consumer<DBInstanceStatusInfo.Builder>... statusInfos) The status of a read replica.statusInfos
(DBInstanceStatusInfo... statusInfos) The status of a read replica.storageEncrypted
(Boolean storageEncrypted) Specifies whether or not the instance is encrypted.vpcSecurityGroups
(Collection<VpcSecurityGroupMembership> vpcSecurityGroups) Provides a list of VPC security group elements that the instance belongs to.vpcSecurityGroups
(Consumer<VpcSecurityGroupMembership.Builder>... vpcSecurityGroups) Provides a list of VPC security group elements that the instance belongs to.vpcSecurityGroups
(VpcSecurityGroupMembership... vpcSecurityGroups) Provides a list of VPC security group elements that the instance belongs to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
dbInstanceIdentifier
Contains a user-provided database identifier. This identifier is the unique key that identifies an instance.
- Parameters:
dbInstanceIdentifier
- Contains a user-provided database identifier. This identifier is the unique key that identifies an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbInstanceClass
Contains the name of the compute and memory capacity class of the instance.
- Parameters:
dbInstanceClass
- Contains the name of the compute and memory capacity class of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engine
Provides the name of the database engine to be used for this instance.
- Parameters:
engine
- Provides the name of the database engine to be used for this instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbInstanceStatus
Specifies the current state of this database.
- Parameters:
dbInstanceStatus
- Specifies the current state of this database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpoint
Specifies the connection endpoint.
- Parameters:
endpoint
- Specifies the connection endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpoint
Specifies the connection endpoint.
This is a convenience method that creates an instance of theEndpoint.Builder
avoiding the need to create one manually viaEndpoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toendpoint(Endpoint)
.- Parameters:
endpoint
- a consumer that will call methods onEndpoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceCreateTime
Provides the date and time that the instance was created.
- Parameters:
instanceCreateTime
- Provides the date and time that the instance was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredBackupWindow
Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the
BackupRetentionPeriod
.- Parameters:
preferredBackupWindow
- Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupRetentionPeriod
Specifies the number of days for which automatic snapshots are retained.
- Parameters:
backupRetentionPeriod
- Specifies the number of days for which automatic snapshots are retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSecurityGroups
Provides a list of VPC security group elements that the instance belongs to.
- Parameters:
vpcSecurityGroups
- Provides a list of VPC security group elements that the instance belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSecurityGroups
Provides a list of VPC security group elements that the instance belongs to.
- Parameters:
vpcSecurityGroups
- Provides a list of VPC security group elements that the instance belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSecurityGroups
DBInstance.Builder vpcSecurityGroups(Consumer<VpcSecurityGroupMembership.Builder>... vpcSecurityGroups) Provides a list of VPC security group elements that the instance belongs to.
This is a convenience method that creates an instance of theVpcSecurityGroupMembership.Builder
avoiding the need to create one manually viaVpcSecurityGroupMembership.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcSecurityGroups(List<VpcSecurityGroupMembership>)
.- Parameters:
vpcSecurityGroups
- a consumer that will call methods onVpcSecurityGroupMembership.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
availabilityZone
Specifies the name of the Availability Zone that the instance is located in.
- Parameters:
availabilityZone
- Specifies the name of the Availability Zone that the instance is located in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbSubnetGroup
Specifies information on the subnet group that is associated with the instance, including the name, description, and subnets in the subnet group.
- Parameters:
dbSubnetGroup
- Specifies information on the subnet group that is associated with the instance, including the name, description, and subnets in the subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbSubnetGroup
Specifies information on the subnet group that is associated with the instance, including the name, description, and subnets in the subnet group.
This is a convenience method that creates an instance of theDBSubnetGroup.Builder
avoiding the need to create one manually viaDBSubnetGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todbSubnetGroup(DBSubnetGroup)
.- Parameters:
dbSubnetGroup
- a consumer that will call methods onDBSubnetGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
preferredMaintenanceWindow
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- Parameters:
preferredMaintenanceWindow
- Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingModifiedValues
Specifies that changes to the instance are pending. This element is included only when changes are pending. Specific changes are identified by subelements.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
pendingModifiedValues
default DBInstance.Builder pendingModifiedValues(Consumer<PendingModifiedValues.Builder> pendingModifiedValues) Specifies that changes to the instance are pending. This element is included only when changes are pending. Specific changes are identified by subelements.
This is a convenience method that creates an instance of thePendingModifiedValues.Builder
avoiding the need to create one manually viaPendingModifiedValues.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topendingModifiedValues(PendingModifiedValues)
.- Parameters:
pendingModifiedValues
- a consumer that will call methods onPendingModifiedValues.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
latestRestorableTime
Specifies the latest time to which a database can be restored with point-in-time restore.
- Parameters:
latestRestorableTime
- Specifies the latest time to which a database can be restored with point-in-time restore.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
Indicates the database engine version.
- Parameters:
engineVersion
- Indicates the database engine version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
publiclyAccessible
Not supported. Amazon DocumentDB does not currently support public endpoints. The value of
PubliclyAccessible
is alwaysfalse
.- Parameters:
publiclyAccessible
- Not supported. Amazon DocumentDB does not currently support public endpoints. The value ofPubliclyAccessible
is alwaysfalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusInfos
The status of a read replica. If the instance is not a read replica, this is blank.
- Parameters:
statusInfos
- The status of a read replica. If the instance is not a read replica, this is blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusInfos
The status of a read replica. If the instance is not a read replica, this is blank.
- Parameters:
statusInfos
- The status of a read replica. If the instance is not a read replica, this is blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusInfos
The status of a read replica. If the instance is not a read replica, this is blank.
This is a convenience method that creates an instance of theDBInstanceStatusInfo.Builder
avoiding the need to create one manually viaDBInstanceStatusInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatusInfos(List<DBInstanceStatusInfo>)
.- Parameters:
statusInfos
- a consumer that will call methods onDBInstanceStatusInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dbClusterIdentifier
Contains the name of the cluster that the instance is a member of if the instance is a member of a cluster.
- Parameters:
dbClusterIdentifier
- Contains the name of the cluster that the instance is a member of if the instance is a member of a cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageEncrypted
Specifies whether or not the instance is encrypted.
- Parameters:
storageEncrypted
- Specifies whether or not the instance is encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
If
StorageEncrypted
istrue
, the KMS key identifier for the encrypted instance.- Parameters:
kmsKeyId
- IfStorageEncrypted
istrue
, the KMS key identifier for the encrypted instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
caCertificateIdentifier
The identifier of the CA certificate for this DB instance.
- Parameters:
caCertificateIdentifier
- The identifier of the CA certificate for this DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
dbInstanceArn
The Amazon Resource Name (ARN) for the instance.
- Parameters:
dbInstanceArn
- The Amazon Resource Name (ARN) for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabledCloudwatchLogsExports
A list of log types that this instance is configured to export to CloudWatch Logs.
- Parameters:
enabledCloudwatchLogsExports
- A list of log types that this instance is configured to export to CloudWatch Logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabledCloudwatchLogsExports
A list of log types that this instance is configured to export to CloudWatch Logs.
- Parameters:
enabledCloudwatchLogsExports
- A list of log types that this instance is configured to export to CloudWatch Logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateDetails
The details of the DB instance's server certificate.
- Parameters:
certificateDetails
- The details of the DB instance's server certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateDetails
default DBInstance.Builder certificateDetails(Consumer<CertificateDetails.Builder> certificateDetails) The details of the DB instance's server certificate.
This is a convenience method that creates an instance of theCertificateDetails.Builder
avoiding the need to create one manually viaCertificateDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocertificateDetails(CertificateDetails)
.- Parameters:
certificateDetails
- a consumer that will call methods onCertificateDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
performanceInsightsEnabled
Set to
true
if Amazon RDS Performance Insights is enabled for the DB instance, and otherwisefalse
.- Parameters:
performanceInsightsEnabled
- Set totrue
if Amazon RDS Performance Insights is enabled for the DB instance, and otherwisefalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-