public class RestoreDBClusterFromSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
RestoreDBClusterFromSnapshot operation
.
Creates a new DB cluster from a DB cluster snapshot. The target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.
For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.
NOOP
Constructor and Description |
---|
RestoreDBClusterFromSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
RestoreDBClusterFromSnapshotRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<String> |
getAvailabilityZones()
Provides the list of EC2 Availability Zones that instances in the
restored DB cluster can be created in.
|
String |
getDatabaseName()
The database name for the restored DB cluster.
|
String |
getDBClusterIdentifier()
The name of the DB cluster to create from the DB cluster snapshot.
|
String |
getDBSubnetGroupName()
The name of the DB subnet group to use for the new DB cluster.
|
String |
getEngine()
The database engine to use for the new DB cluster.
|
String |
getEngineVersion()
The version of the database engine to use for the new DB cluster.
|
String |
getOptionGroupName()
The name of the option group to use for the restored DB cluster.
|
Integer |
getPort()
The port number on which the new DB cluster accepts connections.
|
String |
getSnapshotIdentifier()
The identifier for the DB cluster snapshot to restore from.
|
List<Tag> |
getTags()
The tags to be assigned to the restored DB cluster.
|
List<String> |
getVpcSecurityGroupIds()
A list of VPC security groups that the new DB cluster will belong to.
|
int |
hashCode() |
void |
setAvailabilityZones(Collection<String> availabilityZones)
Provides the list of EC2 Availability Zones that instances in the
restored DB cluster can be created in.
|
void |
setDatabaseName(String databaseName)
The database name for the restored DB cluster.
|
void |
setDBClusterIdentifier(String dBClusterIdentifier)
The name of the DB cluster to create from the DB cluster snapshot.
|
void |
setDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group to use for the new DB cluster.
|
void |
setEngine(String engine)
The database engine to use for the new DB cluster.
|
void |
setEngineVersion(String engineVersion)
The version of the database engine to use for the new DB cluster.
|
void |
setOptionGroupName(String optionGroupName)
The name of the option group to use for the restored DB cluster.
|
void |
setPort(Integer port)
The port number on which the new DB cluster accepts connections.
|
void |
setSnapshotIdentifier(String snapshotIdentifier)
The identifier for the DB cluster snapshot to restore from.
|
void |
setTags(Collection<Tag> tags)
The tags to be assigned to the restored DB cluster.
|
void |
setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of VPC security groups that the new DB cluster will belong to.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RestoreDBClusterFromSnapshotRequest |
withAvailabilityZones(Collection<String> availabilityZones)
Provides the list of EC2 Availability Zones that instances in the
restored DB cluster can be created in.
|
RestoreDBClusterFromSnapshotRequest |
withAvailabilityZones(String... availabilityZones)
Provides the list of EC2 Availability Zones that instances in the
restored DB cluster can be created in.
|
RestoreDBClusterFromSnapshotRequest |
withDatabaseName(String databaseName)
The database name for the restored DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withDBClusterIdentifier(String dBClusterIdentifier)
The name of the DB cluster to create from the DB cluster snapshot.
|
RestoreDBClusterFromSnapshotRequest |
withDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group to use for the new DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withEngine(String engine)
The database engine to use for the new DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withEngineVersion(String engineVersion)
The version of the database engine to use for the new DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withOptionGroupName(String optionGroupName)
The name of the option group to use for the restored DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withPort(Integer port)
The port number on which the new DB cluster accepts connections.
|
RestoreDBClusterFromSnapshotRequest |
withSnapshotIdentifier(String snapshotIdentifier)
The identifier for the DB cluster snapshot to restore from.
|
RestoreDBClusterFromSnapshotRequest |
withTags(Collection<Tag> tags)
The tags to be assigned to the restored DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withTags(Tag... tags)
The tags to be assigned to the restored DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of VPC security groups that the new DB cluster will belong to.
|
RestoreDBClusterFromSnapshotRequest |
withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
A list of VPC security groups that the new DB cluster will belong to.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public List<String> getAvailabilityZones()
public void setAvailabilityZones(Collection<String> availabilityZones)
availabilityZones
- Provides the list of EC2 Availability Zones that instances in the
restored DB cluster can be created in.public RestoreDBClusterFromSnapshotRequest withAvailabilityZones(String... availabilityZones)
NOTE: This method appends the values to the existing list (if
any). Use setAvailabilityZones(java.util.Collection)
or
withAvailabilityZones(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.
availabilityZones
- Provides the list of EC2 Availability Zones that instances in the
restored DB cluster can be created in.public RestoreDBClusterFromSnapshotRequest withAvailabilityZones(Collection<String> availabilityZones)
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- Provides the list of EC2 Availability Zones that instances in the
restored DB cluster can be created in.public String getDBClusterIdentifier()
Constraints:
Example:
my-snapshot-id
Constraints:
Example:
my-snapshot-id
public void setDBClusterIdentifier(String dBClusterIdentifier)
Constraints:
Example:
my-snapshot-id
dBClusterIdentifier
- The name of the DB cluster to create from the DB cluster snapshot.
This parameter isn't case-sensitive. Constraints:
Example:
my-snapshot-id
public RestoreDBClusterFromSnapshotRequest withDBClusterIdentifier(String dBClusterIdentifier)
Constraints:
Example:
my-snapshot-id
Returns a reference to this object so that method calls can be chained together.
dBClusterIdentifier
- The name of the DB cluster to create from the DB cluster snapshot.
This parameter isn't case-sensitive. Constraints:
Example:
my-snapshot-id
public String getSnapshotIdentifier()
Constraints:
Constraints:
public void setSnapshotIdentifier(String snapshotIdentifier)
Constraints:
snapshotIdentifier
- The identifier for the DB cluster snapshot to restore from.
Constraints:
public RestoreDBClusterFromSnapshotRequest withSnapshotIdentifier(String snapshotIdentifier)
Constraints:
Returns a reference to this object so that method calls can be chained together.
snapshotIdentifier
- The identifier for the DB cluster snapshot to restore from.
Constraints:
public String getEngine()
Default: The same as source
Constraint: Must be compatible with the engine of the source
Default: The same as source
Constraint: Must be compatible with the engine of the source
public void setEngine(String engine)
Default: The same as source
Constraint: Must be compatible with the engine of the source
engine
- The database engine to use for the new DB cluster. Default: The same as source
Constraint: Must be compatible with the engine of the source
public RestoreDBClusterFromSnapshotRequest withEngine(String engine)
Default: The same as source
Constraint: Must be compatible with the engine of the source
Returns a reference to this object so that method calls can be chained together.
engine
- The database engine to use for the new DB cluster. Default: The same as source
Constraint: Must be compatible with the engine of the source
public String getEngineVersion()
public void setEngineVersion(String engineVersion)
engineVersion
- The version of the database engine to use for the new DB cluster.public RestoreDBClusterFromSnapshotRequest withEngineVersion(String engineVersion)
Returns a reference to this object so that method calls can be chained together.
engineVersion
- The version of the database engine to use for the new DB cluster.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 RestoreDBClusterFromSnapshotRequest 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 name of the DB subnet group to use for the new DB cluster.public RestoreDBClusterFromSnapshotRequest withDBSubnetGroupName(String dBSubnetGroupName)
Returns a reference to this object so that method calls can be chained together.
dBSubnetGroupName
- The name of the DB subnet group to use for the new DB cluster.public String getDatabaseName()
public void setDatabaseName(String databaseName)
databaseName
- The database name for the restored DB cluster.public RestoreDBClusterFromSnapshotRequest withDatabaseName(String databaseName)
Returns a reference to this object so that method calls can be chained together.
databaseName
- The database name for the restored DB cluster.public String getOptionGroupName()
public void setOptionGroupName(String optionGroupName)
optionGroupName
- The name of the option group to use for the restored DB cluster.public RestoreDBClusterFromSnapshotRequest withOptionGroupName(String optionGroupName)
Returns a reference to this object so that method calls can be chained together.
optionGroupName
- The name of the option group to use for the restored DB cluster.public List<String> getVpcSecurityGroupIds()
public void setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
vpcSecurityGroupIds
- A list of VPC security groups that the new DB cluster will belong to.public RestoreDBClusterFromSnapshotRequest 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 list of VPC security groups that the new DB cluster will belong to.public RestoreDBClusterFromSnapshotRequest withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
Returns a reference to this object so that method calls can be chained together.
vpcSecurityGroupIds
- A list of VPC security groups that the new DB cluster will belong to.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- The tags to be assigned to the restored DB cluster.public RestoreDBClusterFromSnapshotRequest 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
- The tags to be assigned to the restored DB cluster.public RestoreDBClusterFromSnapshotRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- The tags to be assigned to the restored DB cluster.public String toString()
toString
in class Object
Object.toString()
public RestoreDBClusterFromSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.