@Generated(value="software.amazon.awssdk:codegen") public final class RestoreDbClusterToPointInTimeRequest extends DocDbRequest implements ToCopyableBuilder<RestoreDbClusterToPointInTimeRequest.Builder,RestoreDbClusterToPointInTimeRequest>
Represents the input to RestoreDBClusterToPointInTime.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RestoreDbClusterToPointInTimeRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RestoreDbClusterToPointInTimeRequest.Builder |
builder() |
String |
dbClusterIdentifier()
The name of the new cluster to be created.
|
String |
dbSubnetGroupName()
The subnet group name to use for the new cluster.
|
Boolean |
deletionProtection()
Specifies whether this cluster can be deleted.
|
List<String> |
enableCloudwatchLogsExports()
A list of log types that must be enabled for exporting to Amazon CloudWatch Logs.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasEnableCloudwatchLogsExports()
For responses, this returns true if the service returned a value for the EnableCloudwatchLogsExports property.
|
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
boolean |
hasVpcSecurityGroupIds()
For responses, this returns true if the service returned a value for the VpcSecurityGroupIds property.
|
String |
kmsKeyId()
The KMS key identifier to use when restoring an encrypted cluster from an encrypted cluster.
|
Integer |
port()
The port number on which the new cluster accepts connections.
|
Instant |
restoreToTime()
The date and time to restore the cluster to.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RestoreDbClusterToPointInTimeRequest.Builder> |
serializableBuilderClass() |
String |
sourceDBClusterIdentifier()
The identifier of the source cluster from which to restore.
|
List<Tag> |
tags()
The tags to be assigned to the restored cluster.
|
RestoreDbClusterToPointInTimeRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Boolean |
useLatestRestorableTime()
A value that is set to
true to restore the cluster to the latest restorable backup time, and
false otherwise. |
List<String> |
vpcSecurityGroupIds()
A list of VPC security groups that the new cluster belongs to.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String dbClusterIdentifier()
The name of the new cluster to be created.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
public final String sourceDBClusterIdentifier()
The identifier of the source cluster from which to restore.
Constraints:
Must match the identifier of an existing DBCluster.
Constraints:
Must match the identifier of an existing DBCluster.
public final Instant restoreToTime()
The date and time to restore the cluster to.
Valid values: A time in Universal Coordinated Time (UTC) format.
Constraints:
Must be before the latest restorable time for the instance.
Must be specified if the UseLatestRestorableTime parameter is not provided.
Cannot be specified if the UseLatestRestorableTime parameter is true.
Cannot be specified if the RestoreType parameter is copy-on-write.
Example: 2015-03-07T23:45:00Z
Valid values: A time in Universal Coordinated Time (UTC) format.
Constraints:
Must be before the latest restorable time for the instance.
Must be specified if the UseLatestRestorableTime parameter is not provided.
Cannot be specified if the UseLatestRestorableTime parameter is true.
Cannot be specified if the RestoreType parameter is copy-on-write.
Example: 2015-03-07T23:45:00Z
public final Boolean useLatestRestorableTime()
A value that is set to true to restore the cluster to the latest restorable backup time, and
false otherwise.
Default: false
Constraints: Cannot be specified if the RestoreToTime parameter is provided.
true to restore the cluster to the latest restorable backup time, and
false otherwise.
Default: false
Constraints: Cannot be specified if the RestoreToTime parameter is provided.
public final Integer port()
The port number on which the new cluster accepts connections.
Constraints: Must be a value from 1150 to 65535.
Default: The default port for the engine.
Constraints: Must be a value from 1150 to 65535.
Default: The default port for the engine.
public final String dbSubnetGroupName()
The subnet group name to use for the new cluster.
Constraints: If provided, must match the name of an existing DBSubnetGroup.
Example: mySubnetgroup
Constraints: If provided, must match the name of an existing DBSubnetGroup.
Example: mySubnetgroup
public final boolean hasVpcSecurityGroupIds()
isEmpty() 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.public final List<String> vpcSecurityGroupIds()
A list of VPC security groups that the new cluster 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 hasVpcSecurityGroupIds() method.
public final boolean hasTags()
isEmpty() 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.public final List<Tag> tags()
The tags to be assigned to the restored cluster.
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.
public final String kmsKeyId()
The KMS key identifier to use when restoring an encrypted cluster from an encrypted cluster.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a cluster with the same account that owns the KMS encryption key used to encrypt the new cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.
You can restore to a new cluster and encrypt the new cluster with an KMS key that is different from the KMS key
used to encrypt the source cluster. The new DB cluster is encrypted with the KMS key identified by the
KmsKeyId parameter.
If you do not specify a value for the KmsKeyId parameter, then the following occurs:
If the cluster is encrypted, then the restored cluster is encrypted using the KMS key that was used to encrypt the source cluster.
If the cluster is not encrypted, then the restored cluster is not encrypted.
If DBClusterIdentifier refers to a cluster that is not encrypted, then the restore request is
rejected.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a cluster with the same account that owns the KMS encryption key used to encrypt the new cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.
You can restore to a new cluster and encrypt the new cluster with an KMS key that is different from the
KMS key used to encrypt the source cluster. The new DB cluster is encrypted with the KMS key identified
by the KmsKeyId parameter.
If you do not specify a value for the KmsKeyId parameter, then the following occurs:
If the cluster is encrypted, then the restored cluster is encrypted using the KMS key that was used to encrypt the source cluster.
If the cluster is not encrypted, then the restored cluster is not encrypted.
If DBClusterIdentifier refers to a cluster that is not encrypted, then the restore request
is rejected.
public final boolean hasEnableCloudwatchLogsExports()
isEmpty() 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.public final List<String> enableCloudwatchLogsExports()
A list of log types that must be enabled for exporting to Amazon 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 hasEnableCloudwatchLogsExports() method.
public final Boolean deletionProtection()
Specifies whether this cluster can be deleted. If DeletionProtection is enabled, the cluster cannot
be deleted unless it is modified and DeletionProtection is disabled. DeletionProtection
protects clusters from being accidentally deleted.
DeletionProtection is enabled, the cluster
cannot be deleted unless it is modified and DeletionProtection is disabled.
DeletionProtection protects clusters from being accidentally deleted.public RestoreDbClusterToPointInTimeRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RestoreDbClusterToPointInTimeRequest.Builder,RestoreDbClusterToPointInTimeRequest>toBuilder in class DocDbRequestpublic static RestoreDbClusterToPointInTimeRequest.Builder builder()
public static Class<? extends RestoreDbClusterToPointInTimeRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.