software.amazon.awssdk.services.rds.model.RestoreDbInstanceToPointInTimeRequest Maven / Gradle / Ivy
Show all versions of rds Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.rds.model;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*
*/
@Generated("software.amazon.awssdk:codegen")
public final class RestoreDbInstanceToPointInTimeRequest extends RdsRequest implements
ToCopyableBuilder {
private static final SdkField SOURCE_DB_INSTANCE_IDENTIFIER_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("SourceDBInstanceIdentifier")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::sourceDBInstanceIdentifier))
.setter(setter(Builder::sourceDBInstanceIdentifier))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceDBInstanceIdentifier").build())
.build();
private static final SdkField TARGET_DB_INSTANCE_IDENTIFIER_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("TargetDBInstanceIdentifier")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::targetDBInstanceIdentifier))
.setter(setter(Builder::targetDBInstanceIdentifier))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TargetDBInstanceIdentifier").build())
.build();
private static final SdkField RESTORE_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("RestoreTime").getter(getter(RestoreDbInstanceToPointInTimeRequest::restoreTime))
.setter(setter(Builder::restoreTime))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RestoreTime").build()).build();
private static final SdkField USE_LATEST_RESTORABLE_TIME_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("UseLatestRestorableTime").getter(getter(RestoreDbInstanceToPointInTimeRequest::useLatestRestorableTime))
.setter(setter(Builder::useLatestRestorableTime))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("UseLatestRestorableTime").build())
.build();
private static final SdkField DB_INSTANCE_CLASS_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DBInstanceClass").getter(getter(RestoreDbInstanceToPointInTimeRequest::dbInstanceClass))
.setter(setter(Builder::dbInstanceClass))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBInstanceClass").build()).build();
private static final SdkField PORT_FIELD = SdkField. builder(MarshallingType.INTEGER).memberName("Port")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::port)).setter(setter(Builder::port))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Port").build()).build();
private static final SdkField AVAILABILITY_ZONE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("AvailabilityZone").getter(getter(RestoreDbInstanceToPointInTimeRequest::availabilityZone))
.setter(setter(Builder::availabilityZone))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AvailabilityZone").build()).build();
private static final SdkField DB_SUBNET_GROUP_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DBSubnetGroupName").getter(getter(RestoreDbInstanceToPointInTimeRequest::dbSubnetGroupName))
.setter(setter(Builder::dbSubnetGroupName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBSubnetGroupName").build()).build();
private static final SdkField MULTI_AZ_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("MultiAZ").getter(getter(RestoreDbInstanceToPointInTimeRequest::multiAZ))
.setter(setter(Builder::multiAZ))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MultiAZ").build()).build();
private static final SdkField PUBLICLY_ACCESSIBLE_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("PubliclyAccessible").getter(getter(RestoreDbInstanceToPointInTimeRequest::publiclyAccessible))
.setter(setter(Builder::publiclyAccessible))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PubliclyAccessible").build())
.build();
private static final SdkField AUTO_MINOR_VERSION_UPGRADE_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("AutoMinorVersionUpgrade").getter(getter(RestoreDbInstanceToPointInTimeRequest::autoMinorVersionUpgrade))
.setter(setter(Builder::autoMinorVersionUpgrade))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AutoMinorVersionUpgrade").build())
.build();
private static final SdkField LICENSE_MODEL_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("LicenseModel").getter(getter(RestoreDbInstanceToPointInTimeRequest::licenseModel))
.setter(setter(Builder::licenseModel))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LicenseModel").build()).build();
private static final SdkField DB_NAME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("DBName")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::dbName)).setter(setter(Builder::dbName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBName").build()).build();
private static final SdkField ENGINE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Engine")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::engine)).setter(setter(Builder::engine))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Engine").build()).build();
private static final SdkField IOPS_FIELD = SdkField. builder(MarshallingType.INTEGER).memberName("Iops")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::iops)).setter(setter(Builder::iops))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Iops").build()).build();
private static final SdkField OPTION_GROUP_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("OptionGroupName").getter(getter(RestoreDbInstanceToPointInTimeRequest::optionGroupName))
.setter(setter(Builder::optionGroupName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OptionGroupName").build()).build();
private static final SdkField COPY_TAGS_TO_SNAPSHOT_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("CopyTagsToSnapshot").getter(getter(RestoreDbInstanceToPointInTimeRequest::copyTagsToSnapshot))
.setter(setter(Builder::copyTagsToSnapshot))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CopyTagsToSnapshot").build())
.build();
private static final SdkField> TAGS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("Tags")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::tags))
.setter(setter(Builder::tags))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Tags").build(),
ListTrait
.builder()
.memberLocationName("Tag")
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(Tag::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("Tag").build()).build()).build()).build();
private static final SdkField STORAGE_TYPE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("StorageType").getter(getter(RestoreDbInstanceToPointInTimeRequest::storageType))
.setter(setter(Builder::storageType))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StorageType").build()).build();
private static final SdkField TDE_CREDENTIAL_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("TdeCredentialArn").getter(getter(RestoreDbInstanceToPointInTimeRequest::tdeCredentialArn))
.setter(setter(Builder::tdeCredentialArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TdeCredentialArn").build()).build();
private static final SdkField TDE_CREDENTIAL_PASSWORD_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("TdeCredentialPassword").getter(getter(RestoreDbInstanceToPointInTimeRequest::tdeCredentialPassword))
.setter(setter(Builder::tdeCredentialPassword))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TdeCredentialPassword").build())
.build();
private static final SdkField> VPC_SECURITY_GROUP_IDS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("VpcSecurityGroupIds")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::vpcSecurityGroupIds))
.setter(setter(Builder::vpcSecurityGroupIds))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("VpcSecurityGroupIds").build(),
ListTrait
.builder()
.memberLocationName("VpcSecurityGroupId")
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("VpcSecurityGroupId").build()).build()).build()).build();
private static final SdkField DOMAIN_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Domain")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::domain)).setter(setter(Builder::domain))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Domain").build()).build();
private static final SdkField DOMAIN_IAM_ROLE_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DomainIAMRoleName").getter(getter(RestoreDbInstanceToPointInTimeRequest::domainIAMRoleName))
.setter(setter(Builder::domainIAMRoleName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DomainIAMRoleName").build()).build();
private static final SdkField DOMAIN_FQDN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DomainFqdn").getter(getter(RestoreDbInstanceToPointInTimeRequest::domainFqdn))
.setter(setter(Builder::domainFqdn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DomainFqdn").build()).build();
private static final SdkField DOMAIN_OU_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DomainOu").getter(getter(RestoreDbInstanceToPointInTimeRequest::domainOu))
.setter(setter(Builder::domainOu))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DomainOu").build()).build();
private static final SdkField DOMAIN_AUTH_SECRET_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DomainAuthSecretArn").getter(getter(RestoreDbInstanceToPointInTimeRequest::domainAuthSecretArn))
.setter(setter(Builder::domainAuthSecretArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DomainAuthSecretArn").build())
.build();
private static final SdkField> DOMAIN_DNS_IPS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("DomainDnsIps")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::domainDnsIps))
.setter(setter(Builder::domainDnsIps))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DomainDnsIps").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField ENABLE_IAM_DATABASE_AUTHENTICATION_FIELD = SdkField
. builder(MarshallingType.BOOLEAN)
.memberName("EnableIAMDatabaseAuthentication")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::enableIAMDatabaseAuthentication))
.setter(setter(Builder::enableIAMDatabaseAuthentication))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EnableIAMDatabaseAuthentication")
.build()).build();
private static final SdkField> ENABLE_CLOUDWATCH_LOGS_EXPORTS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("EnableCloudwatchLogsExports")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::enableCloudwatchLogsExports))
.setter(setter(Builder::enableCloudwatchLogsExports))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EnableCloudwatchLogsExports")
.build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField> PROCESSOR_FEATURES_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("ProcessorFeatures")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::processorFeatures))
.setter(setter(Builder::processorFeatures))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ProcessorFeatures").build(),
ListTrait
.builder()
.memberLocationName("ProcessorFeature")
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(ProcessorFeature::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("ProcessorFeature").build()).build()).build()).build();
private static final SdkField USE_DEFAULT_PROCESSOR_FEATURES_FIELD = SdkField
. builder(MarshallingType.BOOLEAN)
.memberName("UseDefaultProcessorFeatures")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::useDefaultProcessorFeatures))
.setter(setter(Builder::useDefaultProcessorFeatures))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("UseDefaultProcessorFeatures")
.build()).build();
private static final SdkField DB_PARAMETER_GROUP_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DBParameterGroupName").getter(getter(RestoreDbInstanceToPointInTimeRequest::dbParameterGroupName))
.setter(setter(Builder::dbParameterGroupName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBParameterGroupName").build())
.build();
private static final SdkField DELETION_PROTECTION_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("DeletionProtection").getter(getter(RestoreDbInstanceToPointInTimeRequest::deletionProtection))
.setter(setter(Builder::deletionProtection))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DeletionProtection").build())
.build();
private static final SdkField SOURCE_DBI_RESOURCE_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("SourceDbiResourceId").getter(getter(RestoreDbInstanceToPointInTimeRequest::sourceDbiResourceId))
.setter(setter(Builder::sourceDbiResourceId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceDbiResourceId").build())
.build();
private static final SdkField MAX_ALLOCATED_STORAGE_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("MaxAllocatedStorage").getter(getter(RestoreDbInstanceToPointInTimeRequest::maxAllocatedStorage))
.setter(setter(Builder::maxAllocatedStorage))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxAllocatedStorage").build())
.build();
private static final SdkField SOURCE_DB_INSTANCE_AUTOMATED_BACKUPS_ARN_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("SourceDBInstanceAutomatedBackupsArn")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::sourceDBInstanceAutomatedBackupsArn))
.setter(setter(Builder::sourceDBInstanceAutomatedBackupsArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("SourceDBInstanceAutomatedBackupsArn").build()).build();
private static final SdkField ENABLE_CUSTOMER_OWNED_IP_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("EnableCustomerOwnedIp").getter(getter(RestoreDbInstanceToPointInTimeRequest::enableCustomerOwnedIp))
.setter(setter(Builder::enableCustomerOwnedIp))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EnableCustomerOwnedIp").build())
.build();
private static final SdkField CUSTOM_IAM_INSTANCE_PROFILE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("CustomIamInstanceProfile")
.getter(getter(RestoreDbInstanceToPointInTimeRequest::customIamInstanceProfile))
.setter(setter(Builder::customIamInstanceProfile))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomIamInstanceProfile").build())
.build();
private static final SdkField BACKUP_TARGET_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("BackupTarget").getter(getter(RestoreDbInstanceToPointInTimeRequest::backupTarget))
.setter(setter(Builder::backupTarget))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("BackupTarget").build()).build();
private static final SdkField NETWORK_TYPE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("NetworkType").getter(getter(RestoreDbInstanceToPointInTimeRequest::networkType))
.setter(setter(Builder::networkType))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NetworkType").build()).build();
private static final SdkField STORAGE_THROUGHPUT_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("StorageThroughput").getter(getter(RestoreDbInstanceToPointInTimeRequest::storageThroughput))
.setter(setter(Builder::storageThroughput))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StorageThroughput").build()).build();
private static final SdkField ALLOCATED_STORAGE_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("AllocatedStorage").getter(getter(RestoreDbInstanceToPointInTimeRequest::allocatedStorage))
.setter(setter(Builder::allocatedStorage))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AllocatedStorage").build()).build();
private static final SdkField DEDICATED_LOG_VOLUME_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("DedicatedLogVolume").getter(getter(RestoreDbInstanceToPointInTimeRequest::dedicatedLogVolume))
.setter(setter(Builder::dedicatedLogVolume))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DedicatedLogVolume").build())
.build();
private static final SdkField CA_CERTIFICATE_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("CACertificateIdentifier").getter(getter(RestoreDbInstanceToPointInTimeRequest::caCertificateIdentifier))
.setter(setter(Builder::caCertificateIdentifier))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CACertificateIdentifier").build())
.build();
private static final SdkField ENGINE_LIFECYCLE_SUPPORT_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("EngineLifecycleSupport").getter(getter(RestoreDbInstanceToPointInTimeRequest::engineLifecycleSupport))
.setter(setter(Builder::engineLifecycleSupport))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EngineLifecycleSupport").build())
.build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(
SOURCE_DB_INSTANCE_IDENTIFIER_FIELD, TARGET_DB_INSTANCE_IDENTIFIER_FIELD, RESTORE_TIME_FIELD,
USE_LATEST_RESTORABLE_TIME_FIELD, DB_INSTANCE_CLASS_FIELD, PORT_FIELD, AVAILABILITY_ZONE_FIELD,
DB_SUBNET_GROUP_NAME_FIELD, MULTI_AZ_FIELD, PUBLICLY_ACCESSIBLE_FIELD, AUTO_MINOR_VERSION_UPGRADE_FIELD,
LICENSE_MODEL_FIELD, DB_NAME_FIELD, ENGINE_FIELD, IOPS_FIELD, OPTION_GROUP_NAME_FIELD, COPY_TAGS_TO_SNAPSHOT_FIELD,
TAGS_FIELD, STORAGE_TYPE_FIELD, TDE_CREDENTIAL_ARN_FIELD, TDE_CREDENTIAL_PASSWORD_FIELD,
VPC_SECURITY_GROUP_IDS_FIELD, DOMAIN_FIELD, DOMAIN_IAM_ROLE_NAME_FIELD, DOMAIN_FQDN_FIELD, DOMAIN_OU_FIELD,
DOMAIN_AUTH_SECRET_ARN_FIELD, DOMAIN_DNS_IPS_FIELD, ENABLE_IAM_DATABASE_AUTHENTICATION_FIELD,
ENABLE_CLOUDWATCH_LOGS_EXPORTS_FIELD, PROCESSOR_FEATURES_FIELD, USE_DEFAULT_PROCESSOR_FEATURES_FIELD,
DB_PARAMETER_GROUP_NAME_FIELD, DELETION_PROTECTION_FIELD, SOURCE_DBI_RESOURCE_ID_FIELD, MAX_ALLOCATED_STORAGE_FIELD,
SOURCE_DB_INSTANCE_AUTOMATED_BACKUPS_ARN_FIELD, ENABLE_CUSTOMER_OWNED_IP_FIELD, CUSTOM_IAM_INSTANCE_PROFILE_FIELD,
BACKUP_TARGET_FIELD, NETWORK_TYPE_FIELD, STORAGE_THROUGHPUT_FIELD, ALLOCATED_STORAGE_FIELD,
DEDICATED_LOG_VOLUME_FIELD, CA_CERTIFICATE_IDENTIFIER_FIELD, ENGINE_LIFECYCLE_SUPPORT_FIELD));
private final String sourceDBInstanceIdentifier;
private final String targetDBInstanceIdentifier;
private final Instant restoreTime;
private final Boolean useLatestRestorableTime;
private final String dbInstanceClass;
private final Integer port;
private final String availabilityZone;
private final String dbSubnetGroupName;
private final Boolean multiAZ;
private final Boolean publiclyAccessible;
private final Boolean autoMinorVersionUpgrade;
private final String licenseModel;
private final String dbName;
private final String engine;
private final Integer iops;
private final String optionGroupName;
private final Boolean copyTagsToSnapshot;
private final List tags;
private final String storageType;
private final String tdeCredentialArn;
private final String tdeCredentialPassword;
private final List vpcSecurityGroupIds;
private final String domain;
private final String domainIAMRoleName;
private final String domainFqdn;
private final String domainOu;
private final String domainAuthSecretArn;
private final List domainDnsIps;
private final Boolean enableIAMDatabaseAuthentication;
private final List enableCloudwatchLogsExports;
private final List processorFeatures;
private final Boolean useDefaultProcessorFeatures;
private final String dbParameterGroupName;
private final Boolean deletionProtection;
private final String sourceDbiResourceId;
private final Integer maxAllocatedStorage;
private final String sourceDBInstanceAutomatedBackupsArn;
private final Boolean enableCustomerOwnedIp;
private final String customIamInstanceProfile;
private final String backupTarget;
private final String networkType;
private final Integer storageThroughput;
private final Integer allocatedStorage;
private final Boolean dedicatedLogVolume;
private final String caCertificateIdentifier;
private final String engineLifecycleSupport;
private RestoreDbInstanceToPointInTimeRequest(BuilderImpl builder) {
super(builder);
this.sourceDBInstanceIdentifier = builder.sourceDBInstanceIdentifier;
this.targetDBInstanceIdentifier = builder.targetDBInstanceIdentifier;
this.restoreTime = builder.restoreTime;
this.useLatestRestorableTime = builder.useLatestRestorableTime;
this.dbInstanceClass = builder.dbInstanceClass;
this.port = builder.port;
this.availabilityZone = builder.availabilityZone;
this.dbSubnetGroupName = builder.dbSubnetGroupName;
this.multiAZ = builder.multiAZ;
this.publiclyAccessible = builder.publiclyAccessible;
this.autoMinorVersionUpgrade = builder.autoMinorVersionUpgrade;
this.licenseModel = builder.licenseModel;
this.dbName = builder.dbName;
this.engine = builder.engine;
this.iops = builder.iops;
this.optionGroupName = builder.optionGroupName;
this.copyTagsToSnapshot = builder.copyTagsToSnapshot;
this.tags = builder.tags;
this.storageType = builder.storageType;
this.tdeCredentialArn = builder.tdeCredentialArn;
this.tdeCredentialPassword = builder.tdeCredentialPassword;
this.vpcSecurityGroupIds = builder.vpcSecurityGroupIds;
this.domain = builder.domain;
this.domainIAMRoleName = builder.domainIAMRoleName;
this.domainFqdn = builder.domainFqdn;
this.domainOu = builder.domainOu;
this.domainAuthSecretArn = builder.domainAuthSecretArn;
this.domainDnsIps = builder.domainDnsIps;
this.enableIAMDatabaseAuthentication = builder.enableIAMDatabaseAuthentication;
this.enableCloudwatchLogsExports = builder.enableCloudwatchLogsExports;
this.processorFeatures = builder.processorFeatures;
this.useDefaultProcessorFeatures = builder.useDefaultProcessorFeatures;
this.dbParameterGroupName = builder.dbParameterGroupName;
this.deletionProtection = builder.deletionProtection;
this.sourceDbiResourceId = builder.sourceDbiResourceId;
this.maxAllocatedStorage = builder.maxAllocatedStorage;
this.sourceDBInstanceAutomatedBackupsArn = builder.sourceDBInstanceAutomatedBackupsArn;
this.enableCustomerOwnedIp = builder.enableCustomerOwnedIp;
this.customIamInstanceProfile = builder.customIamInstanceProfile;
this.backupTarget = builder.backupTarget;
this.networkType = builder.networkType;
this.storageThroughput = builder.storageThroughput;
this.allocatedStorage = builder.allocatedStorage;
this.dedicatedLogVolume = builder.dedicatedLogVolume;
this.caCertificateIdentifier = builder.caCertificateIdentifier;
this.engineLifecycleSupport = builder.engineLifecycleSupport;
}
/**
*
* The identifier of the source DB instance from which to restore.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DB instance.
*
*
*
*
* @return The identifier of the source DB instance from which to restore.
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DB instance.
*
*
*/
public final String sourceDBInstanceIdentifier() {
return sourceDBInstanceIdentifier;
}
/**
*
* The name of the new DB instance to create.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* @return The name of the new DB instance to create.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*/
public final String targetDBInstanceIdentifier() {
return targetDBInstanceIdentifier;
}
/**
*
* The date and time to restore from.
*
*
* Constraints:
*
*
* -
*
* Must be a time in Universal Coordinated Time (UTC) format.
*
*
* -
*
* Must be before the latest restorable time for the DB instance.
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled.
*
*
*
*
* Example: 2009-09-07T23:45:00Z
*
*
* @return The date and time to restore from.
*
* Constraints:
*
*
* -
*
* Must be a time in Universal Coordinated Time (UTC) format.
*
*
* -
*
* Must be before the latest restorable time for the DB instance.
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled.
*
*
*
*
* Example: 2009-09-07T23:45:00Z
*/
public final Instant restoreTime() {
return restoreTime;
}
/**
*
* Specifies whether the DB instance is restored from the latest backup time. By default, the DB instance isn't
* restored from the latest backup time.
*
*
* Constraints:
*
*
* -
*
* Can't be specified if the RestoreTime
parameter is provided.
*
*
*
*
* @return Specifies whether the DB instance is restored from the latest backup time. By default, the DB instance
* isn't restored from the latest backup time.
*
* Constraints:
*
*
* -
*
* Can't be specified if the RestoreTime
parameter is provided.
*
*
*/
public final Boolean useLatestRestorableTime() {
return useLatestRestorableTime;
}
/**
*
* 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 Amazon Web Services 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 DB instance class as the original DB instance.
*
*
* @return 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 Amazon Web Services 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 DB instance class as the original DB instance.
*/
public final String dbInstanceClass() {
return dbInstanceClass;
}
/**
*
* The port number on which the database accepts connections.
*
*
* Default: The same port as the original DB instance.
*
*
* Constraints:
*
*
* -
*
* The value must be 1150-65535
.
*
*
*
*
* @return The port number on which the database accepts connections.
*
* Default: The same port as the original DB instance.
*
*
* Constraints:
*
*
* -
*
* The value must be 1150-65535
.
*
*
*/
public final Integer port() {
return port;
}
/**
*
* The Availability Zone (AZ) where the DB instance will be created.
*
*
* Default: A random, system-chosen Availability Zone.
*
*
* Constraints:
*
*
* -
*
* You can't specify the AvailabilityZone
parameter if the DB instance is a Multi-AZ deployment.
*
*
*
*
* Example: us-east-1a
*
*
* @return The Availability Zone (AZ) where the DB instance will be created.
*
* Default: A random, system-chosen Availability Zone.
*
*
* Constraints:
*
*
* -
*
* You can't specify the AvailabilityZone
parameter if the DB instance is a Multi-AZ
* deployment.
*
*
*
*
* Example: us-east-1a
*/
public final String availabilityZone() {
return availabilityZone;
}
/**
*
* The DB subnet group name to use for the new instance.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB subnet group.
*
*
*
*
* Example: mydbsubnetgroup
*
*
* @return The DB subnet group name to use for the new instance.
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB subnet group.
*
*
*
*
* Example: mydbsubnetgroup
*/
public final String dbSubnetGroupName() {
return dbSubnetGroupName;
}
/**
*
* Secifies whether the DB instance is a Multi-AZ deployment.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Constraints:
*
*
* -
*
* You can't specify the AvailabilityZone
parameter if the DB instance is a Multi-AZ deployment.
*
*
*
*
* @return Secifies whether the DB instance is a Multi-AZ deployment.
*
* This setting doesn't apply to RDS Custom.
*
*
* Constraints:
*
*
* -
*
* You can't specify the AvailabilityZone
parameter if the DB instance is a Multi-AZ
* deployment.
*
*
*/
public final Boolean multiAZ() {
return multiAZ;
}
/**
*
* Specifies whether the DB instance is publicly accessible.
*
*
* When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP
* address from within the DB cluster's virtual private cloud (VPC). It resolves to the public IP address from
* outside of the DB cluster's VPC. Access to the DB cluster is ultimately controlled by the security group it uses.
* That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.
*
*
* When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a
* private IP address.
*
*
* For more information, see CreateDBInstance.
*
*
* @return Specifies whether the DB instance is publicly accessible.
*
* When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private
* IP address from within the DB cluster's virtual private cloud (VPC). It resolves to the public IP address
* from outside of the DB cluster's VPC. Access to the DB cluster is ultimately controlled by the security
* group it uses. That public access isn't permitted if the security group assigned to the DB cluster
* doesn't permit it.
*
*
* When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that
* resolves to a private IP address.
*
*
* For more information, see CreateDBInstance.
*/
public final Boolean publiclyAccessible() {
return publiclyAccessible;
}
/**
*
* Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance
* window.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return Specifies whether minor version upgrades are applied automatically to the DB instance during the
* maintenance window.
*
* This setting doesn't apply to RDS Custom.
*/
public final Boolean autoMinorVersionUpgrade() {
return autoMinorVersionUpgrade;
}
/**
*
* The license model information for the restored DB instance.
*
*
*
* License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires
* a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through
* Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more
* information, see Amazon RDS
* for Db2 licensing options in the Amazon RDS User Guide.
*
*
*
* This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.
*
*
* Valid Values:
*
*
* -
*
* RDS for Db2 - bring-your-own-license | marketplace-license
*
*
* -
*
* RDS for MariaDB - general-public-license
*
*
* -
*
* RDS for Microsoft SQL Server - license-included
*
*
* -
*
* RDS for MySQL - general-public-license
*
*
* -
*
* RDS for Oracle - bring-your-own-license | license-included
*
*
* -
*
* RDS for PostgreSQL - postgresql-license
*
*
*
*
* Default: Same as the source.
*
*
* @return The license model information for the restored DB instance.
*
* License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model
* requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The
* Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace
* subscription. For more information, see Amazon RDS for Db2
* licensing options in the Amazon RDS User Guide.
*
*
*
* This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.
*
*
* Valid Values:
*
*
* -
*
* RDS for Db2 - bring-your-own-license | marketplace-license
*
*
* -
*
* RDS for MariaDB - general-public-license
*
*
* -
*
* RDS for Microsoft SQL Server - license-included
*
*
* -
*
* RDS for MySQL - general-public-license
*
*
* -
*
* RDS for Oracle - bring-your-own-license | license-included
*
*
* -
*
* RDS for PostgreSQL - postgresql-license
*
*
*
*
* Default: Same as the source.
*/
public final String licenseModel() {
return licenseModel;
}
/**
*
* The database name for the restored DB instance.
*
*
* This parameter doesn't apply to the following DB instances:
*
*
* -
*
* RDS Custom
*
*
* -
*
* RDS for Db2
*
*
* -
*
* RDS for MariaDB
*
*
* -
*
* RDS for MySQL
*
*
*
*
* @return The database name for the restored DB instance.
*
* This parameter doesn't apply to the following DB instances:
*
*
* -
*
* RDS Custom
*
*
* -
*
* RDS for Db2
*
*
* -
*
* RDS for MariaDB
*
*
* -
*
* RDS for MySQL
*
*
*/
public final String dbName() {
return dbName;
}
/**
*
* The database engine to use for the new instance.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Valid Values:
*
*
* -
*
* db2-ae
*
*
* -
*
* db2-se
*
*
* -
*
* mariadb
*
*
* -
*
* mysql
*
*
* -
*
* oracle-ee
*
*
* -
*
* oracle-ee-cdb
*
*
* -
*
* oracle-se2
*
*
* -
*
* oracle-se2-cdb
*
*
* -
*
* postgres
*
*
* -
*
* sqlserver-ee
*
*
* -
*
* sqlserver-se
*
*
* -
*
* sqlserver-ex
*
*
* -
*
* sqlserver-web
*
*
*
*
* Default: The same as source
*
*
* Constraints:
*
*
* -
*
* Must be compatible with the engine of the source.
*
*
*
*
* @return The database engine to use for the new instance.
*
* This setting doesn't apply to RDS Custom.
*
*
* Valid Values:
*
*
* -
*
* db2-ae
*
*
* -
*
* db2-se
*
*
* -
*
* mariadb
*
*
* -
*
* mysql
*
*
* -
*
* oracle-ee
*
*
* -
*
* oracle-ee-cdb
*
*
* -
*
* oracle-se2
*
*
* -
*
* oracle-se2-cdb
*
*
* -
*
* postgres
*
*
* -
*
* sqlserver-ee
*
*
* -
*
* sqlserver-se
*
*
* -
*
* sqlserver-ex
*
*
* -
*
* sqlserver-web
*
*
*
*
* Default: The same as source
*
*
* Constraints:
*
*
* -
*
* Must be compatible with the engine of the source.
*
*
*/
public final String engine() {
return engine;
}
/**
*
* The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance.
*
*
* This setting doesn't apply to SQL Server.
*
*
* Constraints:
*
*
* -
*
* Must be an integer greater than 1000.
*
*
*
*
* @return The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB
* instance.
*
* This setting doesn't apply to SQL Server.
*
*
* Constraints:
*
*
* -
*
* Must be an integer greater than 1000.
*
*
*/
public final Integer iops() {
return iops;
}
/**
*
* The name of the option group to use 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 after it is associated with a DB instance
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The name of the option group to use 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 after it is associated with a DB
* instance
*
*
* This setting doesn't apply to RDS Custom.
*/
public final String optionGroupName() {
return optionGroupName;
}
/**
*
* Specifies whether to copy all tags from the restored DB instance to snapshots of the DB instance. By default,
* tags are not copied.
*
*
* @return Specifies whether to copy all tags from the restored DB instance to snapshots of the DB instance. By
* default, tags are not copied.
*/
public final Boolean copyTagsToSnapshot() {
return copyTagsToSnapshot;
}
/**
* For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that
* the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
* because the SDK will never return a null collection or map, but you may need to differentiate between the service
* returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
* if a value for the property was specified in the request builder, and false if a value was not specified.
*/
public final boolean hasTags() {
return tags != null && !(tags instanceof SdkAutoConstructList);
}
/**
* Returns the value of the Tags property for this object.
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasTags} method.
*
*
* @return The value of the Tags property for this object.
*/
public final List tags() {
return tags;
}
/**
*
* The storage type to associate with the DB instance.
*
*
* Valid Values: gp2 | gp3 | io1 | io2 | standard
*
*
* Default: io1
, if the Iops
parameter is specified. Otherwise, gp2
.
*
*
* Constraints:
*
*
* -
*
* If you specify io1
, io2
, or gp3
, you must also include a value for the
* Iops
parameter.
*
*
*
*
* @return The storage type to associate with the DB instance.
*
* Valid Values: gp2 | gp3 | io1 | io2 | standard
*
*
* Default: io1
, if the Iops
parameter is specified. Otherwise, gp2
.
*
*
* Constraints:
*
*
* -
*
* If you specify io1
, io2
, or gp3
, you must also include a value for
* the Iops
parameter.
*
*
*/
public final String storageType() {
return storageType;
}
/**
*
* The ARN from the key store with which to associate the instance for TDE encryption.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The ARN from the key store with which to associate the instance for TDE encryption.
*
* This setting doesn't apply to RDS Custom.
*/
public final String tdeCredentialArn() {
return tdeCredentialArn;
}
/**
*
* The password for the given ARN from the key store in order to access the device.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The password for the given ARN from the key store in order to access the device.
*
* This setting doesn't apply to RDS Custom.
*/
public final String tdeCredentialPassword() {
return tdeCredentialPassword;
}
/**
* For responses, this returns true if the service returned a value for the VpcSecurityGroupIds property. This DOES
* NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
* This is useful because the SDK will never return a null collection or map, but you may need to differentiate
* between the service returning nothing (or null) and the service returning an empty collection or map. For
* requests, this returns true if a value for the property was specified in the request builder, and false if a
* value was not specified.
*/
public final boolean hasVpcSecurityGroupIds() {
return vpcSecurityGroupIds != null && !(vpcSecurityGroupIds instanceof SdkAutoConstructList);
}
/**
*
* A list of EC2 VPC security groups to associate with this DB instance.
*
*
* Default: The default EC2 VPC security group for the DB subnet group's VPC.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasVpcSecurityGroupIds} method.
*
*
* @return A list of EC2 VPC security groups to associate with this DB instance.
*
* Default: The default EC2 VPC security group for the DB subnet group's VPC.
*/
public final List vpcSecurityGroupIds() {
return vpcSecurityGroupIds;
}
/**
*
* The Active Directory directory ID to restore the DB instance in. Create the domain before running this command.
* Currently, you can create only the MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active
* Directory Domain.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information, see Kerberos
* Authentication in the Amazon RDS User Guide.
*
*
* @return The Active Directory directory ID to restore the DB instance in. Create the domain before running this
* command. Currently, you can create only the MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB
* instances in an Active Directory Domain.
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information, see Kerberos
* Authentication in the Amazon RDS User Guide.
*/
public final String domain() {
return domain;
}
/**
*
* The name of the IAM role to use when making API calls to the Directory Service.
*
*
* This setting doesn't apply to RDS Custom DB instances.
*
*
* @return The name of the IAM role to use when making API calls to the Directory Service.
*
* This setting doesn't apply to RDS Custom DB instances.
*/
public final String domainIAMRoleName() {
return domainIAMRoleName;
}
/**
*
* The fully qualified domain name (FQDN) of an Active Directory domain.
*
*
* Constraints:
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example: mymanagedADtest.mymanagedAD.mydomain
*
*
* @return The fully qualified domain name (FQDN) of an Active Directory domain.
*
* Constraints:
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example: mymanagedADtest.mymanagedAD.mydomain
*/
public final String domainFqdn() {
return domainFqdn;
}
/**
*
* The Active Directory organizational unit for your DB instance to join.
*
*
* Constraints:
*
*
* -
*
* Must be in the distinguished name format.
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example: OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain
*
*
* @return The Active Directory organizational unit for your DB instance to join.
*
* Constraints:
*
*
* -
*
* Must be in the distinguished name format.
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example: OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain
*/
public final String domainOu() {
return domainOu;
}
/**
*
* The ARN for the Secrets Manager secret with the credentials for the user joining the domain.
*
*
* Constraints:
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example: arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456
*
*
* @return The ARN for the Secrets Manager secret with the credentials for the user joining the domain.
*
* Constraints:
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example:
* arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456
*/
public final String domainAuthSecretArn() {
return domainAuthSecretArn;
}
/**
* For responses, this returns true if the service returned a value for the DomainDnsIps property. This DOES NOT
* check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
* This is useful because the SDK will never return a null collection or map, but you may need to differentiate
* between the service returning nothing (or null) and the service returning an empty collection or map. For
* requests, this returns true if a value for the property was specified in the request builder, and false if a
* value was not specified.
*/
public final boolean hasDomainDnsIps() {
return domainDnsIps != null && !(domainDnsIps instanceof SdkAutoConstructList);
}
/**
*
* The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.
*
*
* Constraints:
*
*
* -
*
* Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the
* primary domain controller for both entries in the list.
*
*
*
*
* Example: 123.124.125.126,234.235.236.237
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasDomainDnsIps} method.
*
*
* @return The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.
*
* Constraints:
*
*
* -
*
* Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of
* the primary domain controller for both entries in the list.
*
*
*
*
* Example: 123.124.125.126,234.235.236.237
*/
public final List domainDnsIps() {
return domainDnsIps;
}
/**
*
* Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to
* database accounts. By default, mapping isn't enabled.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information about IAM database authentication, see IAM Database
* Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide.
*
*
* @return Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts
* to database accounts. By default, mapping isn't enabled.
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information about IAM database authentication, see IAM Database
* Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide.
*/
public final Boolean enableIAMDatabaseAuthentication() {
return enableIAMDatabaseAuthentication;
}
/**
* For responses, this returns true if the service returned a value for the EnableCloudwatchLogsExports property.
* This DOES NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the
* property). This is useful because the SDK will never return a null collection or map, but you may need to
* differentiate between the service returning nothing (or null) and the service returning an empty collection or
* map. For requests, this returns true if a value for the property was specified in the request builder, and false
* if a value was not specified.
*/
public final boolean hasEnableCloudwatchLogsExports() {
return enableCloudwatchLogsExports != null && !(enableCloudwatchLogsExports instanceof SdkAutoConstructList);
}
/**
*
* The list of logs that the restored DB instance is to export to CloudWatch Logs. The values in the list depend on
* the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasEnableCloudwatchLogsExports} method.
*
*
* @return The list of logs that the restored DB instance is to export to CloudWatch Logs. The values in the list
* depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide.
*
* This setting doesn't apply to RDS Custom.
*/
public final List enableCloudwatchLogsExports() {
return enableCloudwatchLogsExports;
}
/**
* For responses, this returns true if the service returned a value for the ProcessorFeatures property. This DOES
* NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
* This is useful because the SDK will never return a null collection or map, but you may need to differentiate
* between the service returning nothing (or null) and the service returning an empty collection or map. For
* requests, this returns true if a value for the property was specified in the request builder, and false if a
* value was not specified.
*/
public final boolean hasProcessorFeatures() {
return processorFeatures != null && !(processorFeatures instanceof SdkAutoConstructList);
}
/**
*
* The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasProcessorFeatures} method.
*
*
* @return The number of CPU cores and the number of threads per core for the DB instance class of the DB
* instance.
*
* This setting doesn't apply to RDS Custom.
*/
public final List processorFeatures() {
return processorFeatures;
}
/**
*
* Specifies whether the DB instance class of the DB instance uses its default processor features.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return Specifies whether the DB instance class of the DB instance uses its default processor features.
*
* This setting doesn't apply to RDS Custom.
*/
public final Boolean useDefaultProcessorFeatures() {
return useDefaultProcessorFeatures;
}
/**
*
* The name of the DB parameter group to associate with this DB instance.
*
*
* If you do not specify a value for DBParameterGroupName
, then the default
* DBParameterGroup
for the specified DB engine is used.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* @return The name of the DB parameter group to associate with this DB instance.
*
* If you do not specify a value for DBParameterGroupName
, then the default
* DBParameterGroup
for the specified DB engine is used.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*/
public final String dbParameterGroupName() {
return dbParameterGroupName;
}
/**
*
* Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion
* protection is enabled. By default, deletion protection isn't enabled. For more information, see Deleting a DB
* Instance.
*
*
* @return Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see
* Deleting a DB
* Instance.
*/
public final Boolean deletionProtection() {
return deletionProtection;
}
/**
*
* The resource ID of the source DB instance from which to restore.
*
*
* @return The resource ID of the source DB instance from which to restore.
*/
public final String sourceDbiResourceId() {
return sourceDbiResourceId;
}
/**
*
* The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.
*
*
* For more information about this setting, including limitations that apply to it, see
* Managing capacity automatically with Amazon RDS storage autoscaling in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB
* instance.
*
* For more information about this setting, including limitations that apply to it, see Managing capacity automatically with Amazon RDS storage autoscaling in the Amazon RDS User
* Guide.
*
*
* This setting doesn't apply to RDS Custom.
*/
public final Integer maxAllocatedStorage() {
return maxAllocatedStorage;
}
/**
*
* The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example,
* arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE
.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example,
* arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE
.
*
* This setting doesn't apply to RDS Custom.
*/
public final String sourceDBInstanceAutomatedBackupsArn() {
return sourceDBInstanceAutomatedBackupsArn;
}
/**
*
* Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.
*
*
* A CoIP provides local or external connectivity to resources in your Outpost subnets through your
* on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from
* outside of its virtual private cloud (VPC) on your local network.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information about RDS on Outposts, see Working with Amazon RDS on
* Amazon Web Services Outposts in the Amazon RDS User Guide.
*
*
* For more information about CoIPs, see Customer-owned IP
* addresses in the Amazon Web Services Outposts User Guide.
*
*
* @return Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.
*
* A CoIP provides local or external connectivity to resources in your Outpost subnets through your
* on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB
* instance from outside of its virtual private cloud (VPC) on your local network.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information about RDS on Outposts, see Working with Amazon
* RDS on Amazon Web Services Outposts in the Amazon RDS User Guide.
*
*
* For more information about CoIPs, see Customer-owned IP
* addresses in the Amazon Web Services Outposts User Guide.
*/
public final Boolean enableCustomerOwnedIp() {
return enableCustomerOwnedIp;
}
/**
*
* The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The
* instance profile must meet the following requirements:
*
*
* -
*
* The profile must exist in your account.
*
*
* -
*
* The profile must have an IAM role that Amazon EC2 has permissions to assume.
*
*
* -
*
* The instance profile name and the associated IAM role name must start with the prefix AWSRDSCustom
.
*
*
*
*
* For the list of permissions required for the IAM role, see
* Configure IAM and your VPC in the Amazon RDS User Guide.
*
*
* This setting is required for RDS Custom.
*
*
* @return The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The
* instance profile must meet the following requirements:
*
* -
*
* The profile must exist in your account.
*
*
* -
*
* The profile must have an IAM role that Amazon EC2 has permissions to assume.
*
*
* -
*
* The instance profile name and the associated IAM role name must start with the prefix
* AWSRDSCustom
.
*
*
*
*
* For the list of permissions required for the IAM role, see Configure IAM and your VPC in the Amazon RDS User Guide.
*
*
* This setting is required for RDS Custom.
*/
public final String customIamInstanceProfile() {
return customIamInstanceProfile;
}
/**
*
* The location for storing automated backups and manual snapshots for the restored DB instance.
*
*
* Valid Values:
*
*
* -
*
* outposts
(Amazon Web Services Outposts)
*
*
* -
*
* region
(Amazon Web Services Region)
*
*
*
*
* Default: region
*
*
* For more information, see Working with Amazon RDS on
* Amazon Web Services Outposts in the Amazon RDS User Guide.
*
*
* @return The location for storing automated backups and manual snapshots for the restored DB instance.
*
* Valid Values:
*
*
* -
*
* outposts
(Amazon Web Services Outposts)
*
*
* -
*
* region
(Amazon Web Services Region)
*
*
*
*
* Default: region
*
*
* For more information, see Working with Amazon
* RDS on Amazon Web Services Outposts in the Amazon RDS User Guide.
*/
public final String backupTarget() {
return backupTarget;
}
/**
*
* The network type of the DB instance.
*
*
* The network type is determined by the DBSubnetGroup
specified for the DB instance. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
*
* For more information, see Working
* with a DB instance in a VPC in the Amazon RDS User Guide.
*
*
* Valid Values:
*
*
* -
*
* IPV4
*
*
* -
*
* DUAL
*
*
*
*
* @return The network type of the DB instance.
*
* The network type is determined by the DBSubnetGroup
specified for the DB instance. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
*
* For more information, see
* Working with a DB instance in a VPC in the Amazon RDS User Guide.
*
*
* Valid Values:
*
*
* -
*
* IPV4
*
*
* -
*
* DUAL
*
*
*/
public final String networkType() {
return networkType;
}
/**
*
* The storage throughput value for the DB instance.
*
*
* This setting doesn't apply to RDS Custom or Amazon Aurora.
*
*
* @return The storage throughput value for the DB instance.
*
* This setting doesn't apply to RDS Custom or Amazon Aurora.
*/
public final Integer storageThroughput() {
return storageThroughput;
}
/**
*
* The amount of storage (in gibibytes) to allocate initially for the DB instance. Follow the allocation rules
* specified in CreateDBInstance
.
*
*
*
* Be sure to allocate enough storage for your new DB instance so that the restore operation can succeed. You can
* also allocate additional storage for future growth.
*
*
*
* @return The amount of storage (in gibibytes) to allocate initially for the DB instance. Follow the allocation
* rules specified in CreateDBInstance
.
*
* Be sure to allocate enough storage for your new DB instance so that the restore operation can succeed.
* You can also allocate additional storage for future growth.
*
*/
public final Integer allocatedStorage() {
return allocatedStorage;
}
/**
*
* Specifies whether to enable a dedicated log volume (DLV) for the DB instance.
*
*
* @return Specifies whether to enable a dedicated log volume (DLV) for the DB instance.
*/
public final Boolean dedicatedLogVolume() {
return dedicatedLogVolume;
}
/**
*
* The CA certificate identifier to use for the DB instance's server certificate.
*
*
* This setting doesn't apply to RDS Custom DB instances.
*
*
* For more information, see Using SSL/TLS to encrypt a
* connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to
* encrypt a connection to a DB cluster in the Amazon Aurora User Guide.
*
*
* @return The CA certificate identifier to use for the DB instance's server certificate.
*
* This setting doesn't apply to RDS Custom DB instances.
*
*
* For more information, see Using SSL/TLS to
* encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS
* to encrypt a connection to a DB cluster in the Amazon Aurora User Guide.
*/
public final String caCertificateIdentifier() {
return caCertificateIdentifier;
}
/**
*
* The life cycle type for this DB instance.
*
*
*
* By default, this value is set to open-source-rds-extended-support
, which enrolls your DB instance
* into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by
* setting the value to open-source-rds-extended-support-disabled
. In this case, RDS automatically
* upgrades your restored DB instance to a higher engine version, if the major engine version is past its end of
* standard support date.
*
*
*
* You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support,
* you can run the selected major engine version on your DB instance past the end of standard support for that
* engine version. For more information, see Using Amazon RDS Extended
* Support in the Amazon RDS User Guide.
*
*
* This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle
* type is managed by the DB cluster.
*
*
* Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled
*
*
* Default: open-source-rds-extended-support
*
*
* @return The life cycle type for this DB instance.
*
* By default, this value is set to open-source-rds-extended-support
, which enrolls your DB
* instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for
* Extended Support by setting the value to open-source-rds-extended-support-disabled
. In this
* case, RDS automatically upgrades your restored DB instance to a higher engine version, if the major
* engine version is past its end of standard support date.
*
*
*
* You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended
* Support, you can run the selected major engine version on your DB instance past the end of standard
* support for that engine version. For more information, see Using Amazon RDS
* Extended Support in the Amazon RDS User Guide.
*
*
* This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the
* life cycle type is managed by the DB cluster.
*
*
* Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled
*
*
* Default: open-source-rds-extended-support
*/
public final String engineLifecycleSupport() {
return engineLifecycleSupport;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + super.hashCode();
hashCode = 31 * hashCode + Objects.hashCode(sourceDBInstanceIdentifier());
hashCode = 31 * hashCode + Objects.hashCode(targetDBInstanceIdentifier());
hashCode = 31 * hashCode + Objects.hashCode(restoreTime());
hashCode = 31 * hashCode + Objects.hashCode(useLatestRestorableTime());
hashCode = 31 * hashCode + Objects.hashCode(dbInstanceClass());
hashCode = 31 * hashCode + Objects.hashCode(port());
hashCode = 31 * hashCode + Objects.hashCode(availabilityZone());
hashCode = 31 * hashCode + Objects.hashCode(dbSubnetGroupName());
hashCode = 31 * hashCode + Objects.hashCode(multiAZ());
hashCode = 31 * hashCode + Objects.hashCode(publiclyAccessible());
hashCode = 31 * hashCode + Objects.hashCode(autoMinorVersionUpgrade());
hashCode = 31 * hashCode + Objects.hashCode(licenseModel());
hashCode = 31 * hashCode + Objects.hashCode(dbName());
hashCode = 31 * hashCode + Objects.hashCode(engine());
hashCode = 31 * hashCode + Objects.hashCode(iops());
hashCode = 31 * hashCode + Objects.hashCode(optionGroupName());
hashCode = 31 * hashCode + Objects.hashCode(copyTagsToSnapshot());
hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
hashCode = 31 * hashCode + Objects.hashCode(storageType());
hashCode = 31 * hashCode + Objects.hashCode(tdeCredentialArn());
hashCode = 31 * hashCode + Objects.hashCode(tdeCredentialPassword());
hashCode = 31 * hashCode + Objects.hashCode(hasVpcSecurityGroupIds() ? vpcSecurityGroupIds() : null);
hashCode = 31 * hashCode + Objects.hashCode(domain());
hashCode = 31 * hashCode + Objects.hashCode(domainIAMRoleName());
hashCode = 31 * hashCode + Objects.hashCode(domainFqdn());
hashCode = 31 * hashCode + Objects.hashCode(domainOu());
hashCode = 31 * hashCode + Objects.hashCode(domainAuthSecretArn());
hashCode = 31 * hashCode + Objects.hashCode(hasDomainDnsIps() ? domainDnsIps() : null);
hashCode = 31 * hashCode + Objects.hashCode(enableIAMDatabaseAuthentication());
hashCode = 31 * hashCode + Objects.hashCode(hasEnableCloudwatchLogsExports() ? enableCloudwatchLogsExports() : null);
hashCode = 31 * hashCode + Objects.hashCode(hasProcessorFeatures() ? processorFeatures() : null);
hashCode = 31 * hashCode + Objects.hashCode(useDefaultProcessorFeatures());
hashCode = 31 * hashCode + Objects.hashCode(dbParameterGroupName());
hashCode = 31 * hashCode + Objects.hashCode(deletionProtection());
hashCode = 31 * hashCode + Objects.hashCode(sourceDbiResourceId());
hashCode = 31 * hashCode + Objects.hashCode(maxAllocatedStorage());
hashCode = 31 * hashCode + Objects.hashCode(sourceDBInstanceAutomatedBackupsArn());
hashCode = 31 * hashCode + Objects.hashCode(enableCustomerOwnedIp());
hashCode = 31 * hashCode + Objects.hashCode(customIamInstanceProfile());
hashCode = 31 * hashCode + Objects.hashCode(backupTarget());
hashCode = 31 * hashCode + Objects.hashCode(networkType());
hashCode = 31 * hashCode + Objects.hashCode(storageThroughput());
hashCode = 31 * hashCode + Objects.hashCode(allocatedStorage());
hashCode = 31 * hashCode + Objects.hashCode(dedicatedLogVolume());
hashCode = 31 * hashCode + Objects.hashCode(caCertificateIdentifier());
hashCode = 31 * hashCode + Objects.hashCode(engineLifecycleSupport());
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return super.equals(obj) && equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof RestoreDbInstanceToPointInTimeRequest)) {
return false;
}
RestoreDbInstanceToPointInTimeRequest other = (RestoreDbInstanceToPointInTimeRequest) obj;
return Objects.equals(sourceDBInstanceIdentifier(), other.sourceDBInstanceIdentifier())
&& Objects.equals(targetDBInstanceIdentifier(), other.targetDBInstanceIdentifier())
&& Objects.equals(restoreTime(), other.restoreTime())
&& Objects.equals(useLatestRestorableTime(), other.useLatestRestorableTime())
&& Objects.equals(dbInstanceClass(), other.dbInstanceClass()) && Objects.equals(port(), other.port())
&& Objects.equals(availabilityZone(), other.availabilityZone())
&& Objects.equals(dbSubnetGroupName(), other.dbSubnetGroupName()) && Objects.equals(multiAZ(), other.multiAZ())
&& Objects.equals(publiclyAccessible(), other.publiclyAccessible())
&& Objects.equals(autoMinorVersionUpgrade(), other.autoMinorVersionUpgrade())
&& Objects.equals(licenseModel(), other.licenseModel()) && Objects.equals(dbName(), other.dbName())
&& Objects.equals(engine(), other.engine()) && Objects.equals(iops(), other.iops())
&& Objects.equals(optionGroupName(), other.optionGroupName())
&& Objects.equals(copyTagsToSnapshot(), other.copyTagsToSnapshot()) && hasTags() == other.hasTags()
&& Objects.equals(tags(), other.tags()) && Objects.equals(storageType(), other.storageType())
&& Objects.equals(tdeCredentialArn(), other.tdeCredentialArn())
&& Objects.equals(tdeCredentialPassword(), other.tdeCredentialPassword())
&& hasVpcSecurityGroupIds() == other.hasVpcSecurityGroupIds()
&& Objects.equals(vpcSecurityGroupIds(), other.vpcSecurityGroupIds()) && Objects.equals(domain(), other.domain())
&& Objects.equals(domainIAMRoleName(), other.domainIAMRoleName())
&& Objects.equals(domainFqdn(), other.domainFqdn()) && Objects.equals(domainOu(), other.domainOu())
&& Objects.equals(domainAuthSecretArn(), other.domainAuthSecretArn())
&& hasDomainDnsIps() == other.hasDomainDnsIps() && Objects.equals(domainDnsIps(), other.domainDnsIps())
&& Objects.equals(enableIAMDatabaseAuthentication(), other.enableIAMDatabaseAuthentication())
&& hasEnableCloudwatchLogsExports() == other.hasEnableCloudwatchLogsExports()
&& Objects.equals(enableCloudwatchLogsExports(), other.enableCloudwatchLogsExports())
&& hasProcessorFeatures() == other.hasProcessorFeatures()
&& Objects.equals(processorFeatures(), other.processorFeatures())
&& Objects.equals(useDefaultProcessorFeatures(), other.useDefaultProcessorFeatures())
&& Objects.equals(dbParameterGroupName(), other.dbParameterGroupName())
&& Objects.equals(deletionProtection(), other.deletionProtection())
&& Objects.equals(sourceDbiResourceId(), other.sourceDbiResourceId())
&& Objects.equals(maxAllocatedStorage(), other.maxAllocatedStorage())
&& Objects.equals(sourceDBInstanceAutomatedBackupsArn(), other.sourceDBInstanceAutomatedBackupsArn())
&& Objects.equals(enableCustomerOwnedIp(), other.enableCustomerOwnedIp())
&& Objects.equals(customIamInstanceProfile(), other.customIamInstanceProfile())
&& Objects.equals(backupTarget(), other.backupTarget()) && Objects.equals(networkType(), other.networkType())
&& Objects.equals(storageThroughput(), other.storageThroughput())
&& Objects.equals(allocatedStorage(), other.allocatedStorage())
&& Objects.equals(dedicatedLogVolume(), other.dedicatedLogVolume())
&& Objects.equals(caCertificateIdentifier(), other.caCertificateIdentifier())
&& Objects.equals(engineLifecycleSupport(), other.engineLifecycleSupport());
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*/
@Override
public final String toString() {
return ToString.builder("RestoreDbInstanceToPointInTimeRequest")
.add("SourceDBInstanceIdentifier", sourceDBInstanceIdentifier())
.add("TargetDBInstanceIdentifier", targetDBInstanceIdentifier()).add("RestoreTime", restoreTime())
.add("UseLatestRestorableTime", useLatestRestorableTime()).add("DBInstanceClass", dbInstanceClass())
.add("Port", port()).add("AvailabilityZone", availabilityZone()).add("DBSubnetGroupName", dbSubnetGroupName())
.add("MultiAZ", multiAZ()).add("PubliclyAccessible", publiclyAccessible())
.add("AutoMinorVersionUpgrade", autoMinorVersionUpgrade()).add("LicenseModel", licenseModel())
.add("DBName", dbName()).add("Engine", engine()).add("Iops", iops()).add("OptionGroupName", optionGroupName())
.add("CopyTagsToSnapshot", copyTagsToSnapshot()).add("Tags", hasTags() ? tags() : null)
.add("StorageType", storageType()).add("TdeCredentialArn", tdeCredentialArn())
.add("TdeCredentialPassword", tdeCredentialPassword())
.add("VpcSecurityGroupIds", hasVpcSecurityGroupIds() ? vpcSecurityGroupIds() : null).add("Domain", domain())
.add("DomainIAMRoleName", domainIAMRoleName()).add("DomainFqdn", domainFqdn()).add("DomainOu", domainOu())
.add("DomainAuthSecretArn", domainAuthSecretArn()).add("DomainDnsIps", hasDomainDnsIps() ? domainDnsIps() : null)
.add("EnableIAMDatabaseAuthentication", enableIAMDatabaseAuthentication())
.add("EnableCloudwatchLogsExports", hasEnableCloudwatchLogsExports() ? enableCloudwatchLogsExports() : null)
.add("ProcessorFeatures", hasProcessorFeatures() ? processorFeatures() : null)
.add("UseDefaultProcessorFeatures", useDefaultProcessorFeatures())
.add("DBParameterGroupName", dbParameterGroupName()).add("DeletionProtection", deletionProtection())
.add("SourceDbiResourceId", sourceDbiResourceId()).add("MaxAllocatedStorage", maxAllocatedStorage())
.add("SourceDBInstanceAutomatedBackupsArn", sourceDBInstanceAutomatedBackupsArn())
.add("EnableCustomerOwnedIp", enableCustomerOwnedIp())
.add("CustomIamInstanceProfile", customIamInstanceProfile()).add("BackupTarget", backupTarget())
.add("NetworkType", networkType()).add("StorageThroughput", storageThroughput())
.add("AllocatedStorage", allocatedStorage()).add("DedicatedLogVolume", dedicatedLogVolume())
.add("CACertificateIdentifier", caCertificateIdentifier())
.add("EngineLifecycleSupport", engineLifecycleSupport()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "SourceDBInstanceIdentifier":
return Optional.ofNullable(clazz.cast(sourceDBInstanceIdentifier()));
case "TargetDBInstanceIdentifier":
return Optional.ofNullable(clazz.cast(targetDBInstanceIdentifier()));
case "RestoreTime":
return Optional.ofNullable(clazz.cast(restoreTime()));
case "UseLatestRestorableTime":
return Optional.ofNullable(clazz.cast(useLatestRestorableTime()));
case "DBInstanceClass":
return Optional.ofNullable(clazz.cast(dbInstanceClass()));
case "Port":
return Optional.ofNullable(clazz.cast(port()));
case "AvailabilityZone":
return Optional.ofNullable(clazz.cast(availabilityZone()));
case "DBSubnetGroupName":
return Optional.ofNullable(clazz.cast(dbSubnetGroupName()));
case "MultiAZ":
return Optional.ofNullable(clazz.cast(multiAZ()));
case "PubliclyAccessible":
return Optional.ofNullable(clazz.cast(publiclyAccessible()));
case "AutoMinorVersionUpgrade":
return Optional.ofNullable(clazz.cast(autoMinorVersionUpgrade()));
case "LicenseModel":
return Optional.ofNullable(clazz.cast(licenseModel()));
case "DBName":
return Optional.ofNullable(clazz.cast(dbName()));
case "Engine":
return Optional.ofNullable(clazz.cast(engine()));
case "Iops":
return Optional.ofNullable(clazz.cast(iops()));
case "OptionGroupName":
return Optional.ofNullable(clazz.cast(optionGroupName()));
case "CopyTagsToSnapshot":
return Optional.ofNullable(clazz.cast(copyTagsToSnapshot()));
case "Tags":
return Optional.ofNullable(clazz.cast(tags()));
case "StorageType":
return Optional.ofNullable(clazz.cast(storageType()));
case "TdeCredentialArn":
return Optional.ofNullable(clazz.cast(tdeCredentialArn()));
case "TdeCredentialPassword":
return Optional.ofNullable(clazz.cast(tdeCredentialPassword()));
case "VpcSecurityGroupIds":
return Optional.ofNullable(clazz.cast(vpcSecurityGroupIds()));
case "Domain":
return Optional.ofNullable(clazz.cast(domain()));
case "DomainIAMRoleName":
return Optional.ofNullable(clazz.cast(domainIAMRoleName()));
case "DomainFqdn":
return Optional.ofNullable(clazz.cast(domainFqdn()));
case "DomainOu":
return Optional.ofNullable(clazz.cast(domainOu()));
case "DomainAuthSecretArn":
return Optional.ofNullable(clazz.cast(domainAuthSecretArn()));
case "DomainDnsIps":
return Optional.ofNullable(clazz.cast(domainDnsIps()));
case "EnableIAMDatabaseAuthentication":
return Optional.ofNullable(clazz.cast(enableIAMDatabaseAuthentication()));
case "EnableCloudwatchLogsExports":
return Optional.ofNullable(clazz.cast(enableCloudwatchLogsExports()));
case "ProcessorFeatures":
return Optional.ofNullable(clazz.cast(processorFeatures()));
case "UseDefaultProcessorFeatures":
return Optional.ofNullable(clazz.cast(useDefaultProcessorFeatures()));
case "DBParameterGroupName":
return Optional.ofNullable(clazz.cast(dbParameterGroupName()));
case "DeletionProtection":
return Optional.ofNullable(clazz.cast(deletionProtection()));
case "SourceDbiResourceId":
return Optional.ofNullable(clazz.cast(sourceDbiResourceId()));
case "MaxAllocatedStorage":
return Optional.ofNullable(clazz.cast(maxAllocatedStorage()));
case "SourceDBInstanceAutomatedBackupsArn":
return Optional.ofNullable(clazz.cast(sourceDBInstanceAutomatedBackupsArn()));
case "EnableCustomerOwnedIp":
return Optional.ofNullable(clazz.cast(enableCustomerOwnedIp()));
case "CustomIamInstanceProfile":
return Optional.ofNullable(clazz.cast(customIamInstanceProfile()));
case "BackupTarget":
return Optional.ofNullable(clazz.cast(backupTarget()));
case "NetworkType":
return Optional.ofNullable(clazz.cast(networkType()));
case "StorageThroughput":
return Optional.ofNullable(clazz.cast(storageThroughput()));
case "AllocatedStorage":
return Optional.ofNullable(clazz.cast(allocatedStorage()));
case "DedicatedLogVolume":
return Optional.ofNullable(clazz.cast(dedicatedLogVolume()));
case "CACertificateIdentifier":
return Optional.ofNullable(clazz.cast(caCertificateIdentifier()));
case "EngineLifecycleSupport":
return Optional.ofNullable(clazz.cast(engineLifecycleSupport()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DB instance.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder sourceDBInstanceIdentifier(String sourceDBInstanceIdentifier);
/**
*
* The name of the new DB instance to create.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* @param targetDBInstanceIdentifier
* The name of the new DB instance to create.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder targetDBInstanceIdentifier(String targetDBInstanceIdentifier);
/**
*
* The date and time to restore from.
*
*
* Constraints:
*
*
* -
*
* Must be a time in Universal Coordinated Time (UTC) format.
*
*
* -
*
* Must be before the latest restorable time for the DB instance.
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled.
*
*
*
*
* Example: 2009-09-07T23:45:00Z
*
*
* @param restoreTime
* The date and time to restore from.
*
* Constraints:
*
*
* -
*
* Must be a time in Universal Coordinated Time (UTC) format.
*
*
* -
*
* Must be before the latest restorable time for the DB instance.
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled.
*
*
*
*
* Example: 2009-09-07T23:45:00Z
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder restoreTime(Instant restoreTime);
/**
*
* Specifies whether the DB instance is restored from the latest backup time. By default, the DB instance isn't
* restored from the latest backup time.
*
*
* Constraints:
*
*
* -
*
* Can't be specified if the RestoreTime
parameter is provided.
*
*
*
*
* @param useLatestRestorableTime
* Specifies whether the DB instance is restored from the latest backup time. By default, the DB instance
* isn't restored from the latest backup time.
*
* Constraints:
*
*
* -
*
* Can't be specified if the RestoreTime
parameter is provided.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder useLatestRestorableTime(Boolean useLatestRestorableTime);
/**
*
* 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 Amazon Web Services 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 DB instance class as the original DB instance.
*
*
* @param 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 Amazon Web Services 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 DB instance class as the original DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder dbInstanceClass(String dbInstanceClass);
/**
*
* The port number on which the database accepts connections.
*
*
* Default: The same port as the original DB instance.
*
*
* Constraints:
*
*
* -
*
* The value must be 1150-65535
.
*
*
*
*
* @param port
* The port number on which the database accepts connections.
*
* Default: The same port as the original DB instance.
*
*
* Constraints:
*
*
* -
*
* The value must be 1150-65535
.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder port(Integer port);
/**
*
* The Availability Zone (AZ) where the DB instance will be created.
*
*
* Default: A random, system-chosen Availability Zone.
*
*
* Constraints:
*
*
* -
*
* You can't specify the AvailabilityZone
parameter if the DB instance is a Multi-AZ deployment.
*
*
*
*
* Example: us-east-1a
*
*
* @param availabilityZone
* The Availability Zone (AZ) where the DB instance will be created.
*
* Default: A random, system-chosen Availability Zone.
*
*
* Constraints:
*
*
* -
*
* You can't specify the AvailabilityZone
parameter if the DB instance is a Multi-AZ
* deployment.
*
*
*
*
* Example: us-east-1a
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder availabilityZone(String availabilityZone);
/**
*
* The DB subnet group name to use for the new instance.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB subnet group.
*
*
*
*
* Example: mydbsubnetgroup
*
*
* @param dbSubnetGroupName
* The DB subnet group name to use for the new instance.
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB subnet group.
*
*
*
*
* Example: mydbsubnetgroup
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder dbSubnetGroupName(String dbSubnetGroupName);
/**
*
* Secifies whether the DB instance is a Multi-AZ deployment.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Constraints:
*
*
* -
*
* You can't specify the AvailabilityZone
parameter if the DB instance is a Multi-AZ deployment.
*
*
*
*
* @param multiAZ
* Secifies whether the DB instance is a Multi-AZ deployment.
*
* This setting doesn't apply to RDS Custom.
*
*
* Constraints:
*
*
* -
*
* You can't specify the AvailabilityZone
parameter if the DB instance is a Multi-AZ
* deployment.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder multiAZ(Boolean multiAZ);
/**
*
* Specifies whether the DB instance is publicly accessible.
*
*
* When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP
* address from within the DB cluster's virtual private cloud (VPC). It resolves to the public IP address from
* outside of the DB cluster's VPC. Access to the DB cluster is ultimately controlled by the security group it
* uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.
*
*
* When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves
* to a private IP address.
*
*
* For more information, see CreateDBInstance.
*
*
* @param publiclyAccessible
* Specifies whether the DB instance is publicly accessible.
*
* When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the
* private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to the public
* IP address from outside of the DB cluster's VPC. Access to the DB cluster is ultimately controlled by
* the security group it uses. That public access isn't permitted if the security group assigned to the
* DB cluster doesn't permit it.
*
*
* When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that
* resolves to a private IP address.
*
*
* For more information, see CreateDBInstance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder publiclyAccessible(Boolean publiclyAccessible);
/**
*
* Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance
* window.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param autoMinorVersionUpgrade
* Specifies whether minor version upgrades are applied automatically to the DB instance during the
* maintenance window.
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade);
/**
*
* The license model information for the restored DB instance.
*
*
*
* License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model
* requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2
* license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace
* subscription. For more information, see Amazon RDS for Db2 licensing
* options in the Amazon RDS User Guide.
*
*
*
* This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.
*
*
* Valid Values:
*
*
* -
*
* RDS for Db2 - bring-your-own-license | marketplace-license
*
*
* -
*
* RDS for MariaDB - general-public-license
*
*
* -
*
* RDS for Microsoft SQL Server - license-included
*
*
* -
*
* RDS for MySQL - general-public-license
*
*
* -
*
* RDS for Oracle - bring-your-own-license | license-included
*
*
* -
*
* RDS for PostgreSQL - postgresql-license
*
*
*
*
* Default: Same as the source.
*
*
* @param licenseModel
* The license model information for the restored DB instance.
*
* License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL)
* model requires a custom parameter group and an Amazon Web Services License Manager self-managed
* license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services
* Marketplace subscription. For more information, see Amazon RDS for Db2
* licensing options in the Amazon RDS User Guide.
*
*
*
* This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.
*
*
* Valid Values:
*
*
* -
*
* RDS for Db2 - bring-your-own-license | marketplace-license
*
*
* -
*
* RDS for MariaDB - general-public-license
*
*
* -
*
* RDS for Microsoft SQL Server - license-included
*
*
* -
*
* RDS for MySQL - general-public-license
*
*
* -
*
* RDS for Oracle - bring-your-own-license | license-included
*
*
* -
*
* RDS for PostgreSQL - postgresql-license
*
*
*
*
* Default: Same as the source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder licenseModel(String licenseModel);
/**
*
* The database name for the restored DB instance.
*
*
* This parameter doesn't apply to the following DB instances:
*
*
* -
*
* RDS Custom
*
*
* -
*
* RDS for Db2
*
*
* -
*
* RDS for MariaDB
*
*
* -
*
* RDS for MySQL
*
*
*
*
* @param dbName
* The database name for the restored DB instance.
*
* This parameter doesn't apply to the following DB instances:
*
*
* -
*
* RDS Custom
*
*
* -
*
* RDS for Db2
*
*
* -
*
* RDS for MariaDB
*
*
* -
*
* RDS for MySQL
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder dbName(String dbName);
/**
*
* The database engine to use for the new instance.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Valid Values:
*
*
* -
*
* db2-ae
*
*
* -
*
* db2-se
*
*
* -
*
* mariadb
*
*
* -
*
* mysql
*
*
* -
*
* oracle-ee
*
*
* -
*
* oracle-ee-cdb
*
*
* -
*
* oracle-se2
*
*
* -
*
* oracle-se2-cdb
*
*
* -
*
* postgres
*
*
* -
*
* sqlserver-ee
*
*
* -
*
* sqlserver-se
*
*
* -
*
* sqlserver-ex
*
*
* -
*
* sqlserver-web
*
*
*
*
* Default: The same as source
*
*
* Constraints:
*
*
* -
*
* Must be compatible with the engine of the source.
*
*
*
*
* @param engine
* The database engine to use for the new instance.
*
* This setting doesn't apply to RDS Custom.
*
*
* Valid Values:
*
*
* -
*
* db2-ae
*
*
* -
*
* db2-se
*
*
* -
*
* mariadb
*
*
* -
*
* mysql
*
*
* -
*
* oracle-ee
*
*
* -
*
* oracle-ee-cdb
*
*
* -
*
* oracle-se2
*
*
* -
*
* oracle-se2-cdb
*
*
* -
*
* postgres
*
*
* -
*
* sqlserver-ee
*
*
* -
*
* sqlserver-se
*
*
* -
*
* sqlserver-ex
*
*
* -
*
* sqlserver-web
*
*
*
*
* Default: The same as source
*
*
* Constraints:
*
*
* -
*
* Must be compatible with the engine of the source.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder engine(String engine);
/**
*
* The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB
* instance.
*
*
* This setting doesn't apply to SQL Server.
*
*
* Constraints:
*
*
* -
*
* Must be an integer greater than 1000.
*
*
*
*
* @param iops
* The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB
* instance.
*
* This setting doesn't apply to SQL Server.
*
*
* Constraints:
*
*
* -
*
* Must be an integer greater than 1000.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder iops(Integer iops);
/**
*
* The name of the option group to use 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 after it is associated with a DB instance
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param optionGroupName
* The name of the option group to use 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 after it is associated with a
* DB instance
*
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder optionGroupName(String optionGroupName);
/**
*
* Specifies whether to copy all tags from the restored DB instance to snapshots of the DB instance. By default,
* tags are not copied.
*
*
* @param copyTagsToSnapshot
* Specifies whether to copy all tags from the restored DB instance to snapshots of the DB instance. By
* default, tags are not copied.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot);
/**
* Sets the value of the Tags property for this object.
*
* @param tags
* The new value for the Tags property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tags(Collection tags);
/**
* Sets the value of the Tags property for this object.
*
* @param tags
* The new value for the Tags property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tags(Tag... tags);
/**
* Sets the value of the Tags property for this object.
*
* This is a convenience method that creates an instance of the
* {@link software.amazon.awssdk.services.rds.model.Tag.Builder} avoiding the need to create one manually via
* {@link software.amazon.awssdk.services.rds.model.Tag#builder()}.
*
*
* When the {@link Consumer} completes, {@link software.amazon.awssdk.services.rds.model.Tag.Builder#build()} is
* called immediately and its result is passed to {@link #tags(List)}.
*
* @param tags
* a consumer that will call methods on {@link software.amazon.awssdk.services.rds.model.Tag.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #tags(java.util.Collection)
*/
Builder tags(Consumer... tags);
/**
*
* The storage type to associate with the DB instance.
*
*
* Valid Values: gp2 | gp3 | io1 | io2 | standard
*
*
* Default: io1
, if the Iops
parameter is specified. Otherwise, gp2
.
*
*
* Constraints:
*
*
* -
*
* If you specify io1
, io2
, or gp3
, you must also include a value for the
* Iops
parameter.
*
*
*
*
* @param storageType
* The storage type to associate with the DB instance.
*
* Valid Values: gp2 | gp3 | io1 | io2 | standard
*
*
* Default: io1
, if the Iops
parameter is specified. Otherwise,
* gp2
.
*
*
* Constraints:
*
*
* -
*
* If you specify io1
, io2
, or gp3
, you must also include a value
* for the Iops
parameter.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder storageType(String storageType);
/**
*
* The ARN from the key store with which to associate the instance for TDE encryption.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param tdeCredentialArn
* The ARN from the key store with which to associate the instance for TDE encryption.
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tdeCredentialArn(String tdeCredentialArn);
/**
*
* The password for the given ARN from the key store in order to access the device.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param tdeCredentialPassword
* The password for the given ARN from the key store in order to access the device.
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tdeCredentialPassword(String tdeCredentialPassword);
/**
*
* A list of EC2 VPC security groups to associate with this DB instance.
*
*
* Default: The default EC2 VPC security group for the DB subnet group's VPC.
*
*
* @param vpcSecurityGroupIds
* A list of EC2 VPC security groups to associate with this DB instance.
*
* Default: The default EC2 VPC security group for the DB subnet group's VPC.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder vpcSecurityGroupIds(Collection vpcSecurityGroupIds);
/**
*
* A list of EC2 VPC security groups to associate with this DB instance.
*
*
* Default: The default EC2 VPC security group for the DB subnet group's VPC.
*
*
* @param vpcSecurityGroupIds
* A list of EC2 VPC security groups to associate with this DB instance.
*
* Default: The default EC2 VPC security group for the DB subnet group's VPC.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds);
/**
*
* The Active Directory directory ID to restore the DB instance in. Create the domain before running this
* command. Currently, you can create only the MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances
* in an Active Directory Domain.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information, see Kerberos
* Authentication in the Amazon RDS User Guide.
*
*
* @param domain
* The Active Directory directory ID to restore the DB instance in. Create the domain before running this
* command. Currently, you can create only the MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB
* instances in an Active Directory Domain.
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information, see Kerberos
* Authentication in the Amazon RDS User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domain(String domain);
/**
*
* The name of the IAM role to use when making API calls to the Directory Service.
*
*
* This setting doesn't apply to RDS Custom DB instances.
*
*
* @param domainIAMRoleName
* The name of the IAM role to use when making API calls to the Directory Service.
*
* This setting doesn't apply to RDS Custom DB instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domainIAMRoleName(String domainIAMRoleName);
/**
*
* The fully qualified domain name (FQDN) of an Active Directory domain.
*
*
* Constraints:
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example: mymanagedADtest.mymanagedAD.mydomain
*
*
* @param domainFqdn
* The fully qualified domain name (FQDN) of an Active Directory domain.
*
* Constraints:
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example: mymanagedADtest.mymanagedAD.mydomain
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domainFqdn(String domainFqdn);
/**
*
* The Active Directory organizational unit for your DB instance to join.
*
*
* Constraints:
*
*
* -
*
* Must be in the distinguished name format.
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example: OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain
*
*
* @param domainOu
* The Active Directory organizational unit for your DB instance to join.
*
* Constraints:
*
*
* -
*
* Must be in the distinguished name format.
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example: OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domainOu(String domainOu);
/**
*
* The ARN for the Secrets Manager secret with the credentials for the user joining the domain.
*
*
* Constraints:
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example: arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456
*
*
* @param domainAuthSecretArn
* The ARN for the Secrets Manager secret with the credentials for the user joining the domain.
*
* Constraints:
*
*
* -
*
* Can't be longer than 64 characters.
*
*
*
*
* Example:
* arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domainAuthSecretArn(String domainAuthSecretArn);
/**
*
* The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.
*
*
* Constraints:
*
*
* -
*
* Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the
* primary domain controller for both entries in the list.
*
*
*
*
* Example: 123.124.125.126,234.235.236.237
*
*
* @param domainDnsIps
* The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.
*
* Constraints:
*
*
* -
*
* Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of
* the primary domain controller for both entries in the list.
*
*
*
*
* Example: 123.124.125.126,234.235.236.237
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domainDnsIps(Collection domainDnsIps);
/**
*
* The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.
*
*
* Constraints:
*
*
* -
*
* Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the
* primary domain controller for both entries in the list.
*
*
*
*
* Example: 123.124.125.126,234.235.236.237
*
*
* @param domainDnsIps
* The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.
*
* Constraints:
*
*
* -
*
* Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of
* the primary domain controller for both entries in the list.
*
*
*
*
* Example: 123.124.125.126,234.235.236.237
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domainDnsIps(String... domainDnsIps);
/**
*
* Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to
* database accounts. By default, mapping isn't enabled.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information about IAM database authentication, see IAM Database
* Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide.
*
*
* @param enableIAMDatabaseAuthentication
* Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM)
* accounts to database accounts. By default, mapping isn't enabled.
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information about IAM database authentication, see IAM
* Database Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder enableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication);
/**
*
* The list of logs that the restored DB instance is to export to CloudWatch Logs. The values in the list depend
* on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param enableCloudwatchLogsExports
* The list of logs that the restored DB instance is to export to CloudWatch Logs. The values in the list
* depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide.
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder enableCloudwatchLogsExports(Collection enableCloudwatchLogsExports);
/**
*
* The list of logs that the restored DB instance is to export to CloudWatch Logs. The values in the list depend
* on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param enableCloudwatchLogsExports
* The list of logs that the restored DB instance is to export to CloudWatch Logs. The values in the list
* depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide.
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder enableCloudwatchLogsExports(String... enableCloudwatchLogsExports);
/**
*
* The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param processorFeatures
* The number of CPU cores and the number of threads per core for the DB instance class of the DB
* instance.
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder processorFeatures(Collection processorFeatures);
/**
*
* The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param processorFeatures
* The number of CPU cores and the number of threads per core for the DB instance class of the DB
* instance.
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder processorFeatures(ProcessorFeature... processorFeatures);
/**
*
* The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.
*
*
* This setting doesn't apply to RDS Custom.
*
* This is a convenience method that creates an instance of the
* {@link software.amazon.awssdk.services.rds.model.ProcessorFeature.Builder} avoiding the need to create one
* manually via {@link software.amazon.awssdk.services.rds.model.ProcessorFeature#builder()}.
*
*
* When the {@link Consumer} completes,
* {@link software.amazon.awssdk.services.rds.model.ProcessorFeature.Builder#build()} is called immediately and
* its result is passed to {@link #processorFeatures(List)}.
*
* @param processorFeatures
* a consumer that will call methods on
* {@link software.amazon.awssdk.services.rds.model.ProcessorFeature.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #processorFeatures(java.util.Collection)
*/
Builder processorFeatures(Consumer... processorFeatures);
/**
*
* Specifies whether the DB instance class of the DB instance uses its default processor features.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param useDefaultProcessorFeatures
* Specifies whether the DB instance class of the DB instance uses its default processor features.
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder useDefaultProcessorFeatures(Boolean useDefaultProcessorFeatures);
/**
*
* The name of the DB parameter group to associate with this DB instance.
*
*
* If you do not specify a value for DBParameterGroupName
, then the default
* DBParameterGroup
for the specified DB engine is used.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* @param dbParameterGroupName
* The name of the DB parameter group to associate with this DB instance.
*
* If you do not specify a value for DBParameterGroupName
, then the default
* DBParameterGroup
for the specified DB engine is used.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder dbParameterGroupName(String dbParameterGroupName);
/**
*
* Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see Deleting a DB
* Instance.
*
*
* @param deletionProtection
* Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection isn't enabled. For more information,
* see
* Deleting a DB Instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder deletionProtection(Boolean deletionProtection);
/**
*
* The resource ID of the source DB instance from which to restore.
*
*
* @param sourceDbiResourceId
* The resource ID of the source DB instance from which to restore.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder sourceDbiResourceId(String sourceDbiResourceId);
/**
*
* The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB
* instance.
*
*
* For more information about this setting, including limitations that apply to it, see
* Managing capacity automatically with Amazon RDS storage autoscaling in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param maxAllocatedStorage
* The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB
* instance.
*
* For more information about this setting, including limitations that apply to it, see Managing capacity automatically with Amazon RDS storage autoscaling in the Amazon RDS User
* Guide.
*
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder maxAllocatedStorage(Integer maxAllocatedStorage);
/**
*
* The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example,
* arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE
.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @param sourceDBInstanceAutomatedBackupsArn
* The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example,
* arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE
.
*
* This setting doesn't apply to RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder sourceDBInstanceAutomatedBackupsArn(String sourceDBInstanceAutomatedBackupsArn);
/**
*
* Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.
*
*
* A CoIP provides local or external connectivity to resources in your Outpost subnets through your
* on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance
* from outside of its virtual private cloud (VPC) on your local network.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information about RDS on Outposts, see Working with Amazon RDS on
* Amazon Web Services Outposts in the Amazon RDS User Guide.
*
*
* For more information about CoIPs, see Customer-owned IP
* addresses in the Amazon Web Services Outposts User Guide.
*
*
* @param enableCustomerOwnedIp
* Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.
*
* A CoIP provides local or external connectivity to resources in your Outpost subnets through
* your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the
* DB instance from outside of its virtual private cloud (VPC) on your local network.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* For more information about RDS on Outposts, see Working with Amazon
* RDS on Amazon Web Services Outposts in the Amazon RDS User Guide.
*
*
* For more information about CoIPs, see Customer-owned
* IP addresses in the Amazon Web Services Outposts User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder enableCustomerOwnedIp(Boolean enableCustomerOwnedIp);
/**
*
* The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The
* instance profile must meet the following requirements:
*
*
* -
*
* The profile must exist in your account.
*
*
* -
*
* The profile must have an IAM role that Amazon EC2 has permissions to assume.
*
*
* -
*
* The instance profile name and the associated IAM role name must start with the prefix
* AWSRDSCustom
.
*
*
*
*
* For the list of permissions required for the IAM role, see
* Configure IAM and your VPC in the Amazon RDS User Guide.
*
*
* This setting is required for RDS Custom.
*
*
* @param customIamInstanceProfile
* The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
* The instance profile must meet the following requirements:
*
* -
*
* The profile must exist in your account.
*
*
* -
*
* The profile must have an IAM role that Amazon EC2 has permissions to assume.
*
*
* -
*
* The instance profile name and the associated IAM role name must start with the prefix
* AWSRDSCustom
.
*
*
*
*
* For the list of permissions required for the IAM role, see Configure IAM and your VPC in the Amazon RDS User Guide.
*
*
* This setting is required for RDS Custom.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder customIamInstanceProfile(String customIamInstanceProfile);
/**
*
* The location for storing automated backups and manual snapshots for the restored DB instance.
*
*
* Valid Values:
*
*
* -
*
* outposts
(Amazon Web Services Outposts)
*
*
* -
*
* region
(Amazon Web Services Region)
*
*
*
*
* Default: region
*
*
* For more information, see Working with Amazon RDS on
* Amazon Web Services Outposts in the Amazon RDS User Guide.
*
*
* @param backupTarget
* The location for storing automated backups and manual snapshots for the restored DB instance.
*
* Valid Values:
*
*
* -
*
* outposts
(Amazon Web Services Outposts)
*
*
* -
*
* region
(Amazon Web Services Region)
*
*
*
*
* Default: region
*
*
* For more information, see Working with Amazon
* RDS on Amazon Web Services Outposts in the Amazon RDS User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder backupTarget(String backupTarget);
/**
*
* The network type of the DB instance.
*
*
* The network type is determined by the DBSubnetGroup
specified for the DB instance. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
*
* For more information, see
* Working with a DB instance in a VPC in the Amazon RDS User Guide.
*
*
* Valid Values:
*
*
* -
*
* IPV4
*
*
* -
*
* DUAL
*
*
*
*
* @param networkType
* The network type of the DB instance.
*
* The network type is determined by the DBSubnetGroup
specified for the DB instance. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
*
* For more information, see
* Working with a DB instance in a VPC in the Amazon RDS User Guide.
*
*
* Valid Values:
*
*
* -
*
* IPV4
*
*
* -
*
* DUAL
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder networkType(String networkType);
/**
*
* The storage throughput value for the DB instance.
*
*
* This setting doesn't apply to RDS Custom or Amazon Aurora.
*
*
* @param storageThroughput
* The storage throughput value for the DB instance.
*
* This setting doesn't apply to RDS Custom or Amazon Aurora.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder storageThroughput(Integer storageThroughput);
/**
*
* The amount of storage (in gibibytes) to allocate initially for the DB instance. Follow the allocation rules
* specified in CreateDBInstance
.
*
*
*
* Be sure to allocate enough storage for your new DB instance so that the restore operation can succeed. You
* can also allocate additional storage for future growth.
*
*
*
* @param allocatedStorage
* The amount of storage (in gibibytes) to allocate initially for the DB instance. Follow the allocation
* rules specified in CreateDBInstance
.
*
* Be sure to allocate enough storage for your new DB instance so that the restore operation can succeed.
* You can also allocate additional storage for future growth.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder allocatedStorage(Integer allocatedStorage);
/**
*
* Specifies whether to enable a dedicated log volume (DLV) for the DB instance.
*
*
* @param dedicatedLogVolume
* Specifies whether to enable a dedicated log volume (DLV) for the DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder dedicatedLogVolume(Boolean dedicatedLogVolume);
/**
*
* The CA certificate identifier to use for the DB instance's server certificate.
*
*
* This setting doesn't apply to RDS Custom DB instances.
*
*
* For more information, see Using SSL/TLS to encrypt
* a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to
* encrypt a connection to a DB cluster in the Amazon Aurora User Guide.
*
*
* @param caCertificateIdentifier
* The CA certificate identifier to use for the DB instance's server certificate.
*
* This setting doesn't apply to RDS Custom DB instances.
*
*
* For more information, see Using SSL/TLS to
* encrypt a connection to a DB instance in the Amazon RDS User Guide and Using
* SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder caCertificateIdentifier(String caCertificateIdentifier);
/**
*
* The life cycle type for this DB instance.
*
*
*
* By default, this value is set to open-source-rds-extended-support
, which enrolls your DB
* instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended
* Support by setting the value to open-source-rds-extended-support-disabled
. In this case, RDS
* automatically upgrades your restored DB instance to a higher engine version, if the major engine version is
* past its end of standard support date.
*
*
*
* You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended
* Support, you can run the selected major engine version on your DB instance past the end of standard support
* for that engine version. For more information, see Using Amazon RDS Extended
* Support in the Amazon RDS User Guide.
*
*
* This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life
* cycle type is managed by the DB cluster.
*
*
* Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled
*
*
* Default: open-source-rds-extended-support
*
*
* @param engineLifecycleSupport
* The life cycle type for this DB instance.
*
* By default, this value is set to open-source-rds-extended-support
, which enrolls your DB
* instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for
* Extended Support by setting the value to open-source-rds-extended-support-disabled
. In
* this case, RDS automatically upgrades your restored DB instance to a higher engine version, if the
* major engine version is past its end of standard support date.
*
*
*
* You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS
* Extended Support, you can run the selected major engine version on your DB instance past the end of
* standard support for that engine version. For more information, see Using Amazon RDS
* Extended Support in the Amazon RDS User Guide.
*
*
* This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the
* life cycle type is managed by the DB cluster.
*
*
* Valid Values:
* open-source-rds-extended-support | open-source-rds-extended-support-disabled
*
*
* Default: open-source-rds-extended-support
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder engineLifecycleSupport(String engineLifecycleSupport);
@Override
Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
@Override
Builder overrideConfiguration(Consumer builderConsumer);
}
static final class BuilderImpl extends RdsRequest.BuilderImpl implements Builder {
private String sourceDBInstanceIdentifier;
private String targetDBInstanceIdentifier;
private Instant restoreTime;
private Boolean useLatestRestorableTime;
private String dbInstanceClass;
private Integer port;
private String availabilityZone;
private String dbSubnetGroupName;
private Boolean multiAZ;
private Boolean publiclyAccessible;
private Boolean autoMinorVersionUpgrade;
private String licenseModel;
private String dbName;
private String engine;
private Integer iops;
private String optionGroupName;
private Boolean copyTagsToSnapshot;
private List tags = DefaultSdkAutoConstructList.getInstance();
private String storageType;
private String tdeCredentialArn;
private String tdeCredentialPassword;
private List vpcSecurityGroupIds = DefaultSdkAutoConstructList.getInstance();
private String domain;
private String domainIAMRoleName;
private String domainFqdn;
private String domainOu;
private String domainAuthSecretArn;
private List domainDnsIps = DefaultSdkAutoConstructList.getInstance();
private Boolean enableIAMDatabaseAuthentication;
private List enableCloudwatchLogsExports = DefaultSdkAutoConstructList.getInstance();
private List processorFeatures = DefaultSdkAutoConstructList.getInstance();
private Boolean useDefaultProcessorFeatures;
private String dbParameterGroupName;
private Boolean deletionProtection;
private String sourceDbiResourceId;
private Integer maxAllocatedStorage;
private String sourceDBInstanceAutomatedBackupsArn;
private Boolean enableCustomerOwnedIp;
private String customIamInstanceProfile;
private String backupTarget;
private String networkType;
private Integer storageThroughput;
private Integer allocatedStorage;
private Boolean dedicatedLogVolume;
private String caCertificateIdentifier;
private String engineLifecycleSupport;
private BuilderImpl() {
}
private BuilderImpl(RestoreDbInstanceToPointInTimeRequest model) {
super(model);
sourceDBInstanceIdentifier(model.sourceDBInstanceIdentifier);
targetDBInstanceIdentifier(model.targetDBInstanceIdentifier);
restoreTime(model.restoreTime);
useLatestRestorableTime(model.useLatestRestorableTime);
dbInstanceClass(model.dbInstanceClass);
port(model.port);
availabilityZone(model.availabilityZone);
dbSubnetGroupName(model.dbSubnetGroupName);
multiAZ(model.multiAZ);
publiclyAccessible(model.publiclyAccessible);
autoMinorVersionUpgrade(model.autoMinorVersionUpgrade);
licenseModel(model.licenseModel);
dbName(model.dbName);
engine(model.engine);
iops(model.iops);
optionGroupName(model.optionGroupName);
copyTagsToSnapshot(model.copyTagsToSnapshot);
tags(model.tags);
storageType(model.storageType);
tdeCredentialArn(model.tdeCredentialArn);
tdeCredentialPassword(model.tdeCredentialPassword);
vpcSecurityGroupIds(model.vpcSecurityGroupIds);
domain(model.domain);
domainIAMRoleName(model.domainIAMRoleName);
domainFqdn(model.domainFqdn);
domainOu(model.domainOu);
domainAuthSecretArn(model.domainAuthSecretArn);
domainDnsIps(model.domainDnsIps);
enableIAMDatabaseAuthentication(model.enableIAMDatabaseAuthentication);
enableCloudwatchLogsExports(model.enableCloudwatchLogsExports);
processorFeatures(model.processorFeatures);
useDefaultProcessorFeatures(model.useDefaultProcessorFeatures);
dbParameterGroupName(model.dbParameterGroupName);
deletionProtection(model.deletionProtection);
sourceDbiResourceId(model.sourceDbiResourceId);
maxAllocatedStorage(model.maxAllocatedStorage);
sourceDBInstanceAutomatedBackupsArn(model.sourceDBInstanceAutomatedBackupsArn);
enableCustomerOwnedIp(model.enableCustomerOwnedIp);
customIamInstanceProfile(model.customIamInstanceProfile);
backupTarget(model.backupTarget);
networkType(model.networkType);
storageThroughput(model.storageThroughput);
allocatedStorage(model.allocatedStorage);
dedicatedLogVolume(model.dedicatedLogVolume);
caCertificateIdentifier(model.caCertificateIdentifier);
engineLifecycleSupport(model.engineLifecycleSupport);
}
public final String getSourceDBInstanceIdentifier() {
return sourceDBInstanceIdentifier;
}
public final void setSourceDBInstanceIdentifier(String sourceDBInstanceIdentifier) {
this.sourceDBInstanceIdentifier = sourceDBInstanceIdentifier;
}
@Override
public final Builder sourceDBInstanceIdentifier(String sourceDBInstanceIdentifier) {
this.sourceDBInstanceIdentifier = sourceDBInstanceIdentifier;
return this;
}
public final String getTargetDBInstanceIdentifier() {
return targetDBInstanceIdentifier;
}
public final void setTargetDBInstanceIdentifier(String targetDBInstanceIdentifier) {
this.targetDBInstanceIdentifier = targetDBInstanceIdentifier;
}
@Override
public final Builder targetDBInstanceIdentifier(String targetDBInstanceIdentifier) {
this.targetDBInstanceIdentifier = targetDBInstanceIdentifier;
return this;
}
public final Instant getRestoreTime() {
return restoreTime;
}
public final void setRestoreTime(Instant restoreTime) {
this.restoreTime = restoreTime;
}
@Override
public final Builder restoreTime(Instant restoreTime) {
this.restoreTime = restoreTime;
return this;
}
public final Boolean getUseLatestRestorableTime() {
return useLatestRestorableTime;
}
public final void setUseLatestRestorableTime(Boolean useLatestRestorableTime) {
this.useLatestRestorableTime = useLatestRestorableTime;
}
@Override
public final Builder useLatestRestorableTime(Boolean useLatestRestorableTime) {
this.useLatestRestorableTime = useLatestRestorableTime;
return this;
}
public final String getDbInstanceClass() {
return dbInstanceClass;
}
public final void setDbInstanceClass(String dbInstanceClass) {
this.dbInstanceClass = dbInstanceClass;
}
@Override
public final Builder dbInstanceClass(String dbInstanceClass) {
this.dbInstanceClass = dbInstanceClass;
return this;
}
public final Integer getPort() {
return port;
}
public final void setPort(Integer port) {
this.port = port;
}
@Override
public final Builder port(Integer port) {
this.port = port;
return this;
}
public final String getAvailabilityZone() {
return availabilityZone;
}
public final void setAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
}
@Override
public final Builder availabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
return this;
}
public final String getDbSubnetGroupName() {
return dbSubnetGroupName;
}
public final void setDbSubnetGroupName(String dbSubnetGroupName) {
this.dbSubnetGroupName = dbSubnetGroupName;
}
@Override
public final Builder dbSubnetGroupName(String dbSubnetGroupName) {
this.dbSubnetGroupName = dbSubnetGroupName;
return this;
}
public final Boolean getMultiAZ() {
return multiAZ;
}
public final void setMultiAZ(Boolean multiAZ) {
this.multiAZ = multiAZ;
}
@Override
public final Builder multiAZ(Boolean multiAZ) {
this.multiAZ = multiAZ;
return this;
}
public final Boolean getPubliclyAccessible() {
return publiclyAccessible;
}
public final void setPubliclyAccessible(Boolean publiclyAccessible) {
this.publiclyAccessible = publiclyAccessible;
}
@Override
public final Builder publiclyAccessible(Boolean publiclyAccessible) {
this.publiclyAccessible = publiclyAccessible;
return this;
}
public final Boolean getAutoMinorVersionUpgrade() {
return autoMinorVersionUpgrade;
}
public final void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
this.autoMinorVersionUpgrade = autoMinorVersionUpgrade;
}
@Override
public final Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
this.autoMinorVersionUpgrade = autoMinorVersionUpgrade;
return this;
}
public final String getLicenseModel() {
return licenseModel;
}
public final void setLicenseModel(String licenseModel) {
this.licenseModel = licenseModel;
}
@Override
public final Builder licenseModel(String licenseModel) {
this.licenseModel = licenseModel;
return this;
}
public final String getDbName() {
return dbName;
}
public final void setDbName(String dbName) {
this.dbName = dbName;
}
@Override
public final Builder dbName(String dbName) {
this.dbName = dbName;
return this;
}
public final String getEngine() {
return engine;
}
public final void setEngine(String engine) {
this.engine = engine;
}
@Override
public final Builder engine(String engine) {
this.engine = engine;
return this;
}
public final Integer getIops() {
return iops;
}
public final void setIops(Integer iops) {
this.iops = iops;
}
@Override
public final Builder iops(Integer iops) {
this.iops = iops;
return this;
}
public final String getOptionGroupName() {
return optionGroupName;
}
public final void setOptionGroupName(String optionGroupName) {
this.optionGroupName = optionGroupName;
}
@Override
public final Builder optionGroupName(String optionGroupName) {
this.optionGroupName = optionGroupName;
return this;
}
public final Boolean getCopyTagsToSnapshot() {
return copyTagsToSnapshot;
}
public final void setCopyTagsToSnapshot(Boolean copyTagsToSnapshot) {
this.copyTagsToSnapshot = copyTagsToSnapshot;
}
@Override
public final Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot) {
this.copyTagsToSnapshot = copyTagsToSnapshot;
return this;
}
public final List getTags() {
List result = TagListCopier.copyToBuilder(this.tags);
if (result instanceof SdkAutoConstructList) {
return null;
}
return result;
}
public final void setTags(Collection tags) {
this.tags = TagListCopier.copyFromBuilder(tags);
}
@Override
public final Builder tags(Collection tags) {
this.tags = TagListCopier.copy(tags);
return this;
}
@Override
@SafeVarargs
public final Builder tags(Tag... tags) {
tags(Arrays.asList(tags));
return this;
}
@Override
@SafeVarargs
public final Builder tags(Consumer... tags) {
tags(Stream.of(tags).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList()));
return this;
}
public final String getStorageType() {
return storageType;
}
public final void setStorageType(String storageType) {
this.storageType = storageType;
}
@Override
public final Builder storageType(String storageType) {
this.storageType = storageType;
return this;
}
public final String getTdeCredentialArn() {
return tdeCredentialArn;
}
public final void setTdeCredentialArn(String tdeCredentialArn) {
this.tdeCredentialArn = tdeCredentialArn;
}
@Override
public final Builder tdeCredentialArn(String tdeCredentialArn) {
this.tdeCredentialArn = tdeCredentialArn;
return this;
}
public final String getTdeCredentialPassword() {
return tdeCredentialPassword;
}
public final void setTdeCredentialPassword(String tdeCredentialPassword) {
this.tdeCredentialPassword = tdeCredentialPassword;
}
@Override
public final Builder tdeCredentialPassword(String tdeCredentialPassword) {
this.tdeCredentialPassword = tdeCredentialPassword;
return this;
}
public final Collection getVpcSecurityGroupIds() {
if (vpcSecurityGroupIds instanceof SdkAutoConstructList) {
return null;
}
return vpcSecurityGroupIds;
}
public final void setVpcSecurityGroupIds(Collection vpcSecurityGroupIds) {
this.vpcSecurityGroupIds = VpcSecurityGroupIdListCopier.copy(vpcSecurityGroupIds);
}
@Override
public final Builder vpcSecurityGroupIds(Collection vpcSecurityGroupIds) {
this.vpcSecurityGroupIds = VpcSecurityGroupIdListCopier.copy(vpcSecurityGroupIds);
return this;
}
@Override
@SafeVarargs
public final Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds) {
vpcSecurityGroupIds(Arrays.asList(vpcSecurityGroupIds));
return this;
}
public final String getDomain() {
return domain;
}
public final void setDomain(String domain) {
this.domain = domain;
}
@Override
public final Builder domain(String domain) {
this.domain = domain;
return this;
}
public final String getDomainIAMRoleName() {
return domainIAMRoleName;
}
public final void setDomainIAMRoleName(String domainIAMRoleName) {
this.domainIAMRoleName = domainIAMRoleName;
}
@Override
public final Builder domainIAMRoleName(String domainIAMRoleName) {
this.domainIAMRoleName = domainIAMRoleName;
return this;
}
public final String getDomainFqdn() {
return domainFqdn;
}
public final void setDomainFqdn(String domainFqdn) {
this.domainFqdn = domainFqdn;
}
@Override
public final Builder domainFqdn(String domainFqdn) {
this.domainFqdn = domainFqdn;
return this;
}
public final String getDomainOu() {
return domainOu;
}
public final void setDomainOu(String domainOu) {
this.domainOu = domainOu;
}
@Override
public final Builder domainOu(String domainOu) {
this.domainOu = domainOu;
return this;
}
public final String getDomainAuthSecretArn() {
return domainAuthSecretArn;
}
public final void setDomainAuthSecretArn(String domainAuthSecretArn) {
this.domainAuthSecretArn = domainAuthSecretArn;
}
@Override
public final Builder domainAuthSecretArn(String domainAuthSecretArn) {
this.domainAuthSecretArn = domainAuthSecretArn;
return this;
}
public final Collection getDomainDnsIps() {
if (domainDnsIps instanceof SdkAutoConstructList) {
return null;
}
return domainDnsIps;
}
public final void setDomainDnsIps(Collection domainDnsIps) {
this.domainDnsIps = StringListCopier.copy(domainDnsIps);
}
@Override
public final Builder domainDnsIps(Collection domainDnsIps) {
this.domainDnsIps = StringListCopier.copy(domainDnsIps);
return this;
}
@Override
@SafeVarargs
public final Builder domainDnsIps(String... domainDnsIps) {
domainDnsIps(Arrays.asList(domainDnsIps));
return this;
}
public final Boolean getEnableIAMDatabaseAuthentication() {
return enableIAMDatabaseAuthentication;
}
public final void setEnableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication) {
this.enableIAMDatabaseAuthentication = enableIAMDatabaseAuthentication;
}
@Override
public final Builder enableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication) {
this.enableIAMDatabaseAuthentication = enableIAMDatabaseAuthentication;
return this;
}
public final Collection getEnableCloudwatchLogsExports() {
if (enableCloudwatchLogsExports instanceof SdkAutoConstructList) {
return null;
}
return enableCloudwatchLogsExports;
}
public final void setEnableCloudwatchLogsExports(Collection enableCloudwatchLogsExports) {
this.enableCloudwatchLogsExports = LogTypeListCopier.copy(enableCloudwatchLogsExports);
}
@Override
public final Builder enableCloudwatchLogsExports(Collection enableCloudwatchLogsExports) {
this.enableCloudwatchLogsExports = LogTypeListCopier.copy(enableCloudwatchLogsExports);
return this;
}
@Override
@SafeVarargs
public final Builder enableCloudwatchLogsExports(String... enableCloudwatchLogsExports) {
enableCloudwatchLogsExports(Arrays.asList(enableCloudwatchLogsExports));
return this;
}
public final List getProcessorFeatures() {
List result = ProcessorFeatureListCopier.copyToBuilder(this.processorFeatures);
if (result instanceof SdkAutoConstructList) {
return null;
}
return result;
}
public final void setProcessorFeatures(Collection processorFeatures) {
this.processorFeatures = ProcessorFeatureListCopier.copyFromBuilder(processorFeatures);
}
@Override
public final Builder processorFeatures(Collection processorFeatures) {
this.processorFeatures = ProcessorFeatureListCopier.copy(processorFeatures);
return this;
}
@Override
@SafeVarargs
public final Builder processorFeatures(ProcessorFeature... processorFeatures) {
processorFeatures(Arrays.asList(processorFeatures));
return this;
}
@Override
@SafeVarargs
public final Builder processorFeatures(Consumer... processorFeatures) {
processorFeatures(Stream.of(processorFeatures).map(c -> ProcessorFeature.builder().applyMutation(c).build())
.collect(Collectors.toList()));
return this;
}
public final Boolean getUseDefaultProcessorFeatures() {
return useDefaultProcessorFeatures;
}
public final void setUseDefaultProcessorFeatures(Boolean useDefaultProcessorFeatures) {
this.useDefaultProcessorFeatures = useDefaultProcessorFeatures;
}
@Override
public final Builder useDefaultProcessorFeatures(Boolean useDefaultProcessorFeatures) {
this.useDefaultProcessorFeatures = useDefaultProcessorFeatures;
return this;
}
public final String getDbParameterGroupName() {
return dbParameterGroupName;
}
public final void setDbParameterGroupName(String dbParameterGroupName) {
this.dbParameterGroupName = dbParameterGroupName;
}
@Override
public final Builder dbParameterGroupName(String dbParameterGroupName) {
this.dbParameterGroupName = dbParameterGroupName;
return this;
}
public final Boolean getDeletionProtection() {
return deletionProtection;
}
public final void setDeletionProtection(Boolean deletionProtection) {
this.deletionProtection = deletionProtection;
}
@Override
public final Builder deletionProtection(Boolean deletionProtection) {
this.deletionProtection = deletionProtection;
return this;
}
public final String getSourceDbiResourceId() {
return sourceDbiResourceId;
}
public final void setSourceDbiResourceId(String sourceDbiResourceId) {
this.sourceDbiResourceId = sourceDbiResourceId;
}
@Override
public final Builder sourceDbiResourceId(String sourceDbiResourceId) {
this.sourceDbiResourceId = sourceDbiResourceId;
return this;
}
public final Integer getMaxAllocatedStorage() {
return maxAllocatedStorage;
}
public final void setMaxAllocatedStorage(Integer maxAllocatedStorage) {
this.maxAllocatedStorage = maxAllocatedStorage;
}
@Override
public final Builder maxAllocatedStorage(Integer maxAllocatedStorage) {
this.maxAllocatedStorage = maxAllocatedStorage;
return this;
}
public final String getSourceDBInstanceAutomatedBackupsArn() {
return sourceDBInstanceAutomatedBackupsArn;
}
public final void setSourceDBInstanceAutomatedBackupsArn(String sourceDBInstanceAutomatedBackupsArn) {
this.sourceDBInstanceAutomatedBackupsArn = sourceDBInstanceAutomatedBackupsArn;
}
@Override
public final Builder sourceDBInstanceAutomatedBackupsArn(String sourceDBInstanceAutomatedBackupsArn) {
this.sourceDBInstanceAutomatedBackupsArn = sourceDBInstanceAutomatedBackupsArn;
return this;
}
public final Boolean getEnableCustomerOwnedIp() {
return enableCustomerOwnedIp;
}
public final void setEnableCustomerOwnedIp(Boolean enableCustomerOwnedIp) {
this.enableCustomerOwnedIp = enableCustomerOwnedIp;
}
@Override
public final Builder enableCustomerOwnedIp(Boolean enableCustomerOwnedIp) {
this.enableCustomerOwnedIp = enableCustomerOwnedIp;
return this;
}
public final String getCustomIamInstanceProfile() {
return customIamInstanceProfile;
}
public final void setCustomIamInstanceProfile(String customIamInstanceProfile) {
this.customIamInstanceProfile = customIamInstanceProfile;
}
@Override
public final Builder customIamInstanceProfile(String customIamInstanceProfile) {
this.customIamInstanceProfile = customIamInstanceProfile;
return this;
}
public final String getBackupTarget() {
return backupTarget;
}
public final void setBackupTarget(String backupTarget) {
this.backupTarget = backupTarget;
}
@Override
public final Builder backupTarget(String backupTarget) {
this.backupTarget = backupTarget;
return this;
}
public final String getNetworkType() {
return networkType;
}
public final void setNetworkType(String networkType) {
this.networkType = networkType;
}
@Override
public final Builder networkType(String networkType) {
this.networkType = networkType;
return this;
}
public final Integer getStorageThroughput() {
return storageThroughput;
}
public final void setStorageThroughput(Integer storageThroughput) {
this.storageThroughput = storageThroughput;
}
@Override
public final Builder storageThroughput(Integer storageThroughput) {
this.storageThroughput = storageThroughput;
return this;
}
public final Integer getAllocatedStorage() {
return allocatedStorage;
}
public final void setAllocatedStorage(Integer allocatedStorage) {
this.allocatedStorage = allocatedStorage;
}
@Override
public final Builder allocatedStorage(Integer allocatedStorage) {
this.allocatedStorage = allocatedStorage;
return this;
}
public final Boolean getDedicatedLogVolume() {
return dedicatedLogVolume;
}
public final void setDedicatedLogVolume(Boolean dedicatedLogVolume) {
this.dedicatedLogVolume = dedicatedLogVolume;
}
@Override
public final Builder dedicatedLogVolume(Boolean dedicatedLogVolume) {
this.dedicatedLogVolume = dedicatedLogVolume;
return this;
}
public final String getCaCertificateIdentifier() {
return caCertificateIdentifier;
}
public final void setCaCertificateIdentifier(String caCertificateIdentifier) {
this.caCertificateIdentifier = caCertificateIdentifier;
}
@Override
public final Builder caCertificateIdentifier(String caCertificateIdentifier) {
this.caCertificateIdentifier = caCertificateIdentifier;
return this;
}
public final String getEngineLifecycleSupport() {
return engineLifecycleSupport;
}
public final void setEngineLifecycleSupport(String engineLifecycleSupport) {
this.engineLifecycleSupport = engineLifecycleSupport;
}
@Override
public final Builder engineLifecycleSupport(String engineLifecycleSupport) {
this.engineLifecycleSupport = engineLifecycleSupport;
return this;
}
@Override
public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
super.overrideConfiguration(overrideConfiguration);
return this;
}
@Override
public Builder overrideConfiguration(Consumer builderConsumer) {
super.overrideConfiguration(builderConsumer);
return this;
}
@Override
public RestoreDbInstanceToPointInTimeRequest build() {
return new RestoreDbInstanceToPointInTimeRequest(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}