public class RestoreDBClusterToPointInTimeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
RestoreDBClusterToPointInTime operation
.
Restores a DB cluster to an arbitrary point in time. Users can
restore to any point in time before LatestRestorableTime
for up to BackupRetentionPeriod
days. The target DB
cluster is created from the source DB cluster with the same
configuration as the original DB cluster, except that the new DB
cluster is created with the default DB security group.
For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.
NOOP
Constructor and Description |
---|
RestoreDBClusterToPointInTimeRequest() |
Modifier and Type | Method and Description |
---|---|
RestoreDBClusterToPointInTimeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getDBClusterIdentifier()
The name of the new DB cluster to be created.
|
String |
getDBSubnetGroupName()
The DB subnet group name to use for the new DB cluster.
|
String |
getOptionGroupName()
The name of the option group for the new DB cluster.
|
Integer |
getPort()
The port number on which the new DB cluster accepts connections.
|
Date |
getRestoreToTime()
The date and time to restore the DB cluster to.
|
String |
getSourceDBClusterIdentifier()
The identifier of the source DB cluster from which to restore.
|
List<Tag> |
getTags()
A list of tags.
|
Boolean |
getUseLatestRestorableTime()
A value that is set to
true to restore the DB cluster to
the latest restorable backup time, and false otherwise. |
List<String> |
getVpcSecurityGroupIds()
A lst of VPC security groups that the new DB cluster belongs to.
|
int |
hashCode() |
Boolean |
isUseLatestRestorableTime()
A value that is set to
true to restore the DB cluster to
the latest restorable backup time, and false otherwise. |
void |
setDBClusterIdentifier(String dBClusterIdentifier)
The name of the new DB cluster to be created.
|
void |
setDBSubnetGroupName(String dBSubnetGroupName)
The DB subnet group name to use for the new DB cluster.
|
void |
setOptionGroupName(String optionGroupName)
The name of the option group for the new DB cluster.
|
void |
setPort(Integer port)
The port number on which the new DB cluster accepts connections.
|
void |
setRestoreToTime(Date restoreToTime)
The date and time to restore the DB cluster to.
|
void |
setSourceDBClusterIdentifier(String sourceDBClusterIdentifier)
The identifier of the source DB cluster from which to restore.
|
void |
setTags(Collection<Tag> tags)
A list of tags.
|
void |
setUseLatestRestorableTime(Boolean useLatestRestorableTime)
A value that is set to
true to restore the DB cluster to
the latest restorable backup time, and false otherwise. |
void |
setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A lst of VPC security groups that the new DB cluster belongs to.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RestoreDBClusterToPointInTimeRequest |
withDBClusterIdentifier(String dBClusterIdentifier)
The name of the new DB cluster to be created.
|
RestoreDBClusterToPointInTimeRequest |
withDBSubnetGroupName(String dBSubnetGroupName)
The DB subnet group name to use for the new DB cluster.
|
RestoreDBClusterToPointInTimeRequest |
withOptionGroupName(String optionGroupName)
The name of the option group for the new DB cluster.
|
RestoreDBClusterToPointInTimeRequest |
withPort(Integer port)
The port number on which the new DB cluster accepts connections.
|
RestoreDBClusterToPointInTimeRequest |
withRestoreToTime(Date restoreToTime)
The date and time to restore the DB cluster to.
|
RestoreDBClusterToPointInTimeRequest |
withSourceDBClusterIdentifier(String sourceDBClusterIdentifier)
The identifier of the source DB cluster from which to restore.
|
RestoreDBClusterToPointInTimeRequest |
withTags(Collection<Tag> tags)
A list of tags.
|
RestoreDBClusterToPointInTimeRequest |
withTags(Tag... tags)
A list of tags.
|
RestoreDBClusterToPointInTimeRequest |
withUseLatestRestorableTime(Boolean useLatestRestorableTime)
A value that is set to
true to restore the DB cluster to
the latest restorable backup time, and false otherwise. |
RestoreDBClusterToPointInTimeRequest |
withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A lst of VPC security groups that the new DB cluster belongs to.
|
RestoreDBClusterToPointInTimeRequest |
withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
A lst of VPC security groups that the new DB cluster belongs to.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public RestoreDBClusterToPointInTimeRequest()
public String getDBClusterIdentifier()
Constraints:
Constraints:
public void setDBClusterIdentifier(String dBClusterIdentifier)
Constraints:
dBClusterIdentifier
- The name of the new DB cluster to be created. Constraints:
public RestoreDBClusterToPointInTimeRequest withDBClusterIdentifier(String dBClusterIdentifier)
Constraints:
Returns a reference to this object so that method calls can be chained together.
dBClusterIdentifier
- The name of the new DB cluster to be created. Constraints:
public String getSourceDBClusterIdentifier()
Constraints:
Constraints:
public void setSourceDBClusterIdentifier(String sourceDBClusterIdentifier)
Constraints:
sourceDBClusterIdentifier
- The identifier of the source DB cluster from which to restore.
Constraints:
public RestoreDBClusterToPointInTimeRequest withSourceDBClusterIdentifier(String sourceDBClusterIdentifier)
Constraints:
Returns a reference to this object so that method calls can be chained together.
sourceDBClusterIdentifier
- The identifier of the source DB cluster from which to restore.
Constraints:
public Date getRestoreToTime()
Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
Constraints:
UseLatestRestorableTime
parameter is trueExample: 2015-03-07T23:45:00Z
Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
Constraints:
UseLatestRestorableTime
parameter is trueExample: 2015-03-07T23:45:00Z
public void setRestoreToTime(Date restoreToTime)
Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
Constraints:
UseLatestRestorableTime
parameter is trueExample: 2015-03-07T23:45:00Z
restoreToTime
- The date and time to restore the DB cluster to. Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
Constraints:
UseLatestRestorableTime
parameter is trueExample: 2015-03-07T23:45:00Z
public RestoreDBClusterToPointInTimeRequest withRestoreToTime(Date restoreToTime)
Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
Constraints:
UseLatestRestorableTime
parameter is trueExample: 2015-03-07T23:45:00Z
Returns a reference to this object so that method calls can be chained together.
restoreToTime
- The date and time to restore the DB cluster to. Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
Constraints:
UseLatestRestorableTime
parameter is trueExample: 2015-03-07T23:45:00Z
public Boolean isUseLatestRestorableTime()
true
to restore the DB cluster to
the latest restorable backup time, and false
otherwise.
Default: false
Constraints: Cannot be specified if
RestoreToTime
parameter is provided.
true
to restore the DB cluster to
the latest restorable backup time, and false
otherwise.
Default: false
Constraints: Cannot be specified if
RestoreToTime
parameter is provided.
public void setUseLatestRestorableTime(Boolean useLatestRestorableTime)
true
to restore the DB cluster to
the latest restorable backup time, and false
otherwise.
Default: false
Constraints: Cannot be specified if
RestoreToTime
parameter is provided.
useLatestRestorableTime
- A value that is set to true
to restore the DB cluster to
the latest restorable backup time, and false
otherwise.
Default: false
Constraints: Cannot be specified if
RestoreToTime
parameter is provided.
public RestoreDBClusterToPointInTimeRequest withUseLatestRestorableTime(Boolean useLatestRestorableTime)
true
to restore the DB cluster to
the latest restorable backup time, and false
otherwise.
Default: false
Constraints: Cannot be specified if
RestoreToTime
parameter is provided.
Returns a reference to this object so that method calls can be chained together.
useLatestRestorableTime
- A value that is set to true
to restore the DB cluster to
the latest restorable backup time, and false
otherwise.
Default: false
Constraints: Cannot be specified if
RestoreToTime
parameter is provided.
public Boolean getUseLatestRestorableTime()
true
to restore the DB cluster to
the latest restorable backup time, and false
otherwise.
Default: false
Constraints: Cannot be specified if
RestoreToTime
parameter is provided.
true
to restore the DB cluster to
the latest restorable backup time, and false
otherwise.
Default: false
Constraints: Cannot be specified if
RestoreToTime
parameter is provided.
public Integer getPort()
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
public void setPort(Integer port)
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
port
- The port number on which the new DB cluster accepts connections.
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
public RestoreDBClusterToPointInTimeRequest withPort(Integer port)
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
Returns a reference to this object so that method calls can be chained together.
port
- The port number on which the new DB cluster accepts connections.
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
public String getDBSubnetGroupName()
public void setDBSubnetGroupName(String dBSubnetGroupName)
dBSubnetGroupName
- The DB subnet group name to use for the new DB cluster.public RestoreDBClusterToPointInTimeRequest withDBSubnetGroupName(String dBSubnetGroupName)
Returns a reference to this object so that method calls can be chained together.
dBSubnetGroupName
- The DB subnet group name to use for the new DB cluster.public String getOptionGroupName()
public void setOptionGroupName(String optionGroupName)
optionGroupName
- The name of the option group for the new DB cluster.public RestoreDBClusterToPointInTimeRequest withOptionGroupName(String optionGroupName)
Returns a reference to this object so that method calls can be chained together.
optionGroupName
- The name of the option group for the new DB cluster.public List<String> getVpcSecurityGroupIds()
public void setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
vpcSecurityGroupIds
- A lst of VPC security groups that the new DB cluster belongs to.public RestoreDBClusterToPointInTimeRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
NOTE: This method appends the values to the existing list (if
any). Use setVpcSecurityGroupIds(java.util.Collection)
or
withVpcSecurityGroupIds(java.util.Collection)
if you want to
override the existing values.
Returns a reference to this object so that method calls can be chained together.
vpcSecurityGroupIds
- A lst of VPC security groups that the new DB cluster belongs to.public RestoreDBClusterToPointInTimeRequest withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
Returns a reference to this object so that method calls can be chained together.
vpcSecurityGroupIds
- A lst of VPC security groups that the new DB cluster belongs to.public void setTags(Collection<Tag> tags)
tags
- A list of tags.public RestoreDBClusterToPointInTimeRequest withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the existing
values.
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags.public RestoreDBClusterToPointInTimeRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags.public String toString()
toString
in class Object
Object.toString()
public RestoreDBClusterToPointInTimeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.