software.amazon.awssdk.services.rds.model.OptionGroupOption Maven / Gradle / Ivy
Show all versions of rds Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.rds.model;
import java.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;
/**
*
* Available option.
*
*/
@Generated("software.amazon.awssdk:codegen")
public final class OptionGroupOption implements SdkPojo, Serializable,
ToCopyableBuilder {
private static final SdkField NAME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Name")
.getter(getter(OptionGroupOption::name)).setter(setter(Builder::name))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Name").build()).build();
private static final SdkField DESCRIPTION_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("Description").getter(getter(OptionGroupOption::description)).setter(setter(Builder::description))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Description").build()).build();
private static final SdkField ENGINE_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("EngineName").getter(getter(OptionGroupOption::engineName)).setter(setter(Builder::engineName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EngineName").build()).build();
private static final SdkField MAJOR_ENGINE_VERSION_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("MajorEngineVersion").getter(getter(OptionGroupOption::majorEngineVersion))
.setter(setter(Builder::majorEngineVersion))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MajorEngineVersion").build())
.build();
private static final SdkField MINIMUM_REQUIRED_MINOR_ENGINE_VERSION_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("MinimumRequiredMinorEngineVersion")
.getter(getter(OptionGroupOption::minimumRequiredMinorEngineVersion))
.setter(setter(Builder::minimumRequiredMinorEngineVersion))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MinimumRequiredMinorEngineVersion")
.build()).build();
private static final SdkField PORT_REQUIRED_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("PortRequired").getter(getter(OptionGroupOption::portRequired)).setter(setter(Builder::portRequired))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PortRequired").build()).build();
private static final SdkField DEFAULT_PORT_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("DefaultPort").getter(getter(OptionGroupOption::defaultPort)).setter(setter(Builder::defaultPort))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DefaultPort").build()).build();
private static final SdkField> OPTIONS_DEPENDED_ON_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("OptionsDependedOn")
.getter(getter(OptionGroupOption::optionsDependedOn))
.setter(setter(Builder::optionsDependedOn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OptionsDependedOn").build(),
ListTrait
.builder()
.memberLocationName("OptionName")
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("OptionName").build()).build()).build()).build();
private static final SdkField> OPTIONS_CONFLICTS_WITH_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("OptionsConflictsWith")
.getter(getter(OptionGroupOption::optionsConflictsWith))
.setter(setter(Builder::optionsConflictsWith))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OptionsConflictsWith").build(),
ListTrait
.builder()
.memberLocationName("OptionConflictName")
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("OptionConflictName").build()).build()).build()).build();
private static final SdkField PERSISTENT_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("Persistent").getter(getter(OptionGroupOption::persistent)).setter(setter(Builder::persistent))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Persistent").build()).build();
private static final SdkField PERMANENT_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("Permanent").getter(getter(OptionGroupOption::permanent)).setter(setter(Builder::permanent))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Permanent").build()).build();
private static final SdkField REQUIRES_AUTO_MINOR_ENGINE_VERSION_UPGRADE_FIELD = SdkField
. builder(MarshallingType.BOOLEAN)
.memberName("RequiresAutoMinorEngineVersionUpgrade")
.getter(getter(OptionGroupOption::requiresAutoMinorEngineVersionUpgrade))
.setter(setter(Builder::requiresAutoMinorEngineVersionUpgrade))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("RequiresAutoMinorEngineVersionUpgrade").build()).build();
private static final SdkField VPC_ONLY_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("VpcOnly").getter(getter(OptionGroupOption::vpcOnly)).setter(setter(Builder::vpcOnly))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("VpcOnly").build()).build();
private static final SdkField SUPPORTS_OPTION_VERSION_DOWNGRADE_FIELD = SdkField
. builder(MarshallingType.BOOLEAN)
.memberName("SupportsOptionVersionDowngrade")
.getter(getter(OptionGroupOption::supportsOptionVersionDowngrade))
.setter(setter(Builder::supportsOptionVersionDowngrade))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportsOptionVersionDowngrade")
.build()).build();
private static final SdkField> OPTION_GROUP_OPTION_SETTINGS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("OptionGroupOptionSettings")
.getter(getter(OptionGroupOption::optionGroupOptionSettings))
.setter(setter(Builder::optionGroupOptionSettings))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OptionGroupOptionSettings").build(),
ListTrait
.builder()
.memberLocationName("OptionGroupOptionSetting")
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(OptionGroupOptionSetting::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("OptionGroupOptionSetting").build()).build()).build()).build();
private static final SdkField> OPTION_GROUP_OPTION_VERSIONS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("OptionGroupOptionVersions")
.getter(getter(OptionGroupOption::optionGroupOptionVersions))
.setter(setter(Builder::optionGroupOptionVersions))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OptionGroupOptionVersions").build(),
ListTrait
.builder()
.memberLocationName("OptionVersion")
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(OptionVersion::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("OptionVersion").build()).build()).build()).build();
private static final SdkField COPYABLE_CROSS_ACCOUNT_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("CopyableCrossAccount").getter(getter(OptionGroupOption::copyableCrossAccount))
.setter(setter(Builder::copyableCrossAccount))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CopyableCrossAccount").build())
.build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(NAME_FIELD, DESCRIPTION_FIELD,
ENGINE_NAME_FIELD, MAJOR_ENGINE_VERSION_FIELD, MINIMUM_REQUIRED_MINOR_ENGINE_VERSION_FIELD, PORT_REQUIRED_FIELD,
DEFAULT_PORT_FIELD, OPTIONS_DEPENDED_ON_FIELD, OPTIONS_CONFLICTS_WITH_FIELD, PERSISTENT_FIELD, PERMANENT_FIELD,
REQUIRES_AUTO_MINOR_ENGINE_VERSION_UPGRADE_FIELD, VPC_ONLY_FIELD, SUPPORTS_OPTION_VERSION_DOWNGRADE_FIELD,
OPTION_GROUP_OPTION_SETTINGS_FIELD, OPTION_GROUP_OPTION_VERSIONS_FIELD, COPYABLE_CROSS_ACCOUNT_FIELD));
private static final long serialVersionUID = 1L;
private final String name;
private final String description;
private final String engineName;
private final String majorEngineVersion;
private final String minimumRequiredMinorEngineVersion;
private final Boolean portRequired;
private final Integer defaultPort;
private final List optionsDependedOn;
private final List optionsConflictsWith;
private final Boolean persistent;
private final Boolean permanent;
private final Boolean requiresAutoMinorEngineVersionUpgrade;
private final Boolean vpcOnly;
private final Boolean supportsOptionVersionDowngrade;
private final List optionGroupOptionSettings;
private final List optionGroupOptionVersions;
private final Boolean copyableCrossAccount;
private OptionGroupOption(BuilderImpl builder) {
this.name = builder.name;
this.description = builder.description;
this.engineName = builder.engineName;
this.majorEngineVersion = builder.majorEngineVersion;
this.minimumRequiredMinorEngineVersion = builder.minimumRequiredMinorEngineVersion;
this.portRequired = builder.portRequired;
this.defaultPort = builder.defaultPort;
this.optionsDependedOn = builder.optionsDependedOn;
this.optionsConflictsWith = builder.optionsConflictsWith;
this.persistent = builder.persistent;
this.permanent = builder.permanent;
this.requiresAutoMinorEngineVersionUpgrade = builder.requiresAutoMinorEngineVersionUpgrade;
this.vpcOnly = builder.vpcOnly;
this.supportsOptionVersionDowngrade = builder.supportsOptionVersionDowngrade;
this.optionGroupOptionSettings = builder.optionGroupOptionSettings;
this.optionGroupOptionVersions = builder.optionGroupOptionVersions;
this.copyableCrossAccount = builder.copyableCrossAccount;
}
/**
*
* The name of the option.
*
*
* @return The name of the option.
*/
public final String name() {
return name;
}
/**
*
* The description of the option.
*
*
* @return The description of the option.
*/
public final String description() {
return description;
}
/**
*
* The name of the engine that this option can be applied to.
*
*
* @return The name of the engine that this option can be applied to.
*/
public final String engineName() {
return engineName;
}
/**
*
* Indicates the major engine version that the option is available for.
*
*
* @return Indicates the major engine version that the option is available for.
*/
public final String majorEngineVersion() {
return majorEngineVersion;
}
/**
*
* The minimum required engine version for the option to be applied.
*
*
* @return The minimum required engine version for the option to be applied.
*/
public final String minimumRequiredMinorEngineVersion() {
return minimumRequiredMinorEngineVersion;
}
/**
*
* Indicates whether the option requires a port.
*
*
* @return Indicates whether the option requires a port.
*/
public final Boolean portRequired() {
return portRequired;
}
/**
*
* If the option requires a port, specifies the default port for the option.
*
*
* @return If the option requires a port, specifies the default port for the option.
*/
public final Integer defaultPort() {
return defaultPort;
}
/**
* For responses, this returns true if the service returned a value for the OptionsDependedOn 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 hasOptionsDependedOn() {
return optionsDependedOn != null && !(optionsDependedOn instanceof SdkAutoConstructList);
}
/**
*
* The options that are prerequisites for this option.
*
*
* 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 #hasOptionsDependedOn} method.
*
*
* @return The options that are prerequisites for this option.
*/
public final List optionsDependedOn() {
return optionsDependedOn;
}
/**
* For responses, this returns true if the service returned a value for the OptionsConflictsWith 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 hasOptionsConflictsWith() {
return optionsConflictsWith != null && !(optionsConflictsWith instanceof SdkAutoConstructList);
}
/**
*
* The options that conflict with this option.
*
*
* 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 #hasOptionsConflictsWith} method.
*
*
* @return The options that conflict with this option.
*/
public final List optionsConflictsWith() {
return optionsConflictsWith;
}
/**
*
* Persistent options can't be removed from an option group while DB instances are associated with the option group.
* If you disassociate all DB instances from the option group, your can remove the persistent option from the option
* group.
*
*
* @return Persistent options can't be removed from an option group while DB instances are associated with the
* option group. If you disassociate all DB instances from the option group, your can remove the persistent
* option from the option group.
*/
public final Boolean persistent() {
return persistent;
}
/**
*
* Permanent options can never be removed from an option group. An option group containing a permanent option can't
* be removed from a DB instance.
*
*
* @return Permanent options can never be removed from an option group. An option group containing a permanent
* option can't be removed from a DB instance.
*/
public final Boolean permanent() {
return permanent;
}
/**
*
* If true, you must enable the Auto Minor Version Upgrade setting for your DB instance before you can use this
* option. You can enable Auto Minor Version Upgrade when you first create your DB instance, or by modifying your DB
* instance later.
*
*
* @return If true, you must enable the Auto Minor Version Upgrade setting for your DB instance before you can use
* this option. You can enable Auto Minor Version Upgrade when you first create your DB instance, or by
* modifying your DB instance later.
*/
public final Boolean requiresAutoMinorEngineVersionUpgrade() {
return requiresAutoMinorEngineVersionUpgrade;
}
/**
*
* If true, you can only use this option with a DB instance that is in a VPC.
*
*
* @return If true, you can only use this option with a DB instance that is in a VPC.
*/
public final Boolean vpcOnly() {
return vpcOnly;
}
/**
*
* If true, you can change the option to an earlier version of the option. This only applies to options that have
* different versions available.
*
*
* @return If true, you can change the option to an earlier version of the option. This only applies to options that
* have different versions available.
*/
public final Boolean supportsOptionVersionDowngrade() {
return supportsOptionVersionDowngrade;
}
/**
* For responses, this returns true if the service returned a value for the OptionGroupOptionSettings 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 hasOptionGroupOptionSettings() {
return optionGroupOptionSettings != null && !(optionGroupOptionSettings instanceof SdkAutoConstructList);
}
/**
*
* The option settings that are available (and the default value) for each option in an option group.
*
*
* 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 #hasOptionGroupOptionSettings} method.
*
*
* @return The option settings that are available (and the default value) for each option in an option group.
*/
public final List optionGroupOptionSettings() {
return optionGroupOptionSettings;
}
/**
* For responses, this returns true if the service returned a value for the OptionGroupOptionVersions 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 hasOptionGroupOptionVersions() {
return optionGroupOptionVersions != null && !(optionGroupOptionVersions instanceof SdkAutoConstructList);
}
/**
*
* The versions that are available for the option.
*
*
* 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 #hasOptionGroupOptionVersions} method.
*
*
* @return The versions that are available for the option.
*/
public final List optionGroupOptionVersions() {
return optionGroupOptionVersions;
}
/**
*
* Indicates whether the option can be copied across Amazon Web Services accounts.
*
*
* @return Indicates whether the option can be copied across Amazon Web Services accounts.
*/
public final Boolean copyableCrossAccount() {
return copyableCrossAccount;
}
@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(name());
hashCode = 31 * hashCode + Objects.hashCode(description());
hashCode = 31 * hashCode + Objects.hashCode(engineName());
hashCode = 31 * hashCode + Objects.hashCode(majorEngineVersion());
hashCode = 31 * hashCode + Objects.hashCode(minimumRequiredMinorEngineVersion());
hashCode = 31 * hashCode + Objects.hashCode(portRequired());
hashCode = 31 * hashCode + Objects.hashCode(defaultPort());
hashCode = 31 * hashCode + Objects.hashCode(hasOptionsDependedOn() ? optionsDependedOn() : null);
hashCode = 31 * hashCode + Objects.hashCode(hasOptionsConflictsWith() ? optionsConflictsWith() : null);
hashCode = 31 * hashCode + Objects.hashCode(persistent());
hashCode = 31 * hashCode + Objects.hashCode(permanent());
hashCode = 31 * hashCode + Objects.hashCode(requiresAutoMinorEngineVersionUpgrade());
hashCode = 31 * hashCode + Objects.hashCode(vpcOnly());
hashCode = 31 * hashCode + Objects.hashCode(supportsOptionVersionDowngrade());
hashCode = 31 * hashCode + Objects.hashCode(hasOptionGroupOptionSettings() ? optionGroupOptionSettings() : null);
hashCode = 31 * hashCode + Objects.hashCode(hasOptionGroupOptionVersions() ? optionGroupOptionVersions() : null);
hashCode = 31 * hashCode + Objects.hashCode(copyableCrossAccount());
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 OptionGroupOption)) {
return false;
}
OptionGroupOption other = (OptionGroupOption) obj;
return Objects.equals(name(), other.name()) && Objects.equals(description(), other.description())
&& Objects.equals(engineName(), other.engineName())
&& Objects.equals(majorEngineVersion(), other.majorEngineVersion())
&& Objects.equals(minimumRequiredMinorEngineVersion(), other.minimumRequiredMinorEngineVersion())
&& Objects.equals(portRequired(), other.portRequired()) && Objects.equals(defaultPort(), other.defaultPort())
&& hasOptionsDependedOn() == other.hasOptionsDependedOn()
&& Objects.equals(optionsDependedOn(), other.optionsDependedOn())
&& hasOptionsConflictsWith() == other.hasOptionsConflictsWith()
&& Objects.equals(optionsConflictsWith(), other.optionsConflictsWith())
&& Objects.equals(persistent(), other.persistent()) && Objects.equals(permanent(), other.permanent())
&& Objects.equals(requiresAutoMinorEngineVersionUpgrade(), other.requiresAutoMinorEngineVersionUpgrade())
&& Objects.equals(vpcOnly(), other.vpcOnly())
&& Objects.equals(supportsOptionVersionDowngrade(), other.supportsOptionVersionDowngrade())
&& hasOptionGroupOptionSettings() == other.hasOptionGroupOptionSettings()
&& Objects.equals(optionGroupOptionSettings(), other.optionGroupOptionSettings())
&& hasOptionGroupOptionVersions() == other.hasOptionGroupOptionVersions()
&& Objects.equals(optionGroupOptionVersions(), other.optionGroupOptionVersions())
&& Objects.equals(copyableCrossAccount(), other.copyableCrossAccount());
}
/**
* 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("OptionGroupOption").add("Name", name()).add("Description", description())
.add("EngineName", engineName()).add("MajorEngineVersion", majorEngineVersion())
.add("MinimumRequiredMinorEngineVersion", minimumRequiredMinorEngineVersion())
.add("PortRequired", portRequired()).add("DefaultPort", defaultPort())
.add("OptionsDependedOn", hasOptionsDependedOn() ? optionsDependedOn() : null)
.add("OptionsConflictsWith", hasOptionsConflictsWith() ? optionsConflictsWith() : null)
.add("Persistent", persistent()).add("Permanent", permanent())
.add("RequiresAutoMinorEngineVersionUpgrade", requiresAutoMinorEngineVersionUpgrade()).add("VpcOnly", vpcOnly())
.add("SupportsOptionVersionDowngrade", supportsOptionVersionDowngrade())
.add("OptionGroupOptionSettings", hasOptionGroupOptionSettings() ? optionGroupOptionSettings() : null)
.add("OptionGroupOptionVersions", hasOptionGroupOptionVersions() ? optionGroupOptionVersions() : null)
.add("CopyableCrossAccount", copyableCrossAccount()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "Name":
return Optional.ofNullable(clazz.cast(name()));
case "Description":
return Optional.ofNullable(clazz.cast(description()));
case "EngineName":
return Optional.ofNullable(clazz.cast(engineName()));
case "MajorEngineVersion":
return Optional.ofNullable(clazz.cast(majorEngineVersion()));
case "MinimumRequiredMinorEngineVersion":
return Optional.ofNullable(clazz.cast(minimumRequiredMinorEngineVersion()));
case "PortRequired":
return Optional.ofNullable(clazz.cast(portRequired()));
case "DefaultPort":
return Optional.ofNullable(clazz.cast(defaultPort()));
case "OptionsDependedOn":
return Optional.ofNullable(clazz.cast(optionsDependedOn()));
case "OptionsConflictsWith":
return Optional.ofNullable(clazz.cast(optionsConflictsWith()));
case "Persistent":
return Optional.ofNullable(clazz.cast(persistent()));
case "Permanent":
return Optional.ofNullable(clazz.cast(permanent()));
case "RequiresAutoMinorEngineVersionUpgrade":
return Optional.ofNullable(clazz.cast(requiresAutoMinorEngineVersionUpgrade()));
case "VpcOnly":
return Optional.ofNullable(clazz.cast(vpcOnly()));
case "SupportsOptionVersionDowngrade":
return Optional.ofNullable(clazz.cast(supportsOptionVersionDowngrade()));
case "OptionGroupOptionSettings":
return Optional.ofNullable(clazz.cast(optionGroupOptionSettings()));
case "OptionGroupOptionVersions":
return Optional.ofNullable(clazz.cast(optionGroupOptionVersions()));
case "CopyableCrossAccount":
return Optional.ofNullable(clazz.cast(copyableCrossAccount()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function