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

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

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

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

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
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 the details for an Amazon RDS DB shard group. *

*/ @Generated("software.amazon.awssdk:codegen") public final class CreateDbShardGroupResponse extends RdsResponse implements ToCopyableBuilder { private static final SdkField DB_SHARD_GROUP_RESOURCE_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("DBShardGroupResourceId").getter(getter(CreateDbShardGroupResponse::dbShardGroupResourceId)) .setter(setter(Builder::dbShardGroupResourceId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBShardGroupResourceId").build()) .build(); private static final SdkField DB_SHARD_GROUP_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("DBShardGroupIdentifier").getter(getter(CreateDbShardGroupResponse::dbShardGroupIdentifier)) .setter(setter(Builder::dbShardGroupIdentifier)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBShardGroupIdentifier").build()) .build(); private static final SdkField DB_CLUSTER_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("DBClusterIdentifier").getter(getter(CreateDbShardGroupResponse::dbClusterIdentifier)) .setter(setter(Builder::dbClusterIdentifier)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBClusterIdentifier").build()) .build(); private static final SdkField MAX_ACU_FIELD = SdkField. builder(MarshallingType.DOUBLE).memberName("MaxACU") .getter(getter(CreateDbShardGroupResponse::maxACU)).setter(setter(Builder::maxACU)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxACU").build()).build(); private static final SdkField MIN_ACU_FIELD = SdkField. builder(MarshallingType.DOUBLE).memberName("MinACU") .getter(getter(CreateDbShardGroupResponse::minACU)).setter(setter(Builder::minACU)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MinACU").build()).build(); private static final SdkField COMPUTE_REDUNDANCY_FIELD = SdkField. builder(MarshallingType.INTEGER) .memberName("ComputeRedundancy").getter(getter(CreateDbShardGroupResponse::computeRedundancy)) .setter(setter(Builder::computeRedundancy)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ComputeRedundancy").build()).build(); private static final SdkField STATUS_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Status") .getter(getter(CreateDbShardGroupResponse::status)).setter(setter(Builder::status)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Status").build()).build(); private static final SdkField PUBLICLY_ACCESSIBLE_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .memberName("PubliclyAccessible").getter(getter(CreateDbShardGroupResponse::publiclyAccessible)) .setter(setter(Builder::publiclyAccessible)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PubliclyAccessible").build()) .build(); private static final SdkField ENDPOINT_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("Endpoint").getter(getter(CreateDbShardGroupResponse::endpoint)).setter(setter(Builder::endpoint)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Endpoint").build()).build(); private static final SdkField DB_SHARD_GROUP_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("DBShardGroupArn").getter(getter(CreateDbShardGroupResponse::dbShardGroupArn)) .setter(setter(Builder::dbShardGroupArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DBShardGroupArn").build()).build(); private static final SdkField> TAG_LIST_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("TagList") .getter(getter(CreateDbShardGroupResponse::tagList)) .setter(setter(Builder::tagList)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TagList").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 List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList( DB_SHARD_GROUP_RESOURCE_ID_FIELD, DB_SHARD_GROUP_IDENTIFIER_FIELD, DB_CLUSTER_IDENTIFIER_FIELD, MAX_ACU_FIELD, MIN_ACU_FIELD, COMPUTE_REDUNDANCY_FIELD, STATUS_FIELD, PUBLICLY_ACCESSIBLE_FIELD, ENDPOINT_FIELD, DB_SHARD_GROUP_ARN_FIELD, TAG_LIST_FIELD)); private static final Map> SDK_NAME_TO_FIELD = memberNameToFieldInitializer(); private final String dbShardGroupResourceId; private final String dbShardGroupIdentifier; private final String dbClusterIdentifier; private final Double maxACU; private final Double minACU; private final Integer computeRedundancy; private final String status; private final Boolean publiclyAccessible; private final String endpoint; private final String dbShardGroupArn; private final List tagList; private CreateDbShardGroupResponse(BuilderImpl builder) { super(builder); this.dbShardGroupResourceId = builder.dbShardGroupResourceId; this.dbShardGroupIdentifier = builder.dbShardGroupIdentifier; this.dbClusterIdentifier = builder.dbClusterIdentifier; this.maxACU = builder.maxACU; this.minACU = builder.minACU; this.computeRedundancy = builder.computeRedundancy; this.status = builder.status; this.publiclyAccessible = builder.publiclyAccessible; this.endpoint = builder.endpoint; this.dbShardGroupArn = builder.dbShardGroupArn; this.tagList = builder.tagList; } /** *

* The Amazon Web Services Region-unique, immutable identifier for the DB shard group. *

* * @return The Amazon Web Services Region-unique, immutable identifier for the DB shard group. */ public final String dbShardGroupResourceId() { return dbShardGroupResourceId; } /** *

* The name of the DB shard group. *

* * @return The name of the DB shard group. */ public final String dbShardGroupIdentifier() { return dbShardGroupIdentifier; } /** *

* The name of the primary DB cluster for the DB shard group. *

* * @return The name of the primary DB cluster for the DB shard group. */ public final String dbClusterIdentifier() { return dbClusterIdentifier; } /** *

* The maximum capacity of the DB shard group in Aurora capacity units (ACUs). *

* * @return The maximum capacity of the DB shard group in Aurora capacity units (ACUs). */ public final Double maxACU() { return maxACU; } /** *

* The minimum capacity of the DB shard group in Aurora capacity units (ACUs). *

* * @return The minimum capacity of the DB shard group in Aurora capacity units (ACUs). */ public final Double minACU() { return minACU; } /** *

* Specifies whether to create standby DB shard groups for the DB shard group. Valid values are the following: *

*
    *
  • *

    * 0 - Creates a DB shard group without a standby DB shard group. This is the default value. *

    *
  • *
  • *

    * 1 - Creates a DB shard group with a standby DB shard group in a different Availability Zone (AZ). *

    *
  • *
  • *

    * 2 - Creates a DB shard group with two standby DB shard groups in two different AZs. *

    *
  • *
* * @return Specifies whether to create standby DB shard groups for the DB shard group. Valid values are the * following:

*
    *
  • *

    * 0 - Creates a DB shard group without a standby DB shard group. This is the default value. *

    *
  • *
  • *

    * 1 - Creates a DB shard group with a standby DB shard group in a different Availability Zone (AZ). *

    *
  • *
  • *

    * 2 - Creates a DB shard group with two standby DB shard groups in two different AZs. *

    *
  • */ public final Integer computeRedundancy() { return computeRedundancy; } /** *

    * The status of the DB shard group. *

    * * @return The status of the DB shard group. */ public final String status() { return status; } /** *

    * Indicates whether the DB shard group is publicly accessible. *

    *

    * When the DB shard group is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP * address from within the DB shard group's virtual private cloud (VPC). It resolves to the public IP address from * outside of the DB shard group's VPC. Access to the DB shard group is ultimately controlled by the security group * it uses. That public access isn't permitted if the security group assigned to the DB shard group doesn't permit * it. *

    *

    * When the DB shard group isn't publicly accessible, it is an internal DB shard group with a DNS name that resolves * to a private IP address. *

    *

    * For more information, see CreateDBShardGroup. *

    *

    * This setting is only for Aurora Limitless Database. *

    * * @return Indicates whether the DB shard group is publicly accessible.

    *

    * When the DB shard group is publicly accessible, its Domain Name System (DNS) endpoint resolves to the * private IP address from within the DB shard group's virtual private cloud (VPC). It resolves to the * public IP address from outside of the DB shard group's VPC. Access to the DB shard group is ultimately * controlled by the security group it uses. That public access isn't permitted if the security group * assigned to the DB shard group doesn't permit it. *

    *

    * When the DB shard group isn't publicly accessible, it is an internal DB shard group with a DNS name that * resolves to a private IP address. *

    *

    * For more information, see CreateDBShardGroup. *

    *

    * This setting is only for Aurora Limitless Database. */ public final Boolean publiclyAccessible() { return publiclyAccessible; } /** *

    * The connection endpoint for the DB shard group. *

    * * @return The connection endpoint for the DB shard group. */ public final String endpoint() { return endpoint; } /** *

    * The Amazon Resource Name (ARN) for the DB shard group. *

    * * @return The Amazon Resource Name (ARN) for the DB shard group. */ public final String dbShardGroupArn() { return dbShardGroupArn; } /** * For responses, this returns true if the service returned a value for the TagList 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 hasTagList() { return tagList != null && !(tagList instanceof SdkAutoConstructList); } /** * Returns the value of the TagList property for this object. *

    * Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

    *

    * This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasTagList} method. *

    * * @return The value of the TagList property for this object. */ public final List tagList() { return tagList; } @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(dbShardGroupResourceId()); hashCode = 31 * hashCode + Objects.hashCode(dbShardGroupIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(dbClusterIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(maxACU()); hashCode = 31 * hashCode + Objects.hashCode(minACU()); hashCode = 31 * hashCode + Objects.hashCode(computeRedundancy()); hashCode = 31 * hashCode + Objects.hashCode(status()); hashCode = 31 * hashCode + Objects.hashCode(publiclyAccessible()); hashCode = 31 * hashCode + Objects.hashCode(endpoint()); hashCode = 31 * hashCode + Objects.hashCode(dbShardGroupArn()); hashCode = 31 * hashCode + Objects.hashCode(hasTagList() ? tagList() : null); 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 CreateDbShardGroupResponse)) { return false; } CreateDbShardGroupResponse other = (CreateDbShardGroupResponse) obj; return Objects.equals(dbShardGroupResourceId(), other.dbShardGroupResourceId()) && Objects.equals(dbShardGroupIdentifier(), other.dbShardGroupIdentifier()) && Objects.equals(dbClusterIdentifier(), other.dbClusterIdentifier()) && Objects.equals(maxACU(), other.maxACU()) && Objects.equals(minACU(), other.minACU()) && Objects.equals(computeRedundancy(), other.computeRedundancy()) && Objects.equals(status(), other.status()) && Objects.equals(publiclyAccessible(), other.publiclyAccessible()) && Objects.equals(endpoint(), other.endpoint()) && Objects.equals(dbShardGroupArn(), other.dbShardGroupArn()) && hasTagList() == other.hasTagList() && Objects.equals(tagList(), other.tagList()); } /** * 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("CreateDbShardGroupResponse").add("DBShardGroupResourceId", dbShardGroupResourceId()) .add("DBShardGroupIdentifier", dbShardGroupIdentifier()).add("DBClusterIdentifier", dbClusterIdentifier()) .add("MaxACU", maxACU()).add("MinACU", minACU()).add("ComputeRedundancy", computeRedundancy()) .add("Status", status()).add("PubliclyAccessible", publiclyAccessible()).add("Endpoint", endpoint()) .add("DBShardGroupArn", dbShardGroupArn()).add("TagList", hasTagList() ? tagList() : null).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "DBShardGroupResourceId": return Optional.ofNullable(clazz.cast(dbShardGroupResourceId())); case "DBShardGroupIdentifier": return Optional.ofNullable(clazz.cast(dbShardGroupIdentifier())); case "DBClusterIdentifier": return Optional.ofNullable(clazz.cast(dbClusterIdentifier())); case "MaxACU": return Optional.ofNullable(clazz.cast(maxACU())); case "MinACU": return Optional.ofNullable(clazz.cast(minACU())); case "ComputeRedundancy": return Optional.ofNullable(clazz.cast(computeRedundancy())); case "Status": return Optional.ofNullable(clazz.cast(status())); case "PubliclyAccessible": return Optional.ofNullable(clazz.cast(publiclyAccessible())); case "Endpoint": return Optional.ofNullable(clazz.cast(endpoint())); case "DBShardGroupArn": return Optional.ofNullable(clazz.cast(dbShardGroupArn())); case "TagList": return Optional.ofNullable(clazz.cast(tagList())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } @Override public final Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } private static Map> memberNameToFieldInitializer() { Map> map = new HashMap<>(); map.put("DBShardGroupResourceId", DB_SHARD_GROUP_RESOURCE_ID_FIELD); map.put("DBShardGroupIdentifier", DB_SHARD_GROUP_IDENTIFIER_FIELD); map.put("DBClusterIdentifier", DB_CLUSTER_IDENTIFIER_FIELD); map.put("MaxACU", MAX_ACU_FIELD); map.put("MinACU", MIN_ACU_FIELD); map.put("ComputeRedundancy", COMPUTE_REDUNDANCY_FIELD); map.put("Status", STATUS_FIELD); map.put("PubliclyAccessible", PUBLICLY_ACCESSIBLE_FIELD); map.put("Endpoint", ENDPOINT_FIELD); map.put("DBShardGroupArn", DB_SHARD_GROUP_ARN_FIELD); map.put("TagList", TAG_LIST_FIELD); return Collections.unmodifiableMap(map); } private static Function getter(Function g) { return obj -> g.apply((CreateDbShardGroupResponse) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends RdsResponse.Builder, SdkPojo, CopyableBuilder { /** *

    * The Amazon Web Services Region-unique, immutable identifier for the DB shard group. *

    * * @param dbShardGroupResourceId * The Amazon Web Services Region-unique, immutable identifier for the DB shard group. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dbShardGroupResourceId(String dbShardGroupResourceId); /** *

    * The name of the DB shard group. *

    * * @param dbShardGroupIdentifier * The name of the DB shard group. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dbShardGroupIdentifier(String dbShardGroupIdentifier); /** *

    * The name of the primary DB cluster for the DB shard group. *

    * * @param dbClusterIdentifier * The name of the primary DB cluster for the DB shard group. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dbClusterIdentifier(String dbClusterIdentifier); /** *

    * The maximum capacity of the DB shard group in Aurora capacity units (ACUs). *

    * * @param maxACU * The maximum capacity of the DB shard group in Aurora capacity units (ACUs). * @return Returns a reference to this object so that method calls can be chained together. */ Builder maxACU(Double maxACU); /** *

    * The minimum capacity of the DB shard group in Aurora capacity units (ACUs). *

    * * @param minACU * The minimum capacity of the DB shard group in Aurora capacity units (ACUs). * @return Returns a reference to this object so that method calls can be chained together. */ Builder minACU(Double minACU); /** *

    * Specifies whether to create standby DB shard groups for the DB shard group. Valid values are the following: *

    *
      *
    • *

      * 0 - Creates a DB shard group without a standby DB shard group. This is the default value. *

      *
    • *
    • *

      * 1 - Creates a DB shard group with a standby DB shard group in a different Availability Zone (AZ). *

      *
    • *
    • *

      * 2 - Creates a DB shard group with two standby DB shard groups in two different AZs. *

      *
    • *
    * * @param computeRedundancy * Specifies whether to create standby DB shard groups for the DB shard group. Valid values are the * following:

    *
      *
    • *

      * 0 - Creates a DB shard group without a standby DB shard group. This is the default value. *

      *
    • *
    • *

      * 1 - Creates a DB shard group with a standby DB shard group in a different Availability Zone (AZ). *

      *
    • *
    • *

      * 2 - Creates a DB shard group with two standby DB shard groups in two different AZs. *

      *
    • * @return Returns a reference to this object so that method calls can be chained together. */ Builder computeRedundancy(Integer computeRedundancy); /** *

      * The status of the DB shard group. *

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

      * Indicates whether the DB shard group is publicly accessible. *

      *

      * When the DB shard group is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private * IP address from within the DB shard group's virtual private cloud (VPC). It resolves to the public IP address * from outside of the DB shard group's VPC. Access to the DB shard group is ultimately controlled by the * security group it uses. That public access isn't permitted if the security group assigned to the DB shard * group doesn't permit it. *

      *

      * When the DB shard group isn't publicly accessible, it is an internal DB shard group with a DNS name that * resolves to a private IP address. *

      *

      * For more information, see CreateDBShardGroup. *

      *

      * This setting is only for Aurora Limitless Database. *

      * * @param publiclyAccessible * Indicates whether the DB shard group is publicly accessible.

      *

      * When the DB shard group is publicly accessible, its Domain Name System (DNS) endpoint resolves to the * private IP address from within the DB shard group's virtual private cloud (VPC). It resolves to the * public IP address from outside of the DB shard group's VPC. Access to the DB shard group is ultimately * controlled by the security group it uses. That public access isn't permitted if the security group * assigned to the DB shard group doesn't permit it. *

      *

      * When the DB shard group isn't publicly accessible, it is an internal DB shard group with a DNS name * that resolves to a private IP address. *

      *

      * For more information, see CreateDBShardGroup. *

      *

      * This setting is only for Aurora Limitless Database. * @return Returns a reference to this object so that method calls can be chained together. */ Builder publiclyAccessible(Boolean publiclyAccessible); /** *

      * The connection endpoint for the DB shard group. *

      * * @param endpoint * The connection endpoint for the DB shard group. * @return Returns a reference to this object so that method calls can be chained together. */ Builder endpoint(String endpoint); /** *

      * The Amazon Resource Name (ARN) for the DB shard group. *

      * * @param dbShardGroupArn * The Amazon Resource Name (ARN) for the DB shard group. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dbShardGroupArn(String dbShardGroupArn); /** * Sets the value of the TagList property for this object. * * @param tagList * The new value for the TagList property for this object. * @return Returns a reference to this object so that method calls can be chained together. */ Builder tagList(Collection tagList); /** * Sets the value of the TagList property for this object. * * @param tagList * The new value for the TagList property for this object. * @return Returns a reference to this object so that method calls can be chained together. */ Builder tagList(Tag... tagList); /** * Sets the value of the TagList property for this object. * * This is a convenience method that creates an instance of the * {@link software.amazon.awssdk.services.rds.model.Tag.Builder} avoiding the need to create one manually via * {@link software.amazon.awssdk.services.rds.model.Tag#builder()}. * *

      * When the {@link Consumer} completes, {@link software.amazon.awssdk.services.rds.model.Tag.Builder#build()} is * called immediately and its result is passed to {@link #tagList(List)}. * * @param tagList * a consumer that will call methods on {@link software.amazon.awssdk.services.rds.model.Tag.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #tagList(java.util.Collection) */ Builder tagList(Consumer... tagList); } static final class BuilderImpl extends RdsResponse.BuilderImpl implements Builder { private String dbShardGroupResourceId; private String dbShardGroupIdentifier; private String dbClusterIdentifier; private Double maxACU; private Double minACU; private Integer computeRedundancy; private String status; private Boolean publiclyAccessible; private String endpoint; private String dbShardGroupArn; private List tagList = DefaultSdkAutoConstructList.getInstance(); private BuilderImpl() { } private BuilderImpl(CreateDbShardGroupResponse model) { super(model); dbShardGroupResourceId(model.dbShardGroupResourceId); dbShardGroupIdentifier(model.dbShardGroupIdentifier); dbClusterIdentifier(model.dbClusterIdentifier); maxACU(model.maxACU); minACU(model.minACU); computeRedundancy(model.computeRedundancy); status(model.status); publiclyAccessible(model.publiclyAccessible); endpoint(model.endpoint); dbShardGroupArn(model.dbShardGroupArn); tagList(model.tagList); } public final String getDbShardGroupResourceId() { return dbShardGroupResourceId; } public final void setDbShardGroupResourceId(String dbShardGroupResourceId) { this.dbShardGroupResourceId = dbShardGroupResourceId; } @Override public final Builder dbShardGroupResourceId(String dbShardGroupResourceId) { this.dbShardGroupResourceId = dbShardGroupResourceId; return this; } public final String getDbShardGroupIdentifier() { return dbShardGroupIdentifier; } public final void setDbShardGroupIdentifier(String dbShardGroupIdentifier) { this.dbShardGroupIdentifier = dbShardGroupIdentifier; } @Override public final Builder dbShardGroupIdentifier(String dbShardGroupIdentifier) { this.dbShardGroupIdentifier = dbShardGroupIdentifier; return this; } public final String getDbClusterIdentifier() { return dbClusterIdentifier; } public final void setDbClusterIdentifier(String dbClusterIdentifier) { this.dbClusterIdentifier = dbClusterIdentifier; } @Override public final Builder dbClusterIdentifier(String dbClusterIdentifier) { this.dbClusterIdentifier = dbClusterIdentifier; return this; } public final Double getMaxACU() { return maxACU; } public final void setMaxACU(Double maxACU) { this.maxACU = maxACU; } @Override public final Builder maxACU(Double maxACU) { this.maxACU = maxACU; return this; } public final Double getMinACU() { return minACU; } public final void setMinACU(Double minACU) { this.minACU = minACU; } @Override public final Builder minACU(Double minACU) { this.minACU = minACU; return this; } public final Integer getComputeRedundancy() { return computeRedundancy; } public final void setComputeRedundancy(Integer computeRedundancy) { this.computeRedundancy = computeRedundancy; } @Override public final Builder computeRedundancy(Integer computeRedundancy) { this.computeRedundancy = computeRedundancy; return this; } public final String getStatus() { return status; } public final void setStatus(String status) { this.status = status; } @Override public final Builder status(String status) { this.status = status; return this; } public final Boolean getPubliclyAccessible() { return publiclyAccessible; } public final void setPubliclyAccessible(Boolean publiclyAccessible) { this.publiclyAccessible = publiclyAccessible; } @Override public final Builder publiclyAccessible(Boolean publiclyAccessible) { this.publiclyAccessible = publiclyAccessible; return this; } public final String getEndpoint() { return endpoint; } public final void setEndpoint(String endpoint) { this.endpoint = endpoint; } @Override public final Builder endpoint(String endpoint) { this.endpoint = endpoint; return this; } public final String getDbShardGroupArn() { return dbShardGroupArn; } public final void setDbShardGroupArn(String dbShardGroupArn) { this.dbShardGroupArn = dbShardGroupArn; } @Override public final Builder dbShardGroupArn(String dbShardGroupArn) { this.dbShardGroupArn = dbShardGroupArn; return this; } public final List getTagList() { List result = TagListCopier.copyToBuilder(this.tagList); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setTagList(Collection tagList) { this.tagList = TagListCopier.copyFromBuilder(tagList); } @Override public final Builder tagList(Collection tagList) { this.tagList = TagListCopier.copy(tagList); return this; } @Override @SafeVarargs public final Builder tagList(Tag... tagList) { tagList(Arrays.asList(tagList)); return this; } @Override @SafeVarargs public final Builder tagList(Consumer... tagList) { tagList(Stream.of(tagList).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; } @Override public CreateDbShardGroupResponse build() { return new CreateDbShardGroupResponse(this); } @Override public List> sdkFields() { return SDK_FIELDS; } @Override public Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy