Class RestoreDbClusterGroupToPointInTimeRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<RestoreDbClusterGroupToPointInTimeRequest.Builder,RestoreDbClusterGroupToPointInTimeRequest>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe name of the admin user that the routing endpoint uses to connect to the member DB clusters.final StringThe password for the admin user.final IntegerThe number of days for which automated backups of the restored DB cluster group are retained.builder()final BooleanSpecifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group.final StringThe identifier for the new DB cluster group.final BooleanSpecifies whether the DB cluster group has deletion protection enabled.final BooleanSpecifies whether to enable routing for the DB cluster group.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) Used to retrieve the value of a field from any class that extendsSdkRequest.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the MemberClusterOverrides property.final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final booleanFor responses, this returns true if the service returned a value for the TagSpecifications property.final List<MemberClusterOverride> A list of per-DB cluster settings that overrideMemberClusterProvisioningConfigurationfor specific source DB clusters.The settings to use for every DB cluster that Amazon RDS creates in the restored DB cluster group.final StringThe daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).final StringThe weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).final InstantThe date and time to restore the DB cluster group to, in Universal Coordinated Time (UTC).The settings of the routing endpoint.static Class<? extends RestoreDbClusterGroupToPointInTimeRequest.Builder> final StringThe identifier of the source DB cluster group.final StringThe resource ID of the source DB cluster group.tags()Tags to assign to the restored DB cluster group.final List<TagSpecification> Tags to assign to resources associated with the DB cluster group.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 BooleanSpecifies whether to restore the DB cluster group to the latest restorable backup time.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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:
- 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.
-
-
-
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.- Returns:
- 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.
-
hasMemberClusterOverrides
public final boolean hasMemberClusterOverrides()For responses, this returns true if the service returned a value for the MemberClusterOverrides 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. -
memberClusterOverrides
A list of per-DB cluster settings that override
MemberClusterProvisioningConfigurationfor specific source DB clusters.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
hasMemberClusterOverrides()method.- Returns:
- A list of per-DB cluster settings that override
MemberClusterProvisioningConfigurationfor specific source DB clusters.
-
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:
- 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.
-
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:
- 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.
-
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:
- 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.
-
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:
- 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.
-
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:
- 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.
-
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:
- 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.
-
routingEndpointConfiguration
The settings of the routing endpoint. Specify this parameter only when
EnableRoutingistrue, and includeVpcSubnetIds.- Returns:
- The settings of the routing endpoint. Specify this parameter only when
EnableRoutingistrue, and includeVpcSubnetIds.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags 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. -
tags
Tags to assign to the restored DB cluster group.
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
hasTags()method.- Returns:
- Tags to assign to the restored DB cluster group.
-
hasTagSpecifications
public final boolean hasTagSpecifications()For responses, this returns true if the service returned a value for the TagSpecifications 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. -
tagSpecifications
Tags to assign to resources associated with the DB cluster group.
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
hasTagSpecifications()method.- Returns:
- Tags to assign to resources associated with the DB cluster group.
-
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:
- 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.
-
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.- Returns:
- 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.
-
sourceDBClusterGroupIdentifier
The identifier of the source DB cluster group. Specify either
SourceDBClusterGroupIdentifierorSourceDBClusterGroupResourceId.- Returns:
- The identifier of the source DB cluster group. Specify either
SourceDBClusterGroupIdentifierorSourceDBClusterGroupResourceId.
-
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.- Returns:
- 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.
-
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:
- 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.
-
useLatestRestorableTime
Specifies whether to restore the DB cluster group to the latest restorable backup time. Can't be specified if
RestoreToTimeis specified.- Returns:
- Specifies whether to restore the DB cluster group to the latest restorable backup time. Can't be
specified if
RestoreToTimeis specified.
-
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<RestoreDbClusterGroupToPointInTimeRequest.Builder,RestoreDbClusterGroupToPointInTimeRequest> - Specified by:
toBuilderin classRdsRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends RestoreDbClusterGroupToPointInTimeRequest.Builder> serializableBuilderClass() -
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
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
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-