|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.rds.model.RestoreDBInstanceFromDBSnapshotRequest
public class RestoreDBInstanceFromDBSnapshotRequest
Container for the parameters to the RestoreDBInstanceFromDBSnapshot operation
.
This API creates a new DB Instance to an arbitrary point-in-time. Users can restore to any point in time before the latestRestorableTime for up to backupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.
AmazonRDS.restoreDBInstanceFromDBSnapshot(RestoreDBInstanceFromDBSnapshotRequest)
Constructor Summary | |
---|---|
RestoreDBInstanceFromDBSnapshotRequest()
Default constructor for a new RestoreDBInstanceFromDBSnapshotRequest object. |
|
RestoreDBInstanceFromDBSnapshotRequest(String dBInstanceIdentifier,
String dBSnapshotIdentifier)
Constructs a new RestoreDBInstanceFromDBSnapshotRequest object. |
Method Summary | |
---|---|
Boolean |
getAutoMinorVersionUpgrade()
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. |
String |
getAvailabilityZone()
The EC2 Availability Zone that the database instance will be created in. |
String |
getDBInstanceClass()
The compute and memory capacity of the Amazon RDS DB instance. |
String |
getDBInstanceIdentifier()
The identifier for the DB Snapshot to restore from. |
String |
getDBSnapshotIdentifier()
Name of the DB Instance to create from the DB Snapshot. |
Boolean |
getMultiAZ()
Specifies if the DB Instance is a Multi-AZ deployment. |
Integer |
getPort()
The port number on which the database accepts connections. |
Boolean |
isAutoMinorVersionUpgrade()
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. |
Boolean |
isMultiAZ()
Specifies if the DB Instance is a Multi-AZ deployment. |
void |
setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. |
void |
setAvailabilityZone(String availabilityZone)
The EC2 Availability Zone that the database instance will be created in. |
void |
setDBInstanceClass(String dBInstanceClass)
The compute and memory capacity of the Amazon RDS DB instance. |
void |
setDBInstanceIdentifier(String dBInstanceIdentifier)
The identifier for the DB Snapshot to restore from. |
void |
setDBSnapshotIdentifier(String dBSnapshotIdentifier)
Name of the DB Instance to create from the DB Snapshot. |
void |
setMultiAZ(Boolean multiAZ)
Specifies if the DB Instance is a Multi-AZ deployment. |
void |
setPort(Integer port)
The port number on which the database accepts connections. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
RestoreDBInstanceFromDBSnapshotRequest |
withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. |
RestoreDBInstanceFromDBSnapshotRequest |
withAvailabilityZone(String availabilityZone)
The EC2 Availability Zone that the database instance will be created in. |
RestoreDBInstanceFromDBSnapshotRequest |
withDBInstanceClass(String dBInstanceClass)
The compute and memory capacity of the Amazon RDS DB instance. |
RestoreDBInstanceFromDBSnapshotRequest |
withDBInstanceIdentifier(String dBInstanceIdentifier)
The identifier for the DB Snapshot to restore from. |
RestoreDBInstanceFromDBSnapshotRequest |
withDBSnapshotIdentifier(String dBSnapshotIdentifier)
Name of the DB Instance to create from the DB Snapshot. |
RestoreDBInstanceFromDBSnapshotRequest |
withMultiAZ(Boolean multiAZ)
Specifies if the DB Instance is a Multi-AZ deployment. |
RestoreDBInstanceFromDBSnapshotRequest |
withPort(Integer port)
The port number on which the database accepts connections. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RestoreDBInstanceFromDBSnapshotRequest()
public RestoreDBInstanceFromDBSnapshotRequest(String dBInstanceIdentifier, String dBSnapshotIdentifier)
dBInstanceIdentifier
- The identifier for the DB Snapshot to
restore from. Constraints:
dBSnapshotIdentifier
- Name of the DB Instance to create from the
DB Snapshot. This parameter isn't case sensitive. Constraints:
Example:
my-snapshot-id
Method Detail |
---|
public String getDBInstanceIdentifier()
Constraints:
Constraints:
public void setDBInstanceIdentifier(String dBInstanceIdentifier)
Constraints:
dBInstanceIdentifier
- The identifier for the DB Snapshot to restore from. Constraints:
public RestoreDBInstanceFromDBSnapshotRequest withDBInstanceIdentifier(String dBInstanceIdentifier)
Constraints:
Returns a reference to this object so that method calls can be chained together.
dBInstanceIdentifier
- The identifier for the DB Snapshot to restore from. Constraints:
public String getDBSnapshotIdentifier()
Constraints:
Example: my-snapshot-id
Constraints:
Example: my-snapshot-id
public void setDBSnapshotIdentifier(String dBSnapshotIdentifier)
Constraints:
Example: my-snapshot-id
dBSnapshotIdentifier
- Name of the DB Instance to create from the DB Snapshot. This parameter
isn't case sensitive. Constraints:
Example: my-snapshot-id
public RestoreDBInstanceFromDBSnapshotRequest withDBSnapshotIdentifier(String dBSnapshotIdentifier)
Constraints:
Example: my-snapshot-id
Returns a reference to this object so that method calls can be chained together.
dBSnapshotIdentifier
- Name of the DB Instance to create from the DB Snapshot. This parameter
isn't case sensitive. Constraints:
Example: my-snapshot-id
public String getDBInstanceClass()
Valid Values: db.m1.small | db.m1.large | db.m1.xlarge |
db.m2.2xlarge | db.m2.4xlarge
Valid Values: db.m1.small | db.m1.large | db.m1.xlarge |
db.m2.2xlarge | db.m2.4xlarge
public void setDBInstanceClass(String dBInstanceClass)
Valid Values: db.m1.small | db.m1.large | db.m1.xlarge |
db.m2.2xlarge | db.m2.4xlarge
dBInstanceClass
- The compute and memory capacity of the Amazon RDS DB instance.
Valid Values: db.m1.small | db.m1.large | db.m1.xlarge |
db.m2.2xlarge | db.m2.4xlarge
public RestoreDBInstanceFromDBSnapshotRequest withDBInstanceClass(String dBInstanceClass)
Valid Values: db.m1.small | db.m1.large | db.m1.xlarge |
db.m2.2xlarge | db.m2.4xlarge
Returns a reference to this object so that method calls can be chained together.
dBInstanceClass
- The compute and memory capacity of the Amazon RDS DB instance.
Valid Values: db.m1.small | db.m1.large | db.m1.xlarge |
db.m2.2xlarge | db.m2.4xlarge
public Integer getPort()
Default: The same port as the original DB Instance
Constraints: Value must
be 1115-65535
Default: The same port as the original DB Instance
Constraints: Value must
be 1115-65535
public void setPort(Integer port)
Default: The same port as the original DB Instance
Constraints: Value must
be 1115-65535
port
- The port number on which the database accepts connections. Default: The same port as the original DB Instance
Constraints: Value must
be 1115-65535
public RestoreDBInstanceFromDBSnapshotRequest withPort(Integer port)
Default: The same port as the original DB Instance
Constraints: Value must
be 1115-65535
Returns a reference to this object so that method calls can be chained together.
port
- The port number on which the database accepts connections. Default: The same port as the original DB Instance
Constraints: Value must
be 1115-65535
public String getAvailabilityZone()
Default: A random, system-chosen Availability Zone.
Constraint: You cannot specify the AvailabilityZone parameter if
the MultiAZ parameter is set to true
.
Example:
us-east-1a
Default: A random, system-chosen Availability Zone.
Constraint: You cannot specify the AvailabilityZone parameter if
the MultiAZ parameter is set to true
.
Example:
us-east-1a
public void setAvailabilityZone(String availabilityZone)
Default: A random, system-chosen Availability Zone.
Constraint: You cannot specify the AvailabilityZone parameter if
the MultiAZ parameter is set to true
.
Example:
us-east-1a
availabilityZone
- The EC2 Availability Zone that the database instance will be created
in. Default: A random, system-chosen Availability Zone.
Constraint: You cannot specify the AvailabilityZone parameter if
the MultiAZ parameter is set to true
.
Example:
us-east-1a
public RestoreDBInstanceFromDBSnapshotRequest withAvailabilityZone(String availabilityZone)
Default: A random, system-chosen Availability Zone.
Constraint: You cannot specify the AvailabilityZone parameter if
the MultiAZ parameter is set to true
.
Example:
us-east-1a
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The EC2 Availability Zone that the database instance will be created
in. Default: A random, system-chosen Availability Zone.
Constraint: You cannot specify the AvailabilityZone parameter if
the MultiAZ parameter is set to true
.
Example:
us-east-1a
public Boolean isMultiAZ()
Constraint:
You cannot specify the AvailabilityZone parameter if the MultiAZ
parameter is set to true
.
Constraint:
You cannot specify the AvailabilityZone parameter if the MultiAZ
parameter is set to true
.
public void setMultiAZ(Boolean multiAZ)
Constraint:
You cannot specify the AvailabilityZone parameter if the MultiAZ
parameter is set to true
.
multiAZ
- Specifies if the DB Instance is a Multi-AZ deployment. Constraint:
You cannot specify the AvailabilityZone parameter if the MultiAZ
parameter is set to true
.
public RestoreDBInstanceFromDBSnapshotRequest withMultiAZ(Boolean multiAZ)
Constraint:
You cannot specify the AvailabilityZone parameter if the MultiAZ
parameter is set to true
.
Returns a reference to this object so that method calls can be chained together.
multiAZ
- Specifies if the DB Instance is a Multi-AZ deployment. Constraint:
You cannot specify the AvailabilityZone parameter if the MultiAZ
parameter is set to true
.
public Boolean getMultiAZ()
Constraint:
You cannot specify the AvailabilityZone parameter if the MultiAZ
parameter is set to true
.
Constraint:
You cannot specify the AvailabilityZone parameter if the MultiAZ
parameter is set to true
.
public Boolean isAutoMinorVersionUpgrade()
public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
autoMinorVersionUpgrade
- Indicates that minor version upgrades will be applied automatically to
the DB Instance during the maintenance window.public RestoreDBInstanceFromDBSnapshotRequest withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Returns a reference to this object so that method calls can be chained together.
autoMinorVersionUpgrade
- Indicates that minor version upgrades will be applied automatically to
the DB Instance during the maintenance window.
public Boolean getAutoMinorVersionUpgrade()
public String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |