@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRelationalDatabaseFromSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateRelationalDatabaseFromSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRelationalDatabaseFromSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which to create your new database.
|
Boolean |
getPubliclyAccessible()
Specifies the accessibility options for your new database.
|
String |
getRelationalDatabaseBundleId()
The bundle ID for your new database.
|
String |
getRelationalDatabaseName()
The name to use for your new Lightsail database resource.
|
String |
getRelationalDatabaseSnapshotName()
The name of the database snapshot from which to create your new database.
|
Date |
getRestoreTime()
The date and time to restore your database from.
|
String |
getSourceRelationalDatabaseName()
The name of the source database.
|
List<Tag> |
getTags()
The tag keys and optional values to add to the resource during create.
|
Boolean |
getUseLatestRestorableTime()
Specifies whether your database is restored from the latest backup time.
|
int |
hashCode() |
Boolean |
isPubliclyAccessible()
Specifies the accessibility options for your new database.
|
Boolean |
isUseLatestRestorableTime()
Specifies whether your database is restored from the latest backup time.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which to create your new database.
|
void |
setPubliclyAccessible(Boolean publiclyAccessible)
Specifies the accessibility options for your new database.
|
void |
setRelationalDatabaseBundleId(String relationalDatabaseBundleId)
The bundle ID for your new database.
|
void |
setRelationalDatabaseName(String relationalDatabaseName)
The name to use for your new Lightsail database resource.
|
void |
setRelationalDatabaseSnapshotName(String relationalDatabaseSnapshotName)
The name of the database snapshot from which to create your new database.
|
void |
setRestoreTime(Date restoreTime)
The date and time to restore your database from.
|
void |
setSourceRelationalDatabaseName(String sourceRelationalDatabaseName)
The name of the source database.
|
void |
setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
void |
setUseLatestRestorableTime(Boolean useLatestRestorableTime)
Specifies whether your database is restored from the latest backup time.
|
String |
toString()
Returns a string representation of this object.
|
CreateRelationalDatabaseFromSnapshotRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which to create your new database.
|
CreateRelationalDatabaseFromSnapshotRequest |
withPubliclyAccessible(Boolean publiclyAccessible)
Specifies the accessibility options for your new database.
|
CreateRelationalDatabaseFromSnapshotRequest |
withRelationalDatabaseBundleId(String relationalDatabaseBundleId)
The bundle ID for your new database.
|
CreateRelationalDatabaseFromSnapshotRequest |
withRelationalDatabaseName(String relationalDatabaseName)
The name to use for your new Lightsail database resource.
|
CreateRelationalDatabaseFromSnapshotRequest |
withRelationalDatabaseSnapshotName(String relationalDatabaseSnapshotName)
The name of the database snapshot from which to create your new database.
|
CreateRelationalDatabaseFromSnapshotRequest |
withRestoreTime(Date restoreTime)
The date and time to restore your database from.
|
CreateRelationalDatabaseFromSnapshotRequest |
withSourceRelationalDatabaseName(String sourceRelationalDatabaseName)
The name of the source database.
|
CreateRelationalDatabaseFromSnapshotRequest |
withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
CreateRelationalDatabaseFromSnapshotRequest |
withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
|
CreateRelationalDatabaseFromSnapshotRequest |
withUseLatestRestorableTime(Boolean useLatestRestorableTime)
Specifies whether your database is restored from the latest backup time.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CreateRelationalDatabaseFromSnapshotRequest()
public void setRelationalDatabaseName(String relationalDatabaseName)
The name to use for your new Lightsail database resource.
Constraints:
Must contain from 2 to 255 alphanumeric characters, or hyphens.
The first and last character must be a letter or number.
relationalDatabaseName
- The name to use for your new Lightsail database resource.
Constraints:
Must contain from 2 to 255 alphanumeric characters, or hyphens.
The first and last character must be a letter or number.
public String getRelationalDatabaseName()
The name to use for your new Lightsail database resource.
Constraints:
Must contain from 2 to 255 alphanumeric characters, or hyphens.
The first and last character must be a letter or number.
Constraints:
Must contain from 2 to 255 alphanumeric characters, or hyphens.
The first and last character must be a letter or number.
public CreateRelationalDatabaseFromSnapshotRequest withRelationalDatabaseName(String relationalDatabaseName)
The name to use for your new Lightsail database resource.
Constraints:
Must contain from 2 to 255 alphanumeric characters, or hyphens.
The first and last character must be a letter or number.
relationalDatabaseName
- The name to use for your new Lightsail database resource.
Constraints:
Must contain from 2 to 255 alphanumeric characters, or hyphens.
The first and last character must be a letter or number.
public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which to create your new database. Use the us-east-2a
case-sensitive
format.
You can get a list of Availability Zones by using the get regions
operation. Be sure to add the
include relational database Availability Zones
parameter to your request.
availabilityZone
- The Availability Zone in which to create your new database. Use the us-east-2a
case-sensitive
format.
You can get a list of Availability Zones by using the get regions
operation. Be sure to add
the include relational database Availability Zones
parameter to your request.
public String getAvailabilityZone()
The Availability Zone in which to create your new database. Use the us-east-2a
case-sensitive
format.
You can get a list of Availability Zones by using the get regions
operation. Be sure to add the
include relational database Availability Zones
parameter to your request.
us-east-2a
case-sensitive format.
You can get a list of Availability Zones by using the get regions
operation. Be sure to add
the include relational database Availability Zones
parameter to your request.
public CreateRelationalDatabaseFromSnapshotRequest withAvailabilityZone(String availabilityZone)
The Availability Zone in which to create your new database. Use the us-east-2a
case-sensitive
format.
You can get a list of Availability Zones by using the get regions
operation. Be sure to add the
include relational database Availability Zones
parameter to your request.
availabilityZone
- The Availability Zone in which to create your new database. Use the us-east-2a
case-sensitive
format.
You can get a list of Availability Zones by using the get regions
operation. Be sure to add
the include relational database Availability Zones
parameter to your request.
public void setPubliclyAccessible(Boolean publiclyAccessible)
Specifies the accessibility options for your new database. A value of true
specifies a database that
is available to resources outside of your Lightsail account. A value of false
specifies a database
that is available only to your Lightsail resources in the same region as your database.
publiclyAccessible
- Specifies the accessibility options for your new database. A value of true
specifies a
database that is available to resources outside of your Lightsail account. A value of false
specifies a database that is available only to your Lightsail resources in the same region as your
database.public Boolean getPubliclyAccessible()
Specifies the accessibility options for your new database. A value of true
specifies a database that
is available to resources outside of your Lightsail account. A value of false
specifies a database
that is available only to your Lightsail resources in the same region as your database.
true
specifies a
database that is available to resources outside of your Lightsail account. A value of false
specifies a database that is available only to your Lightsail resources in the same region as your
database.public CreateRelationalDatabaseFromSnapshotRequest withPubliclyAccessible(Boolean publiclyAccessible)
Specifies the accessibility options for your new database. A value of true
specifies a database that
is available to resources outside of your Lightsail account. A value of false
specifies a database
that is available only to your Lightsail resources in the same region as your database.
publiclyAccessible
- Specifies the accessibility options for your new database. A value of true
specifies a
database that is available to resources outside of your Lightsail account. A value of false
specifies a database that is available only to your Lightsail resources in the same region as your
database.public Boolean isPubliclyAccessible()
Specifies the accessibility options for your new database. A value of true
specifies a database that
is available to resources outside of your Lightsail account. A value of false
specifies a database
that is available only to your Lightsail resources in the same region as your database.
true
specifies a
database that is available to resources outside of your Lightsail account. A value of false
specifies a database that is available only to your Lightsail resources in the same region as your
database.public void setRelationalDatabaseSnapshotName(String relationalDatabaseSnapshotName)
The name of the database snapshot from which to create your new database.
relationalDatabaseSnapshotName
- The name of the database snapshot from which to create your new database.public String getRelationalDatabaseSnapshotName()
The name of the database snapshot from which to create your new database.
public CreateRelationalDatabaseFromSnapshotRequest withRelationalDatabaseSnapshotName(String relationalDatabaseSnapshotName)
The name of the database snapshot from which to create your new database.
relationalDatabaseSnapshotName
- The name of the database snapshot from which to create your new database.public void setRelationalDatabaseBundleId(String relationalDatabaseBundleId)
The bundle ID for your new database. A bundle describes the performance specifications for your database.
You can get a list of database bundle IDs by using the get relational database bundles
operation.
When creating a new database from a snapshot, you cannot choose a bundle that is smaller than the bundle of the source database.
relationalDatabaseBundleId
- The bundle ID for your new database. A bundle describes the performance specifications for your
database.
You can get a list of database bundle IDs by using the get relational database bundles
operation.
When creating a new database from a snapshot, you cannot choose a bundle that is smaller than the bundle of the source database.
public String getRelationalDatabaseBundleId()
The bundle ID for your new database. A bundle describes the performance specifications for your database.
You can get a list of database bundle IDs by using the get relational database bundles
operation.
When creating a new database from a snapshot, you cannot choose a bundle that is smaller than the bundle of the source database.
You can get a list of database bundle IDs by using the get relational database bundles
operation.
When creating a new database from a snapshot, you cannot choose a bundle that is smaller than the bundle of the source database.
public CreateRelationalDatabaseFromSnapshotRequest withRelationalDatabaseBundleId(String relationalDatabaseBundleId)
The bundle ID for your new database. A bundle describes the performance specifications for your database.
You can get a list of database bundle IDs by using the get relational database bundles
operation.
When creating a new database from a snapshot, you cannot choose a bundle that is smaller than the bundle of the source database.
relationalDatabaseBundleId
- The bundle ID for your new database. A bundle describes the performance specifications for your
database.
You can get a list of database bundle IDs by using the get relational database bundles
operation.
When creating a new database from a snapshot, you cannot choose a bundle that is smaller than the bundle of the source database.
public void setSourceRelationalDatabaseName(String sourceRelationalDatabaseName)
The name of the source database.
sourceRelationalDatabaseName
- The name of the source database.public String getSourceRelationalDatabaseName()
The name of the source database.
public CreateRelationalDatabaseFromSnapshotRequest withSourceRelationalDatabaseName(String sourceRelationalDatabaseName)
The name of the source database.
sourceRelationalDatabaseName
- The name of the source database.public void setRestoreTime(Date restoreTime)
The date and time to restore your database from.
Constraints:
Must be before the latest restorable time for the database.
Cannot be specified if the use latest restorable time
parameter is true
.
Specified in Coordinated Universal Time (UTC).
Specified in the Unix time format.
For example, if you wish to use a restore time of October 1, 2018, at 8 PM UTC, then you input
1538424000
as the restore time.
restoreTime
- The date and time to restore your database from.
Constraints:
Must be before the latest restorable time for the database.
Cannot be specified if the use latest restorable time
parameter is true
.
Specified in Coordinated Universal Time (UTC).
Specified in the Unix time format.
For example, if you wish to use a restore time of October 1, 2018, at 8 PM UTC, then you input
1538424000
as the restore time.
public Date getRestoreTime()
The date and time to restore your database from.
Constraints:
Must be before the latest restorable time for the database.
Cannot be specified if the use latest restorable time
parameter is true
.
Specified in Coordinated Universal Time (UTC).
Specified in the Unix time format.
For example, if you wish to use a restore time of October 1, 2018, at 8 PM UTC, then you input
1538424000
as the restore time.
Constraints:
Must be before the latest restorable time for the database.
Cannot be specified if the use latest restorable time
parameter is true
.
Specified in Coordinated Universal Time (UTC).
Specified in the Unix time format.
For example, if you wish to use a restore time of October 1, 2018, at 8 PM UTC, then you input
1538424000
as the restore time.
public CreateRelationalDatabaseFromSnapshotRequest withRestoreTime(Date restoreTime)
The date and time to restore your database from.
Constraints:
Must be before the latest restorable time for the database.
Cannot be specified if the use latest restorable time
parameter is true
.
Specified in Coordinated Universal Time (UTC).
Specified in the Unix time format.
For example, if you wish to use a restore time of October 1, 2018, at 8 PM UTC, then you input
1538424000
as the restore time.
restoreTime
- The date and time to restore your database from.
Constraints:
Must be before the latest restorable time for the database.
Cannot be specified if the use latest restorable time
parameter is true
.
Specified in Coordinated Universal Time (UTC).
Specified in the Unix time format.
For example, if you wish to use a restore time of October 1, 2018, at 8 PM UTC, then you input
1538424000
as the restore time.
public void setUseLatestRestorableTime(Boolean useLatestRestorableTime)
Specifies whether your database is restored from the latest backup time. A value of true
restores
from the latest backup time.
Default: false
Constraints: Cannot be specified if the restore time
parameter is provided.
useLatestRestorableTime
- Specifies whether your database is restored from the latest backup time. A value of true
restores from the latest backup time.
Default: false
Constraints: Cannot be specified if the restore time
parameter is provided.
public Boolean getUseLatestRestorableTime()
Specifies whether your database is restored from the latest backup time. A value of true
restores
from the latest backup time.
Default: false
Constraints: Cannot be specified if the restore time
parameter is provided.
true
restores from the latest backup time.
Default: false
Constraints: Cannot be specified if the restore time
parameter is provided.
public CreateRelationalDatabaseFromSnapshotRequest withUseLatestRestorableTime(Boolean useLatestRestorableTime)
Specifies whether your database is restored from the latest backup time. A value of true
restores
from the latest backup time.
Default: false
Constraints: Cannot be specified if the restore time
parameter is provided.
useLatestRestorableTime
- Specifies whether your database is restored from the latest backup time. A value of true
restores from the latest backup time.
Default: false
Constraints: Cannot be specified if the restore time
parameter is provided.
public Boolean isUseLatestRestorableTime()
Specifies whether your database is restored from the latest backup time. A value of true
restores
from the latest backup time.
Default: false
Constraints: Cannot be specified if the restore time
parameter is provided.
true
restores from the latest backup time.
Default: false
Constraints: Cannot be specified if the restore time
parameter is provided.
public List<Tag> getTags()
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
Use the TagResource
action to tag a resource after it's created.
public void setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public CreateRelationalDatabaseFromSnapshotRequest withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
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.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public CreateRelationalDatabaseFromSnapshotRequest withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public String toString()
toString
in class Object
Object.toString()
public CreateRelationalDatabaseFromSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()