/* * Copyright 2018-2023 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 CreateDBClusterParameterGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The name of the DB cluster parameter group. *
** Constraints: *
** Must not match the name of an existing DB cluster parameter group. *
** This value is stored as a lowercase string. *
** The DB cluster parameter group family name. A DB cluster parameter group can be associated with one and only one * DB cluster parameter group family, and can be applied only to a DB cluster running a database engine and engine * version compatible with that DB cluster parameter group family. *
** Aurora MySQL *
*
* Example: aurora-mysql5.7
, aurora-mysql8.0
*
* Aurora PostgreSQL *
*
* Example: aurora-postgresql14
*
* RDS for MySQL *
*
* Example: mysql8.0
*
* RDS for PostgreSQL *
*
* Example: postgres12
*
* To list all of the available parameter group families for a DB engine, use the following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>
*
* For example, to list all of the available parameter group families for the Aurora PostgreSQL DB engine, use the * following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql
*
* The output contains duplicates. *
** The following are the valid DB engine values: *
*
* aurora-mysql
*
* aurora-postgresql
*
* mysql
*
* postgres
*
* The description for the DB cluster parameter group. *
*/ private String description; /** ** Tags to assign to the DB cluster parameter group. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the DB cluster parameter group. *
** Constraints: *
** Must not match the name of an existing DB cluster parameter group. *
** This value is stored as a lowercase string. *
** Constraints: *
** Must not match the name of an existing DB cluster parameter group. *
** This value is stored as a lowercase string. *
*/ public void setDBClusterParameterGroupName(String dBClusterParameterGroupName) { this.dBClusterParameterGroupName = dBClusterParameterGroupName; } /** ** The name of the DB cluster parameter group. *
** Constraints: *
** Must not match the name of an existing DB cluster parameter group. *
** This value is stored as a lowercase string. *
** Constraints: *
** Must not match the name of an existing DB cluster parameter group. *
** This value is stored as a lowercase string. *
*/ public String getDBClusterParameterGroupName() { return this.dBClusterParameterGroupName; } /** ** The name of the DB cluster parameter group. *
** Constraints: *
** Must not match the name of an existing DB cluster parameter group. *
** This value is stored as a lowercase string. *
** Constraints: *
** Must not match the name of an existing DB cluster parameter group. *
** This value is stored as a lowercase string. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterParameterGroupRequest withDBClusterParameterGroupName(String dBClusterParameterGroupName) { setDBClusterParameterGroupName(dBClusterParameterGroupName); return this; } /** ** The DB cluster parameter group family name. A DB cluster parameter group can be associated with one and only one * DB cluster parameter group family, and can be applied only to a DB cluster running a database engine and engine * version compatible with that DB cluster parameter group family. *
** Aurora MySQL *
*
* Example: aurora-mysql5.7
, aurora-mysql8.0
*
* Aurora PostgreSQL *
*
* Example: aurora-postgresql14
*
* RDS for MySQL *
*
* Example: mysql8.0
*
* RDS for PostgreSQL *
*
* Example: postgres12
*
* To list all of the available parameter group families for a DB engine, use the following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>
*
* For example, to list all of the available parameter group families for the Aurora PostgreSQL DB engine, use the * following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql
*
* The output contains duplicates. *
** The following are the valid DB engine values: *
*
* aurora-mysql
*
* aurora-postgresql
*
* mysql
*
* postgres
*
* Aurora MySQL *
*
* Example: aurora-mysql5.7
, aurora-mysql8.0
*
* Aurora PostgreSQL *
*
* Example: aurora-postgresql14
*
* RDS for MySQL *
*
* Example: mysql8.0
*
* RDS for PostgreSQL *
*
* Example: postgres12
*
* To list all of the available parameter group families for a DB engine, use the following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>
*
* For example, to list all of the available parameter group families for the Aurora PostgreSQL DB engine, * use the following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql
*
* The output contains duplicates. *
** The following are the valid DB engine values: *
*
* aurora-mysql
*
* aurora-postgresql
*
* mysql
*
* postgres
*
* The DB cluster parameter group family name. A DB cluster parameter group can be associated with one and only one * DB cluster parameter group family, and can be applied only to a DB cluster running a database engine and engine * version compatible with that DB cluster parameter group family. *
** Aurora MySQL *
*
* Example: aurora-mysql5.7
, aurora-mysql8.0
*
* Aurora PostgreSQL *
*
* Example: aurora-postgresql14
*
* RDS for MySQL *
*
* Example: mysql8.0
*
* RDS for PostgreSQL *
*
* Example: postgres12
*
* To list all of the available parameter group families for a DB engine, use the following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>
*
* For example, to list all of the available parameter group families for the Aurora PostgreSQL DB engine, use the * following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql
*
* The output contains duplicates. *
** The following are the valid DB engine values: *
*
* aurora-mysql
*
* aurora-postgresql
*
* mysql
*
* postgres
*
* Aurora MySQL *
*
* Example: aurora-mysql5.7
, aurora-mysql8.0
*
* Aurora PostgreSQL *
*
* Example: aurora-postgresql14
*
* RDS for MySQL *
*
* Example: mysql8.0
*
* RDS for PostgreSQL *
*
* Example: postgres12
*
* To list all of the available parameter group families for a DB engine, use the following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>
*
* For example, to list all of the available parameter group families for the Aurora PostgreSQL DB engine, * use the following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql
*
* The output contains duplicates. *
** The following are the valid DB engine values: *
*
* aurora-mysql
*
* aurora-postgresql
*
* mysql
*
* postgres
*
* The DB cluster parameter group family name. A DB cluster parameter group can be associated with one and only one * DB cluster parameter group family, and can be applied only to a DB cluster running a database engine and engine * version compatible with that DB cluster parameter group family. *
** Aurora MySQL *
*
* Example: aurora-mysql5.7
, aurora-mysql8.0
*
* Aurora PostgreSQL *
*
* Example: aurora-postgresql14
*
* RDS for MySQL *
*
* Example: mysql8.0
*
* RDS for PostgreSQL *
*
* Example: postgres12
*
* To list all of the available parameter group families for a DB engine, use the following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>
*
* For example, to list all of the available parameter group families for the Aurora PostgreSQL DB engine, use the * following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql
*
* The output contains duplicates. *
** The following are the valid DB engine values: *
*
* aurora-mysql
*
* aurora-postgresql
*
* mysql
*
* postgres
*
* Aurora MySQL *
*
* Example: aurora-mysql5.7
, aurora-mysql8.0
*
* Aurora PostgreSQL *
*
* Example: aurora-postgresql14
*
* RDS for MySQL *
*
* Example: mysql8.0
*
* RDS for PostgreSQL *
*
* Example: postgres12
*
* To list all of the available parameter group families for a DB engine, use the following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>
*
* For example, to list all of the available parameter group families for the Aurora PostgreSQL DB engine, * use the following command: *
*
* aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql
*
* The output contains duplicates. *
** The following are the valid DB engine values: *
*
* aurora-mysql
*
* aurora-postgresql
*
* mysql
*
* postgres
*
* The description for the DB cluster parameter group. *
* * @param description * The description for the DB cluster parameter group. */ public void setDescription(String description) { this.description = description; } /** ** The description for the DB cluster parameter group. *
* * @return The description for the DB cluster parameter group. */ public String getDescription() { return this.description; } /** ** The description for the DB cluster parameter group. *
* * @param description * The description for the DB cluster parameter group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterParameterGroupRequest withDescription(String description) { setDescription(description); return this; } /** ** Tags to assign to the DB cluster parameter group. *
* * @return Tags to assign to the DB cluster parameter group. */ public java.util.List* Tags to assign to the DB cluster parameter group. *
* * @param tags * Tags to assign to the DB cluster parameter group. */ public void setTags(java.util.Collection* Tags to assign to the DB cluster parameter group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Tags to assign to the DB cluster parameter group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterParameterGroupRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* Tags to assign to the DB cluster parameter group. *
* * @param tags * Tags to assign to the DB cluster parameter group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterParameterGroupRequest withTags(java.util.Collection