Class CreateDbClusterGroupRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<CreateDbClusterGroupRequest.Builder,CreateDbClusterGroupRequest>

@Generated("software.amazon.awssdk:codegen") public final class CreateDbClusterGroupRequest extends RdsRequest implements ToCopyableBuilder<CreateDbClusterGroupRequest.Builder,CreateDbClusterGroupRequest>
  • Method Details

    • dbClusterGroupIdentifier

      public final String dbClusterGroupIdentifier()

      The identifier for the new DB cluster group. This parameter is stored as a lowercase string.

      Constraints:

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

      • First character must be a letter.

      • Can't end with a hyphen or contain two consecutive hyphens.

      • Must be unique for all DB cluster groups owned by your Amazon Web Services account in the current Amazon Web Services Region.

      Returns:
      The identifier for the new DB cluster group. This parameter is stored as a lowercase string.

      Constraints:

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

      • First character must be a letter.

      • Can't end with a hyphen or contain two consecutive hyphens.

      • Must be unique for all DB cluster groups owned by your Amazon Web Services account in the current Amazon Web Services Region.

    • engine

      public final String engine()

      The database engine to use for the DB cluster group. All member DB clusters must use this engine.

      Valid Values:

      • aurora-mysql - Aurora MySQL-Compatible Edition

      • aurora-postgresql - Aurora PostgreSQL-Compatible Edition

      Returns:
      The database engine to use for the DB cluster group. All member DB clusters must use this engine.

      Valid Values:

      • aurora-mysql - Aurora MySQL-Compatible Edition

      • aurora-postgresql - Aurora PostgreSQL-Compatible Edition

    • preferredMaintenanceWindow

      public final String preferredMaintenanceWindow()

      The weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).

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

      Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

      Default: A 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week, which doesn't overlap the preferred backup window.

      Constraints: Must be at least 30 minutes. Must not overlap the preferred backup window.

      The maintenance window of the DB cluster group can overlap the maintenance windows of its member DB clusters.

      Returns:
      The weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).

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

      Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

      Default: A 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week, which doesn't overlap the preferred backup window.

      Constraints: Must be at least 30 minutes. Must not overlap the preferred backup window.

      The maintenance window of the DB cluster group can overlap the maintenance windows of its member DB clusters.

    • copyTagsToSnapshot

      public final Boolean copyTagsToSnapshot()

      Specifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group. The default is not to copy them.

      Returns:
      Specifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group. The default is not to copy them.
    • preferredBackupWindow

      public final String preferredBackupWindow()

      The daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).

      Format: hh24:mi-hh24:mi

      Default: A 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, which doesn't overlap the preferred maintenance window.

      Constraints: Must be at least 30 minutes. Must not overlap the preferred maintenance window of the DB cluster group.

      Returns:
      The daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).

      Format: hh24:mi-hh24:mi

      Default: A 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, which doesn't overlap the preferred maintenance window.

      Constraints: Must be at least 30 minutes. Must not overlap the preferred maintenance window of the DB cluster group.

    • backupRetentionPeriod

      public final Integer backupRetentionPeriod()

      The number of days for which automated backups of the DB cluster group are retained.

      Default: 1

      Constraints: Must be a value from 1 to 35.

      Returns:
      The number of days for which automated backups of the DB cluster group are retained.

      Default: 1

      Constraints: Must be a value from 1 to 35.

    • deletionProtection

      public final Boolean deletionProtection()

      Specifies whether the DB cluster group has deletion protection enabled. You can't delete the DB cluster group when deletion protection is enabled. By default, deletion protection isn't enabled.

      Returns:
      Specifies whether the DB cluster group has deletion protection enabled. You can't delete the DB cluster group when deletion protection is enabled. By default, deletion protection isn't enabled.
    • enableRouting

      public final Boolean enableRouting()

      Specifies whether to enable routing for the DB cluster group. When routing is enabled, Amazon RDS creates a routing endpoint that applications connect to instead of connecting to each member DB cluster.

      When you enable routing, you must specify VpcSubnetIds in RoutingEndpointConfiguration, and you must specify AdminUsername and AdminUserPassword.

      Default: false

      Returns:
      Specifies whether to enable routing for the DB cluster group. When routing is enabled, Amazon RDS creates a routing endpoint that applications connect to instead of connecting to each member DB cluster.

      When you enable routing, you must specify VpcSubnetIds in RoutingEndpointConfiguration, and you must specify AdminUsername and AdminUserPassword.

      Default: false

    • routingEndpointConfiguration

      public final RoutingEndpointConfiguration routingEndpointConfiguration()

      The settings of the routing endpoint. Specify this parameter only when EnableRouting is true, and include VpcSubnetIds.

      Returns:
      The settings of the routing endpoint. Specify this parameter only when EnableRouting is true, and include VpcSubnetIds.
    • hasTags

      public final boolean hasTags()
      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 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.
    • tags

      public final List<Tag> tags()

      Tags to assign to the DB cluster 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 hasTags() method.

      Returns:
      Tags to assign to the DB cluster group.
    • hasTagSpecifications

      public final boolean hasTagSpecifications()
      For responses, this returns true if the service returned a value for the TagSpecifications property. This DOES NOT check that the value is non-empty (for which, you should check the 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.
    • tagSpecifications

      public final List<TagSpecification> tagSpecifications()

      Tags to assign to resources associated with the DB cluster 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 hasTagSpecifications() method.

      Returns:
      Tags to assign to resources associated with the DB cluster group.
    • adminUsername

      public final String adminUsername()

      The name of the admin user that the routing endpoint uses to connect to the member DB clusters.

      If you specify AdminUsername, you must also specify AdminUserPassword.

      Default: None. An admin user is required when you enable routing.

      Returns:
      The name of the admin user that the routing endpoint uses to connect to the member DB clusters.

      If you specify AdminUsername, you must also specify AdminUserPassword.

      Default: None. An admin user is required when you enable routing.

    • adminUserPassword

      public final String adminUserPassword()

      The password for the admin user that the routing endpoint uses to connect to the member DB clusters.

      If you specify AdminUserPassword, you must also specify AdminUsername.

      Default: None. An admin user is required when you enable routing.

      Returns:
      The password for the admin user that the routing endpoint uses to connect to the member DB clusters.

      If you specify AdminUserPassword, you must also specify AdminUsername.

      Default: None. An admin user is required when you enable routing.

    • toBuilder

      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<CreateDbClusterGroupRequest.Builder,CreateDbClusterGroupRequest>
      Specified by:
      toBuilder in class RdsRequest
      Returns:
      a builder for type T
    • builder

      public static CreateDbClusterGroupRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends CreateDbClusterGroupRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Description copied from class: SdkRequest
      Used to retrieve the value of a field from any class that extends SdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class) method will again be available.
      Overrides:
      getValueForField in class SdkRequest
      Parameters:
      fieldName - The name of the member to be retrieved.
      clazz - The class to cast the returned object to.
      Returns:
      Optional containing the casted return value
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.