Interface RestoreDbClusterGroupToPointInTimeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<RestoreDbClusterGroupToPointInTimeRequest.Builder,,RestoreDbClusterGroupToPointInTimeRequest> RdsRequest.Builder,SdkBuilder<RestoreDbClusterGroupToPointInTimeRequest.Builder,,RestoreDbClusterGroupToPointInTimeRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
RestoreDbClusterGroupToPointInTimeRequest
-
Method Summary
Modifier and TypeMethodDescriptionadminUsername(String adminUsername) The name of the admin user that the routing endpoint uses to connect to the member DB clusters.adminUserPassword(String adminUserPassword) The password for the admin user.backupRetentionPeriod(Integer backupRetentionPeriod) The number of days for which automated backups of the restored DB cluster group are retained.copyTagsToSnapshot(Boolean copyTagsToSnapshot) Specifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group.dbClusterGroupIdentifier(String dbClusterGroupIdentifier) The identifier for the new DB cluster group.deletionProtection(Boolean deletionProtection) Specifies whether the DB cluster group has deletion protection enabled.enableRouting(Boolean enableRouting) Specifies whether to enable routing for the DB cluster group.memberClusterOverrides(Collection<MemberClusterOverride> memberClusterOverrides) A list of per-DB cluster settings that overrideMemberClusterProvisioningConfigurationfor specific source DB clusters.memberClusterOverrides(Consumer<MemberClusterOverride.Builder>... memberClusterOverrides) A list of per-DB cluster settings that overrideMemberClusterProvisioningConfigurationfor specific source DB clusters.memberClusterOverrides(MemberClusterOverride... memberClusterOverrides) A list of per-DB cluster settings that overrideMemberClusterProvisioningConfigurationfor specific source DB clusters.memberClusterProvisioningConfiguration(Consumer<MemberClusterProvisioningConfiguration.Builder> memberClusterProvisioningConfiguration) The settings to use for every DB cluster that Amazon RDS creates in the restored DB cluster group.memberClusterProvisioningConfiguration(MemberClusterProvisioningConfiguration memberClusterProvisioningConfiguration) The settings to use for every DB cluster that Amazon RDS creates in the restored DB cluster group.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.preferredBackupWindow(String preferredBackupWindow) The daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).preferredMaintenanceWindow(String preferredMaintenanceWindow) The weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).restoreToTime(Instant restoreToTime) The date and time to restore the DB cluster group to, in Universal Coordinated Time (UTC).routingEndpointConfiguration(Consumer<RoutingEndpointConfiguration.Builder> routingEndpointConfiguration) The settings of the routing endpoint.routingEndpointConfiguration(RoutingEndpointConfiguration routingEndpointConfiguration) The settings of the routing endpoint.sourceDBClusterGroupIdentifier(String sourceDBClusterGroupIdentifier) The identifier of the source DB cluster group.sourceDBClusterGroupResourceId(String sourceDBClusterGroupResourceId) The resource ID of the source DB cluster group.tags(Collection<Tag> tags) Tags to assign to the restored DB cluster group.tags(Consumer<Tag.Builder>... tags) Tags to assign to the restored DB cluster group.Tags to assign to the restored DB cluster group.tagSpecifications(Collection<TagSpecification> tagSpecifications) Tags to assign to resources associated with the DB cluster group.tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) Tags to assign to resources associated with the DB cluster group.tagSpecifications(TagSpecification... tagSpecifications) Tags to assign to resources associated with the DB cluster group.useLatestRestorableTime(Boolean useLatestRestorableTime) Specifies whether to restore the DB cluster group to the latest restorable backup time.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rds.model.RdsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
dbClusterGroupIdentifier
RestoreDbClusterGroupToPointInTimeRequest.Builder dbClusterGroupIdentifier(String dbClusterGroupIdentifier) The identifier for the new DB cluster group. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 letters, numbers, or hyphens.
-
First character must be a letter.
-
Can't end with a hyphen or contain two consecutive hyphens.
-
Must be unique for all DB cluster groups owned by your Amazon Web Services account in the current Amazon Web Services Region.
- Parameters:
dbClusterGroupIdentifier- The identifier for the new DB cluster group. This parameter is stored as a lowercase string.Constraints:
-
Must contain from 1 to 63 letters, numbers, or hyphens.
-
First character must be a letter.
-
Can't end with a hyphen or contain two consecutive hyphens.
-
Must be unique for all DB cluster groups owned by your Amazon Web Services account in the current Amazon Web Services Region.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
memberClusterProvisioningConfiguration
RestoreDbClusterGroupToPointInTimeRequest.Builder memberClusterProvisioningConfiguration(MemberClusterProvisioningConfiguration memberClusterProvisioningConfiguration) The settings to use for every DB cluster that Amazon RDS creates in the restored DB cluster group. To use different settings for specific DB clusters, use
MemberClusterOverrides.- Parameters:
memberClusterProvisioningConfiguration- The settings to use for every DB cluster that Amazon RDS creates in the restored DB cluster group. To use different settings for specific DB clusters, useMemberClusterOverrides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memberClusterProvisioningConfiguration
default RestoreDbClusterGroupToPointInTimeRequest.Builder memberClusterProvisioningConfiguration(Consumer<MemberClusterProvisioningConfiguration.Builder> memberClusterProvisioningConfiguration) The settings to use for every DB cluster that Amazon RDS creates in the restored DB cluster group. To use different settings for specific DB clusters, use
This is a convenience method that creates an instance of theMemberClusterOverrides.MemberClusterProvisioningConfiguration.Builderavoiding the need to create one manually viaMemberClusterProvisioningConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemberClusterProvisioningConfiguration(MemberClusterProvisioningConfiguration).- Parameters:
memberClusterProvisioningConfiguration- a consumer that will call methods onMemberClusterProvisioningConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memberClusterOverrides
RestoreDbClusterGroupToPointInTimeRequest.Builder memberClusterOverrides(Collection<MemberClusterOverride> memberClusterOverrides) A list of per-DB cluster settings that override
MemberClusterProvisioningConfigurationfor specific source DB clusters.- Parameters:
memberClusterOverrides- A list of per-DB cluster settings that overrideMemberClusterProvisioningConfigurationfor specific source DB clusters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memberClusterOverrides
RestoreDbClusterGroupToPointInTimeRequest.Builder memberClusterOverrides(MemberClusterOverride... memberClusterOverrides) A list of per-DB cluster settings that override
MemberClusterProvisioningConfigurationfor specific source DB clusters.- Parameters:
memberClusterOverrides- A list of per-DB cluster settings that overrideMemberClusterProvisioningConfigurationfor specific source DB clusters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memberClusterOverrides
RestoreDbClusterGroupToPointInTimeRequest.Builder memberClusterOverrides(Consumer<MemberClusterOverride.Builder>... memberClusterOverrides) A list of per-DB cluster settings that override
This is a convenience method that creates an instance of theMemberClusterProvisioningConfigurationfor specific source DB clusters.MemberClusterOverride.Builderavoiding the need to create one manually viaMemberClusterOverride.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemberClusterOverrides(List<MemberClusterOverride>).- Parameters:
memberClusterOverrides- a consumer that will call methods onMemberClusterOverride.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
preferredMaintenanceWindow
RestoreDbClusterGroupToPointInTimeRequest.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) The weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).
Format:
ddd:hh24:mi-ddd:hh24:miValid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
Default: The preferred maintenance window of the source DB cluster group.
Constraints: Must be at least 30 minutes. Must not overlap the preferred backup window.
The maintenance window of the DB cluster group can overlap the maintenance windows of its member DB clusters.
- Parameters:
preferredMaintenanceWindow- The weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).Format:
ddd:hh24:mi-ddd:hh24:miValid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
Default: The preferred maintenance window of the source DB cluster group.
Constraints: Must be at least 30 minutes. Must not overlap the preferred backup window.
The maintenance window of the DB cluster group can overlap the maintenance windows of its member DB clusters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyTagsToSnapshot
Specifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group. The default is not to copy them.
- Parameters:
copyTagsToSnapshot- Specifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group. The default is not to copy them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredBackupWindow
RestoreDbClusterGroupToPointInTimeRequest.Builder preferredBackupWindow(String preferredBackupWindow) The daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).
Format:
hh24:mi-hh24:miDefault: The preferred backup window of the source DB cluster group.
Constraints: Must be at least 30 minutes. Must not overlap the preferred maintenance window of the DB cluster group.
- Parameters:
preferredBackupWindow- The daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).Format:
hh24:mi-hh24:miDefault: The preferred backup window of the source DB cluster group.
Constraints: Must be at least 30 minutes. Must not overlap the preferred maintenance window of the DB cluster group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupRetentionPeriod
RestoreDbClusterGroupToPointInTimeRequest.Builder backupRetentionPeriod(Integer backupRetentionPeriod) The number of days for which automated backups of the restored DB cluster group are retained.
Default: The backup retention period of the source DB cluster group.
Constraints: Must be a value from 1 to 35. Can't be greater than the backup retention period of any member DB cluster.
- Parameters:
backupRetentionPeriod- The number of days for which automated backups of the restored DB cluster group are retained.Default: The backup retention period of the source DB cluster group.
Constraints: Must be a value from 1 to 35. Can't be greater than the backup retention period of any member DB cluster.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deletionProtection
Specifies whether the DB cluster group has deletion protection enabled. You can't delete the DB cluster group when deletion protection is enabled. By default, deletion protection isn't enabled.
- Parameters:
deletionProtection- Specifies whether the DB cluster group has deletion protection enabled. You can't delete the DB cluster group when deletion protection is enabled. By default, deletion protection isn't enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableRouting
Specifies whether to enable routing for the DB cluster group. When routing is enabled, Amazon RDS creates a routing endpoint that applications connect to instead of connecting to each member DB cluster.
When you enable routing, you must specify
VpcSubnetIdsinRoutingEndpointConfiguration, and you must specifyAdminUsernameandAdminUserPassword.Default:
false, even when routing is enabled on the source DB cluster group.- Parameters:
enableRouting- Specifies whether to enable routing for the DB cluster group. When routing is enabled, Amazon RDS creates a routing endpoint that applications connect to instead of connecting to each member DB cluster.When you enable routing, you must specify
VpcSubnetIdsinRoutingEndpointConfiguration, and you must specifyAdminUsernameandAdminUserPassword.Default:
false, even when routing is enabled on the source DB cluster group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingEndpointConfiguration
RestoreDbClusterGroupToPointInTimeRequest.Builder routingEndpointConfiguration(RoutingEndpointConfiguration routingEndpointConfiguration) The settings of the routing endpoint. Specify this parameter only when
EnableRoutingistrue, and includeVpcSubnetIds.- Parameters:
routingEndpointConfiguration- The settings of the routing endpoint. Specify this parameter only whenEnableRoutingistrue, and includeVpcSubnetIds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingEndpointConfiguration
default RestoreDbClusterGroupToPointInTimeRequest.Builder routingEndpointConfiguration(Consumer<RoutingEndpointConfiguration.Builder> routingEndpointConfiguration) The settings of the routing endpoint. Specify this parameter only when
This is a convenience method that creates an instance of theEnableRoutingistrue, and includeVpcSubnetIds.RoutingEndpointConfiguration.Builderavoiding the need to create one manually viaRoutingEndpointConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toroutingEndpointConfiguration(RoutingEndpointConfiguration).- Parameters:
routingEndpointConfiguration- a consumer that will call methods onRoutingEndpointConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Tags to assign to the restored DB cluster group.
- Parameters:
tags- Tags to assign to the restored DB cluster group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to assign to the restored DB cluster group.
- Parameters:
tags- Tags to assign to the restored DB cluster group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to assign to the restored DB cluster group.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tagSpecifications
RestoreDbClusterGroupToPointInTimeRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) Tags to assign to resources associated with the DB cluster group.
- Parameters:
tagSpecifications- Tags to assign to resources associated with the DB cluster group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
RestoreDbClusterGroupToPointInTimeRequest.Builder tagSpecifications(TagSpecification... tagSpecifications) Tags to assign to resources associated with the DB cluster group.
- Parameters:
tagSpecifications- Tags to assign to resources associated with the DB cluster group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
RestoreDbClusterGroupToPointInTimeRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) Tags to assign to resources associated with the DB cluster group.
This is a convenience method that creates an instance of theTagSpecification.Builderavoiding the need to create one manually viaTagSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totagSpecifications(List<TagSpecification>).- Parameters:
tagSpecifications- a consumer that will call methods onTagSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
adminUsername
The name of the admin user that the routing endpoint uses to connect to the member DB clusters.
You can specify this parameter only when the source has no admin user. Otherwise, the restored DB cluster group uses the admin user of the source.
- Parameters:
adminUsername- The name of the admin user that the routing endpoint uses to connect to the member DB clusters.You can specify this parameter only when the source has no admin user. Otherwise, the restored DB cluster group uses the admin user of the source.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
adminUserPassword
The password for the admin user. If you specify this parameter without
AdminUsername, it changes the password of the admin user that the restored DB cluster group inherits from the source.- Parameters:
adminUserPassword- The password for the admin user. If you specify this parameter withoutAdminUsername, it changes the password of the admin user that the restored DB cluster group inherits from the source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDBClusterGroupIdentifier
RestoreDbClusterGroupToPointInTimeRequest.Builder sourceDBClusterGroupIdentifier(String sourceDBClusterGroupIdentifier) The identifier of the source DB cluster group. Specify either
SourceDBClusterGroupIdentifierorSourceDBClusterGroupResourceId.- Parameters:
sourceDBClusterGroupIdentifier- The identifier of the source DB cluster group. Specify eitherSourceDBClusterGroupIdentifierorSourceDBClusterGroupResourceId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDBClusterGroupResourceId
RestoreDbClusterGroupToPointInTimeRequest.Builder sourceDBClusterGroupResourceId(String sourceDBClusterGroupResourceId) The resource ID of the source DB cluster group. Use the resource ID to restore from the retained automated backups of a deleted DB cluster group. Specify either
SourceDBClusterGroupIdentifierorSourceDBClusterGroupResourceId.- Parameters:
sourceDBClusterGroupResourceId- The resource ID of the source DB cluster group. Use the resource ID to restore from the retained automated backups of a deleted DB cluster group. Specify eitherSourceDBClusterGroupIdentifierorSourceDBClusterGroupResourceId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restoreToTime
The date and time to restore the DB cluster group to, in Universal Coordinated Time (UTC).
Constraints: Must be within the restore window of the source DB cluster group. Can't be specified if
UseLatestRestorableTimeis enabled.- Parameters:
restoreToTime- The date and time to restore the DB cluster group to, in Universal Coordinated Time (UTC).Constraints: Must be within the restore window of the source DB cluster group. Can't be specified if
UseLatestRestorableTimeis enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
useLatestRestorableTime
RestoreDbClusterGroupToPointInTimeRequest.Builder useLatestRestorableTime(Boolean useLatestRestorableTime) Specifies whether to restore the DB cluster group to the latest restorable backup time. Can't be specified if
RestoreToTimeis specified.- Parameters:
useLatestRestorableTime- Specifies whether to restore the DB cluster group to the latest restorable backup time. Can't be specified ifRestoreToTimeis specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
RestoreDbClusterGroupToPointInTimeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
RestoreDbClusterGroupToPointInTimeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-