software.amazon.awssdk.services.neptune.model.OrderableDBInstanceOption Maven / Gradle / Ivy
Show all versions of neptune Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.neptune.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_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 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 List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ENGINE_FIELD,
ENGINE_VERSION_FIELD, DB_INSTANCE_CLASS_FIELD, LICENSE_MODEL_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, SUPPORTS_GLOBAL_DATABASES_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 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 Boolean supportsGlobalDatabases;
private OrderableDBInstanceOption(BuilderImpl builder) {
this.engine = builder.engine;
this.engineVersion = builder.engineVersion;
this.dbInstanceClass = builder.dbInstanceClass;
this.licenseModel = builder.licenseModel;
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.supportsGlobalDatabases = builder.supportsGlobalDatabases;
}
/**
*
* 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;
}
/**
* 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;
}
/**
*
* Indicates the storage type for a DB instance.
*
*
* @return Indicates 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;
}
/**
*
* (Not supported by Neptune)
*
*
* @return (Not supported by Neptune)
*/
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;
}
/**
*
* A value that indicates whether you can use Neptune global databases with a specific combination of other DB
* engine attributes.
*
*
* @return A value that indicates whether you can use Neptune global databases with a specific combination of other
* DB engine attributes.
*/
public final Boolean supportsGlobalDatabases() {
return supportsGlobalDatabases;
}
@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 + 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(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(supportsGlobalDatabases());
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()) && 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())
&& Objects.equals(supportsGlobalDatabases(), other.supportsGlobalDatabases());
}
/**
* 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("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("SupportsGlobalDatabases", supportsGlobalDatabases()).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 "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 "SupportsGlobalDatabases":
return Optional.ofNullable(clazz.cast(supportsGlobalDatabases()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function