@Generated(value="software.amazon.awssdk:codegen") public final class CreateRelationalDatabaseFromSnapshotRequest extends LightsailRequest implements ToCopyableBuilder<CreateRelationalDatabaseFromSnapshotRequest.Builder,CreateRelationalDatabaseFromSnapshotRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateRelationalDatabaseFromSnapshotRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
availabilityZone()
The Availability Zone in which to create your new database.
|
static CreateRelationalDatabaseFromSnapshotRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
Boolean |
publiclyAccessible()
Specifies the accessibility options for your new database.
|
String |
relationalDatabaseBundleId()
The bundle ID for your new database.
|
String |
relationalDatabaseName()
The name to use for your new database.
|
String |
relationalDatabaseSnapshotName()
The name of the database snapshot from which to create your new database.
|
Instant |
restoreTime()
The date and time to restore your database from.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateRelationalDatabaseFromSnapshotRequest.Builder> |
serializableBuilderClass() |
String |
sourceRelationalDatabaseName()
The name of the source database.
|
List<Tag> |
tags()
The tag keys and optional values to add to the resource during create.
|
CreateRelationalDatabaseFromSnapshotRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Boolean |
useLatestRestorableTime()
Specifies whether your database is restored from the latest backup time.
|
overrideConfiguration
copy
public String relationalDatabaseName()
The name to use for your new database.
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 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.
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 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.
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 String relationalDatabaseSnapshotName()
The name of the database snapshot from which to create your new database.
public 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.
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 sourceRelationalDatabaseName()
The name of the source database.
public Instant 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 Universal Coordinated 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 Universal Coordinated 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 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.
true
restores from the latest backup time.
Default: false
Constraints: Cannot be specified if the restore time
parameter is provided.
public List<Tag> tags()
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
To tag a resource after it has been created, see the tag resource
operation.
public CreateRelationalDatabaseFromSnapshotRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateRelationalDatabaseFromSnapshotRequest.Builder,CreateRelationalDatabaseFromSnapshotRequest>
toBuilder
in class LightsailRequest
public static CreateRelationalDatabaseFromSnapshotRequest.Builder builder()
public static Class<? extends CreateRelationalDatabaseFromSnapshotRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.