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

software.amazon.awssdk.services.docdb.model.CreateDbInstanceRequest Maven / Gradle / Ivy

/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.docdb.model;

import java.beans.Transient;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* Represents the input to CreateDBInstance. *

*/ @Generated("software.amazon.awssdk:codegen") public final class CreateDbInstanceRequest extends DocDbRequest implements ToCopyableBuilder { private static final SdkField DB_INSTANCE_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("DBInstanceIdentifier").getter(getter(CreateDbInstanceRequest::dbInstanceIdentifier)) .setter(setter(Builder::dbInstanceIdentifier)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBInstanceIdentifier").build()) .build(); private static final SdkField DB_INSTANCE_CLASS_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("DBInstanceClass").getter(getter(CreateDbInstanceRequest::dbInstanceClass)) .setter(setter(Builder::dbInstanceClass)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBInstanceClass").build()).build(); private static final SdkField ENGINE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Engine") .getter(getter(CreateDbInstanceRequest::engine)).setter(setter(Builder::engine)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Engine").build()).build(); private static final SdkField AVAILABILITY_ZONE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("AvailabilityZone").getter(getter(CreateDbInstanceRequest::availabilityZone)) .setter(setter(Builder::availabilityZone)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AvailabilityZone").build()).build(); private static final SdkField PREFERRED_MAINTENANCE_WINDOW_FIELD = SdkField . builder(MarshallingType.STRING) .memberName("PreferredMaintenanceWindow") .getter(getter(CreateDbInstanceRequest::preferredMaintenanceWindow)) .setter(setter(Builder::preferredMaintenanceWindow)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PreferredMaintenanceWindow").build()) .build(); private static final SdkField AUTO_MINOR_VERSION_UPGRADE_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .memberName("AutoMinorVersionUpgrade").getter(getter(CreateDbInstanceRequest::autoMinorVersionUpgrade)) .setter(setter(Builder::autoMinorVersionUpgrade)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AutoMinorVersionUpgrade").build()) .build(); private static final SdkField> TAGS_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("Tags") .getter(getter(CreateDbInstanceRequest::tags)) .setter(setter(Builder::tags)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Tags").build(), ListTrait .builder() .memberLocationName("Tag") .memberFieldInfo( SdkField. builder(MarshallingType.SDK_POJO) .constructor(Tag::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("Tag").build()).build()).build()).build(); private static final SdkField DB_CLUSTER_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("DBClusterIdentifier").getter(getter(CreateDbInstanceRequest::dbClusterIdentifier)) .setter(setter(Builder::dbClusterIdentifier)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBClusterIdentifier").build()) .build(); private static final SdkField PROMOTION_TIER_FIELD = SdkField. builder(MarshallingType.INTEGER) .memberName("PromotionTier").getter(getter(CreateDbInstanceRequest::promotionTier)) .setter(setter(Builder::promotionTier)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PromotionTier").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(DB_INSTANCE_IDENTIFIER_FIELD, DB_INSTANCE_CLASS_FIELD, ENGINE_FIELD, AVAILABILITY_ZONE_FIELD, PREFERRED_MAINTENANCE_WINDOW_FIELD, AUTO_MINOR_VERSION_UPGRADE_FIELD, TAGS_FIELD, DB_CLUSTER_IDENTIFIER_FIELD, PROMOTION_TIER_FIELD)); private final String dbInstanceIdentifier; private final String dbInstanceClass; private final String engine; private final String availabilityZone; private final String preferredMaintenanceWindow; private final Boolean autoMinorVersionUpgrade; private final List tags; private final String dbClusterIdentifier; private final Integer promotionTier; private CreateDbInstanceRequest(BuilderImpl builder) { super(builder); this.dbInstanceIdentifier = builder.dbInstanceIdentifier; this.dbInstanceClass = builder.dbInstanceClass; this.engine = builder.engine; this.availabilityZone = builder.availabilityZone; this.preferredMaintenanceWindow = builder.preferredMaintenanceWindow; this.autoMinorVersionUpgrade = builder.autoMinorVersionUpgrade; this.tags = builder.tags; this.dbClusterIdentifier = builder.dbClusterIdentifier; this.promotionTier = builder.promotionTier; } /** *

* The instance identifier. This parameter is stored as a lowercase string. *

*

* Constraints: *

*
    *
  • *

    * Must contain from 1 to 63 letters, numbers, or hyphens. *

    *
  • *
  • *

    * The first character must be a letter. *

    *
  • *
  • *

    * Cannot end with a hyphen or contain two consecutive hyphens. *

    *
  • *
*

* Example: mydbinstance *

* * @return The instance identifier. This parameter is stored as a lowercase string.

*

* Constraints: *

*
    *
  • *

    * Must contain from 1 to 63 letters, numbers, or hyphens. *

    *
  • *
  • *

    * The first character must be a letter. *

    *
  • *
  • *

    * Cannot end with a hyphen or contain two consecutive hyphens. *

    *
  • *
*

* Example: mydbinstance */ public final String dbInstanceIdentifier() { return dbInstanceIdentifier; } /** *

* The compute and memory capacity of the instance; for example, db.r5.large. *

* * @return The compute and memory capacity of the instance; for example, db.r5.large. */ public final String dbInstanceClass() { return dbInstanceClass; } /** *

* The name of the database engine to be used for this instance. *

*

* Valid value: docdb *

* * @return The name of the database engine to be used for this instance.

*

* Valid value: docdb */ public final String engine() { return engine; } /** *

* The Amazon EC2 Availability Zone that the instance is created in. *

*

* Default: A random, system-chosen Availability Zone in the endpoint's Region. *

*

* Example: us-east-1d *

* * @return The Amazon EC2 Availability Zone that the instance is created in.

*

* Default: A random, system-chosen Availability Zone in the endpoint's Region. *

*

* Example: us-east-1d */ public final String availabilityZone() { return availabilityZone; } /** *

* The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC). *

*

* Format: ddd:hh24:mi-ddd:hh24:mi *

*

* The default is a 30-minute window selected at random from an 8-hour block of time for each Region, occurring on a * random day of the week. *

*

* Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun *

*

* Constraints: Minimum 30-minute window. *

* * @return The time range each week during which system maintenance can occur, in Universal Coordinated Time * (UTC).

*

* Format: ddd:hh24:mi-ddd:hh24:mi *

*

* The default is a 30-minute window selected at random from an 8-hour block of time for each Region, * occurring on a random day of the week. *

*

* Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun *

*

* Constraints: Minimum 30-minute window. */ public final String preferredMaintenanceWindow() { return preferredMaintenanceWindow; } /** *

* This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades * regardless of the value set. *

*

* Default: false *

* * @return This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version * upgrades regardless of the value set.

*

* Default: false */ public final Boolean autoMinorVersionUpgrade() { return autoMinorVersionUpgrade; } /** * For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful * because the SDK will never return a null collection or map, but you may need to differentiate between the service * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true * if a value for the property was specified in the request builder, and false if a value was not specified. */ public final boolean hasTags() { return tags != null && !(tags instanceof SdkAutoConstructList); } /** *

* The tags to be assigned to the instance. You can assign up to 10 tags to an 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 #hasTags} method. *

* * @return The tags to be assigned to the instance. You can assign up to 10 tags to an instance. */ public final List tags() { return tags; } /** *

* The identifier of the cluster that the instance will belong to. *

* * @return The identifier of the cluster that the instance will belong to. */ public final String dbClusterIdentifier() { return dbClusterIdentifier; } /** *

* A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after * a failure of the existing primary instance. *

*

* Default: 1 *

*

* Valid values: 0-15 *

* * @return A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary * instance after a failure of the existing primary instance.

*

* Default: 1 *

*

* Valid values: 0-15 */ public final Integer promotionTier() { return promotionTier; } @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 + super.hashCode(); hashCode = 31 * hashCode + Objects.hashCode(dbInstanceIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(dbInstanceClass()); hashCode = 31 * hashCode + Objects.hashCode(engine()); hashCode = 31 * hashCode + Objects.hashCode(availabilityZone()); hashCode = 31 * hashCode + Objects.hashCode(preferredMaintenanceWindow()); hashCode = 31 * hashCode + Objects.hashCode(autoMinorVersionUpgrade()); hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null); hashCode = 31 * hashCode + Objects.hashCode(dbClusterIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(promotionTier()); return hashCode; } @Override public final boolean equals(Object obj) { return super.equals(obj) && equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateDbInstanceRequest)) { return false; } CreateDbInstanceRequest other = (CreateDbInstanceRequest) obj; return Objects.equals(dbInstanceIdentifier(), other.dbInstanceIdentifier()) && Objects.equals(dbInstanceClass(), other.dbInstanceClass()) && Objects.equals(engine(), other.engine()) && Objects.equals(availabilityZone(), other.availabilityZone()) && Objects.equals(preferredMaintenanceWindow(), other.preferredMaintenanceWindow()) && Objects.equals(autoMinorVersionUpgrade(), other.autoMinorVersionUpgrade()) && hasTags() == other.hasTags() && Objects.equals(tags(), other.tags()) && Objects.equals(dbClusterIdentifier(), other.dbClusterIdentifier()) && Objects.equals(promotionTier(), other.promotionTier()); } /** * 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("CreateDbInstanceRequest").add("DBInstanceIdentifier", dbInstanceIdentifier()) .add("DBInstanceClass", dbInstanceClass()).add("Engine", engine()).add("AvailabilityZone", availabilityZone()) .add("PreferredMaintenanceWindow", preferredMaintenanceWindow()) .add("AutoMinorVersionUpgrade", autoMinorVersionUpgrade()).add("Tags", hasTags() ? tags() : null) .add("DBClusterIdentifier", dbClusterIdentifier()).add("PromotionTier", promotionTier()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "DBInstanceIdentifier": return Optional.ofNullable(clazz.cast(dbInstanceIdentifier())); case "DBInstanceClass": return Optional.ofNullable(clazz.cast(dbInstanceClass())); case "Engine": return Optional.ofNullable(clazz.cast(engine())); case "AvailabilityZone": return Optional.ofNullable(clazz.cast(availabilityZone())); case "PreferredMaintenanceWindow": return Optional.ofNullable(clazz.cast(preferredMaintenanceWindow())); case "AutoMinorVersionUpgrade": return Optional.ofNullable(clazz.cast(autoMinorVersionUpgrade())); case "Tags": return Optional.ofNullable(clazz.cast(tags())); case "DBClusterIdentifier": return Optional.ofNullable(clazz.cast(dbClusterIdentifier())); case "PromotionTier": return Optional.ofNullable(clazz.cast(promotionTier())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((CreateDbInstanceRequest) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends DocDbRequest.Builder, SdkPojo, CopyableBuilder { /** *

* The instance identifier. This parameter is stored as a lowercase string. *

*

* Constraints: *

*
    *
  • *

    * Must contain from 1 to 63 letters, numbers, or hyphens. *

    *
  • *
  • *

    * The first character must be a letter. *

    *
  • *
  • *

    * Cannot end with a hyphen or contain two consecutive hyphens. *

    *
  • *
*

* Example: mydbinstance *

* * @param dbInstanceIdentifier * The instance identifier. This parameter is stored as a lowercase string.

*

* Constraints: *

*
    *
  • *

    * Must contain from 1 to 63 letters, numbers, or hyphens. *

    *
  • *
  • *

    * The first character must be a letter. *

    *
  • *
  • *

    * Cannot end with a hyphen or contain two consecutive hyphens. *

    *
  • *
*

* Example: mydbinstance * @return Returns a reference to this object so that method calls can be chained together. */ Builder dbInstanceIdentifier(String dbInstanceIdentifier); /** *

* The compute and memory capacity of the instance; for example, db.r5.large. *

* * @param dbInstanceClass * The compute and memory capacity of the instance; for example, db.r5.large. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dbInstanceClass(String dbInstanceClass); /** *

* The name of the database engine to be used for this instance. *

*

* Valid value: docdb *

* * @param engine * The name of the database engine to be used for this instance.

*

* Valid value: docdb * @return Returns a reference to this object so that method calls can be chained together. */ Builder engine(String engine); /** *

* The Amazon EC2 Availability Zone that the instance is created in. *

*

* Default: A random, system-chosen Availability Zone in the endpoint's Region. *

*

* Example: us-east-1d *

* * @param availabilityZone * The Amazon EC2 Availability Zone that the instance is created in.

*

* Default: A random, system-chosen Availability Zone in the endpoint's Region. *

*

* Example: us-east-1d * @return Returns a reference to this object so that method calls can be chained together. */ Builder availabilityZone(String availabilityZone); /** *

* The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC). *

*

* Format: ddd:hh24:mi-ddd:hh24:mi *

*

* The default is a 30-minute window selected at random from an 8-hour block of time for each Region, occurring * on a random day of the week. *

*

* Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun *

*

* Constraints: Minimum 30-minute window. *

* * @param preferredMaintenanceWindow * The time range each week during which system maintenance can occur, in Universal Coordinated Time * (UTC).

*

* Format: ddd:hh24:mi-ddd:hh24:mi *

*

* The default is a 30-minute window selected at random from an 8-hour block of time for each Region, * occurring on a random day of the week. *

*

* Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun *

*

* Constraints: Minimum 30-minute window. * @return Returns a reference to this object so that method calls can be chained together. */ Builder preferredMaintenanceWindow(String preferredMaintenanceWindow); /** *

* This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades * regardless of the value set. *

*

* Default: false *

* * @param autoMinorVersionUpgrade * This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version * upgrades regardless of the value set.

*

* Default: false * @return Returns a reference to this object so that method calls can be chained together. */ Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade); /** *

* The tags to be assigned to the instance. You can assign up to 10 tags to an instance. *

* * @param tags * The tags to be assigned to the instance. You can assign up to 10 tags to an instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder tags(Collection tags); /** *

* The tags to be assigned to the instance. You can assign up to 10 tags to an instance. *

* * @param tags * The tags to be assigned to the instance. You can assign up to 10 tags to an instance. * @return Returns a reference to this object so that method calls can be chained together. */ Builder tags(Tag... tags); /** *

* The tags to be assigned to the instance. You can assign up to 10 tags to an instance. *

* This is a convenience that creates an instance of the {@link List.Builder} avoiding the need to create * one manually via {@link List#builder()}. * * When the {@link Consumer} completes, {@link List.Builder#build()} is called immediately and its result * is passed to {@link #tags(List)}. * * @param tags * a consumer that will call methods on {@link List.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #tags(List) */ Builder tags(Consumer... tags); /** *

* The identifier of the cluster that the instance will belong to. *

* * @param dbClusterIdentifier * The identifier of the cluster that the instance will belong to. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dbClusterIdentifier(String dbClusterIdentifier); /** *

* A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance * after a failure of the existing primary instance. *

*

* Default: 1 *

*

* Valid values: 0-15 *

* * @param promotionTier * A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary * instance after a failure of the existing primary instance.

*

* Default: 1 *

*

* Valid values: 0-15 * @return Returns a reference to this object so that method calls can be chained together. */ Builder promotionTier(Integer promotionTier); @Override Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration); @Override Builder overrideConfiguration(Consumer builderConsumer); } static final class BuilderImpl extends DocDbRequest.BuilderImpl implements Builder { private String dbInstanceIdentifier; private String dbInstanceClass; private String engine; private String availabilityZone; private String preferredMaintenanceWindow; private Boolean autoMinorVersionUpgrade; private List tags = DefaultSdkAutoConstructList.getInstance(); private String dbClusterIdentifier; private Integer promotionTier; private BuilderImpl() { } private BuilderImpl(CreateDbInstanceRequest model) { super(model); dbInstanceIdentifier(model.dbInstanceIdentifier); dbInstanceClass(model.dbInstanceClass); engine(model.engine); availabilityZone(model.availabilityZone); preferredMaintenanceWindow(model.preferredMaintenanceWindow); autoMinorVersionUpgrade(model.autoMinorVersionUpgrade); tags(model.tags); dbClusterIdentifier(model.dbClusterIdentifier); promotionTier(model.promotionTier); } public final String getDbInstanceIdentifier() { return dbInstanceIdentifier; } public final void setDbInstanceIdentifier(String dbInstanceIdentifier) { this.dbInstanceIdentifier = dbInstanceIdentifier; } @Override @Transient public final Builder dbInstanceIdentifier(String dbInstanceIdentifier) { this.dbInstanceIdentifier = dbInstanceIdentifier; return this; } public final String getDbInstanceClass() { return dbInstanceClass; } public final void setDbInstanceClass(String dbInstanceClass) { this.dbInstanceClass = dbInstanceClass; } @Override @Transient public final Builder dbInstanceClass(String dbInstanceClass) { this.dbInstanceClass = dbInstanceClass; return this; } public final String getEngine() { return engine; } public final void setEngine(String engine) { this.engine = engine; } @Override @Transient public final Builder engine(String engine) { this.engine = engine; return this; } public final String getAvailabilityZone() { return availabilityZone; } public final void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } @Override @Transient public final Builder availabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; return this; } public final String getPreferredMaintenanceWindow() { return preferredMaintenanceWindow; } public final void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) { this.preferredMaintenanceWindow = preferredMaintenanceWindow; } @Override @Transient public final Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) { this.preferredMaintenanceWindow = preferredMaintenanceWindow; return this; } public final Boolean getAutoMinorVersionUpgrade() { return autoMinorVersionUpgrade; } public final void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) { this.autoMinorVersionUpgrade = autoMinorVersionUpgrade; } @Override @Transient public final Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) { this.autoMinorVersionUpgrade = autoMinorVersionUpgrade; return this; } public final List getTags() { List result = TagListCopier.copyToBuilder(this.tags); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setTags(Collection tags) { this.tags = TagListCopier.copyFromBuilder(tags); } @Override @Transient public final Builder tags(Collection tags) { this.tags = TagListCopier.copy(tags); return this; } @Override @Transient @SafeVarargs public final Builder tags(Tag... tags) { tags(Arrays.asList(tags)); return this; } @Override @Transient @SafeVarargs public final Builder tags(Consumer... tags) { tags(Stream.of(tags).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; } public final String getDbClusterIdentifier() { return dbClusterIdentifier; } public final void setDbClusterIdentifier(String dbClusterIdentifier) { this.dbClusterIdentifier = dbClusterIdentifier; } @Override @Transient public final Builder dbClusterIdentifier(String dbClusterIdentifier) { this.dbClusterIdentifier = dbClusterIdentifier; return this; } public final Integer getPromotionTier() { return promotionTier; } public final void setPromotionTier(Integer promotionTier) { this.promotionTier = promotionTier; } @Override @Transient public final Builder promotionTier(Integer promotionTier) { this.promotionTier = promotionTier; return this; } @Override public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) { super.overrideConfiguration(overrideConfiguration); return this; } @Override public Builder overrideConfiguration(Consumer builderConsumer) { super.overrideConfiguration(builderConsumer); return this; } @Override public CreateDbInstanceRequest build() { return new CreateDbInstanceRequest(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy