/* * 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 CreateBlueGreenDeploymentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the blue/green deployment. *
** Constraints: *
** Can't be the same as an existing blue/green deployment name in the same account and Amazon Web Services Region. *
** The Amazon Resource Name (ARN) of the source production database. *
** Specify the database that you want to clone. The blue/green deployment creates this database in the green * environment. You can make updates to the database in the green environment, such as an engine version upgrade. * When you are ready, you can switch the database in the green environment to be the production database. *
*/ private String source; /** ** The engine version of the database in the green environment. *
** Specify the engine version to upgrade to in the green environment. *
*/ private String targetEngineVersion; /** ** The DB parameter group associated with the DB instance in the green environment. *
** To test parameter changes, specify a DB parameter group that is different from the one associated with the source * DB instance. *
*/ private String targetDBParameterGroupName; /** ** The DB cluster parameter group associated with the Aurora DB cluster in the green environment. *
** To test parameter changes, specify a DB cluster parameter group that is different from the one associated with * the source DB cluster. *
*/ private String targetDBClusterParameterGroupName; /** ** Tags to assign to the blue/green deployment. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the blue/green deployment. *
** Constraints: *
** Can't be the same as an existing blue/green deployment name in the same account and Amazon Web Services Region. *
** Constraints: *
** Can't be the same as an existing blue/green deployment name in the same account and Amazon Web Services * Region. *
** The name of the blue/green deployment. *
** Constraints: *
** Can't be the same as an existing blue/green deployment name in the same account and Amazon Web Services Region. *
** Constraints: *
** Can't be the same as an existing blue/green deployment name in the same account and Amazon Web Services * Region. *
** The name of the blue/green deployment. *
** Constraints: *
** Can't be the same as an existing blue/green deployment name in the same account and Amazon Web Services Region. *
** Constraints: *
** Can't be the same as an existing blue/green deployment name in the same account and Amazon Web Services * Region. *
** The Amazon Resource Name (ARN) of the source production database. *
** Specify the database that you want to clone. The blue/green deployment creates this database in the green * environment. You can make updates to the database in the green environment, such as an engine version upgrade. * When you are ready, you can switch the database in the green environment to be the production database. *
* * @param source * The Amazon Resource Name (ARN) of the source production database. ** Specify the database that you want to clone. The blue/green deployment creates this database in the green * environment. You can make updates to the database in the green environment, such as an engine version * upgrade. When you are ready, you can switch the database in the green environment to be the production * database. */ public void setSource(String source) { this.source = source; } /** *
* The Amazon Resource Name (ARN) of the source production database. *
** Specify the database that you want to clone. The blue/green deployment creates this database in the green * environment. You can make updates to the database in the green environment, such as an engine version upgrade. * When you are ready, you can switch the database in the green environment to be the production database. *
* * @return The Amazon Resource Name (ARN) of the source production database. ** Specify the database that you want to clone. The blue/green deployment creates this database in the green * environment. You can make updates to the database in the green environment, such as an engine version * upgrade. When you are ready, you can switch the database in the green environment to be the production * database. */ public String getSource() { return this.source; } /** *
* The Amazon Resource Name (ARN) of the source production database. *
** Specify the database that you want to clone. The blue/green deployment creates this database in the green * environment. You can make updates to the database in the green environment, such as an engine version upgrade. * When you are ready, you can switch the database in the green environment to be the production database. *
* * @param source * The Amazon Resource Name (ARN) of the source production database. ** Specify the database that you want to clone. The blue/green deployment creates this database in the green * environment. You can make updates to the database in the green environment, such as an engine version * upgrade. When you are ready, you can switch the database in the green environment to be the production * database. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBlueGreenDeploymentRequest withSource(String source) { setSource(source); return this; } /** *
* The engine version of the database in the green environment. *
** Specify the engine version to upgrade to in the green environment. *
* * @param targetEngineVersion * The engine version of the database in the green environment. ** Specify the engine version to upgrade to in the green environment. */ public void setTargetEngineVersion(String targetEngineVersion) { this.targetEngineVersion = targetEngineVersion; } /** *
* The engine version of the database in the green environment. *
** Specify the engine version to upgrade to in the green environment. *
* * @return The engine version of the database in the green environment. ** Specify the engine version to upgrade to in the green environment. */ public String getTargetEngineVersion() { return this.targetEngineVersion; } /** *
* The engine version of the database in the green environment. *
** Specify the engine version to upgrade to in the green environment. *
* * @param targetEngineVersion * The engine version of the database in the green environment. ** Specify the engine version to upgrade to in the green environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBlueGreenDeploymentRequest withTargetEngineVersion(String targetEngineVersion) { setTargetEngineVersion(targetEngineVersion); return this; } /** *
* The DB parameter group associated with the DB instance in the green environment. *
** To test parameter changes, specify a DB parameter group that is different from the one associated with the source * DB instance. *
* * @param targetDBParameterGroupName * The DB parameter group associated with the DB instance in the green environment. ** To test parameter changes, specify a DB parameter group that is different from the one associated with the * source DB instance. */ public void setTargetDBParameterGroupName(String targetDBParameterGroupName) { this.targetDBParameterGroupName = targetDBParameterGroupName; } /** *
* The DB parameter group associated with the DB instance in the green environment. *
** To test parameter changes, specify a DB parameter group that is different from the one associated with the source * DB instance. *
* * @return The DB parameter group associated with the DB instance in the green environment. ** To test parameter changes, specify a DB parameter group that is different from the one associated with * the source DB instance. */ public String getTargetDBParameterGroupName() { return this.targetDBParameterGroupName; } /** *
* The DB parameter group associated with the DB instance in the green environment. *
** To test parameter changes, specify a DB parameter group that is different from the one associated with the source * DB instance. *
* * @param targetDBParameterGroupName * The DB parameter group associated with the DB instance in the green environment. ** To test parameter changes, specify a DB parameter group that is different from the one associated with the * source DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBlueGreenDeploymentRequest withTargetDBParameterGroupName(String targetDBParameterGroupName) { setTargetDBParameterGroupName(targetDBParameterGroupName); return this; } /** *
* The DB cluster parameter group associated with the Aurora DB cluster in the green environment. *
** To test parameter changes, specify a DB cluster parameter group that is different from the one associated with * the source DB cluster. *
* * @param targetDBClusterParameterGroupName * The DB cluster parameter group associated with the Aurora DB cluster in the green environment. ** To test parameter changes, specify a DB cluster parameter group that is different from the one associated * with the source DB cluster. */ public void setTargetDBClusterParameterGroupName(String targetDBClusterParameterGroupName) { this.targetDBClusterParameterGroupName = targetDBClusterParameterGroupName; } /** *
* The DB cluster parameter group associated with the Aurora DB cluster in the green environment. *
** To test parameter changes, specify a DB cluster parameter group that is different from the one associated with * the source DB cluster. *
* * @return The DB cluster parameter group associated with the Aurora DB cluster in the green environment. ** To test parameter changes, specify a DB cluster parameter group that is different from the one associated * with the source DB cluster. */ public String getTargetDBClusterParameterGroupName() { return this.targetDBClusterParameterGroupName; } /** *
* The DB cluster parameter group associated with the Aurora DB cluster in the green environment. *
** To test parameter changes, specify a DB cluster parameter group that is different from the one associated with * the source DB cluster. *
* * @param targetDBClusterParameterGroupName * The DB cluster parameter group associated with the Aurora DB cluster in the green environment. ** To test parameter changes, specify a DB cluster parameter group that is different from the one associated * with the source DB cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBlueGreenDeploymentRequest withTargetDBClusterParameterGroupName(String targetDBClusterParameterGroupName) { setTargetDBClusterParameterGroupName(targetDBClusterParameterGroupName); return this; } /** *
* Tags to assign to the blue/green deployment. *
* * @return Tags to assign to the blue/green deployment. */ public java.util.List* Tags to assign to the blue/green deployment. *
* * @param tags * Tags to assign to the blue/green deployment. */ public void setTags(java.util.Collection* Tags to assign to the blue/green deployment. *
** 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 blue/green deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBlueGreenDeploymentRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* Tags to assign to the blue/green deployment. *
* * @param tags * Tags to assign to the blue/green deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBlueGreenDeploymentRequest withTags(java.util.Collection