public static interface RestoreDbInstanceFromDbSnapshotRequest.Builder extends RdsRequest.Builder, CopyableBuilder<RestoreDbInstanceFromDbSnapshotRequest.Builder,RestoreDbInstanceFromDbSnapshotRequest>
Modifier and Type | Method and Description |
---|---|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor version upgrades are applied automatically to the DB instance during the maintenance
window.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
availabilityZone(String availabilityZone)
The EC2 Availability Zone that the DB instance is created in.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
copyTagsToSnapshot(Boolean copyTagsToSnapshot)
True to copy all tags from the restored DB instance to snapshots of the DB instance, and otherwise false.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
dbInstanceClass(String dbInstanceClass)
The compute and memory capacity of the Amazon RDS DB instance, for example,
db.m4.large . |
RestoreDbInstanceFromDbSnapshotRequest.Builder |
dbInstanceIdentifier(String dbInstanceIdentifier)
Name of the DB instance to create from the DB snapshot.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
dbName(String dbName)
The database name for the restored DB instance.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
dbSnapshotIdentifier(String dbSnapshotIdentifier)
The identifier for the DB snapshot to restore from.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
dbSubnetGroupName(String dbSubnetGroupName)
The DB subnet group name to use for the new instance.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
domain(String domain)
Specify the Active Directory Domain to restore the instance in.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
domainIAMRoleName(String domainIAMRoleName)
Specify the name of the IAM role to be used when making API calls to the Directory Service.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
enableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication)
True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and
otherwise false.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
engine(String engine)
The database engine to use for the new instance.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
iops(Integer iops)
Specifies the amount of provisioned IOPS for the DB instance, expressed in I/O operations per second.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
licenseModel(String licenseModel)
License model information for the restored DB instance.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
multiAZ(Boolean multiAZ)
Specifies if the DB instance is a Multi-AZ deployment.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
optionGroupName(String optionGroupName)
The name of the option group to be used for the restored DB instance.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
port(Integer port)
The port number on which the database accepts connections.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
publiclyAccessible(Boolean publiclyAccessible)
Specifies the accessibility options for the DB instance.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
storageType(String storageType)
Specifies the storage type to be associated with the DB instance.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
tags(Collection<Tag> tags)
Sets the value of the Tags property for this object.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
Sets the value of the Tags property for this object.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
tags(Tag... tags)
Sets the value of the Tags property for this object.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
tdeCredentialArn(String tdeCredentialArn)
The ARN from the key store with which to associate the instance for TDE encryption.
|
RestoreDbInstanceFromDbSnapshotRequest.Builder |
tdeCredentialPassword(String tdeCredentialPassword)
The password for the given ARN from the key store in order to access the device.
|
build
overrideConfiguration
copy
applyMutation, build
RestoreDbInstanceFromDbSnapshotRequest.Builder dbInstanceIdentifier(String dbInstanceIdentifier)
Name of the DB instance to create from the DB snapshot. This parameter isn't case-sensitive.
Constraints:
Must contain from 1 to 63 numbers, letters, or hyphens
First character must be a letter
Cannot end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
dbInstanceIdentifier
- Name of the DB instance to create from the DB snapshot. This parameter isn't case-sensitive.
Constraints:
Must contain from 1 to 63 numbers, letters, or hyphens
First character must be a letter
Cannot end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
RestoreDbInstanceFromDbSnapshotRequest.Builder dbSnapshotIdentifier(String dbSnapshotIdentifier)
The identifier for the DB snapshot to restore from.
Constraints:
Must match the identifier of an existing DBSnapshot.
If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier
must be the ARN
of the shared DB snapshot.
dbSnapshotIdentifier
- The identifier for the DB snapshot to restore from.
Constraints:
Must match the identifier of an existing DBSnapshot.
If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier
must be
the ARN of the shared DB snapshot.
RestoreDbInstanceFromDbSnapshotRequest.Builder dbInstanceClass(String dbInstanceClass)
The compute and memory capacity of the Amazon RDS DB instance, for example, db.m4.large
. Not all
DB instance classes are available in all AWS Regions, or for all database engines. For the full list of DB
instance classes, and availability for your engine, see DB Instance
Class in the Amazon RDS User Guide.
Default: The same DBInstanceClass as the original DB instance.
dbInstanceClass
- The compute and memory capacity of the Amazon RDS DB instance, for example, db.m4.large
.
Not all DB instance classes are available in all AWS Regions, or for all database engines. For the
full list of DB instance classes, and availability for your engine, see DB Instance
Class in the Amazon RDS User Guide.
Default: The same DBInstanceClass as the original DB instance.
RestoreDbInstanceFromDbSnapshotRequest.Builder port(Integer port)
The port number on which the database accepts connections.
Default: The same port as the original DB instance
Constraints: Value must be 1150-65535
port
- The port number on which the database accepts connections.
Default: The same port as the original DB instance
Constraints: Value must be 1150-65535
RestoreDbInstanceFromDbSnapshotRequest.Builder availabilityZone(String availabilityZone)
The EC2 Availability Zone that the DB instance is created in.
Default: A random, system-chosen Availability Zone.
Constraint: You can't specify the AvailabilityZone parameter if the MultiAZ parameter is set to
true
.
Example: us-east-1a
availabilityZone
- The EC2 Availability Zone that the DB instance is created in.
Default: A random, system-chosen Availability Zone.
Constraint: You can't specify the AvailabilityZone parameter if the MultiAZ parameter is set to
true
.
Example: us-east-1a
RestoreDbInstanceFromDbSnapshotRequest.Builder dbSubnetGroupName(String dbSubnetGroupName)
The DB subnet group name to use for the new instance.
Constraints: If supplied, must match the name of an existing DBSubnetGroup.
Example: mySubnetgroup
dbSubnetGroupName
- The DB subnet group name to use for the new instance.
Constraints: If supplied, must match the name of an existing DBSubnetGroup.
Example: mySubnetgroup
RestoreDbInstanceFromDbSnapshotRequest.Builder multiAZ(Boolean multiAZ)
Specifies if the DB instance is a Multi-AZ deployment.
Constraint: You can't 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 can't specify the AvailabilityZone parameter if the MultiAZ parameter is set to
true
.
RestoreDbInstanceFromDbSnapshotRequest.Builder publiclyAccessible(Boolean publiclyAccessible)
Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.
Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.
Default VPC: true
VPC: false
If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance is publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance is private.
publiclyAccessible
- Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing
instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false
specifies an internal instance with a DNS name that resolves to a private IP address.
Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.
Default VPC: true
VPC: false
If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance is publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance is private.
RestoreDbInstanceFromDbSnapshotRequest.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor version upgrades are applied automatically to the DB instance during the maintenance window.
autoMinorVersionUpgrade
- Indicates that minor version upgrades are applied automatically to the DB instance during the
maintenance window.RestoreDbInstanceFromDbSnapshotRequest.Builder licenseModel(String licenseModel)
License model information for the restored DB instance.
Default: Same as source.
Valid values: license-included
| bring-your-own-license
|
general-public-license
licenseModel
- License model information for the restored DB instance.
Default: Same as source.
Valid values: license-included
| bring-your-own-license
|
general-public-license
RestoreDbInstanceFromDbSnapshotRequest.Builder dbName(String dbName)
The database name for the restored DB instance.
This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines.
dbName
- The database name for the restored DB instance. This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines.
RestoreDbInstanceFromDbSnapshotRequest.Builder engine(String engine)
The database engine to use for the new instance.
Default: The same as source
Constraint: Must be compatible with the engine of the source. You can restore a MariaDB 10.1 DB instance from a MySQL 5.6 snapshot.
Valid Values:
aurora
aurora-postgresql
mariadb
mysql
oracle-ee
oracle-se2
oracle-se1
oracle-se
postgres
sqlserver-ee
sqlserver-se
sqlserver-ex
sqlserver-web
engine
- The database engine to use for the new instance.
Default: The same as source
Constraint: Must be compatible with the engine of the source. You can restore a MariaDB 10.1 DB instance from a MySQL 5.6 snapshot.
Valid Values:
aurora
aurora-postgresql
mariadb
mysql
oracle-ee
oracle-se2
oracle-se1
oracle-se
postgres
sqlserver-ee
sqlserver-se
sqlserver-ex
sqlserver-web
RestoreDbInstanceFromDbSnapshotRequest.Builder iops(Integer iops)
Specifies the amount of provisioned IOPS for the DB instance, expressed in I/O operations per second. If this parameter is not specified, the IOPS value is taken from the backup. If this parameter is set to 0, the new instance is converted to a non-PIOPS instance. The conversion takes additional time, though your DB instance is available for connections before the conversion starts.
The provisioned IOPS value must follow the requirements for your database engine. For more information, see Amazon RDS Provisioned IOPS Storage to Improve Performance.
Constraints: Must be an integer greater than 1000.
iops
- Specifies the amount of provisioned IOPS for the DB instance, expressed in I/O operations per second.
If this parameter is not specified, the IOPS value is taken from the backup. If this parameter is set
to 0, the new instance is converted to a non-PIOPS instance. The conversion takes additional time,
though your DB instance is available for connections before the conversion starts.
The provisioned IOPS value must follow the requirements for your database engine. For more information, see Amazon RDS Provisioned IOPS Storage to Improve Performance.
Constraints: Must be an integer greater than 1000.
RestoreDbInstanceFromDbSnapshotRequest.Builder optionGroupName(String optionGroupName)
The name of the option group to be used for the restored DB instance.
Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't be removed from a DB instance once it is associated with a DB instance
optionGroupName
- The name of the option group to be used for the restored DB instance.
Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't be removed from a DB instance once it is associated with a DB instance
RestoreDbInstanceFromDbSnapshotRequest.Builder tags(Collection<Tag> tags)
tags
- The new value for the Tags property for this object.RestoreDbInstanceFromDbSnapshotRequest.Builder tags(Tag... tags)
tags
- The new value for the Tags property for this object.RestoreDbInstanceFromDbSnapshotRequest.Builder tags(Consumer<Tag.Builder>... tags)
List.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
RestoreDbInstanceFromDbSnapshotRequest.Builder storageType(String storageType)
Specifies the storage type to be associated with the DB instance.
Valid values: standard | gp2 | io1
If you specify io1
, you must also include a value for the Iops
parameter.
Default: io1
if the Iops
parameter is specified, otherwise standard
storageType
- Specifies the storage type to be associated with the DB instance.
Valid values: standard | gp2 | io1
If you specify io1
, you must also include a value for the Iops
parameter.
Default: io1
if the Iops
parameter is specified, otherwise
standard
RestoreDbInstanceFromDbSnapshotRequest.Builder tdeCredentialArn(String tdeCredentialArn)
The ARN from the key store with which to associate the instance for TDE encryption.
tdeCredentialArn
- The ARN from the key store with which to associate the instance for TDE encryption.RestoreDbInstanceFromDbSnapshotRequest.Builder tdeCredentialPassword(String tdeCredentialPassword)
The password for the given ARN from the key store in order to access the device.
tdeCredentialPassword
- The password for the given ARN from the key store in order to access the device.RestoreDbInstanceFromDbSnapshotRequest.Builder domain(String domain)
Specify the Active Directory Domain to restore the instance in.
domain
- Specify the Active Directory Domain to restore the instance in.RestoreDbInstanceFromDbSnapshotRequest.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot)
True to copy all tags from the restored DB instance to snapshots of the DB instance, and otherwise false. The default is false.
copyTagsToSnapshot
- True to copy all tags from the restored DB instance to snapshots of the DB instance, and otherwise
false. The default is false.RestoreDbInstanceFromDbSnapshotRequest.Builder domainIAMRoleName(String domainIAMRoleName)
Specify the name of the IAM role to be used when making API calls to the Directory Service.
domainIAMRoleName
- Specify the name of the IAM role to be used when making API calls to the Directory Service.RestoreDbInstanceFromDbSnapshotRequest.Builder enableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication)
True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.
You can enable IAM database authentication for the following database engines
For MySQL 5.6, minor version 5.6.34 or higher
For MySQL 5.7, minor version 5.7.16 or higher
Aurora 5.6 or higher.
Default: false
enableIAMDatabaseAuthentication
- True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and
otherwise false.
You can enable IAM database authentication for the following database engines
For MySQL 5.6, minor version 5.6.34 or higher
For MySQL 5.7, minor version 5.7.16 or higher
Aurora 5.6 or higher.
Default: false
RestoreDbInstanceFromDbSnapshotRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.RestoreDbInstanceFromDbSnapshotRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.