public static interface DBInstance.Builder extends SdkPojo, CopyableBuilder<DBInstance.Builder,DBInstance>
| Modifier and Type | Method and Description |
|---|---|
DBInstance.Builder |
autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Does not apply.
|
DBInstance.Builder |
availabilityZone(String availabilityZone)
Specifies the name of the Availability Zone that the instance is located in.
|
DBInstance.Builder |
backupRetentionPeriod(Integer backupRetentionPeriod)
Specifies the number of days for which automatic snapshots are retained.
|
DBInstance.Builder |
caCertificateIdentifier(String caCertificateIdentifier)
The identifier of the CA certificate for this DB instance.
|
DBInstance.Builder |
copyTagsToSnapshot(Boolean copyTagsToSnapshot)
A value that indicates whether to copy tags from the DB instance to snapshots of the DB instance.
|
DBInstance.Builder |
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.
|
DBInstance.Builder |
dbInstanceArn(String dbInstanceArn)
The Amazon Resource Name (ARN) for the instance.
|
DBInstance.Builder |
dbInstanceClass(String dbInstanceClass)
Contains the name of the compute and memory capacity class of the instance.
|
DBInstance.Builder |
dbInstanceIdentifier(String dbInstanceIdentifier)
Contains a user-provided database identifier.
|
DBInstance.Builder |
dbInstanceStatus(String dbInstanceStatus)
Specifies the current state of this database.
|
DBInstance.Builder |
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.
|
DBInstance.Builder |
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.
|
DBInstance.Builder |
enabledCloudwatchLogsExports(Collection<String> enabledCloudwatchLogsExports)
A list of log types that this instance is configured to export to CloudWatch Logs.
|
DBInstance.Builder |
enabledCloudwatchLogsExports(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.
|
DBInstance.Builder |
endpoint(Endpoint endpoint)
Specifies the connection endpoint.
|
DBInstance.Builder |
engine(String engine)
Provides the name of the database engine to be used for this instance.
|
DBInstance.Builder |
engineVersion(String engineVersion)
Indicates the database engine version.
|
DBInstance.Builder |
instanceCreateTime(Instant instanceCreateTime)
Provides the date and time that the instance was created.
|
DBInstance.Builder |
kmsKeyId(String kmsKeyId)
If
StorageEncrypted is true, the KMS key identifier for the encrypted instance. |
DBInstance.Builder |
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.
|
DBInstance.Builder |
pendingModifiedValues(PendingModifiedValues pendingModifiedValues)
Specifies that changes to the instance are pending.
|
DBInstance.Builder |
preferredBackupWindow(String preferredBackupWindow)
Specifies the daily time range during which automated backups are created if automated backups are enabled,
as determined by the
BackupRetentionPeriod. |
DBInstance.Builder |
preferredMaintenanceWindow(String preferredMaintenanceWindow)
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time
(UTC).
|
DBInstance.Builder |
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.
|
DBInstance.Builder |
publiclyAccessible(Boolean publiclyAccessible)
Not supported.
|
DBInstance.Builder |
statusInfos(Collection<DBInstanceStatusInfo> statusInfos)
The status of a read replica.
|
DBInstance.Builder |
statusInfos(Consumer<DBInstanceStatusInfo.Builder>... statusInfos)
The status of a read replica.
|
DBInstance.Builder |
statusInfos(DBInstanceStatusInfo... statusInfos)
The status of a read replica.
|
DBInstance.Builder |
storageEncrypted(Boolean storageEncrypted)
Specifies whether or not the instance is encrypted.
|
DBInstance.Builder |
vpcSecurityGroups(Collection<VpcSecurityGroupMembership> vpcSecurityGroups)
Provides a list of VPC security group elements that the instance belongs to.
|
DBInstance.Builder |
vpcSecurityGroups(Consumer<VpcSecurityGroupMembership.Builder>... vpcSecurityGroups)
Provides a list of VPC security group elements that the instance belongs to.
|
DBInstance.Builder |
vpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups)
Provides a list of VPC security group elements that the instance belongs to.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDBInstance.Builder dbInstanceIdentifier(String dbInstanceIdentifier)
Contains a user-provided database identifier. This identifier is the unique key that identifies an instance.
dbInstanceIdentifier - Contains a user-provided database identifier. This identifier is the unique key that identifies an
instance.DBInstance.Builder dbInstanceClass(String dbInstanceClass)
Contains the name of the compute and memory capacity class of the instance.
dbInstanceClass - Contains the name of the compute and memory capacity class of the instance.DBInstance.Builder engine(String engine)
Provides the name of the database engine to be used for this instance.
engine - Provides the name of the database engine to be used for this instance.DBInstance.Builder dbInstanceStatus(String dbInstanceStatus)
Specifies the current state of this database.
dbInstanceStatus - Specifies the current state of this database.DBInstance.Builder endpoint(Endpoint endpoint)
Specifies the connection endpoint.
endpoint - Specifies the connection endpoint.default DBInstance.Builder endpoint(Consumer<Endpoint.Builder> endpoint)
Specifies the connection endpoint.
This is a convenience method that creates an instance of theEndpoint.Builder avoiding the need to
create one manually via Endpoint.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to endpoint(Endpoint).
endpoint - a consumer that will call methods on Endpoint.Builderendpoint(Endpoint)DBInstance.Builder instanceCreateTime(Instant instanceCreateTime)
Provides the date and time that the instance was created.
instanceCreateTime - Provides the date and time that the instance was created.DBInstance.Builder preferredBackupWindow(String preferredBackupWindow)
Specifies the daily time range during which automated backups are created if automated backups are enabled,
as determined by the BackupRetentionPeriod.
preferredBackupWindow - Specifies the daily time range during which automated backups are created if automated backups are
enabled, as determined by the BackupRetentionPeriod.DBInstance.Builder backupRetentionPeriod(Integer backupRetentionPeriod)
Specifies the number of days for which automatic snapshots are retained.
backupRetentionPeriod - Specifies the number of days for which automatic snapshots are retained.DBInstance.Builder vpcSecurityGroups(Collection<VpcSecurityGroupMembership> vpcSecurityGroups)
Provides a list of VPC security group elements that the instance belongs to.
vpcSecurityGroups - Provides a list of VPC security group elements that the instance belongs to.DBInstance.Builder vpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups)
Provides a list of VPC security group elements that the instance belongs to.
vpcSecurityGroups - Provides a list of VPC security group elements that the instance belongs to.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 via
VpcSecurityGroupMembership.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #vpcSecurityGroups(List.
vpcSecurityGroups - a consumer that will call methods on
VpcSecurityGroupMembership.Builder#vpcSecurityGroups(java.util.Collection) DBInstance.Builder availabilityZone(String availabilityZone)
Specifies the name of the Availability Zone that the instance is located in.
availabilityZone - Specifies the name of the Availability Zone that the instance is located in.DBInstance.Builder 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.
dbSubnetGroup - Specifies information on the subnet group that is associated with the instance, including the name,
description, and subnets in the subnet group.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.
This is a convenience method that creates an instance of theDBSubnetGroup.Builder avoiding the need
to create one manually via DBSubnetGroup.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to dbSubnetGroup(DBSubnetGroup).
dbSubnetGroup - a consumer that will call methods on DBSubnetGroup.BuilderdbSubnetGroup(DBSubnetGroup)DBInstance.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
preferredMaintenanceWindow - Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated
Time (UTC).DBInstance.Builder pendingModifiedValues(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.
pendingModifiedValues - Specifies that changes to the instance are pending. This element is included only when changes are
pending. Specific changes are identified by subelements.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 via PendingModifiedValues.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to pendingModifiedValues(PendingModifiedValues).
pendingModifiedValues - a consumer that will call methods on PendingModifiedValues.BuilderpendingModifiedValues(PendingModifiedValues)DBInstance.Builder latestRestorableTime(Instant latestRestorableTime)
Specifies the latest time to which a database can be restored with point-in-time restore.
latestRestorableTime - Specifies the latest time to which a database can be restored with point-in-time restore.DBInstance.Builder engineVersion(String engineVersion)
Indicates the database engine version.
engineVersion - Indicates the database engine version.DBInstance.Builder autoMinorVersionUpgrade(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.
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.DBInstance.Builder publiclyAccessible(Boolean publiclyAccessible)
Not supported. Amazon DocumentDB does not currently support public endpoints. The value of
PubliclyAccessible is always false.
publiclyAccessible - Not supported. Amazon DocumentDB does not currently support public endpoints. The value of
PubliclyAccessible is always false.DBInstance.Builder statusInfos(Collection<DBInstanceStatusInfo> statusInfos)
The status of a read replica. If the instance is not a read replica, this is blank.
statusInfos - The status of a read replica. If the instance is not a read replica, this is blank.DBInstance.Builder statusInfos(DBInstanceStatusInfo... statusInfos)
The status of a read replica. If the instance is not a read replica, this is blank.
statusInfos - The status of a read replica. If the instance is not a read replica, this is blank.DBInstance.Builder statusInfos(Consumer<DBInstanceStatusInfo.Builder>... 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 via DBInstanceStatusInfo.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #statusInfos(List.
statusInfos - a consumer that will call methods on
DBInstanceStatusInfo.Builder#statusInfos(java.util.Collection) DBInstance.Builder 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.
dbClusterIdentifier - Contains the name of the cluster that the instance is a member of if the instance is a member of a
cluster.DBInstance.Builder storageEncrypted(Boolean storageEncrypted)
Specifies whether or not the instance is encrypted.
storageEncrypted - Specifies whether or not the instance is encrypted.DBInstance.Builder kmsKeyId(String kmsKeyId)
If StorageEncrypted is true, the KMS key identifier for the encrypted instance.
kmsKeyId - If StorageEncrypted is true, the KMS key identifier for the encrypted
instance.DBInstance.Builder dbiResourceId(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.
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.DBInstance.Builder caCertificateIdentifier(String caCertificateIdentifier)
The identifier of the CA certificate for this DB instance.
caCertificateIdentifier - The identifier of the CA certificate for this DB instance.DBInstance.Builder copyTagsToSnapshot(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.
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.DBInstance.Builder 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.
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.DBInstance.Builder dbInstanceArn(String dbInstanceArn)
The Amazon Resource Name (ARN) for the instance.
dbInstanceArn - The Amazon Resource Name (ARN) for the instance.DBInstance.Builder enabledCloudwatchLogsExports(Collection<String> enabledCloudwatchLogsExports)
A list of log types that this instance is configured to export to CloudWatch Logs.
enabledCloudwatchLogsExports - A list of log types that this instance is configured to export to CloudWatch Logs.DBInstance.Builder enabledCloudwatchLogsExports(String... enabledCloudwatchLogsExports)
A list of log types that this instance is configured to export to CloudWatch Logs.
enabledCloudwatchLogsExports - A list of log types that this instance is configured to export to CloudWatch Logs.Copyright © 2023. All rights reserved.