Class CreateDbClusterGroupRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateDbClusterGroupRequest.Builder,CreateDbClusterGroupRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe name of the admin user that the routing endpoint uses to connect to the member DB clusters.final StringThe password for the admin user that the routing endpoint uses to connect to the member DB clusters.final IntegerThe number of days for which automated backups of the DB cluster group are retained.builder()final BooleanSpecifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group.final StringThe identifier for the new DB cluster group.final BooleanSpecifies whether the DB cluster group has deletion protection enabled.final BooleanSpecifies whether to enable routing for the DB cluster group.final Stringengine()The database engine to use for the DB cluster group.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final inthashCode()final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final booleanFor responses, this returns true if the service returned a value for the TagSpecifications property.final StringThe daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).final StringThe weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).The settings of the routing endpoint.static Class<? extends CreateDbClusterGroupRequest.Builder> tags()Tags to assign to the DB cluster group.final List<TagSpecification> Tags to assign to resources associated with the DB cluster group.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
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:miValid 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:miValid 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
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
The daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).
Format:
hh24:mi-hh24:miDefault: 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:miDefault: 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
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
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
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
VpcSubnetIdsinRoutingEndpointConfiguration, and you must specifyAdminUsernameandAdminUserPassword.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
VpcSubnetIdsinRoutingEndpointConfiguration, and you must specifyAdminUsernameandAdminUserPassword.Default:
false
-
routingEndpointConfiguration
The settings of the routing endpoint. Specify this parameter only when
EnableRoutingistrue, and includeVpcSubnetIds.- Returns:
- The settings of the routing endpoint. Specify this parameter only when
EnableRoutingistrue, and includeVpcSubnetIds.
-
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 theisEmpty()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
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 theisEmpty()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
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
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 specifyAdminUserPassword.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 specifyAdminUserPassword.Default: None. An admin user is required when you enable routing.
-
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 specifyAdminUsername.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 specifyAdminUsername.Default: None. An admin user is required when you enable routing.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateDbClusterGroupRequest.Builder,CreateDbClusterGroupRequest> - Specified by:
toBuilderin classRdsRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. 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, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- 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
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-