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

com.amazonaws.services.rds.model.CreateDBShardGroupRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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 com.amazonaws.services.rds.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateDBShardGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the DB shard group. *

*/ private String dBShardGroupIdentifier; /** *

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

*/ private String dBClusterIdentifier; /** *

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

*
    *
  • *

    * 0 - Creates a single, primary DB instance for each physical shard. This is the default value, and the only one * supported for the preview. *

    *
  • *
  • *

    * 1 - Creates a primary DB instance and a standby instance in a different Availability Zone (AZ) for each physical * shard. *

    *
  • *
  • *

    * 2 - Creates a primary DB instance and two standby instances in different AZs for each physical shard. *

    *
  • *
*/ private Integer computeRedundancy; /** *

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

*/ private Double maxACU; /** *

* Specifies 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 is not 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. *

*

* Default: The default behavior varies depending on whether DBSubnetGroupName is specified. *

*

* If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't specified, the * following applies: *

*
    *
  • *

    * If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard group is * private. *

    *
  • *
  • *

    * If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is public. *

    *
  • *
*

* If DBSubnetGroupName is specified, and PubliclyAccessible isn't specified, the * following applies: *

*
    *
  • *

    * If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group is * private. *

    *
  • *
  • *

    * If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is public. *

    *
  • *
*/ private Boolean publiclyAccessible; /** *

* The name of the DB shard group. *

* * @param dBShardGroupIdentifier * The name of the DB shard group. */ public void setDBShardGroupIdentifier(String dBShardGroupIdentifier) { this.dBShardGroupIdentifier = dBShardGroupIdentifier; } /** *

* The name of the DB shard group. *

* * @return The name of the DB shard group. */ public String getDBShardGroupIdentifier() { return this.dBShardGroupIdentifier; } /** *

* 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. */ public CreateDBShardGroupRequest withDBShardGroupIdentifier(String dBShardGroupIdentifier) { setDBShardGroupIdentifier(dBShardGroupIdentifier); return this; } /** *

* 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. */ public void setDBClusterIdentifier(String dBClusterIdentifier) { this.dBClusterIdentifier = dBClusterIdentifier; } /** *

* 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 String getDBClusterIdentifier() { return this.dBClusterIdentifier; } /** *

* 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. */ public CreateDBShardGroupRequest withDBClusterIdentifier(String dBClusterIdentifier) { setDBClusterIdentifier(dBClusterIdentifier); return this; } /** *

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

*
    *
  • *

    * 0 - Creates a single, primary DB instance for each physical shard. This is the default value, and the only one * supported for the preview. *

    *
  • *
  • *

    * 1 - Creates a primary DB instance and a standby instance in a different Availability Zone (AZ) for each physical * shard. *

    *
  • *
  • *

    * 2 - Creates a primary DB instance and two standby instances in different AZs for each physical shard. *

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

*
    *
  • *

    * 0 - Creates a single, primary DB instance for each physical shard. This is the default value, and the only * one supported for the preview. *

    *
  • *
  • *

    * 1 - Creates a primary DB instance and a standby instance in a different Availability Zone (AZ) for each * physical shard. *

    *
  • *
  • *

    * 2 - Creates a primary DB instance and two standby instances in different AZs for each physical shard. *

    *
  • */ public void setComputeRedundancy(Integer computeRedundancy) { this.computeRedundancy = computeRedundancy; } /** *

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

    *
      *
    • *

      * 0 - Creates a single, primary DB instance for each physical shard. This is the default value, and the only one * supported for the preview. *

      *
    • *
    • *

      * 1 - Creates a primary DB instance and a standby instance in a different Availability Zone (AZ) for each physical * shard. *

      *
    • *
    • *

      * 2 - Creates a primary DB instance and two standby instances in different AZs for each physical shard. *

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

    *
      *
    • *

      * 0 - Creates a single, primary DB instance for each physical shard. This is the default value, and the * only one supported for the preview. *

      *
    • *
    • *

      * 1 - Creates a primary DB instance and a standby instance in a different Availability Zone (AZ) for each * physical shard. *

      *
    • *
    • *

      * 2 - Creates a primary DB instance and two standby instances in different AZs for each physical shard. *

      *
    • */ public Integer getComputeRedundancy() { return this.computeRedundancy; } /** *

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

      *
        *
      • *

        * 0 - Creates a single, primary DB instance for each physical shard. This is the default value, and the only one * supported for the preview. *

        *
      • *
      • *

        * 1 - Creates a primary DB instance and a standby instance in a different Availability Zone (AZ) for each physical * shard. *

        *
      • *
      • *

        * 2 - Creates a primary DB instance and two standby instances in different AZs for each physical shard. *

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

      *
        *
      • *

        * 0 - Creates a single, primary DB instance for each physical shard. This is the default value, and the only * one supported for the preview. *

        *
      • *
      • *

        * 1 - Creates a primary DB instance and a standby instance in a different Availability Zone (AZ) for each * physical shard. *

        *
      • *
      • *

        * 2 - Creates a primary DB instance and two standby instances in different AZs for each physical shard. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBShardGroupRequest withComputeRedundancy(Integer computeRedundancy) { setComputeRedundancy(computeRedundancy); return this; } /** *

        * 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). */ public void setMaxACU(Double maxACU) { this.maxACU = maxACU; } /** *

        * 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 Double getMaxACU() { return this.maxACU; } /** *

        * 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. */ public CreateDBShardGroupRequest withMaxACU(Double maxACU) { setMaxACU(maxACU); return this; } /** *

        * Specifies 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 is not 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. *

        *

        * Default: The default behavior varies depending on whether DBSubnetGroupName is specified. *

        *

        * If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't specified, the * following applies: *

        *
          *
        • *

          * If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard group is * private. *

          *
        • *
        • *

          * If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is public. *

          *
        • *
        *

        * If DBSubnetGroupName is specified, and PubliclyAccessible isn't specified, the * following applies: *

        *
          *
        • *

          * If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group is * private. *

          *
        • *
        • *

          * If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is public. *

          *
        • *
        * * @param publiclyAccessible * Specifies 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 is not 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. *

        *

        * Default: The default behavior varies depending on whether DBSubnetGroupName is specified. *

        *

        * If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't specified, * the following applies: *

        *
          *
        • *

          * If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard * group is private. *

          *
        • *
        • *

          * If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is * public. *

          *
        • *
        *

        * If DBSubnetGroupName is specified, and PubliclyAccessible isn't specified, the * following applies: *

        *
          *
        • *

          * If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group * is private. *

          *
        • *
        • *

          * If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is * public. *

          *
        • */ public void setPubliclyAccessible(Boolean publiclyAccessible) { this.publiclyAccessible = publiclyAccessible; } /** *

          * Specifies 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 is not 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. *

          *

          * Default: The default behavior varies depending on whether DBSubnetGroupName is specified. *

          *

          * If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't specified, the * following applies: *

          *
            *
          • *

            * If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard group is * private. *

            *
          • *
          • *

            * If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is public. *

            *
          • *
          *

          * If DBSubnetGroupName is specified, and PubliclyAccessible isn't specified, the * following applies: *

          *
            *
          • *

            * If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group is * private. *

            *
          • *
          • *

            * If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is public. *

            *
          • *
          * * @return Specifies 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 is not 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. *

          *

          * Default: The default behavior varies depending on whether DBSubnetGroupName is specified. *

          *

          * If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't specified, * the following applies: *

          *
            *
          • *

            * If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard * group is private. *

            *
          • *
          • *

            * If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is * public. *

            *
          • *
          *

          * If DBSubnetGroupName is specified, and PubliclyAccessible isn't specified, the * following applies: *

          *
            *
          • *

            * If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group * is private. *

            *
          • *
          • *

            * If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is * public. *

            *
          • */ public Boolean getPubliclyAccessible() { return this.publiclyAccessible; } /** *

            * Specifies 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 is not 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. *

            *

            * Default: The default behavior varies depending on whether DBSubnetGroupName is specified. *

            *

            * If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't specified, the * following applies: *

            *
              *
            • *

              * If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard group is * private. *

              *
            • *
            • *

              * If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is public. *

              *
            • *
            *

            * If DBSubnetGroupName is specified, and PubliclyAccessible isn't specified, the * following applies: *

            *
              *
            • *

              * If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group is * private. *

              *
            • *
            • *

              * If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is public. *

              *
            • *
            * * @param publiclyAccessible * Specifies 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 is not 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. *

            *

            * Default: The default behavior varies depending on whether DBSubnetGroupName is specified. *

            *

            * If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't specified, * the following applies: *

            *
              *
            • *

              * If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard * group is private. *

              *
            • *
            • *

              * If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is * public. *

              *
            • *
            *

            * If DBSubnetGroupName is specified, and PubliclyAccessible isn't specified, the * following applies: *

            *
              *
            • *

              * If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group * is private. *

              *
            • *
            • *

              * If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is * public. *

              *
            • * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBShardGroupRequest withPubliclyAccessible(Boolean publiclyAccessible) { setPubliclyAccessible(publiclyAccessible); return this; } /** *

              * Specifies 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 is not 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. *

              *

              * Default: The default behavior varies depending on whether DBSubnetGroupName is specified. *

              *

              * If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't specified, the * following applies: *

              *
                *
              • *

                * If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard group is * private. *

                *
              • *
              • *

                * If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is public. *

                *
              • *
              *

              * If DBSubnetGroupName is specified, and PubliclyAccessible isn't specified, the * following applies: *

              *
                *
              • *

                * If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group is * private. *

                *
              • *
              • *

                * If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is public. *

                *
              • *
              * * @return Specifies 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 is not 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. *

              *

              * Default: The default behavior varies depending on whether DBSubnetGroupName is specified. *

              *

              * If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't specified, * the following applies: *

              *
                *
              • *

                * If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard * group is private. *

                *
              • *
              • *

                * If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is * public. *

                *
              • *
              *

              * If DBSubnetGroupName is specified, and PubliclyAccessible isn't specified, the * following applies: *

              *
                *
              • *

                * If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group * is private. *

                *
              • *
              • *

                * If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is * public. *

                *
              • */ public Boolean isPubliclyAccessible() { return this.publiclyAccessible; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDBShardGroupIdentifier() != null) sb.append("DBShardGroupIdentifier: ").append(getDBShardGroupIdentifier()).append(","); if (getDBClusterIdentifier() != null) sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(","); if (getComputeRedundancy() != null) sb.append("ComputeRedundancy: ").append(getComputeRedundancy()).append(","); if (getMaxACU() != null) sb.append("MaxACU: ").append(getMaxACU()).append(","); if (getPubliclyAccessible() != null) sb.append("PubliclyAccessible: ").append(getPubliclyAccessible()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateDBShardGroupRequest == false) return false; CreateDBShardGroupRequest other = (CreateDBShardGroupRequest) obj; if (other.getDBShardGroupIdentifier() == null ^ this.getDBShardGroupIdentifier() == null) return false; if (other.getDBShardGroupIdentifier() != null && other.getDBShardGroupIdentifier().equals(this.getDBShardGroupIdentifier()) == false) return false; if (other.getDBClusterIdentifier() == null ^ this.getDBClusterIdentifier() == null) return false; if (other.getDBClusterIdentifier() != null && other.getDBClusterIdentifier().equals(this.getDBClusterIdentifier()) == false) return false; if (other.getComputeRedundancy() == null ^ this.getComputeRedundancy() == null) return false; if (other.getComputeRedundancy() != null && other.getComputeRedundancy().equals(this.getComputeRedundancy()) == false) return false; if (other.getMaxACU() == null ^ this.getMaxACU() == null) return false; if (other.getMaxACU() != null && other.getMaxACU().equals(this.getMaxACU()) == false) return false; if (other.getPubliclyAccessible() == null ^ this.getPubliclyAccessible() == null) return false; if (other.getPubliclyAccessible() != null && other.getPubliclyAccessible().equals(this.getPubliclyAccessible()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDBShardGroupIdentifier() == null) ? 0 : getDBShardGroupIdentifier().hashCode()); hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getComputeRedundancy() == null) ? 0 : getComputeRedundancy().hashCode()); hashCode = prime * hashCode + ((getMaxACU() == null) ? 0 : getMaxACU().hashCode()); hashCode = prime * hashCode + ((getPubliclyAccessible() == null) ? 0 : getPubliclyAccessible().hashCode()); return hashCode; } @Override public CreateDBShardGroupRequest clone() { return (CreateDBShardGroupRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy