All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.rds.model.OrderableDBInstanceOption Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon RDS module holds the client classes that are used for communicating with Amazon Relational Database Service

There is a newer version: 2.29.15
Show newest version
/*
 * 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.io.Serializable;
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.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;

/**
 * 

* Contains a list of available options for a DB instance. *

*

* This data type is used as a response element in the DescribeOrderableDBInstanceOptions action. *

*/ @Generated("software.amazon.awssdk:codegen") public final class OrderableDBInstanceOption implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField ENGINE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Engine") .getter(getter(OrderableDBInstanceOption::engine)).setter(setter(Builder::engine)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Engine").build()).build(); private static final SdkField ENGINE_VERSION_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("EngineVersion").getter(getter(OrderableDBInstanceOption::engineVersion)) .setter(setter(Builder::engineVersion)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EngineVersion").build()).build(); private static final SdkField DB_INSTANCE_CLASS_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("DBInstanceClass").getter(getter(OrderableDBInstanceOption::dbInstanceClass)) .setter(setter(Builder::dbInstanceClass)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBInstanceClass").build()).build(); private static final SdkField LICENSE_MODEL_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("LicenseModel").getter(getter(OrderableDBInstanceOption::licenseModel)) .setter(setter(Builder::licenseModel)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LicenseModel").build()).build(); private static final SdkField AVAILABILITY_ZONE_GROUP_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("AvailabilityZoneGroup").getter(getter(OrderableDBInstanceOption::availabilityZoneGroup)) .setter(setter(Builder::availabilityZoneGroup)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AvailabilityZoneGroup").build()) .build(); private static final SdkField> AVAILABILITY_ZONES_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("AvailabilityZones") .getter(getter(OrderableDBInstanceOption::availabilityZones)) .setter(setter(Builder::availabilityZones)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AvailabilityZones").build(), ListTrait .builder() .memberLocationName("AvailabilityZone") .memberFieldInfo( SdkField. builder(MarshallingType.SDK_POJO) .constructor(AvailabilityZone::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("AvailabilityZone").build()).build()).build()).build(); private static final SdkField MULTI_AZ_CAPABLE_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .memberName("MultiAZCapable").getter(getter(OrderableDBInstanceOption::multiAZCapable)) .setter(setter(Builder::multiAZCapable)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MultiAZCapable").build()).build(); private static final SdkField READ_REPLICA_CAPABLE_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .memberName("ReadReplicaCapable").getter(getter(OrderableDBInstanceOption::readReplicaCapable)) .setter(setter(Builder::readReplicaCapable)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ReadReplicaCapable").build()) .build(); private static final SdkField VPC_FIELD = SdkField. builder(MarshallingType.BOOLEAN).memberName("Vpc") .getter(getter(OrderableDBInstanceOption::vpc)).setter(setter(Builder::vpc)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Vpc").build()).build(); private static final SdkField SUPPORTS_STORAGE_ENCRYPTION_FIELD = SdkField . builder(MarshallingType.BOOLEAN).memberName("SupportsStorageEncryption") .getter(getter(OrderableDBInstanceOption::supportsStorageEncryption)) .setter(setter(Builder::supportsStorageEncryption)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsStorageEncryption").build()) .build(); private static final SdkField STORAGE_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("StorageType").getter(getter(OrderableDBInstanceOption::storageType)) .setter(setter(Builder::storageType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StorageType").build()).build(); private static final SdkField SUPPORTS_IOPS_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .memberName("SupportsIops").getter(getter(OrderableDBInstanceOption::supportsIops)) .setter(setter(Builder::supportsIops)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsIops").build()).build(); private static final SdkField SUPPORTS_ENHANCED_MONITORING_FIELD = SdkField . builder(MarshallingType.BOOLEAN) .memberName("SupportsEnhancedMonitoring") .getter(getter(OrderableDBInstanceOption::supportsEnhancedMonitoring)) .setter(setter(Builder::supportsEnhancedMonitoring)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsEnhancedMonitoring").build()) .build(); private static final SdkField SUPPORTS_IAM_DATABASE_AUTHENTICATION_FIELD = SdkField . builder(MarshallingType.BOOLEAN) .memberName("SupportsIAMDatabaseAuthentication") .getter(getter(OrderableDBInstanceOption::supportsIAMDatabaseAuthentication)) .setter(setter(Builder::supportsIAMDatabaseAuthentication)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsIAMDatabaseAuthentication") .build()).build(); private static final SdkField SUPPORTS_PERFORMANCE_INSIGHTS_FIELD = SdkField . builder(MarshallingType.BOOLEAN) .memberName("SupportsPerformanceInsights") .getter(getter(OrderableDBInstanceOption::supportsPerformanceInsights)) .setter(setter(Builder::supportsPerformanceInsights)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsPerformanceInsights") .build()).build(); private static final SdkField MIN_STORAGE_SIZE_FIELD = SdkField. builder(MarshallingType.INTEGER) .memberName("MinStorageSize").getter(getter(OrderableDBInstanceOption::minStorageSize)) .setter(setter(Builder::minStorageSize)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MinStorageSize").build()).build(); private static final SdkField MAX_STORAGE_SIZE_FIELD = SdkField. builder(MarshallingType.INTEGER) .memberName("MaxStorageSize").getter(getter(OrderableDBInstanceOption::maxStorageSize)) .setter(setter(Builder::maxStorageSize)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxStorageSize").build()).build(); private static final SdkField MIN_IOPS_PER_DB_INSTANCE_FIELD = SdkField. builder(MarshallingType.INTEGER) .memberName("MinIopsPerDbInstance").getter(getter(OrderableDBInstanceOption::minIopsPerDbInstance)) .setter(setter(Builder::minIopsPerDbInstance)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MinIopsPerDbInstance").build()) .build(); private static final SdkField MAX_IOPS_PER_DB_INSTANCE_FIELD = SdkField. builder(MarshallingType.INTEGER) .memberName("MaxIopsPerDbInstance").getter(getter(OrderableDBInstanceOption::maxIopsPerDbInstance)) .setter(setter(Builder::maxIopsPerDbInstance)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxIopsPerDbInstance").build()) .build(); private static final SdkField MIN_IOPS_PER_GIB_FIELD = SdkField. builder(MarshallingType.DOUBLE) .memberName("MinIopsPerGib").getter(getter(OrderableDBInstanceOption::minIopsPerGib)) .setter(setter(Builder::minIopsPerGib)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MinIopsPerGib").build()).build(); private static final SdkField MAX_IOPS_PER_GIB_FIELD = SdkField. builder(MarshallingType.DOUBLE) .memberName("MaxIopsPerGib").getter(getter(OrderableDBInstanceOption::maxIopsPerGib)) .setter(setter(Builder::maxIopsPerGib)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxIopsPerGib").build()).build(); private static final SdkField> AVAILABLE_PROCESSOR_FEATURES_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("AvailableProcessorFeatures") .getter(getter(OrderableDBInstanceOption::availableProcessorFeatures)) .setter(setter(Builder::availableProcessorFeatures)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AvailableProcessorFeatures").build(), ListTrait .builder() .memberLocationName("AvailableProcessorFeature") .memberFieldInfo( SdkField. builder(MarshallingType.SDK_POJO) .constructor(AvailableProcessorFeature::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("AvailableProcessorFeature").build()).build()).build()).build(); private static final SdkField> SUPPORTED_ENGINE_MODES_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("SupportedEngineModes") .getter(getter(OrderableDBInstanceOption::supportedEngineModes)) .setter(setter(Builder::supportedEngineModes)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportedEngineModes").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 SUPPORTS_STORAGE_AUTOSCALING_FIELD = SdkField . builder(MarshallingType.BOOLEAN) .memberName("SupportsStorageAutoscaling") .getter(getter(OrderableDBInstanceOption::supportsStorageAutoscaling)) .setter(setter(Builder::supportsStorageAutoscaling)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsStorageAutoscaling").build()) .build(); private static final SdkField SUPPORTS_KERBEROS_AUTHENTICATION_FIELD = SdkField . builder(MarshallingType.BOOLEAN) .memberName("SupportsKerberosAuthentication") .getter(getter(OrderableDBInstanceOption::supportsKerberosAuthentication)) .setter(setter(Builder::supportsKerberosAuthentication)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsKerberosAuthentication") .build()).build(); private static final SdkField OUTPOST_CAPABLE_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .memberName("OutpostCapable").getter(getter(OrderableDBInstanceOption::outpostCapable)) .setter(setter(Builder::outpostCapable)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OutpostCapable").build()).build(); private static final SdkField> SUPPORTED_ACTIVITY_STREAM_MODES_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("SupportedActivityStreamModes") .getter(getter(OrderableDBInstanceOption::supportedActivityStreamModes)) .setter(setter(Builder::supportedActivityStreamModes)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportedActivityStreamModes") .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 SUPPORTS_GLOBAL_DATABASES_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .memberName("SupportsGlobalDatabases").getter(getter(OrderableDBInstanceOption::supportsGlobalDatabases)) .setter(setter(Builder::supportsGlobalDatabases)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsGlobalDatabases").build()) .build(); private static final SdkField SUPPORTS_CLUSTERS_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .memberName("SupportsClusters").getter(getter(OrderableDBInstanceOption::supportsClusters)) .setter(setter(Builder::supportsClusters)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsClusters").build()).build(); private static final SdkField> SUPPORTED_NETWORK_TYPES_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("SupportedNetworkTypes") .getter(getter(OrderableDBInstanceOption::supportedNetworkTypes)) .setter(setter(Builder::supportedNetworkTypes)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportedNetworkTypes").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 SUPPORTS_STORAGE_THROUGHPUT_FIELD = SdkField . builder(MarshallingType.BOOLEAN).memberName("SupportsStorageThroughput") .getter(getter(OrderableDBInstanceOption::supportsStorageThroughput)) .setter(setter(Builder::supportsStorageThroughput)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsStorageThroughput").build()) .build(); private static final SdkField MIN_STORAGE_THROUGHPUT_PER_DB_INSTANCE_FIELD = SdkField . builder(MarshallingType.INTEGER) .memberName("MinStorageThroughputPerDbInstance") .getter(getter(OrderableDBInstanceOption::minStorageThroughputPerDbInstance)) .setter(setter(Builder::minStorageThroughputPerDbInstance)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MinStorageThroughputPerDbInstance") .build()).build(); private static final SdkField MAX_STORAGE_THROUGHPUT_PER_DB_INSTANCE_FIELD = SdkField . builder(MarshallingType.INTEGER) .memberName("MaxStorageThroughputPerDbInstance") .getter(getter(OrderableDBInstanceOption::maxStorageThroughputPerDbInstance)) .setter(setter(Builder::maxStorageThroughputPerDbInstance)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxStorageThroughputPerDbInstance") .build()).build(); private static final SdkField MIN_STORAGE_THROUGHPUT_PER_IOPS_FIELD = SdkField . builder(MarshallingType.DOUBLE) .memberName("MinStorageThroughputPerIops") .getter(getter(OrderableDBInstanceOption::minStorageThroughputPerIops)) .setter(setter(Builder::minStorageThroughputPerIops)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MinStorageThroughputPerIops") .build()).build(); private static final SdkField MAX_STORAGE_THROUGHPUT_PER_IOPS_FIELD = SdkField . builder(MarshallingType.DOUBLE) .memberName("MaxStorageThroughputPerIops") .getter(getter(OrderableDBInstanceOption::maxStorageThroughputPerIops)) .setter(setter(Builder::maxStorageThroughputPerIops)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxStorageThroughputPerIops") .build()).build(); private static final SdkField SUPPORTS_DEDICATED_LOG_VOLUME_FIELD = SdkField . builder(MarshallingType.BOOLEAN) .memberName("SupportsDedicatedLogVolume") .getter(getter(OrderableDBInstanceOption::supportsDedicatedLogVolume)) .setter(setter(Builder::supportsDedicatedLogVolume)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsDedicatedLogVolume").build()) .build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ENGINE_FIELD, ENGINE_VERSION_FIELD, DB_INSTANCE_CLASS_FIELD, LICENSE_MODEL_FIELD, AVAILABILITY_ZONE_GROUP_FIELD, AVAILABILITY_ZONES_FIELD, MULTI_AZ_CAPABLE_FIELD, READ_REPLICA_CAPABLE_FIELD, VPC_FIELD, SUPPORTS_STORAGE_ENCRYPTION_FIELD, STORAGE_TYPE_FIELD, SUPPORTS_IOPS_FIELD, SUPPORTS_ENHANCED_MONITORING_FIELD, SUPPORTS_IAM_DATABASE_AUTHENTICATION_FIELD, SUPPORTS_PERFORMANCE_INSIGHTS_FIELD, MIN_STORAGE_SIZE_FIELD, MAX_STORAGE_SIZE_FIELD, MIN_IOPS_PER_DB_INSTANCE_FIELD, MAX_IOPS_PER_DB_INSTANCE_FIELD, MIN_IOPS_PER_GIB_FIELD, MAX_IOPS_PER_GIB_FIELD, AVAILABLE_PROCESSOR_FEATURES_FIELD, SUPPORTED_ENGINE_MODES_FIELD, SUPPORTS_STORAGE_AUTOSCALING_FIELD, SUPPORTS_KERBEROS_AUTHENTICATION_FIELD, OUTPOST_CAPABLE_FIELD, SUPPORTED_ACTIVITY_STREAM_MODES_FIELD, SUPPORTS_GLOBAL_DATABASES_FIELD, SUPPORTS_CLUSTERS_FIELD, SUPPORTED_NETWORK_TYPES_FIELD, SUPPORTS_STORAGE_THROUGHPUT_FIELD, MIN_STORAGE_THROUGHPUT_PER_DB_INSTANCE_FIELD, MAX_STORAGE_THROUGHPUT_PER_DB_INSTANCE_FIELD, MIN_STORAGE_THROUGHPUT_PER_IOPS_FIELD, MAX_STORAGE_THROUGHPUT_PER_IOPS_FIELD, SUPPORTS_DEDICATED_LOG_VOLUME_FIELD)); private static final long serialVersionUID = 1L; private final String engine; private final String engineVersion; private final String dbInstanceClass; private final String licenseModel; private final String availabilityZoneGroup; private final List availabilityZones; private final Boolean multiAZCapable; private final Boolean readReplicaCapable; private final Boolean vpc; private final Boolean supportsStorageEncryption; private final String storageType; private final Boolean supportsIops; private final Boolean supportsEnhancedMonitoring; private final Boolean supportsIAMDatabaseAuthentication; private final Boolean supportsPerformanceInsights; private final Integer minStorageSize; private final Integer maxStorageSize; private final Integer minIopsPerDbInstance; private final Integer maxIopsPerDbInstance; private final Double minIopsPerGib; private final Double maxIopsPerGib; private final List availableProcessorFeatures; private final List supportedEngineModes; private final Boolean supportsStorageAutoscaling; private final Boolean supportsKerberosAuthentication; private final Boolean outpostCapable; private final List supportedActivityStreamModes; private final Boolean supportsGlobalDatabases; private final Boolean supportsClusters; private final List supportedNetworkTypes; private final Boolean supportsStorageThroughput; private final Integer minStorageThroughputPerDbInstance; private final Integer maxStorageThroughputPerDbInstance; private final Double minStorageThroughputPerIops; private final Double maxStorageThroughputPerIops; private final Boolean supportsDedicatedLogVolume; private OrderableDBInstanceOption(BuilderImpl builder) { this.engine = builder.engine; this.engineVersion = builder.engineVersion; this.dbInstanceClass = builder.dbInstanceClass; this.licenseModel = builder.licenseModel; this.availabilityZoneGroup = builder.availabilityZoneGroup; this.availabilityZones = builder.availabilityZones; this.multiAZCapable = builder.multiAZCapable; this.readReplicaCapable = builder.readReplicaCapable; this.vpc = builder.vpc; this.supportsStorageEncryption = builder.supportsStorageEncryption; this.storageType = builder.storageType; this.supportsIops = builder.supportsIops; this.supportsEnhancedMonitoring = builder.supportsEnhancedMonitoring; this.supportsIAMDatabaseAuthentication = builder.supportsIAMDatabaseAuthentication; this.supportsPerformanceInsights = builder.supportsPerformanceInsights; this.minStorageSize = builder.minStorageSize; this.maxStorageSize = builder.maxStorageSize; this.minIopsPerDbInstance = builder.minIopsPerDbInstance; this.maxIopsPerDbInstance = builder.maxIopsPerDbInstance; this.minIopsPerGib = builder.minIopsPerGib; this.maxIopsPerGib = builder.maxIopsPerGib; this.availableProcessorFeatures = builder.availableProcessorFeatures; this.supportedEngineModes = builder.supportedEngineModes; this.supportsStorageAutoscaling = builder.supportsStorageAutoscaling; this.supportsKerberosAuthentication = builder.supportsKerberosAuthentication; this.outpostCapable = builder.outpostCapable; this.supportedActivityStreamModes = builder.supportedActivityStreamModes; this.supportsGlobalDatabases = builder.supportsGlobalDatabases; this.supportsClusters = builder.supportsClusters; this.supportedNetworkTypes = builder.supportedNetworkTypes; this.supportsStorageThroughput = builder.supportsStorageThroughput; this.minStorageThroughputPerDbInstance = builder.minStorageThroughputPerDbInstance; this.maxStorageThroughputPerDbInstance = builder.maxStorageThroughputPerDbInstance; this.minStorageThroughputPerIops = builder.minStorageThroughputPerIops; this.maxStorageThroughputPerIops = builder.maxStorageThroughputPerIops; this.supportsDedicatedLogVolume = builder.supportsDedicatedLogVolume; } /** *

* The engine type of a DB instance. *

* * @return The engine type of a DB instance. */ public final String engine() { return engine; } /** *

* The engine version of a DB instance. *

* * @return The engine version of a DB instance. */ public final String engineVersion() { return engineVersion; } /** *

* The DB instance class for a DB instance. *

* * @return The DB instance class for a DB instance. */ public final String dbInstanceClass() { return dbInstanceClass; } /** *

* The license model for a DB instance. *

* * @return The license model for a DB instance. */ public final String licenseModel() { return licenseModel; } /** *

* The Availability Zone group for a DB instance. *

* * @return The Availability Zone group for a DB instance. */ public final String availabilityZoneGroup() { return availabilityZoneGroup; } /** * For responses, this returns true if the service returned a value for the AvailabilityZones 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 hasAvailabilityZones() { return availabilityZones != null && !(availabilityZones instanceof SdkAutoConstructList); } /** *

* A list of Availability Zones for a DB instance. *

*

* 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 #hasAvailabilityZones} method. *

* * @return A list of Availability Zones for a DB instance. */ public final List availabilityZones() { return availabilityZones; } /** *

* Indicates whether a DB instance is Multi-AZ capable. *

* * @return Indicates whether a DB instance is Multi-AZ capable. */ public final Boolean multiAZCapable() { return multiAZCapable; } /** *

* Indicates whether a DB instance can have a read replica. *

* * @return Indicates whether a DB instance can have a read replica. */ public final Boolean readReplicaCapable() { return readReplicaCapable; } /** *

* Indicates whether a DB instance is in a VPC. *

* * @return Indicates whether a DB instance is in a VPC. */ public final Boolean vpc() { return vpc; } /** *

* Indicates whether a DB instance supports encrypted storage. *

* * @return Indicates whether a DB instance supports encrypted storage. */ public final Boolean supportsStorageEncryption() { return supportsStorageEncryption; } /** *

* The storage type for a DB instance. *

* * @return The storage type for a DB instance. */ public final String storageType() { return storageType; } /** *

* Indicates whether a DB instance supports provisioned IOPS. *

* * @return Indicates whether a DB instance supports provisioned IOPS. */ public final Boolean supportsIops() { return supportsIops; } /** *

* Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. *

* * @return Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. */ public final Boolean supportsEnhancedMonitoring() { return supportsEnhancedMonitoring; } /** *

* Indicates whether a DB instance supports IAM database authentication. *

* * @return Indicates whether a DB instance supports IAM database authentication. */ public final Boolean supportsIAMDatabaseAuthentication() { return supportsIAMDatabaseAuthentication; } /** *

* Indicates whether a DB instance supports Performance Insights. *

* * @return Indicates whether a DB instance supports Performance Insights. */ public final Boolean supportsPerformanceInsights() { return supportsPerformanceInsights; } /** *

* Minimum storage size for a DB instance. *

* * @return Minimum storage size for a DB instance. */ public final Integer minStorageSize() { return minStorageSize; } /** *

* Maximum storage size for a DB instance. *

* * @return Maximum storage size for a DB instance. */ public final Integer maxStorageSize() { return maxStorageSize; } /** *

* Minimum total provisioned IOPS for a DB instance. *

* * @return Minimum total provisioned IOPS for a DB instance. */ public final Integer minIopsPerDbInstance() { return minIopsPerDbInstance; } /** *

* Maximum total provisioned IOPS for a DB instance. *

* * @return Maximum total provisioned IOPS for a DB instance. */ public final Integer maxIopsPerDbInstance() { return maxIopsPerDbInstance; } /** *

* Minimum provisioned IOPS per GiB for a DB instance. *

* * @return Minimum provisioned IOPS per GiB for a DB instance. */ public final Double minIopsPerGib() { return minIopsPerGib; } /** *

* Maximum provisioned IOPS per GiB for a DB instance. *

* * @return Maximum provisioned IOPS per GiB for a DB instance. */ public final Double maxIopsPerGib() { return maxIopsPerGib; } /** * For responses, this returns true if the service returned a value for the AvailableProcessorFeatures 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 hasAvailableProcessorFeatures() { return availableProcessorFeatures != null && !(availableProcessorFeatures instanceof SdkAutoConstructList); } /** *

* A list of the available processor features for the DB instance class of a DB instance. *

*

* 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 #hasAvailableProcessorFeatures} method. *

* * @return A list of the available processor features for the DB instance class of a DB instance. */ public final List availableProcessorFeatures() { return availableProcessorFeatures; } /** * For responses, this returns true if the service returned a value for the SupportedEngineModes 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 hasSupportedEngineModes() { return supportedEngineModes != null && !(supportedEngineModes instanceof SdkAutoConstructList); } /** *

* A list of the supported DB engine modes. *

*

* 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 #hasSupportedEngineModes} method. *

* * @return A list of the supported DB engine modes. */ public final List supportedEngineModes() { return supportedEngineModes; } /** *

* Indicates whether Amazon RDS can automatically scale storage for DB instances that use the specified DB instance * class. *

* * @return Indicates whether Amazon RDS can automatically scale storage for DB instances that use the specified DB * instance class. */ public final Boolean supportsStorageAutoscaling() { return supportsStorageAutoscaling; } /** *

* Indicates whether a DB instance supports Kerberos Authentication. *

* * @return Indicates whether a DB instance supports Kerberos Authentication. */ public final Boolean supportsKerberosAuthentication() { return supportsKerberosAuthentication; } /** *

* Indicates whether a DB instance supports RDS on Outposts. *

*

* For more information about RDS on Outposts, see Amazon RDS on Amazon Web * Services Outposts in the Amazon RDS User Guide. *

* * @return Indicates whether a DB instance supports RDS on Outposts.

*

* For more information about RDS on Outposts, see Amazon RDS on Amazon * Web Services Outposts in the Amazon RDS User Guide. */ public final Boolean outpostCapable() { return outpostCapable; } /** * For responses, this returns true if the service returned a value for the SupportedActivityStreamModes 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 hasSupportedActivityStreamModes() { return supportedActivityStreamModes != null && !(supportedActivityStreamModes instanceof SdkAutoConstructList); } /** *

* The list of supported modes for Database Activity Streams. Aurora PostgreSQL returns the value * [sync, async]. Aurora MySQL and RDS for Oracle return [async] only. If Database * Activity Streams isn't supported, the return value is an empty list. *

*

* 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 #hasSupportedActivityStreamModes} method. *

* * @return The list of supported modes for Database Activity Streams. Aurora PostgreSQL returns the value * [sync, async]. Aurora MySQL and RDS for Oracle return [async] only. If Database * Activity Streams isn't supported, the return value is an empty list. */ public final List supportedActivityStreamModes() { return supportedActivityStreamModes; } /** *

* Indicates whether you can use Aurora global databases with a specific combination of other DB engine attributes. *

* * @return Indicates whether you can use Aurora global databases with a specific combination of other DB engine * attributes. */ public final Boolean supportsGlobalDatabases() { return supportsGlobalDatabases; } /** *

* Indicates whether DB instances can be configured as a Multi-AZ DB cluster. *

*

* For more information on Multi-AZ DB clusters, see Multi-AZ * deployments with two readable standby DB instances in the Amazon RDS User Guide. *

* * @return Indicates whether DB instances can be configured as a Multi-AZ DB cluster.

*

* For more information on Multi-AZ DB clusters, see * Multi-AZ deployments with two readable standby DB instances in the Amazon RDS User Guide. */ public final Boolean supportsClusters() { return supportsClusters; } /** * For responses, this returns true if the service returned a value for the SupportedNetworkTypes 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 hasSupportedNetworkTypes() { return supportedNetworkTypes != null && !(supportedNetworkTypes instanceof SdkAutoConstructList); } /** *

* The network types supported by the DB instance (IPV4 or DUAL). *

*

* A DB instance 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. *

*

* 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 #hasSupportedNetworkTypes} method. *

* * @return The network types supported by the DB instance (IPV4 or DUAL).

*

* A DB instance 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 List supportedNetworkTypes() { return supportedNetworkTypes; } /** *

* Indicates whether a DB instance supports storage throughput. *

* * @return Indicates whether a DB instance supports storage throughput. */ public final Boolean supportsStorageThroughput() { return supportsStorageThroughput; } /** *

* Minimum storage throughput for a DB instance. *

* * @return Minimum storage throughput for a DB instance. */ public final Integer minStorageThroughputPerDbInstance() { return minStorageThroughputPerDbInstance; } /** *

* Maximum storage throughput for a DB instance. *

* * @return Maximum storage throughput for a DB instance. */ public final Integer maxStorageThroughputPerDbInstance() { return maxStorageThroughputPerDbInstance; } /** *

* Minimum storage throughput to provisioned IOPS ratio for a DB instance. *

* * @return Minimum storage throughput to provisioned IOPS ratio for a DB instance. */ public final Double minStorageThroughputPerIops() { return minStorageThroughputPerIops; } /** *

* Maximum storage throughput to provisioned IOPS ratio for a DB instance. *

* * @return Maximum storage throughput to provisioned IOPS ratio for a DB instance. */ public final Double maxStorageThroughputPerIops() { return maxStorageThroughputPerIops; } /** *

* Indicates whether a DB instance supports using a dedicated log volume (DLV). *

* * @return Indicates whether a DB instance supports using a dedicated log volume (DLV). */ public final Boolean supportsDedicatedLogVolume() { return supportsDedicatedLogVolume; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(engine()); hashCode = 31 * hashCode + Objects.hashCode(engineVersion()); hashCode = 31 * hashCode + Objects.hashCode(dbInstanceClass()); hashCode = 31 * hashCode + Objects.hashCode(licenseModel()); hashCode = 31 * hashCode + Objects.hashCode(availabilityZoneGroup()); hashCode = 31 * hashCode + Objects.hashCode(hasAvailabilityZones() ? availabilityZones() : null); hashCode = 31 * hashCode + Objects.hashCode(multiAZCapable()); hashCode = 31 * hashCode + Objects.hashCode(readReplicaCapable()); hashCode = 31 * hashCode + Objects.hashCode(vpc()); hashCode = 31 * hashCode + Objects.hashCode(supportsStorageEncryption()); hashCode = 31 * hashCode + Objects.hashCode(storageType()); hashCode = 31 * hashCode + Objects.hashCode(supportsIops()); hashCode = 31 * hashCode + Objects.hashCode(supportsEnhancedMonitoring()); hashCode = 31 * hashCode + Objects.hashCode(supportsIAMDatabaseAuthentication()); hashCode = 31 * hashCode + Objects.hashCode(supportsPerformanceInsights()); hashCode = 31 * hashCode + Objects.hashCode(minStorageSize()); hashCode = 31 * hashCode + Objects.hashCode(maxStorageSize()); hashCode = 31 * hashCode + Objects.hashCode(minIopsPerDbInstance()); hashCode = 31 * hashCode + Objects.hashCode(maxIopsPerDbInstance()); hashCode = 31 * hashCode + Objects.hashCode(minIopsPerGib()); hashCode = 31 * hashCode + Objects.hashCode(maxIopsPerGib()); hashCode = 31 * hashCode + Objects.hashCode(hasAvailableProcessorFeatures() ? availableProcessorFeatures() : null); hashCode = 31 * hashCode + Objects.hashCode(hasSupportedEngineModes() ? supportedEngineModes() : null); hashCode = 31 * hashCode + Objects.hashCode(supportsStorageAutoscaling()); hashCode = 31 * hashCode + Objects.hashCode(supportsKerberosAuthentication()); hashCode = 31 * hashCode + Objects.hashCode(outpostCapable()); hashCode = 31 * hashCode + Objects.hashCode(hasSupportedActivityStreamModes() ? supportedActivityStreamModes() : null); hashCode = 31 * hashCode + Objects.hashCode(supportsGlobalDatabases()); hashCode = 31 * hashCode + Objects.hashCode(supportsClusters()); hashCode = 31 * hashCode + Objects.hashCode(hasSupportedNetworkTypes() ? supportedNetworkTypes() : null); hashCode = 31 * hashCode + Objects.hashCode(supportsStorageThroughput()); hashCode = 31 * hashCode + Objects.hashCode(minStorageThroughputPerDbInstance()); hashCode = 31 * hashCode + Objects.hashCode(maxStorageThroughputPerDbInstance()); hashCode = 31 * hashCode + Objects.hashCode(minStorageThroughputPerIops()); hashCode = 31 * hashCode + Objects.hashCode(maxStorageThroughputPerIops()); hashCode = 31 * hashCode + Objects.hashCode(supportsDedicatedLogVolume()); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof OrderableDBInstanceOption)) { return false; } OrderableDBInstanceOption other = (OrderableDBInstanceOption) obj; return Objects.equals(engine(), other.engine()) && Objects.equals(engineVersion(), other.engineVersion()) && Objects.equals(dbInstanceClass(), other.dbInstanceClass()) && Objects.equals(licenseModel(), other.licenseModel()) && Objects.equals(availabilityZoneGroup(), other.availabilityZoneGroup()) && hasAvailabilityZones() == other.hasAvailabilityZones() && Objects.equals(availabilityZones(), other.availabilityZones()) && Objects.equals(multiAZCapable(), other.multiAZCapable()) && Objects.equals(readReplicaCapable(), other.readReplicaCapable()) && Objects.equals(vpc(), other.vpc()) && Objects.equals(supportsStorageEncryption(), other.supportsStorageEncryption()) && Objects.equals(storageType(), other.storageType()) && Objects.equals(supportsIops(), other.supportsIops()) && Objects.equals(supportsEnhancedMonitoring(), other.supportsEnhancedMonitoring()) && Objects.equals(supportsIAMDatabaseAuthentication(), other.supportsIAMDatabaseAuthentication()) && Objects.equals(supportsPerformanceInsights(), other.supportsPerformanceInsights()) && Objects.equals(minStorageSize(), other.minStorageSize()) && Objects.equals(maxStorageSize(), other.maxStorageSize()) && Objects.equals(minIopsPerDbInstance(), other.minIopsPerDbInstance()) && Objects.equals(maxIopsPerDbInstance(), other.maxIopsPerDbInstance()) && Objects.equals(minIopsPerGib(), other.minIopsPerGib()) && Objects.equals(maxIopsPerGib(), other.maxIopsPerGib()) && hasAvailableProcessorFeatures() == other.hasAvailableProcessorFeatures() && Objects.equals(availableProcessorFeatures(), other.availableProcessorFeatures()) && hasSupportedEngineModes() == other.hasSupportedEngineModes() && Objects.equals(supportedEngineModes(), other.supportedEngineModes()) && Objects.equals(supportsStorageAutoscaling(), other.supportsStorageAutoscaling()) && Objects.equals(supportsKerberosAuthentication(), other.supportsKerberosAuthentication()) && Objects.equals(outpostCapable(), other.outpostCapable()) && hasSupportedActivityStreamModes() == other.hasSupportedActivityStreamModes() && Objects.equals(supportedActivityStreamModes(), other.supportedActivityStreamModes()) && Objects.equals(supportsGlobalDatabases(), other.supportsGlobalDatabases()) && Objects.equals(supportsClusters(), other.supportsClusters()) && hasSupportedNetworkTypes() == other.hasSupportedNetworkTypes() && Objects.equals(supportedNetworkTypes(), other.supportedNetworkTypes()) && Objects.equals(supportsStorageThroughput(), other.supportsStorageThroughput()) && Objects.equals(minStorageThroughputPerDbInstance(), other.minStorageThroughputPerDbInstance()) && Objects.equals(maxStorageThroughputPerDbInstance(), other.maxStorageThroughputPerDbInstance()) && Objects.equals(minStorageThroughputPerIops(), other.minStorageThroughputPerIops()) && Objects.equals(maxStorageThroughputPerIops(), other.maxStorageThroughputPerIops()) && Objects.equals(supportsDedicatedLogVolume(), other.supportsDedicatedLogVolume()); } /** * 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("OrderableDBInstanceOption").add("Engine", engine()).add("EngineVersion", engineVersion()) .add("DBInstanceClass", dbInstanceClass()).add("LicenseModel", licenseModel()) .add("AvailabilityZoneGroup", availabilityZoneGroup()) .add("AvailabilityZones", hasAvailabilityZones() ? availabilityZones() : null) .add("MultiAZCapable", multiAZCapable()).add("ReadReplicaCapable", readReplicaCapable()).add("Vpc", vpc()) .add("SupportsStorageEncryption", supportsStorageEncryption()).add("StorageType", storageType()) .add("SupportsIops", supportsIops()).add("SupportsEnhancedMonitoring", supportsEnhancedMonitoring()) .add("SupportsIAMDatabaseAuthentication", supportsIAMDatabaseAuthentication()) .add("SupportsPerformanceInsights", supportsPerformanceInsights()).add("MinStorageSize", minStorageSize()) .add("MaxStorageSize", maxStorageSize()).add("MinIopsPerDbInstance", minIopsPerDbInstance()) .add("MaxIopsPerDbInstance", maxIopsPerDbInstance()).add("MinIopsPerGib", minIopsPerGib()) .add("MaxIopsPerGib", maxIopsPerGib()) .add("AvailableProcessorFeatures", hasAvailableProcessorFeatures() ? availableProcessorFeatures() : null) .add("SupportedEngineModes", hasSupportedEngineModes() ? supportedEngineModes() : null) .add("SupportsStorageAutoscaling", supportsStorageAutoscaling()) .add("SupportsKerberosAuthentication", supportsKerberosAuthentication()).add("OutpostCapable", outpostCapable()) .add("SupportedActivityStreamModes", hasSupportedActivityStreamModes() ? supportedActivityStreamModes() : null) .add("SupportsGlobalDatabases", supportsGlobalDatabases()).add("SupportsClusters", supportsClusters()) .add("SupportedNetworkTypes", hasSupportedNetworkTypes() ? supportedNetworkTypes() : null) .add("SupportsStorageThroughput", supportsStorageThroughput()) .add("MinStorageThroughputPerDbInstance", minStorageThroughputPerDbInstance()) .add("MaxStorageThroughputPerDbInstance", maxStorageThroughputPerDbInstance()) .add("MinStorageThroughputPerIops", minStorageThroughputPerIops()) .add("MaxStorageThroughputPerIops", maxStorageThroughputPerIops()) .add("SupportsDedicatedLogVolume", supportsDedicatedLogVolume()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "Engine": return Optional.ofNullable(clazz.cast(engine())); case "EngineVersion": return Optional.ofNullable(clazz.cast(engineVersion())); case "DBInstanceClass": return Optional.ofNullable(clazz.cast(dbInstanceClass())); case "LicenseModel": return Optional.ofNullable(clazz.cast(licenseModel())); case "AvailabilityZoneGroup": return Optional.ofNullable(clazz.cast(availabilityZoneGroup())); case "AvailabilityZones": return Optional.ofNullable(clazz.cast(availabilityZones())); case "MultiAZCapable": return Optional.ofNullable(clazz.cast(multiAZCapable())); case "ReadReplicaCapable": return Optional.ofNullable(clazz.cast(readReplicaCapable())); case "Vpc": return Optional.ofNullable(clazz.cast(vpc())); case "SupportsStorageEncryption": return Optional.ofNullable(clazz.cast(supportsStorageEncryption())); case "StorageType": return Optional.ofNullable(clazz.cast(storageType())); case "SupportsIops": return Optional.ofNullable(clazz.cast(supportsIops())); case "SupportsEnhancedMonitoring": return Optional.ofNullable(clazz.cast(supportsEnhancedMonitoring())); case "SupportsIAMDatabaseAuthentication": return Optional.ofNullable(clazz.cast(supportsIAMDatabaseAuthentication())); case "SupportsPerformanceInsights": return Optional.ofNullable(clazz.cast(supportsPerformanceInsights())); case "MinStorageSize": return Optional.ofNullable(clazz.cast(minStorageSize())); case "MaxStorageSize": return Optional.ofNullable(clazz.cast(maxStorageSize())); case "MinIopsPerDbInstance": return Optional.ofNullable(clazz.cast(minIopsPerDbInstance())); case "MaxIopsPerDbInstance": return Optional.ofNullable(clazz.cast(maxIopsPerDbInstance())); case "MinIopsPerGib": return Optional.ofNullable(clazz.cast(minIopsPerGib())); case "MaxIopsPerGib": return Optional.ofNullable(clazz.cast(maxIopsPerGib())); case "AvailableProcessorFeatures": return Optional.ofNullable(clazz.cast(availableProcessorFeatures())); case "SupportedEngineModes": return Optional.ofNullable(clazz.cast(supportedEngineModes())); case "SupportsStorageAutoscaling": return Optional.ofNullable(clazz.cast(supportsStorageAutoscaling())); case "SupportsKerberosAuthentication": return Optional.ofNullable(clazz.cast(supportsKerberosAuthentication())); case "OutpostCapable": return Optional.ofNullable(clazz.cast(outpostCapable())); case "SupportedActivityStreamModes": return Optional.ofNullable(clazz.cast(supportedActivityStreamModes())); case "SupportsGlobalDatabases": return Optional.ofNullable(clazz.cast(supportsGlobalDatabases())); case "SupportsClusters": return Optional.ofNullable(clazz.cast(supportsClusters())); case "SupportedNetworkTypes": return Optional.ofNullable(clazz.cast(supportedNetworkTypes())); case "SupportsStorageThroughput": return Optional.ofNullable(clazz.cast(supportsStorageThroughput())); case "MinStorageThroughputPerDbInstance": return Optional.ofNullable(clazz.cast(minStorageThroughputPerDbInstance())); case "MaxStorageThroughputPerDbInstance": return Optional.ofNullable(clazz.cast(maxStorageThroughputPerDbInstance())); case "MinStorageThroughputPerIops": return Optional.ofNullable(clazz.cast(minStorageThroughputPerIops())); case "MaxStorageThroughputPerIops": return Optional.ofNullable(clazz.cast(maxStorageThroughputPerIops())); case "SupportsDedicatedLogVolume": return Optional.ofNullable(clazz.cast(supportsDedicatedLogVolume())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((OrderableDBInstanceOption) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* The engine type of a DB instance. *

* * @param engine * The engine type of a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder engine(String engine); /** *

* The engine version of a DB instance. *

* * @param engineVersion * The engine version of a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder engineVersion(String engineVersion); /** *

* The DB instance class for a DB instance. *

* * @param dbInstanceClass * The DB instance class for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dbInstanceClass(String dbInstanceClass); /** *

* The license model for a DB instance. *

* * @param licenseModel * The license model for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder licenseModel(String licenseModel); /** *

* The Availability Zone group for a DB instance. *

* * @param availabilityZoneGroup * The Availability Zone group for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder availabilityZoneGroup(String availabilityZoneGroup); /** *

* A list of Availability Zones for a DB instance. *

* * @param availabilityZones * A list of Availability Zones for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder availabilityZones(Collection availabilityZones); /** *

* A list of Availability Zones for a DB instance. *

* * @param availabilityZones * A list of Availability Zones for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder availabilityZones(AvailabilityZone... availabilityZones); /** *

* A list of Availability Zones for a DB instance. *

* This is a convenience method that creates an instance of the * {@link software.amazon.awssdk.services.rds.model.AvailabilityZone.Builder} avoiding the need to create one * manually via {@link software.amazon.awssdk.services.rds.model.AvailabilityZone#builder()}. * *

* When the {@link Consumer} completes, * {@link software.amazon.awssdk.services.rds.model.AvailabilityZone.Builder#build()} is called immediately and * its result is passed to {@link #availabilityZones(List)}. * * @param availabilityZones * a consumer that will call methods on * {@link software.amazon.awssdk.services.rds.model.AvailabilityZone.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #availabilityZones(java.util.Collection) */ Builder availabilityZones(Consumer... availabilityZones); /** *

* Indicates whether a DB instance is Multi-AZ capable. *

* * @param multiAZCapable * Indicates whether a DB instance is Multi-AZ capable. * @return Returns a reference to this object so that method calls can be chained together. */ Builder multiAZCapable(Boolean multiAZCapable); /** *

* Indicates whether a DB instance can have a read replica. *

* * @param readReplicaCapable * Indicates whether a DB instance can have a read replica. * @return Returns a reference to this object so that method calls can be chained together. */ Builder readReplicaCapable(Boolean readReplicaCapable); /** *

* Indicates whether a DB instance is in a VPC. *

* * @param vpc * Indicates whether a DB instance is in a VPC. * @return Returns a reference to this object so that method calls can be chained together. */ Builder vpc(Boolean vpc); /** *

* Indicates whether a DB instance supports encrypted storage. *

* * @param supportsStorageEncryption * Indicates whether a DB instance supports encrypted storage. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsStorageEncryption(Boolean supportsStorageEncryption); /** *

* The storage type for a DB instance. *

* * @param storageType * The storage type for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder storageType(String storageType); /** *

* Indicates whether a DB instance supports provisioned IOPS. *

* * @param supportsIops * Indicates whether a DB instance supports provisioned IOPS. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsIops(Boolean supportsIops); /** *

* Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. *

* * @param supportsEnhancedMonitoring * Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsEnhancedMonitoring(Boolean supportsEnhancedMonitoring); /** *

* Indicates whether a DB instance supports IAM database authentication. *

* * @param supportsIAMDatabaseAuthentication * Indicates whether a DB instance supports IAM database authentication. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsIAMDatabaseAuthentication(Boolean supportsIAMDatabaseAuthentication); /** *

* Indicates whether a DB instance supports Performance Insights. *

* * @param supportsPerformanceInsights * Indicates whether a DB instance supports Performance Insights. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsPerformanceInsights(Boolean supportsPerformanceInsights); /** *

* Minimum storage size for a DB instance. *

* * @param minStorageSize * Minimum storage size for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder minStorageSize(Integer minStorageSize); /** *

* Maximum storage size for a DB instance. *

* * @param maxStorageSize * Maximum storage size for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder maxStorageSize(Integer maxStorageSize); /** *

* Minimum total provisioned IOPS for a DB instance. *

* * @param minIopsPerDbInstance * Minimum total provisioned IOPS for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder minIopsPerDbInstance(Integer minIopsPerDbInstance); /** *

* Maximum total provisioned IOPS for a DB instance. *

* * @param maxIopsPerDbInstance * Maximum total provisioned IOPS for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder maxIopsPerDbInstance(Integer maxIopsPerDbInstance); /** *

* Minimum provisioned IOPS per GiB for a DB instance. *

* * @param minIopsPerGib * Minimum provisioned IOPS per GiB for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder minIopsPerGib(Double minIopsPerGib); /** *

* Maximum provisioned IOPS per GiB for a DB instance. *

* * @param maxIopsPerGib * Maximum provisioned IOPS per GiB for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder maxIopsPerGib(Double maxIopsPerGib); /** *

* A list of the available processor features for the DB instance class of a DB instance. *

* * @param availableProcessorFeatures * A list of the available processor features for the DB instance class of a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder availableProcessorFeatures(Collection availableProcessorFeatures); /** *

* A list of the available processor features for the DB instance class of a DB instance. *

* * @param availableProcessorFeatures * A list of the available processor features for the DB instance class of a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder availableProcessorFeatures(AvailableProcessorFeature... availableProcessorFeatures); /** *

* A list of the available processor features for the DB instance class of a DB instance. *

* This is a convenience method that creates an instance of the * {@link software.amazon.awssdk.services.rds.model.AvailableProcessorFeature.Builder} avoiding the need to * create one manually via {@link software.amazon.awssdk.services.rds.model.AvailableProcessorFeature#builder()} * . * *

* When the {@link Consumer} completes, * {@link software.amazon.awssdk.services.rds.model.AvailableProcessorFeature.Builder#build()} is called * immediately and its result is passed to {@link #availableProcessorFeatures(List)}. * * @param availableProcessorFeatures * a consumer that will call methods on * {@link software.amazon.awssdk.services.rds.model.AvailableProcessorFeature.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #availableProcessorFeatures(java.util.Collection) */ Builder availableProcessorFeatures(Consumer... availableProcessorFeatures); /** *

* A list of the supported DB engine modes. *

* * @param supportedEngineModes * A list of the supported DB engine modes. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportedEngineModes(Collection supportedEngineModes); /** *

* A list of the supported DB engine modes. *

* * @param supportedEngineModes * A list of the supported DB engine modes. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportedEngineModes(String... supportedEngineModes); /** *

* Indicates whether Amazon RDS can automatically scale storage for DB instances that use the specified DB * instance class. *

* * @param supportsStorageAutoscaling * Indicates whether Amazon RDS can automatically scale storage for DB instances that use the specified * DB instance class. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsStorageAutoscaling(Boolean supportsStorageAutoscaling); /** *

* Indicates whether a DB instance supports Kerberos Authentication. *

* * @param supportsKerberosAuthentication * Indicates whether a DB instance supports Kerberos Authentication. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsKerberosAuthentication(Boolean supportsKerberosAuthentication); /** *

* Indicates whether a DB instance supports RDS on Outposts. *

*

* For more information about RDS on Outposts, see Amazon RDS on Amazon Web * Services Outposts in the Amazon RDS User Guide. *

* * @param outpostCapable * Indicates whether a DB instance supports RDS on Outposts.

*

* For more information about RDS on Outposts, see 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 outpostCapable(Boolean outpostCapable); /** *

* The list of supported modes for Database Activity Streams. Aurora PostgreSQL returns the value * [sync, async]. Aurora MySQL and RDS for Oracle return [async] only. If Database * Activity Streams isn't supported, the return value is an empty list. *

* * @param supportedActivityStreamModes * The list of supported modes for Database Activity Streams. Aurora PostgreSQL returns the value * [sync, async]. Aurora MySQL and RDS for Oracle return [async] only. If * Database Activity Streams isn't supported, the return value is an empty list. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportedActivityStreamModes(Collection supportedActivityStreamModes); /** *

* The list of supported modes for Database Activity Streams. Aurora PostgreSQL returns the value * [sync, async]. Aurora MySQL and RDS for Oracle return [async] only. If Database * Activity Streams isn't supported, the return value is an empty list. *

* * @param supportedActivityStreamModes * The list of supported modes for Database Activity Streams. Aurora PostgreSQL returns the value * [sync, async]. Aurora MySQL and RDS for Oracle return [async] only. If * Database Activity Streams isn't supported, the return value is an empty list. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportedActivityStreamModes(String... supportedActivityStreamModes); /** *

* Indicates whether you can use Aurora global databases with a specific combination of other DB engine * attributes. *

* * @param supportsGlobalDatabases * Indicates whether you can use Aurora global databases with a specific combination of other DB engine * attributes. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsGlobalDatabases(Boolean supportsGlobalDatabases); /** *

* Indicates whether DB instances can be configured as a Multi-AZ DB cluster. *

*

* For more information on Multi-AZ DB clusters, see Multi-AZ * deployments with two readable standby DB instances in the Amazon RDS User Guide. *

* * @param supportsClusters * Indicates whether DB instances can be configured as a Multi-AZ DB cluster.

*

* For more information on Multi-AZ DB clusters, see * Multi-AZ deployments with two readable standby DB instances in the Amazon RDS User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsClusters(Boolean supportsClusters); /** *

* The network types supported by the DB instance (IPV4 or DUAL). *

*

* A DB instance 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. *

* * @param supportedNetworkTypes * The network types supported by the DB instance (IPV4 or DUAL).

*

* A DB instance 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 Returns a reference to this object so that method calls can be chained together. */ Builder supportedNetworkTypes(Collection supportedNetworkTypes); /** *

* The network types supported by the DB instance (IPV4 or DUAL). *

*

* A DB instance 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. *

* * @param supportedNetworkTypes * The network types supported by the DB instance (IPV4 or DUAL).

*

* A DB instance 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 Returns a reference to this object so that method calls can be chained together. */ Builder supportedNetworkTypes(String... supportedNetworkTypes); /** *

* Indicates whether a DB instance supports storage throughput. *

* * @param supportsStorageThroughput * Indicates whether a DB instance supports storage throughput. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsStorageThroughput(Boolean supportsStorageThroughput); /** *

* Minimum storage throughput for a DB instance. *

* * @param minStorageThroughputPerDbInstance * Minimum storage throughput for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder minStorageThroughputPerDbInstance(Integer minStorageThroughputPerDbInstance); /** *

* Maximum storage throughput for a DB instance. *

* * @param maxStorageThroughputPerDbInstance * Maximum storage throughput for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder maxStorageThroughputPerDbInstance(Integer maxStorageThroughputPerDbInstance); /** *

* Minimum storage throughput to provisioned IOPS ratio for a DB instance. *

* * @param minStorageThroughputPerIops * Minimum storage throughput to provisioned IOPS ratio for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder minStorageThroughputPerIops(Double minStorageThroughputPerIops); /** *

* Maximum storage throughput to provisioned IOPS ratio for a DB instance. *

* * @param maxStorageThroughputPerIops * Maximum storage throughput to provisioned IOPS ratio for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder maxStorageThroughputPerIops(Double maxStorageThroughputPerIops); /** *

* Indicates whether a DB instance supports using a dedicated log volume (DLV). *

* * @param supportsDedicatedLogVolume * Indicates whether a DB instance supports using a dedicated log volume (DLV). * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportsDedicatedLogVolume(Boolean supportsDedicatedLogVolume); } static final class BuilderImpl implements Builder { private String engine; private String engineVersion; private String dbInstanceClass; private String licenseModel; private String availabilityZoneGroup; private List availabilityZones = DefaultSdkAutoConstructList.getInstance(); private Boolean multiAZCapable; private Boolean readReplicaCapable; private Boolean vpc; private Boolean supportsStorageEncryption; private String storageType; private Boolean supportsIops; private Boolean supportsEnhancedMonitoring; private Boolean supportsIAMDatabaseAuthentication; private Boolean supportsPerformanceInsights; private Integer minStorageSize; private Integer maxStorageSize; private Integer minIopsPerDbInstance; private Integer maxIopsPerDbInstance; private Double minIopsPerGib; private Double maxIopsPerGib; private List availableProcessorFeatures = DefaultSdkAutoConstructList.getInstance(); private List supportedEngineModes = DefaultSdkAutoConstructList.getInstance(); private Boolean supportsStorageAutoscaling; private Boolean supportsKerberosAuthentication; private Boolean outpostCapable; private List supportedActivityStreamModes = DefaultSdkAutoConstructList.getInstance(); private Boolean supportsGlobalDatabases; private Boolean supportsClusters; private List supportedNetworkTypes = DefaultSdkAutoConstructList.getInstance(); private Boolean supportsStorageThroughput; private Integer minStorageThroughputPerDbInstance; private Integer maxStorageThroughputPerDbInstance; private Double minStorageThroughputPerIops; private Double maxStorageThroughputPerIops; private Boolean supportsDedicatedLogVolume; private BuilderImpl() { } private BuilderImpl(OrderableDBInstanceOption model) { engine(model.engine); engineVersion(model.engineVersion); dbInstanceClass(model.dbInstanceClass); licenseModel(model.licenseModel); availabilityZoneGroup(model.availabilityZoneGroup); availabilityZones(model.availabilityZones); multiAZCapable(model.multiAZCapable); readReplicaCapable(model.readReplicaCapable); vpc(model.vpc); supportsStorageEncryption(model.supportsStorageEncryption); storageType(model.storageType); supportsIops(model.supportsIops); supportsEnhancedMonitoring(model.supportsEnhancedMonitoring); supportsIAMDatabaseAuthentication(model.supportsIAMDatabaseAuthentication); supportsPerformanceInsights(model.supportsPerformanceInsights); minStorageSize(model.minStorageSize); maxStorageSize(model.maxStorageSize); minIopsPerDbInstance(model.minIopsPerDbInstance); maxIopsPerDbInstance(model.maxIopsPerDbInstance); minIopsPerGib(model.minIopsPerGib); maxIopsPerGib(model.maxIopsPerGib); availableProcessorFeatures(model.availableProcessorFeatures); supportedEngineModes(model.supportedEngineModes); supportsStorageAutoscaling(model.supportsStorageAutoscaling); supportsKerberosAuthentication(model.supportsKerberosAuthentication); outpostCapable(model.outpostCapable); supportedActivityStreamModes(model.supportedActivityStreamModes); supportsGlobalDatabases(model.supportsGlobalDatabases); supportsClusters(model.supportsClusters); supportedNetworkTypes(model.supportedNetworkTypes); supportsStorageThroughput(model.supportsStorageThroughput); minStorageThroughputPerDbInstance(model.minStorageThroughputPerDbInstance); maxStorageThroughputPerDbInstance(model.maxStorageThroughputPerDbInstance); minStorageThroughputPerIops(model.minStorageThroughputPerIops); maxStorageThroughputPerIops(model.maxStorageThroughputPerIops); supportsDedicatedLogVolume(model.supportsDedicatedLogVolume); } 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 String getEngineVersion() { return engineVersion; } public final void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } @Override public final Builder engineVersion(String engineVersion) { this.engineVersion = engineVersion; 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 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 getAvailabilityZoneGroup() { return availabilityZoneGroup; } public final void setAvailabilityZoneGroup(String availabilityZoneGroup) { this.availabilityZoneGroup = availabilityZoneGroup; } @Override public final Builder availabilityZoneGroup(String availabilityZoneGroup) { this.availabilityZoneGroup = availabilityZoneGroup; return this; } public final List getAvailabilityZones() { List result = AvailabilityZoneListCopier.copyToBuilder(this.availabilityZones); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setAvailabilityZones(Collection availabilityZones) { this.availabilityZones = AvailabilityZoneListCopier.copyFromBuilder(availabilityZones); } @Override public final Builder availabilityZones(Collection availabilityZones) { this.availabilityZones = AvailabilityZoneListCopier.copy(availabilityZones); return this; } @Override @SafeVarargs public final Builder availabilityZones(AvailabilityZone... availabilityZones) { availabilityZones(Arrays.asList(availabilityZones)); return this; } @Override @SafeVarargs public final Builder availabilityZones(Consumer... availabilityZones) { availabilityZones(Stream.of(availabilityZones).map(c -> AvailabilityZone.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; } public final Boolean getMultiAZCapable() { return multiAZCapable; } public final void setMultiAZCapable(Boolean multiAZCapable) { this.multiAZCapable = multiAZCapable; } @Override public final Builder multiAZCapable(Boolean multiAZCapable) { this.multiAZCapable = multiAZCapable; return this; } public final Boolean getReadReplicaCapable() { return readReplicaCapable; } public final void setReadReplicaCapable(Boolean readReplicaCapable) { this.readReplicaCapable = readReplicaCapable; } @Override public final Builder readReplicaCapable(Boolean readReplicaCapable) { this.readReplicaCapable = readReplicaCapable; return this; } public final Boolean getVpc() { return vpc; } public final void setVpc(Boolean vpc) { this.vpc = vpc; } @Override public final Builder vpc(Boolean vpc) { this.vpc = vpc; return this; } public final Boolean getSupportsStorageEncryption() { return supportsStorageEncryption; } public final void setSupportsStorageEncryption(Boolean supportsStorageEncryption) { this.supportsStorageEncryption = supportsStorageEncryption; } @Override public final Builder supportsStorageEncryption(Boolean supportsStorageEncryption) { this.supportsStorageEncryption = supportsStorageEncryption; 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 Boolean getSupportsIops() { return supportsIops; } public final void setSupportsIops(Boolean supportsIops) { this.supportsIops = supportsIops; } @Override public final Builder supportsIops(Boolean supportsIops) { this.supportsIops = supportsIops; return this; } public final Boolean getSupportsEnhancedMonitoring() { return supportsEnhancedMonitoring; } public final void setSupportsEnhancedMonitoring(Boolean supportsEnhancedMonitoring) { this.supportsEnhancedMonitoring = supportsEnhancedMonitoring; } @Override public final Builder supportsEnhancedMonitoring(Boolean supportsEnhancedMonitoring) { this.supportsEnhancedMonitoring = supportsEnhancedMonitoring; return this; } public final Boolean getSupportsIAMDatabaseAuthentication() { return supportsIAMDatabaseAuthentication; } public final void setSupportsIAMDatabaseAuthentication(Boolean supportsIAMDatabaseAuthentication) { this.supportsIAMDatabaseAuthentication = supportsIAMDatabaseAuthentication; } @Override public final Builder supportsIAMDatabaseAuthentication(Boolean supportsIAMDatabaseAuthentication) { this.supportsIAMDatabaseAuthentication = supportsIAMDatabaseAuthentication; return this; } public final Boolean getSupportsPerformanceInsights() { return supportsPerformanceInsights; } public final void setSupportsPerformanceInsights(Boolean supportsPerformanceInsights) { this.supportsPerformanceInsights = supportsPerformanceInsights; } @Override public final Builder supportsPerformanceInsights(Boolean supportsPerformanceInsights) { this.supportsPerformanceInsights = supportsPerformanceInsights; return this; } public final Integer getMinStorageSize() { return minStorageSize; } public final void setMinStorageSize(Integer minStorageSize) { this.minStorageSize = minStorageSize; } @Override public final Builder minStorageSize(Integer minStorageSize) { this.minStorageSize = minStorageSize; return this; } public final Integer getMaxStorageSize() { return maxStorageSize; } public final void setMaxStorageSize(Integer maxStorageSize) { this.maxStorageSize = maxStorageSize; } @Override public final Builder maxStorageSize(Integer maxStorageSize) { this.maxStorageSize = maxStorageSize; return this; } public final Integer getMinIopsPerDbInstance() { return minIopsPerDbInstance; } public final void setMinIopsPerDbInstance(Integer minIopsPerDbInstance) { this.minIopsPerDbInstance = minIopsPerDbInstance; } @Override public final Builder minIopsPerDbInstance(Integer minIopsPerDbInstance) { this.minIopsPerDbInstance = minIopsPerDbInstance; return this; } public final Integer getMaxIopsPerDbInstance() { return maxIopsPerDbInstance; } public final void setMaxIopsPerDbInstance(Integer maxIopsPerDbInstance) { this.maxIopsPerDbInstance = maxIopsPerDbInstance; } @Override public final Builder maxIopsPerDbInstance(Integer maxIopsPerDbInstance) { this.maxIopsPerDbInstance = maxIopsPerDbInstance; return this; } public final Double getMinIopsPerGib() { return minIopsPerGib; } public final void setMinIopsPerGib(Double minIopsPerGib) { this.minIopsPerGib = minIopsPerGib; } @Override public final Builder minIopsPerGib(Double minIopsPerGib) { this.minIopsPerGib = minIopsPerGib; return this; } public final Double getMaxIopsPerGib() { return maxIopsPerGib; } public final void setMaxIopsPerGib(Double maxIopsPerGib) { this.maxIopsPerGib = maxIopsPerGib; } @Override public final Builder maxIopsPerGib(Double maxIopsPerGib) { this.maxIopsPerGib = maxIopsPerGib; return this; } public final List getAvailableProcessorFeatures() { List result = AvailableProcessorFeatureListCopier .copyToBuilder(this.availableProcessorFeatures); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setAvailableProcessorFeatures( Collection availableProcessorFeatures) { this.availableProcessorFeatures = AvailableProcessorFeatureListCopier.copyFromBuilder(availableProcessorFeatures); } @Override public final Builder availableProcessorFeatures(Collection availableProcessorFeatures) { this.availableProcessorFeatures = AvailableProcessorFeatureListCopier.copy(availableProcessorFeatures); return this; } @Override @SafeVarargs public final Builder availableProcessorFeatures(AvailableProcessorFeature... availableProcessorFeatures) { availableProcessorFeatures(Arrays.asList(availableProcessorFeatures)); return this; } @Override @SafeVarargs public final Builder availableProcessorFeatures(Consumer... availableProcessorFeatures) { availableProcessorFeatures(Stream.of(availableProcessorFeatures) .map(c -> AvailableProcessorFeature.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; } public final Collection getSupportedEngineModes() { if (supportedEngineModes instanceof SdkAutoConstructList) { return null; } return supportedEngineModes; } public final void setSupportedEngineModes(Collection supportedEngineModes) { this.supportedEngineModes = EngineModeListCopier.copy(supportedEngineModes); } @Override public final Builder supportedEngineModes(Collection supportedEngineModes) { this.supportedEngineModes = EngineModeListCopier.copy(supportedEngineModes); return this; } @Override @SafeVarargs public final Builder supportedEngineModes(String... supportedEngineModes) { supportedEngineModes(Arrays.asList(supportedEngineModes)); return this; } public final Boolean getSupportsStorageAutoscaling() { return supportsStorageAutoscaling; } public final void setSupportsStorageAutoscaling(Boolean supportsStorageAutoscaling) { this.supportsStorageAutoscaling = supportsStorageAutoscaling; } @Override public final Builder supportsStorageAutoscaling(Boolean supportsStorageAutoscaling) { this.supportsStorageAutoscaling = supportsStorageAutoscaling; return this; } public final Boolean getSupportsKerberosAuthentication() { return supportsKerberosAuthentication; } public final void setSupportsKerberosAuthentication(Boolean supportsKerberosAuthentication) { this.supportsKerberosAuthentication = supportsKerberosAuthentication; } @Override public final Builder supportsKerberosAuthentication(Boolean supportsKerberosAuthentication) { this.supportsKerberosAuthentication = supportsKerberosAuthentication; return this; } public final Boolean getOutpostCapable() { return outpostCapable; } public final void setOutpostCapable(Boolean outpostCapable) { this.outpostCapable = outpostCapable; } @Override public final Builder outpostCapable(Boolean outpostCapable) { this.outpostCapable = outpostCapable; return this; } public final Collection getSupportedActivityStreamModes() { if (supportedActivityStreamModes instanceof SdkAutoConstructList) { return null; } return supportedActivityStreamModes; } public final void setSupportedActivityStreamModes(Collection supportedActivityStreamModes) { this.supportedActivityStreamModes = ActivityStreamModeListCopier.copy(supportedActivityStreamModes); } @Override public final Builder supportedActivityStreamModes(Collection supportedActivityStreamModes) { this.supportedActivityStreamModes = ActivityStreamModeListCopier.copy(supportedActivityStreamModes); return this; } @Override @SafeVarargs public final Builder supportedActivityStreamModes(String... supportedActivityStreamModes) { supportedActivityStreamModes(Arrays.asList(supportedActivityStreamModes)); return this; } public final Boolean getSupportsGlobalDatabases() { return supportsGlobalDatabases; } public final void setSupportsGlobalDatabases(Boolean supportsGlobalDatabases) { this.supportsGlobalDatabases = supportsGlobalDatabases; } @Override public final Builder supportsGlobalDatabases(Boolean supportsGlobalDatabases) { this.supportsGlobalDatabases = supportsGlobalDatabases; return this; } public final Boolean getSupportsClusters() { return supportsClusters; } public final void setSupportsClusters(Boolean supportsClusters) { this.supportsClusters = supportsClusters; } @Override public final Builder supportsClusters(Boolean supportsClusters) { this.supportsClusters = supportsClusters; return this; } public final Collection getSupportedNetworkTypes() { if (supportedNetworkTypes instanceof SdkAutoConstructList) { return null; } return supportedNetworkTypes; } public final void setSupportedNetworkTypes(Collection supportedNetworkTypes) { this.supportedNetworkTypes = StringListCopier.copy(supportedNetworkTypes); } @Override public final Builder supportedNetworkTypes(Collection supportedNetworkTypes) { this.supportedNetworkTypes = StringListCopier.copy(supportedNetworkTypes); return this; } @Override @SafeVarargs public final Builder supportedNetworkTypes(String... supportedNetworkTypes) { supportedNetworkTypes(Arrays.asList(supportedNetworkTypes)); return this; } public final Boolean getSupportsStorageThroughput() { return supportsStorageThroughput; } public final void setSupportsStorageThroughput(Boolean supportsStorageThroughput) { this.supportsStorageThroughput = supportsStorageThroughput; } @Override public final Builder supportsStorageThroughput(Boolean supportsStorageThroughput) { this.supportsStorageThroughput = supportsStorageThroughput; return this; } public final Integer getMinStorageThroughputPerDbInstance() { return minStorageThroughputPerDbInstance; } public final void setMinStorageThroughputPerDbInstance(Integer minStorageThroughputPerDbInstance) { this.minStorageThroughputPerDbInstance = minStorageThroughputPerDbInstance; } @Override public final Builder minStorageThroughputPerDbInstance(Integer minStorageThroughputPerDbInstance) { this.minStorageThroughputPerDbInstance = minStorageThroughputPerDbInstance; return this; } public final Integer getMaxStorageThroughputPerDbInstance() { return maxStorageThroughputPerDbInstance; } public final void setMaxStorageThroughputPerDbInstance(Integer maxStorageThroughputPerDbInstance) { this.maxStorageThroughputPerDbInstance = maxStorageThroughputPerDbInstance; } @Override public final Builder maxStorageThroughputPerDbInstance(Integer maxStorageThroughputPerDbInstance) { this.maxStorageThroughputPerDbInstance = maxStorageThroughputPerDbInstance; return this; } public final Double getMinStorageThroughputPerIops() { return minStorageThroughputPerIops; } public final void setMinStorageThroughputPerIops(Double minStorageThroughputPerIops) { this.minStorageThroughputPerIops = minStorageThroughputPerIops; } @Override public final Builder minStorageThroughputPerIops(Double minStorageThroughputPerIops) { this.minStorageThroughputPerIops = minStorageThroughputPerIops; return this; } public final Double getMaxStorageThroughputPerIops() { return maxStorageThroughputPerIops; } public final void setMaxStorageThroughputPerIops(Double maxStorageThroughputPerIops) { this.maxStorageThroughputPerIops = maxStorageThroughputPerIops; } @Override public final Builder maxStorageThroughputPerIops(Double maxStorageThroughputPerIops) { this.maxStorageThroughputPerIops = maxStorageThroughputPerIops; return this; } public final Boolean getSupportsDedicatedLogVolume() { return supportsDedicatedLogVolume; } public final void setSupportsDedicatedLogVolume(Boolean supportsDedicatedLogVolume) { this.supportsDedicatedLogVolume = supportsDedicatedLogVolume; } @Override public final Builder supportsDedicatedLogVolume(Boolean supportsDedicatedLogVolume) { this.supportsDedicatedLogVolume = supportsDedicatedLogVolume; return this; } @Override public OrderableDBInstanceOption build() { return new OrderableDBInstanceOption(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy