software.amazon.awssdk.services.rds.model.CreateDbInstanceReadReplicaRequest Maven / Gradle / Ivy
/*
* 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.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 CreateDbInstanceReadReplicaRequest extends RdsRequest implements
ToCopyableBuilder {
private static final SdkField DB_INSTANCE_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DBInstanceIdentifier").getter(getter(CreateDbInstanceReadReplicaRequest::dbInstanceIdentifier))
.setter(setter(Builder::dbInstanceIdentifier))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBInstanceIdentifier").build())
.build();
private static final SdkField SOURCE_DB_INSTANCE_IDENTIFIER_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("SourceDBInstanceIdentifier")
.getter(getter(CreateDbInstanceReadReplicaRequest::sourceDBInstanceIdentifier))
.setter(setter(Builder::sourceDBInstanceIdentifier))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceDBInstanceIdentifier").build())
.build();
private static final SdkField DB_INSTANCE_CLASS_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DBInstanceClass").getter(getter(CreateDbInstanceReadReplicaRequest::dbInstanceClass))
.setter(setter(Builder::dbInstanceClass))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBInstanceClass").build()).build();
private static final SdkField AVAILABILITY_ZONE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("AvailabilityZone").getter(getter(CreateDbInstanceReadReplicaRequest::availabilityZone))
.setter(setter(Builder::availabilityZone))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AvailabilityZone").build()).build();
private static final SdkField PORT_FIELD = SdkField. builder(MarshallingType.INTEGER).memberName("Port")
.getter(getter(CreateDbInstanceReadReplicaRequest::port)).setter(setter(Builder::port))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Port").build()).build();
private static final SdkField MULTI_AZ_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("MultiAZ").getter(getter(CreateDbInstanceReadReplicaRequest::multiAZ)).setter(setter(Builder::multiAZ))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MultiAZ").build()).build();
private static final SdkField AUTO_MINOR_VERSION_UPGRADE_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("AutoMinorVersionUpgrade").getter(getter(CreateDbInstanceReadReplicaRequest::autoMinorVersionUpgrade))
.setter(setter(Builder::autoMinorVersionUpgrade))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AutoMinorVersionUpgrade").build())
.build();
private static final SdkField IOPS_FIELD = SdkField. builder(MarshallingType.INTEGER).memberName("Iops")
.getter(getter(CreateDbInstanceReadReplicaRequest::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(CreateDbInstanceReadReplicaRequest::optionGroupName))
.setter(setter(Builder::optionGroupName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OptionGroupName").build()).build();
private static final SdkField DB_PARAMETER_GROUP_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DBParameterGroupName").getter(getter(CreateDbInstanceReadReplicaRequest::dbParameterGroupName))
.setter(setter(Builder::dbParameterGroupName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBParameterGroupName").build())
.build();
private static final SdkField PUBLICLY_ACCESSIBLE_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("PubliclyAccessible").getter(getter(CreateDbInstanceReadReplicaRequest::publiclyAccessible))
.setter(setter(Builder::publiclyAccessible))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PubliclyAccessible").build())
.build();
private static final SdkField> TAGS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("Tags")
.getter(getter(CreateDbInstanceReadReplicaRequest::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 DB_SUBNET_GROUP_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DBSubnetGroupName").getter(getter(CreateDbInstanceReadReplicaRequest::dbSubnetGroupName))
.setter(setter(Builder::dbSubnetGroupName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBSubnetGroupName").build()).build();
private static final SdkField> VPC_SECURITY_GROUP_IDS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("VpcSecurityGroupIds")
.getter(getter(CreateDbInstanceReadReplicaRequest::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 STORAGE_TYPE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("StorageType").getter(getter(CreateDbInstanceReadReplicaRequest::storageType))
.setter(setter(Builder::storageType))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StorageType").build()).build();
private static final SdkField COPY_TAGS_TO_SNAPSHOT_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("CopyTagsToSnapshot").getter(getter(CreateDbInstanceReadReplicaRequest::copyTagsToSnapshot))
.setter(setter(Builder::copyTagsToSnapshot))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CopyTagsToSnapshot").build())
.build();
private static final SdkField MONITORING_INTERVAL_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("MonitoringInterval").getter(getter(CreateDbInstanceReadReplicaRequest::monitoringInterval))
.setter(setter(Builder::monitoringInterval))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MonitoringInterval").build())
.build();
private static final SdkField MONITORING_ROLE_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("MonitoringRoleArn").getter(getter(CreateDbInstanceReadReplicaRequest::monitoringRoleArn))
.setter(setter(Builder::monitoringRoleArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MonitoringRoleArn").build()).build();
private static final SdkField KMS_KEY_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("KmsKeyId").getter(getter(CreateDbInstanceReadReplicaRequest::kmsKeyId))
.setter(setter(Builder::kmsKeyId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KmsKeyId").build()).build();
private static final SdkField PRE_SIGNED_URL_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("PreSignedUrl").getter(getter(CreateDbInstanceReadReplicaRequest::preSignedUrl))
.setter(setter(Builder::preSignedUrl))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PreSignedUrl").build()).build();
private static final SdkField ENABLE_IAM_DATABASE_AUTHENTICATION_FIELD = SdkField
. builder(MarshallingType.BOOLEAN)
.memberName("EnableIAMDatabaseAuthentication")
.getter(getter(CreateDbInstanceReadReplicaRequest::enableIAMDatabaseAuthentication))
.setter(setter(Builder::enableIAMDatabaseAuthentication))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EnableIAMDatabaseAuthentication")
.build()).build();
private static final SdkField ENABLE_PERFORMANCE_INSIGHTS_FIELD = SdkField
. builder(MarshallingType.BOOLEAN).memberName("EnablePerformanceInsights")
.getter(getter(CreateDbInstanceReadReplicaRequest::enablePerformanceInsights))
.setter(setter(Builder::enablePerformanceInsights))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EnablePerformanceInsights").build())
.build();
private static final SdkField PERFORMANCE_INSIGHTS_KMS_KEY_ID_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("PerformanceInsightsKMSKeyId")
.getter(getter(CreateDbInstanceReadReplicaRequest::performanceInsightsKMSKeyId))
.setter(setter(Builder::performanceInsightsKMSKeyId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PerformanceInsightsKMSKeyId")
.build()).build();
private static final SdkField PERFORMANCE_INSIGHTS_RETENTION_PERIOD_FIELD = SdkField
. builder(MarshallingType.INTEGER)
.memberName("PerformanceInsightsRetentionPeriod")
.getter(getter(CreateDbInstanceReadReplicaRequest::performanceInsightsRetentionPeriod))
.setter(setter(Builder::performanceInsightsRetentionPeriod))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PerformanceInsightsRetentionPeriod")
.build()).build();
private static final SdkField> ENABLE_CLOUDWATCH_LOGS_EXPORTS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("EnableCloudwatchLogsExports")
.getter(getter(CreateDbInstanceReadReplicaRequest::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(CreateDbInstanceReadReplicaRequest::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(CreateDbInstanceReadReplicaRequest::useDefaultProcessorFeatures))
.setter(setter(Builder::useDefaultProcessorFeatures))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("UseDefaultProcessorFeatures")
.build()).build();
private static final SdkField DELETION_PROTECTION_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("DeletionProtection").getter(getter(CreateDbInstanceReadReplicaRequest::deletionProtection))
.setter(setter(Builder::deletionProtection))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DeletionProtection").build())
.build();
private static final SdkField DOMAIN_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Domain")
.getter(getter(CreateDbInstanceReadReplicaRequest::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(CreateDbInstanceReadReplicaRequest::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(CreateDbInstanceReadReplicaRequest::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(CreateDbInstanceReadReplicaRequest::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(CreateDbInstanceReadReplicaRequest::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(CreateDbInstanceReadReplicaRequest::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 REPLICA_MODE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("ReplicaMode").getter(getter(CreateDbInstanceReadReplicaRequest::replicaModeAsString))
.setter(setter(Builder::replicaMode))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ReplicaMode").build()).build();
private static final SdkField MAX_ALLOCATED_STORAGE_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("MaxAllocatedStorage").getter(getter(CreateDbInstanceReadReplicaRequest::maxAllocatedStorage))
.setter(setter(Builder::maxAllocatedStorage))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxAllocatedStorage").build())
.build();
private static final SdkField CUSTOM_IAM_INSTANCE_PROFILE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("CustomIamInstanceProfile").getter(getter(CreateDbInstanceReadReplicaRequest::customIamInstanceProfile))
.setter(setter(Builder::customIamInstanceProfile))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CustomIamInstanceProfile").build())
.build();
private static final SdkField NETWORK_TYPE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("NetworkType").getter(getter(CreateDbInstanceReadReplicaRequest::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(CreateDbInstanceReadReplicaRequest::storageThroughput))
.setter(setter(Builder::storageThroughput))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StorageThroughput").build()).build();
private static final SdkField ENABLE_CUSTOMER_OWNED_IP_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("EnableCustomerOwnedIp").getter(getter(CreateDbInstanceReadReplicaRequest::enableCustomerOwnedIp))
.setter(setter(Builder::enableCustomerOwnedIp))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EnableCustomerOwnedIp").build())
.build();
private static final SdkField ALLOCATED_STORAGE_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("AllocatedStorage").getter(getter(CreateDbInstanceReadReplicaRequest::allocatedStorage))
.setter(setter(Builder::allocatedStorage))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AllocatedStorage").build()).build();
private static final SdkField SOURCE_DB_CLUSTER_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("SourceDBClusterIdentifier")
.getter(getter(CreateDbInstanceReadReplicaRequest::sourceDBClusterIdentifier))
.setter(setter(Builder::sourceDBClusterIdentifier))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceDBClusterIdentifier").build())
.build();
private static final SdkField SOURCE_REGION_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("SourceRegion").getter(getter(CreateDbInstanceReadReplicaRequest::sourceRegion))
.setter(setter(Builder::sourceRegion))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SourceRegion").build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(DB_INSTANCE_IDENTIFIER_FIELD,
SOURCE_DB_INSTANCE_IDENTIFIER_FIELD, DB_INSTANCE_CLASS_FIELD, AVAILABILITY_ZONE_FIELD, PORT_FIELD, MULTI_AZ_FIELD,
AUTO_MINOR_VERSION_UPGRADE_FIELD, IOPS_FIELD, OPTION_GROUP_NAME_FIELD, DB_PARAMETER_GROUP_NAME_FIELD,
PUBLICLY_ACCESSIBLE_FIELD, TAGS_FIELD, DB_SUBNET_GROUP_NAME_FIELD, VPC_SECURITY_GROUP_IDS_FIELD, STORAGE_TYPE_FIELD,
COPY_TAGS_TO_SNAPSHOT_FIELD, MONITORING_INTERVAL_FIELD, MONITORING_ROLE_ARN_FIELD, KMS_KEY_ID_FIELD,
PRE_SIGNED_URL_FIELD, ENABLE_IAM_DATABASE_AUTHENTICATION_FIELD, ENABLE_PERFORMANCE_INSIGHTS_FIELD,
PERFORMANCE_INSIGHTS_KMS_KEY_ID_FIELD, PERFORMANCE_INSIGHTS_RETENTION_PERIOD_FIELD,
ENABLE_CLOUDWATCH_LOGS_EXPORTS_FIELD, PROCESSOR_FEATURES_FIELD, USE_DEFAULT_PROCESSOR_FEATURES_FIELD,
DELETION_PROTECTION_FIELD, DOMAIN_FIELD, DOMAIN_IAM_ROLE_NAME_FIELD, DOMAIN_FQDN_FIELD, DOMAIN_OU_FIELD,
DOMAIN_AUTH_SECRET_ARN_FIELD, DOMAIN_DNS_IPS_FIELD, REPLICA_MODE_FIELD, MAX_ALLOCATED_STORAGE_FIELD,
CUSTOM_IAM_INSTANCE_PROFILE_FIELD, NETWORK_TYPE_FIELD, STORAGE_THROUGHPUT_FIELD, ENABLE_CUSTOMER_OWNED_IP_FIELD,
ALLOCATED_STORAGE_FIELD, SOURCE_DB_CLUSTER_IDENTIFIER_FIELD, SOURCE_REGION_FIELD));
private final String dbInstanceIdentifier;
private final String sourceDBInstanceIdentifier;
private final String dbInstanceClass;
private final String availabilityZone;
private final Integer port;
private final Boolean multiAZ;
private final Boolean autoMinorVersionUpgrade;
private final Integer iops;
private final String optionGroupName;
private final String dbParameterGroupName;
private final Boolean publiclyAccessible;
private final List tags;
private final String dbSubnetGroupName;
private final List vpcSecurityGroupIds;
private final String storageType;
private final Boolean copyTagsToSnapshot;
private final Integer monitoringInterval;
private final String monitoringRoleArn;
private final String kmsKeyId;
private final String preSignedUrl;
private final Boolean enableIAMDatabaseAuthentication;
private final Boolean enablePerformanceInsights;
private final String performanceInsightsKMSKeyId;
private final Integer performanceInsightsRetentionPeriod;
private final List enableCloudwatchLogsExports;
private final List processorFeatures;
private final Boolean useDefaultProcessorFeatures;
private final Boolean deletionProtection;
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 String replicaMode;
private final Integer maxAllocatedStorage;
private final String customIamInstanceProfile;
private final String networkType;
private final Integer storageThroughput;
private final Boolean enableCustomerOwnedIp;
private final Integer allocatedStorage;
private final String sourceDBClusterIdentifier;
private final String sourceRegion;
private CreateDbInstanceReadReplicaRequest(BuilderImpl builder) {
super(builder);
this.dbInstanceIdentifier = builder.dbInstanceIdentifier;
this.sourceDBInstanceIdentifier = builder.sourceDBInstanceIdentifier;
this.dbInstanceClass = builder.dbInstanceClass;
this.availabilityZone = builder.availabilityZone;
this.port = builder.port;
this.multiAZ = builder.multiAZ;
this.autoMinorVersionUpgrade = builder.autoMinorVersionUpgrade;
this.iops = builder.iops;
this.optionGroupName = builder.optionGroupName;
this.dbParameterGroupName = builder.dbParameterGroupName;
this.publiclyAccessible = builder.publiclyAccessible;
this.tags = builder.tags;
this.dbSubnetGroupName = builder.dbSubnetGroupName;
this.vpcSecurityGroupIds = builder.vpcSecurityGroupIds;
this.storageType = builder.storageType;
this.copyTagsToSnapshot = builder.copyTagsToSnapshot;
this.monitoringInterval = builder.monitoringInterval;
this.monitoringRoleArn = builder.monitoringRoleArn;
this.kmsKeyId = builder.kmsKeyId;
this.preSignedUrl = builder.preSignedUrl;
this.enableIAMDatabaseAuthentication = builder.enableIAMDatabaseAuthentication;
this.enablePerformanceInsights = builder.enablePerformanceInsights;
this.performanceInsightsKMSKeyId = builder.performanceInsightsKMSKeyId;
this.performanceInsightsRetentionPeriod = builder.performanceInsightsRetentionPeriod;
this.enableCloudwatchLogsExports = builder.enableCloudwatchLogsExports;
this.processorFeatures = builder.processorFeatures;
this.useDefaultProcessorFeatures = builder.useDefaultProcessorFeatures;
this.deletionProtection = builder.deletionProtection;
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.replicaMode = builder.replicaMode;
this.maxAllocatedStorage = builder.maxAllocatedStorage;
this.customIamInstanceProfile = builder.customIamInstanceProfile;
this.networkType = builder.networkType;
this.storageThroughput = builder.storageThroughput;
this.enableCustomerOwnedIp = builder.enableCustomerOwnedIp;
this.allocatedStorage = builder.allocatedStorage;
this.sourceDBClusterIdentifier = builder.sourceDBClusterIdentifier;
this.sourceRegion = builder.sourceRegion;
}
/**
*
* The DB instance identifier of the read replica. This identifier is the unique key that identifies a DB instance.
* This parameter is stored as a lowercase string.
*
*
* @return The DB instance identifier of the read replica. This identifier is the unique key that identifies a DB
* instance. This parameter is stored as a lowercase string.
*/
public final String dbInstanceIdentifier() {
return dbInstanceIdentifier;
}
/**
*
* The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up
* to 15 read replicas, with the exception of Oracle and SQL Server, which can have up to five.
*
*
* Constraints:
*
*
* -
*
* Must be the identifier of an existing MySQL, MariaDB, Oracle, PostgreSQL, or SQL Server DB instance.
*
*
* -
*
* Can't be specified if the SourceDBClusterIdentifier
parameter is also specified.
*
*
* -
*
* For the limitations of Oracle read replicas, see Version and licensing considerations for RDS for Oracle replicas in the Amazon RDS User Guide.
*
*
* -
*
* For the limitations of SQL Server read replicas, see Read replica limitations with SQL Server in the Amazon RDS User Guide.
*
*
* -
*
* The specified DB instance must have automatic backups enabled, that is, its backup retention period must be
* greater than 0.
*
*
* -
*
* If the source DB instance is in the same Amazon Web Services Region as the read replica, specify a valid DB
* instance identifier.
*
*
* -
*
* If the source DB instance is in a different Amazon Web Services Region from the read replica, specify a valid DB
* instance ARN. For more information, see Constructing an ARN for Amazon RDS in the Amazon RDS User Guide. This doesn't apply to SQL Server or
* RDS Custom, which don't support cross-Region replicas.
*
*
*
*
* @return The identifier of the DB instance that will act as the source for the read replica. Each DB instance can
* have up to 15 read replicas, with the exception of Oracle and SQL Server, which can have up to five.
*
* Constraints:
*
*
* -
*
* Must be the identifier of an existing MySQL, MariaDB, Oracle, PostgreSQL, or SQL Server DB instance.
*
*
* -
*
* Can't be specified if the SourceDBClusterIdentifier
parameter is also specified.
*
*
* -
*
* For the limitations of Oracle read replicas, see Version and licensing considerations for RDS for Oracle replicas in the Amazon RDS User
* Guide.
*
*
* -
*
* For the limitations of SQL Server read replicas, see Read replica limitations with SQL Server in the Amazon RDS User Guide.
*
*
* -
*
* The specified DB instance must have automatic backups enabled, that is, its backup retention period must
* be greater than 0.
*
*
* -
*
* If the source DB instance is in the same Amazon Web Services Region as the read replica, specify a valid
* DB instance identifier.
*
*
* -
*
* If the source DB instance is in a different Amazon Web Services Region from the read replica, specify a
* valid DB instance ARN. For more information, see Constructing an ARN for Amazon RDS in the Amazon RDS User Guide. This doesn't apply to SQL
* Server or RDS Custom, which don't support cross-Region replicas.
*
*
*/
public final String sourceDBInstanceIdentifier() {
return sourceDBInstanceIdentifier;
}
/**
*
* The compute and memory capacity of the read replica, 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: Inherits from the source DB instance.
*
*
* @return The compute and memory capacity of the read replica, 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: Inherits from the source DB instance.
*/
public final String dbInstanceClass() {
return dbInstanceClass;
}
/**
*
* The Availability Zone (AZ) where the read replica will be created.
*
*
* Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.
*
*
* Example: us-east-1d
*
*
* @return The Availability Zone (AZ) where the read replica will be created.
*
* Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.
*
*
* Example: us-east-1d
*/
public final String availabilityZone() {
return availabilityZone;
}
/**
*
* The port number that the DB instance uses for connections.
*
*
* Default: Inherits from the source DB instance
*
*
* Valid Values: 1150-65535
*
*
* @return The port number that the DB instance uses for connections.
*
* Default: Inherits from the source DB instance
*
*
* Valid Values: 1150-65535
*/
public final Integer port() {
return port;
}
/**
*
* A value that indicates whether the read replica is in a Multi-AZ deployment.
*
*
* You can create a read replica as a Multi-AZ DB instance. RDS creates a standby of your replica in another
* Availability Zone for failover support for the replica. Creating your read replica as a Multi-AZ DB instance is
* independent of whether the source is a Multi-AZ DB instance or a Multi-AZ DB cluster.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return A value that indicates whether the read replica is in a Multi-AZ deployment.
*
* You can create a read replica as a Multi-AZ DB instance. RDS creates a standby of your replica in another
* Availability Zone for failover support for the replica. Creating your read replica as a Multi-AZ DB
* instance is independent of whether the source is a Multi-AZ DB instance or a Multi-AZ DB cluster.
*
*
* This setting doesn't apply to RDS Custom.
*/
public final Boolean multiAZ() {
return multiAZ;
}
/**
*
* A value that indicates whether minor engine upgrades are applied automatically to the read replica during the
* maintenance window.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Default: Inherits from the source DB instance
*
*
* @return A value that indicates whether minor engine upgrades are applied automatically to the read replica during
* the maintenance window.
*
* This setting doesn't apply to RDS Custom.
*
*
* Default: Inherits from the source DB instance
*/
public final Boolean autoMinorVersionUpgrade() {
return autoMinorVersionUpgrade;
}
/**
*
* The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB
* instance.
*
*
* @return The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB
* instance.
*/
public final Integer iops() {
return iops;
}
/**
*
* The option group the DB instance is associated with. If omitted, the option group associated with the source
* instance or cluster is used.
*
*
*
* For SQL Server, you must use the option group associated with the source.
*
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The option group the DB instance is associated with. If omitted, the option group associated with the
* source instance or cluster is used.
*
* For SQL Server, you must use the option group associated with the source.
*
*
*
* This setting doesn't apply to RDS Custom.
*/
public final String optionGroupName() {
return optionGroupName;
}
/**
*
* The name of the DB parameter group to associate with this DB instance.
*
*
* If you do not specify a value for DBParameterGroupName
, then Amazon RDS uses the
* DBParameterGroup
of source DB instance for a same Region read replica, or the default
* DBParameterGroup
for the specified DB engine for a cross-Region read replica.
*
*
* Specifying a parameter group for this operation is only supported for MySQL and Oracle DB instances. It isn't
* supported for RDS Custom.
*
*
* Constraints:
*
*
* -
*
* 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 Amazon RDS uses the
* DBParameterGroup
of source DB instance for a same Region read replica, or the default
* DBParameterGroup
for the specified DB engine for a cross-Region read replica.
*
*
* Specifying a parameter group for this operation is only supported for MySQL and Oracle DB instances. It
* isn't supported for RDS Custom.
*
*
* Constraints:
*
*
* -
*
* 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;
}
/**
*
* A value that indicates 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 A value that indicates 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;
}
/**
* 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;
}
/**
*
* Specifies a DB subnet group for the DB instance. The new DB instance is created in the VPC associated with the DB
* subnet group. If no DB subnet group is specified, then the new DB instance isn't created in a VPC.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DBSubnetGroup.
*
*
* -
*
* The specified DB subnet group must be in the same Amazon Web Services Region in which the operation is running.
*
*
* -
*
* All read replicas in one Amazon Web Services Region that are created from the same source DB instance must
* either:>
*
*
* -
*
* Specify DB subnet groups from the same VPC. All these read replicas are created in the same VPC.
*
*
* -
*
* Not specify a DB subnet group. All these read replicas are created outside of any VPC.
*
*
*
*
*
*
* Example: mydbsubnetgroup
*
*
* @return Specifies a DB subnet group for the DB instance. The new DB instance is created in the VPC associated
* with the DB subnet group. If no DB subnet group is specified, then the new DB instance isn't created in a
* VPC.
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DBSubnetGroup.
*
*
* -
*
* The specified DB subnet group must be in the same Amazon Web Services Region in which the operation is
* running.
*
*
* -
*
* All read replicas in one Amazon Web Services Region that are created from the same source DB instance
* must either:>
*
*
* -
*
* Specify DB subnet groups from the same VPC. All these read replicas are created in the same VPC.
*
*
* -
*
* Not specify a DB subnet group. All these read replicas are created outside of any VPC.
*
*
*
*
*
*
* Example: mydbsubnetgroup
*/
public final String dbSubnetGroupName() {
return dbSubnetGroupName;
}
/**
* 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 Amazon EC2 VPC security groups to associate with the read replica.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* 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 Amazon EC2 VPC security groups to associate with the read replica.
*
* This setting doesn't apply to RDS Custom.
*
*
* Default: The default EC2 VPC security group for the DB subnet group's VPC.
*/
public final List vpcSecurityGroupIds() {
return vpcSecurityGroupIds;
}
/**
*
* Specifies the storage type to be associated with the read replica.
*
*
* Valid values: gp2 | gp3 | io1 | standard
*
*
* If you specify io1
or gp3
, you must also include a value for the Iops
* parameter.
*
*
* Default: io1
if the Iops
parameter is specified, otherwise gp2
*
*
* @return Specifies the storage type to be associated with the read replica.
*
* Valid values: gp2 | gp3 | io1 | standard
*
*
* If you specify io1
or gp3
, you must also include a value for the
* Iops
parameter.
*
*
* Default: io1
if the Iops
parameter is specified, otherwise gp2
*/
public final String storageType() {
return storageType;
}
/**
*
* A value that indicates whether to copy all tags from the read replica to snapshots of the read replica. By
* default, tags are not copied.
*
*
* @return A value that indicates whether to copy all tags from the read replica to snapshots of the read replica.
* By default, tags are not copied.
*/
public final Boolean copyTagsToSnapshot() {
return copyTagsToSnapshot;
}
/**
*
* The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the read replica. To
* disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.
*
*
* If MonitoringRoleArn
is specified, then you must also set MonitoringInterval
to a value
* other than 0.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Valid Values: 0, 1, 5, 10, 15, 30, 60
*
*
* @return The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the read
* replica. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.
*
* If MonitoringRoleArn
is specified, then you must also set MonitoringInterval
to
* a value other than 0.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* Valid Values: 0, 1, 5, 10, 15, 30, 60
*/
public final Integer monitoringInterval() {
return monitoringInterval;
}
/**
*
* The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For
* example, arn:aws:iam:123456789012:role/emaccess
. For information on creating a monitoring role, go
* to To
* create an IAM role for Amazon RDS Enhanced Monitoring in the Amazon RDS User Guide.
*
*
* If MonitoringInterval
is set to a value other than 0, then you must supply a
* MonitoringRoleArn
value.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs.
* For example, arn:aws:iam:123456789012:role/emaccess
. For information on creating a
* monitoring role, go to To create an IAM role for Amazon RDS Enhanced Monitoring in the Amazon RDS User Guide.
*
* If MonitoringInterval
is set to a value other than 0, then you must supply a
* MonitoringRoleArn
value.
*
*
* This setting doesn't apply to RDS Custom.
*/
public final String monitoringRoleArn() {
return monitoringRoleArn;
}
/**
*
* The Amazon Web Services KMS key identifier for an encrypted read replica.
*
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
*
*
* If you create an encrypted read replica in the same Amazon Web Services Region as the source DB instance or
* Multi-AZ DB cluster, don't specify a value for this parameter. A read replica in the same Amazon Web Services
* Region is always encrypted with the same KMS key as the source DB instance or cluster.
*
*
* If you create an encrypted read replica in a different Amazon Web Services Region, then you must specify a KMS
* key identifier for the destination Amazon Web Services Region. KMS keys are specific to the Amazon Web Services
* Region that they are created in, and you can't use KMS keys from one Amazon Web Services Region in another Amazon
* Web Services Region.
*
*
* You can't create an encrypted read replica from an unencrypted DB instance or Multi-AZ DB cluster.
*
*
* This setting doesn't apply to RDS Custom, which uses the same KMS key as the primary replica.
*
*
* @return The Amazon Web Services KMS key identifier for an encrypted read replica.
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS
* key.
*
*
* If you create an encrypted read replica in the same Amazon Web Services Region as the source DB instance
* or Multi-AZ DB cluster, don't specify a value for this parameter. A read replica in the same Amazon Web
* Services Region is always encrypted with the same KMS key as the source DB instance or cluster.
*
*
* If you create an encrypted read replica in a different Amazon Web Services Region, then you must specify
* a KMS key identifier for the destination Amazon Web Services Region. KMS keys are specific to the Amazon
* Web Services Region that they are created in, and you can't use KMS keys from one Amazon Web Services
* Region in another Amazon Web Services Region.
*
*
* You can't create an encrypted read replica from an unencrypted DB instance or Multi-AZ DB cluster.
*
*
* This setting doesn't apply to RDS Custom, which uses the same KMS key as the primary replica.
*/
public final String kmsKeyId() {
return kmsKeyId;
}
/**
*
* When you are creating a read replica from one Amazon Web Services GovCloud (US) Region to another or from one
* China Amazon Web Services Region to another, the URL that contains a Signature Version 4 signed request for the
* CreateDBInstanceReadReplica
API operation in the source Amazon Web Services Region that contains the
* source DB instance.
*
*
* This setting applies only to Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions.
* It's ignored in other Amazon Web Services Regions.
*
*
* This setting applies only when replicating from a source DB instance. Source DB clusters aren't supported
* in Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions.
*
*
* You must specify this parameter when you create an encrypted read replica from another Amazon Web Services Region
* by using the Amazon RDS API. Don't specify PreSignedUrl
when you are creating an encrypted read
* replica in the same Amazon Web Services Region.
*
*
* The presigned URL must be a valid request for the CreateDBInstanceReadReplica
API operation that can
* run in the source Amazon Web Services Region that contains the encrypted source DB instance. The presigned URL
* request must contain the following parameter values:
*
*
* -
*
* DestinationRegion
- The Amazon Web Services Region that the encrypted read replica is created in.
* This Amazon Web Services Region is the same one where the CreateDBInstanceReadReplica
operation is
* called that contains this presigned URL.
*
*
* For example, if you create an encrypted DB instance in the us-west-1 Amazon Web Services Region, from a source DB
* instance in the us-east-2 Amazon Web Services Region, then you call the CreateDBInstanceReadReplica
* operation in the us-east-1 Amazon Web Services Region and provide a presigned URL that contains a call to the
* CreateDBInstanceReadReplica
operation in the us-west-2 Amazon Web Services Region. For this example,
* the DestinationRegion
in the presigned URL must be set to the us-east-1 Amazon Web Services Region.
*
*
* -
*
* KmsKeyId
- The KMS key identifier for the key to use to encrypt the read replica in the destination
* Amazon Web Services Region. This is the same identifier for both the CreateDBInstanceReadReplica
* operation that is called in the destination Amazon Web Services Region, and the operation contained in the
* presigned URL.
*
*
* -
*
* SourceDBInstanceIdentifier
- The DB instance identifier for the encrypted DB instance to be
* replicated. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services
* Region. For example, if you are creating an encrypted read replica from a DB instance in the us-west-2 Amazon Web
* Services Region, then your SourceDBInstanceIdentifier
looks like the following example:
* arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115
.
*
*
*
*
* To learn how to generate a Signature Version 4 signed request, see Authenticating Requests:
* Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing
* Process.
*
*
*
* If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion
(or
* --source-region
for the CLI) instead of specifying PreSignedUrl
manually. Specifying
* SourceRegion
autogenerates a presigned URL that is a valid request for the operation that can run in
* the source Amazon Web Services Region.
*
*
* SourceRegion
isn't supported for SQL Server, because Amazon RDS for SQL Server doesn't support
* cross-Region read replicas.
*
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return When you are creating a read replica from one Amazon Web Services GovCloud (US) Region to another or from
* one China Amazon Web Services Region to another, the URL that contains a Signature Version 4 signed
* request for the CreateDBInstanceReadReplica
API operation in the source Amazon Web Services
* Region that contains the source DB instance.
*
* This setting applies only to Amazon Web Services GovCloud (US) Regions and China Amazon Web Services
* Regions. It's ignored in other Amazon Web Services Regions.
*
*
* This setting applies only when replicating from a source DB instance. Source DB clusters aren't
* supported in Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions.
*
*
* You must specify this parameter when you create an encrypted read replica from another Amazon Web
* Services Region by using the Amazon RDS API. Don't specify PreSignedUrl
when you are
* creating an encrypted read replica in the same Amazon Web Services Region.
*
*
* The presigned URL must be a valid request for the CreateDBInstanceReadReplica
API operation
* that can run in the source Amazon Web Services Region that contains the encrypted source DB instance. The
* presigned URL request must contain the following parameter values:
*
*
* -
*
* DestinationRegion
- The Amazon Web Services Region that the encrypted read replica is
* created in. This Amazon Web Services Region is the same one where the
* CreateDBInstanceReadReplica
operation is called that contains this presigned URL.
*
*
* For example, if you create an encrypted DB instance in the us-west-1 Amazon Web Services Region, from a
* source DB instance in the us-east-2 Amazon Web Services Region, then you call the
* CreateDBInstanceReadReplica
operation in the us-east-1 Amazon Web Services Region and
* provide a presigned URL that contains a call to the CreateDBInstanceReadReplica
operation in
* the us-west-2 Amazon Web Services Region. For this example, the DestinationRegion
in the
* presigned URL must be set to the us-east-1 Amazon Web Services Region.
*
*
* -
*
* KmsKeyId
- The KMS key identifier for the key to use to encrypt the read replica in the
* destination Amazon Web Services Region. This is the same identifier for both the
* CreateDBInstanceReadReplica
operation that is called in the destination Amazon Web Services
* Region, and the operation contained in the presigned URL.
*
*
* -
*
* SourceDBInstanceIdentifier
- The DB instance identifier for the encrypted DB instance to be
* replicated. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web
* Services Region. For example, if you are creating an encrypted read replica from a DB instance in the
* us-west-2 Amazon Web Services Region, then your SourceDBInstanceIdentifier
looks like the
* following example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115
.
*
*
*
*
* To learn how to generate a Signature Version 4 signed request, see Authenticating
* Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing
* Process.
*
*
*
* If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion
* (or --source-region
for the CLI) instead of specifying PreSignedUrl
manually.
* Specifying SourceRegion
autogenerates a presigned URL that is a valid request for the
* operation that can run in the source Amazon Web Services Region.
*
*
* SourceRegion
isn't supported for SQL Server, because Amazon RDS for SQL Server doesn't
* support cross-Region read replicas.
*
*
*
* This setting doesn't apply to RDS Custom.
*/
public final String preSignedUrl() {
return preSignedUrl;
}
/**
*
* A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management (IAM)
* accounts to database accounts. By default, mapping isn't enabled.
*
*
* For more information about IAM database authentication, see IAM Database
* Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management
* (IAM) accounts to database accounts. By default, mapping isn't enabled.
*
* For more information about IAM database authentication, see IAM Database
* Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*/
public final Boolean enableIAMDatabaseAuthentication() {
return enableIAMDatabaseAuthentication;
}
/**
*
* A value that indicates whether to enable Performance Insights for the read replica.
*
*
* For more information, see Using Amazon Performance
* Insights in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return A value that indicates whether to enable Performance Insights for the read replica.
*
* For more information, see Using Amazon
* Performance Insights in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*/
public final Boolean enablePerformanceInsights() {
return enablePerformanceInsights;
}
/**
*
* The Amazon Web Services KMS key identifier for encryption of Performance Insights data.
*
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
*
*
* If you do not specify a value for PerformanceInsightsKMSKeyId
, then Amazon RDS uses your default KMS
* key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a
* different default KMS key for each Amazon Web Services Region.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The Amazon Web Services KMS key identifier for encryption of Performance Insights data.
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS
* key.
*
*
* If you do not specify a value for PerformanceInsightsKMSKeyId
, then Amazon RDS uses your
* default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web
* Services account has a different default KMS key for each Amazon Web Services Region.
*
*
* This setting doesn't apply to RDS Custom.
*/
public final String performanceInsightsKMSKeyId() {
return performanceInsightsKMSKeyId;
}
/**
*
* The number of days to retain Performance Insights data. The default is 7 days. The following values are valid:
*
*
* -
*
* 7
*
*
* -
*
* month * 31, where month is a number of months from 1-23
*
*
* -
*
* 731
*
*
*
*
* For example, the following values are valid:
*
*
* -
*
* 93 (3 months * 31)
*
*
* -
*
* 341 (11 months * 31)
*
*
* -
*
* 589 (19 months * 31)
*
*
* -
*
* 731
*
*
*
*
* If you specify a retention period such as 94, which isn't a valid value, RDS issues an error.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The number of days to retain Performance Insights data. The default is 7 days. The following values are
* valid:
*
* -
*
* 7
*
*
* -
*
* month * 31, where month is a number of months from 1-23
*
*
* -
*
* 731
*
*
*
*
* For example, the following values are valid:
*
*
* -
*
* 93 (3 months * 31)
*
*
* -
*
* 341 (11 months * 31)
*
*
* -
*
* 589 (19 months * 31)
*
*
* -
*
* 731
*
*
*
*
* If you specify a retention period such as 94, which isn't a valid value, RDS issues an error.
*
*
* This setting doesn't apply to RDS Custom.
*/
public final Integer performanceInsightsRetentionPeriod() {
return performanceInsightsRetentionPeriod;
}
/**
* 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 new 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 new 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;
}
/**
*
* A value that indicates whether the DB instance class of the DB instance uses its default processor features.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return A value that indicates 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;
}
/**
*
* A value that indicates 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 A value that indicates 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 Active Directory directory ID to create the DB instance in. Currently, only MySQL, Microsoft SQL Server,
* Oracle, and PostgreSQL DB instances can be created in an Active Directory Domain.
*
*
* For more information, see Kerberos
* Authentication in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The Active Directory directory ID to create the DB instance in. Currently, only MySQL, Microsoft SQL
* Server, Oracle, and PostgreSQL DB instances can be created in an Active Directory Domain.
*
* For more information, see Kerberos
* Authentication in the Amazon RDS User Guide.
*
*
* This setting doesn't apply to RDS Custom.
*/
public final String domain() {
return domain;
}
/**
*
* The name of the IAM role to be used when making API calls to the Directory Service.
*
*
* This setting doesn't apply to RDS Custom.
*
*
* @return The name of the IAM role to be used when making API calls to the Directory Service.
*
* This setting doesn't apply to RDS Custom.
*/
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.
*
*
* 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.
*
* 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;
}
/**
*
* The open mode of the replica database: mounted or read-only.
*
*
*
* This parameter is only supported for Oracle DB instances.
*
*
*
* Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is
* cross-Region disaster recovery. The primary database doesn't use Active Data Guard to transmit information to the
* mounted replica. Because it doesn't accept user connections, a mounted replica can't serve a read-only workload.
*
*
* You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more
* information, see Working with Oracle Read
* Replicas for Amazon RDS in the Amazon RDS User Guide.
*
*
* For RDS Custom, you must specify this parameter and set it to mounted
. The value won't be set by
* default. After replica creation, you can manage the open mode manually.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #replicaMode} will
* return {@link ReplicaMode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #replicaModeAsString}.
*
*
* @return The open mode of the replica database: mounted or read-only.
*
* This parameter is only supported for Oracle DB instances.
*
*
*
* Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted
* replicas is cross-Region disaster recovery. The primary database doesn't use Active Data Guard to
* transmit information to the mounted replica. Because it doesn't accept user connections, a mounted
* replica can't serve a read-only workload.
*
*
* You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For
* more information, see Working with
* Oracle Read Replicas for Amazon RDS in the Amazon RDS User Guide.
*
*
* For RDS Custom, you must specify this parameter and set it to mounted
. The value won't be
* set by default. After replica creation, you can manage the open mode manually.
* @see ReplicaMode
*/
public final ReplicaMode replicaMode() {
return ReplicaMode.fromValue(replicaMode);
}
/**
*
* The open mode of the replica database: mounted or read-only.
*
*
*
* This parameter is only supported for Oracle DB instances.
*
*
*
* Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is
* cross-Region disaster recovery. The primary database doesn't use Active Data Guard to transmit information to the
* mounted replica. Because it doesn't accept user connections, a mounted replica can't serve a read-only workload.
*
*
* You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more
* information, see Working with Oracle Read
* Replicas for Amazon RDS in the Amazon RDS User Guide.
*
*
* For RDS Custom, you must specify this parameter and set it to mounted
. The value won't be set by
* default. After replica creation, you can manage the open mode manually.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #replicaMode} will
* return {@link ReplicaMode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #replicaModeAsString}.
*
*
* @return The open mode of the replica database: mounted or read-only.
*
* This parameter is only supported for Oracle DB instances.
*
*
*
* Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted
* replicas is cross-Region disaster recovery. The primary database doesn't use Active Data Guard to
* transmit information to the mounted replica. Because it doesn't accept user connections, a mounted
* replica can't serve a read-only workload.
*
*
* You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For
* more information, see Working with
* Oracle Read Replicas for Amazon RDS in the Amazon RDS User Guide.
*
*
* For RDS Custom, you must specify this parameter and set it to mounted
. The value won't be
* set by default. After replica creation, you can manage the open mode manually.
* @see ReplicaMode
*/
public final String replicaModeAsString() {
return replicaMode;
}
/**
*
* 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.
*
*
* @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.
*/
public final Integer maxAllocatedStorage() {
return maxAllocatedStorage;
}
/**
*
* 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 network type of the DB instance.
*
*
* Valid values:
*
*
* -
*
* IPV4
*
*
* -
*
* DUAL
*
*
*
*
* The network type is determined by the DBSubnetGroup
specified for read replica. 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.
*
*
* @return The network type of the DB instance.
*
* Valid values:
*
*
* -
*
* IPV4
*
*
* -
*
* DUAL
*
*
*
*
* The network type is determined by the DBSubnetGroup
specified for read replica. 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.
*/
public final String networkType() {
return networkType;
}
/**
*
* Specifies the storage throughput value for the read replica.
*
*
* This setting doesn't apply to RDS Custom or Amazon Aurora.
*
*
* @return Specifies the storage throughput value for the read replica.
*
* This setting doesn't apply to RDS Custom or Amazon Aurora.
*/
public final Integer storageThroughput() {
return storageThroughput;
}
/**
*
* A value that indicates whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts read replica.
*
*
* 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 read replica
* from outside of its virtual private cloud (VPC) on your local network.
*
*
* 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 A value that indicates whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts read
* replica.
*
* 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 read
* replica from outside of its virtual private cloud (VPC) on your local network.
*
*
* 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 amount of storage (in gibibytes) to allocate initially for the read replica. Follow the allocation rules
* specified in CreateDBInstance
.
*
*
*
* Be sure to allocate enough storage for your read replica so that the create operation can succeed. You can also
* allocate additional storage for future growth.
*
*
*
* @return The amount of storage (in gibibytes) to allocate initially for the read replica. Follow the allocation
* rules specified in CreateDBInstance
.
*
* Be sure to allocate enough storage for your read replica so that the create operation can succeed. You
* can also allocate additional storage for future growth.
*
*/
public final Integer allocatedStorage() {
return allocatedStorage;
}
/**
*
* The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can
* have up to 15 read replicas.
*
*
* Constraints:
*
*
* -
*
* Must be the identifier of an existing Multi-AZ DB cluster.
*
*
* -
*
* Can't be specified if the SourceDBInstanceIdentifier
parameter is also specified.
*
*
* -
*
* The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be
* greater than 0.
*
*
* -
*
* The source DB cluster must be in the same Amazon Web Services Region as the read replica. Cross-Region
* replication isn't supported.
*
*
*
*
* @return The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB
* cluster can have up to 15 read replicas.
*
* Constraints:
*
*
* -
*
* Must be the identifier of an existing Multi-AZ DB cluster.
*
*
* -
*
* Can't be specified if the SourceDBInstanceIdentifier
parameter is also specified.
*
*
* -
*
* The specified DB cluster must have automatic backups enabled, that is, its backup retention period must
* be greater than 0.
*
*
* -
*
* The source DB cluster must be in the same Amazon Web Services Region as the read replica. Cross-Region
* replication isn't supported.
*
*
*/
public final String sourceDBClusterIdentifier() {
return sourceDBClusterIdentifier;
}
/**
* If PreSignedUrl is not specified, this is the region where the source snapshot is located. A PreSignedUrl will be
* generated automatically by the SDK.
*
* @return If PreSignedUrl is not specified, this is the region where the source snapshot is located. A PreSignedUrl
* will be generated automatically by the SDK.
*/
public final String sourceRegion() {
return sourceRegion;
}
@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(dbInstanceIdentifier());
hashCode = 31 * hashCode + Objects.hashCode(sourceDBInstanceIdentifier());
hashCode = 31 * hashCode + Objects.hashCode(dbInstanceClass());
hashCode = 31 * hashCode + Objects.hashCode(availabilityZone());
hashCode = 31 * hashCode + Objects.hashCode(port());
hashCode = 31 * hashCode + Objects.hashCode(multiAZ());
hashCode = 31 * hashCode + Objects.hashCode(autoMinorVersionUpgrade());
hashCode = 31 * hashCode + Objects.hashCode(iops());
hashCode = 31 * hashCode + Objects.hashCode(optionGroupName());
hashCode = 31 * hashCode + Objects.hashCode(dbParameterGroupName());
hashCode = 31 * hashCode + Objects.hashCode(publiclyAccessible());
hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
hashCode = 31 * hashCode + Objects.hashCode(dbSubnetGroupName());
hashCode = 31 * hashCode + Objects.hashCode(hasVpcSecurityGroupIds() ? vpcSecurityGroupIds() : null);
hashCode = 31 * hashCode + Objects.hashCode(storageType());
hashCode = 31 * hashCode + Objects.hashCode(copyTagsToSnapshot());
hashCode = 31 * hashCode + Objects.hashCode(monitoringInterval());
hashCode = 31 * hashCode + Objects.hashCode(monitoringRoleArn());
hashCode = 31 * hashCode + Objects.hashCode(kmsKeyId());
hashCode = 31 * hashCode + Objects.hashCode(preSignedUrl());
hashCode = 31 * hashCode + Objects.hashCode(enableIAMDatabaseAuthentication());
hashCode = 31 * hashCode + Objects.hashCode(enablePerformanceInsights());
hashCode = 31 * hashCode + Objects.hashCode(performanceInsightsKMSKeyId());
hashCode = 31 * hashCode + Objects.hashCode(performanceInsightsRetentionPeriod());
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(deletionProtection());
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(replicaModeAsString());
hashCode = 31 * hashCode + Objects.hashCode(maxAllocatedStorage());
hashCode = 31 * hashCode + Objects.hashCode(customIamInstanceProfile());
hashCode = 31 * hashCode + Objects.hashCode(networkType());
hashCode = 31 * hashCode + Objects.hashCode(storageThroughput());
hashCode = 31 * hashCode + Objects.hashCode(enableCustomerOwnedIp());
hashCode = 31 * hashCode + Objects.hashCode(allocatedStorage());
hashCode = 31 * hashCode + Objects.hashCode(sourceDBClusterIdentifier());
hashCode = 31 * hashCode + Objects.hashCode(sourceRegion());
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 CreateDbInstanceReadReplicaRequest)) {
return false;
}
CreateDbInstanceReadReplicaRequest other = (CreateDbInstanceReadReplicaRequest) obj;
return Objects.equals(dbInstanceIdentifier(), other.dbInstanceIdentifier())
&& Objects.equals(sourceDBInstanceIdentifier(), other.sourceDBInstanceIdentifier())
&& Objects.equals(dbInstanceClass(), other.dbInstanceClass())
&& Objects.equals(availabilityZone(), other.availabilityZone()) && Objects.equals(port(), other.port())
&& Objects.equals(multiAZ(), other.multiAZ())
&& Objects.equals(autoMinorVersionUpgrade(), other.autoMinorVersionUpgrade())
&& Objects.equals(iops(), other.iops()) && Objects.equals(optionGroupName(), other.optionGroupName())
&& Objects.equals(dbParameterGroupName(), other.dbParameterGroupName())
&& Objects.equals(publiclyAccessible(), other.publiclyAccessible()) && hasTags() == other.hasTags()
&& Objects.equals(tags(), other.tags()) && Objects.equals(dbSubnetGroupName(), other.dbSubnetGroupName())
&& hasVpcSecurityGroupIds() == other.hasVpcSecurityGroupIds()
&& Objects.equals(vpcSecurityGroupIds(), other.vpcSecurityGroupIds())
&& Objects.equals(storageType(), other.storageType())
&& Objects.equals(copyTagsToSnapshot(), other.copyTagsToSnapshot())
&& Objects.equals(monitoringInterval(), other.monitoringInterval())
&& Objects.equals(monitoringRoleArn(), other.monitoringRoleArn()) && Objects.equals(kmsKeyId(), other.kmsKeyId())
&& Objects.equals(preSignedUrl(), other.preSignedUrl())
&& Objects.equals(enableIAMDatabaseAuthentication(), other.enableIAMDatabaseAuthentication())
&& Objects.equals(enablePerformanceInsights(), other.enablePerformanceInsights())
&& Objects.equals(performanceInsightsKMSKeyId(), other.performanceInsightsKMSKeyId())
&& Objects.equals(performanceInsightsRetentionPeriod(), other.performanceInsightsRetentionPeriod())
&& hasEnableCloudwatchLogsExports() == other.hasEnableCloudwatchLogsExports()
&& Objects.equals(enableCloudwatchLogsExports(), other.enableCloudwatchLogsExports())
&& hasProcessorFeatures() == other.hasProcessorFeatures()
&& Objects.equals(processorFeatures(), other.processorFeatures())
&& Objects.equals(useDefaultProcessorFeatures(), other.useDefaultProcessorFeatures())
&& Objects.equals(deletionProtection(), other.deletionProtection()) && 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(replicaModeAsString(), other.replicaModeAsString())
&& Objects.equals(maxAllocatedStorage(), other.maxAllocatedStorage())
&& Objects.equals(customIamInstanceProfile(), other.customIamInstanceProfile())
&& Objects.equals(networkType(), other.networkType())
&& Objects.equals(storageThroughput(), other.storageThroughput())
&& Objects.equals(enableCustomerOwnedIp(), other.enableCustomerOwnedIp())
&& Objects.equals(allocatedStorage(), other.allocatedStorage())
&& Objects.equals(sourceDBClusterIdentifier(), other.sourceDBClusterIdentifier())
&& Objects.equals(sourceRegion(), other.sourceRegion());
}
/**
* 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("CreateDbInstanceReadReplicaRequest").add("DBInstanceIdentifier", dbInstanceIdentifier())
.add("SourceDBInstanceIdentifier", sourceDBInstanceIdentifier()).add("DBInstanceClass", dbInstanceClass())
.add("AvailabilityZone", availabilityZone()).add("Port", port()).add("MultiAZ", multiAZ())
.add("AutoMinorVersionUpgrade", autoMinorVersionUpgrade()).add("Iops", iops())
.add("OptionGroupName", optionGroupName()).add("DBParameterGroupName", dbParameterGroupName())
.add("PubliclyAccessible", publiclyAccessible()).add("Tags", hasTags() ? tags() : null)
.add("DBSubnetGroupName", dbSubnetGroupName())
.add("VpcSecurityGroupIds", hasVpcSecurityGroupIds() ? vpcSecurityGroupIds() : null)
.add("StorageType", storageType()).add("CopyTagsToSnapshot", copyTagsToSnapshot())
.add("MonitoringInterval", monitoringInterval()).add("MonitoringRoleArn", monitoringRoleArn())
.add("KmsKeyId", kmsKeyId()).add("PreSignedUrl", preSignedUrl())
.add("EnableIAMDatabaseAuthentication", enableIAMDatabaseAuthentication())
.add("EnablePerformanceInsights", enablePerformanceInsights())
.add("PerformanceInsightsKMSKeyId", performanceInsightsKMSKeyId())
.add("PerformanceInsightsRetentionPeriod", performanceInsightsRetentionPeriod())
.add("EnableCloudwatchLogsExports", hasEnableCloudwatchLogsExports() ? enableCloudwatchLogsExports() : null)
.add("ProcessorFeatures", hasProcessorFeatures() ? processorFeatures() : null)
.add("UseDefaultProcessorFeatures", useDefaultProcessorFeatures())
.add("DeletionProtection", deletionProtection()).add("Domain", domain())
.add("DomainIAMRoleName", domainIAMRoleName()).add("DomainFqdn", domainFqdn()).add("DomainOu", domainOu())
.add("DomainAuthSecretArn", domainAuthSecretArn()).add("DomainDnsIps", hasDomainDnsIps() ? domainDnsIps() : null)
.add("ReplicaMode", replicaModeAsString()).add("MaxAllocatedStorage", maxAllocatedStorage())
.add("CustomIamInstanceProfile", customIamInstanceProfile()).add("NetworkType", networkType())
.add("StorageThroughput", storageThroughput()).add("EnableCustomerOwnedIp", enableCustomerOwnedIp())
.add("AllocatedStorage", allocatedStorage()).add("SourceDBClusterIdentifier", sourceDBClusterIdentifier())
.add("SourceRegion", sourceRegion()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "DBInstanceIdentifier":
return Optional.ofNullable(clazz.cast(dbInstanceIdentifier()));
case "SourceDBInstanceIdentifier":
return Optional.ofNullable(clazz.cast(sourceDBInstanceIdentifier()));
case "DBInstanceClass":
return Optional.ofNullable(clazz.cast(dbInstanceClass()));
case "AvailabilityZone":
return Optional.ofNullable(clazz.cast(availabilityZone()));
case "Port":
return Optional.ofNullable(clazz.cast(port()));
case "MultiAZ":
return Optional.ofNullable(clazz.cast(multiAZ()));
case "AutoMinorVersionUpgrade":
return Optional.ofNullable(clazz.cast(autoMinorVersionUpgrade()));
case "Iops":
return Optional.ofNullable(clazz.cast(iops()));
case "OptionGroupName":
return Optional.ofNullable(clazz.cast(optionGroupName()));
case "DBParameterGroupName":
return Optional.ofNullable(clazz.cast(dbParameterGroupName()));
case "PubliclyAccessible":
return Optional.ofNullable(clazz.cast(publiclyAccessible()));
case "Tags":
return Optional.ofNullable(clazz.cast(tags()));
case "DBSubnetGroupName":
return Optional.ofNullable(clazz.cast(dbSubnetGroupName()));
case "VpcSecurityGroupIds":
return Optional.ofNullable(clazz.cast(vpcSecurityGroupIds()));
case "StorageType":
return Optional.ofNullable(clazz.cast(storageType()));
case "CopyTagsToSnapshot":
return Optional.ofNullable(clazz.cast(copyTagsToSnapshot()));
case "MonitoringInterval":
return Optional.ofNullable(clazz.cast(monitoringInterval()));
case "MonitoringRoleArn":
return Optional.ofNullable(clazz.cast(monitoringRoleArn()));
case "KmsKeyId":
return Optional.ofNullable(clazz.cast(kmsKeyId()));
case "PreSignedUrl":
return Optional.ofNullable(clazz.cast(preSignedUrl()));
case "EnableIAMDatabaseAuthentication":
return Optional.ofNullable(clazz.cast(enableIAMDatabaseAuthentication()));
case "EnablePerformanceInsights":
return Optional.ofNullable(clazz.cast(enablePerformanceInsights()));
case "PerformanceInsightsKMSKeyId":
return Optional.ofNullable(clazz.cast(performanceInsightsKMSKeyId()));
case "PerformanceInsightsRetentionPeriod":
return Optional.ofNullable(clazz.cast(performanceInsightsRetentionPeriod()));
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 "DeletionProtection":
return Optional.ofNullable(clazz.cast(deletionProtection()));
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 "ReplicaMode":
return Optional.ofNullable(clazz.cast(replicaModeAsString()));
case "MaxAllocatedStorage":
return Optional.ofNullable(clazz.cast(maxAllocatedStorage()));
case "CustomIamInstanceProfile":
return Optional.ofNullable(clazz.cast(customIamInstanceProfile()));
case "NetworkType":
return Optional.ofNullable(clazz.cast(networkType()));
case "StorageThroughput":
return Optional.ofNullable(clazz.cast(storageThroughput()));
case "EnableCustomerOwnedIp":
return Optional.ofNullable(clazz.cast(enableCustomerOwnedIp()));
case "AllocatedStorage":
return Optional.ofNullable(clazz.cast(allocatedStorage()));
case "SourceDBClusterIdentifier":
return Optional.ofNullable(clazz.cast(sourceDBClusterIdentifier()));
case "SourceRegion":
return Optional.ofNullable(clazz.cast(sourceRegion()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function