/* * 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; /** *
* Details about a blue/green deployment. *
** For more information, see Using Amazon RDS Blue/Green * Deployments for database updates in the Amazon RDS User Guide and Using Amazon RDS * Blue/Green Deployments for database updates in the Amazon Aurora User Guide. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BlueGreenDeployment implements Serializable, Cloneable { /** ** The unique identifier of the blue/green deployment. *
*/ private String blueGreenDeploymentIdentifier; /** ** The user-supplied name of the blue/green deployment. *
*/ private String blueGreenDeploymentName; /** ** The source database for the blue/green deployment. *
** Before switchover, the source database is the production database in the blue environment. *
*/ private String source; /** ** The target database for the blue/green deployment. *
** Before switchover, the target database is the clone database in the green environment. *
*/ private String target; /** ** The details about each source and target resource in the blue/green deployment. *
*/ private com.amazonaws.internal.SdkInternalList* Either tasks to be performed or tasks that have been completed on the target database before switchover. *
*/ private com.amazonaws.internal.SdkInternalList* The status of the blue/green deployment. *
** Valid Values: *
*
* PROVISIONING
- Resources are being created in the green environment.
*
* AVAILABLE
- Resources are available in the green environment.
*
* SWITCHOVER_IN_PROGRESS
- The deployment is being switched from the blue environment to the green
* environment.
*
* SWITCHOVER_COMPLETED
- Switchover from the blue environment to the green environment is complete.
*
* INVALID_CONFIGURATION
- Resources in the green environment are invalid, so switchover isn't
* possible.
*
* SWITCHOVER_FAILED
- Switchover was attempted but failed.
*
* DELETING
- The blue/green deployment is being deleted.
*
* Additional information about the status of the blue/green deployment. *
*/ private String statusDetails; /** ** The time when the blue/green deployment was created, in Universal Coordinated Time (UTC). *
*/ private java.util.Date createTime; /** ** The time when the blue/green deployment was deleted, in Universal Coordinated Time (UTC). *
*/ private java.util.Date deleteTime; private com.amazonaws.internal.SdkInternalList* The unique identifier of the blue/green deployment. *
* * @param blueGreenDeploymentIdentifier * The unique identifier of the blue/green deployment. */ public void setBlueGreenDeploymentIdentifier(String blueGreenDeploymentIdentifier) { this.blueGreenDeploymentIdentifier = blueGreenDeploymentIdentifier; } /** ** The unique identifier of the blue/green deployment. *
* * @return The unique identifier of the blue/green deployment. */ public String getBlueGreenDeploymentIdentifier() { return this.blueGreenDeploymentIdentifier; } /** ** The unique identifier of the blue/green deployment. *
* * @param blueGreenDeploymentIdentifier * The unique identifier of the blue/green deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withBlueGreenDeploymentIdentifier(String blueGreenDeploymentIdentifier) { setBlueGreenDeploymentIdentifier(blueGreenDeploymentIdentifier); return this; } /** ** The user-supplied name of the blue/green deployment. *
* * @param blueGreenDeploymentName * The user-supplied name of the blue/green deployment. */ public void setBlueGreenDeploymentName(String blueGreenDeploymentName) { this.blueGreenDeploymentName = blueGreenDeploymentName; } /** ** The user-supplied name of the blue/green deployment. *
* * @return The user-supplied name of the blue/green deployment. */ public String getBlueGreenDeploymentName() { return this.blueGreenDeploymentName; } /** ** The user-supplied name of the blue/green deployment. *
* * @param blueGreenDeploymentName * The user-supplied name of the blue/green deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withBlueGreenDeploymentName(String blueGreenDeploymentName) { setBlueGreenDeploymentName(blueGreenDeploymentName); return this; } /** ** The source database for the blue/green deployment. *
** Before switchover, the source database is the production database in the blue environment. *
* * @param source * The source database for the blue/green deployment. ** Before switchover, the source database is the production database in the blue environment. */ public void setSource(String source) { this.source = source; } /** *
* The source database for the blue/green deployment. *
** Before switchover, the source database is the production database in the blue environment. *
* * @return The source database for the blue/green deployment. ** Before switchover, the source database is the production database in the blue environment. */ public String getSource() { return this.source; } /** *
* The source database for the blue/green deployment. *
** Before switchover, the source database is the production database in the blue environment. *
* * @param source * The source database for the blue/green deployment. ** Before switchover, the source database is the production database in the blue environment. * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withSource(String source) { setSource(source); return this; } /** *
* The target database for the blue/green deployment. *
** Before switchover, the target database is the clone database in the green environment. *
* * @param target * The target database for the blue/green deployment. ** Before switchover, the target database is the clone database in the green environment. */ public void setTarget(String target) { this.target = target; } /** *
* The target database for the blue/green deployment. *
** Before switchover, the target database is the clone database in the green environment. *
* * @return The target database for the blue/green deployment. ** Before switchover, the target database is the clone database in the green environment. */ public String getTarget() { return this.target; } /** *
* The target database for the blue/green deployment. *
** Before switchover, the target database is the clone database in the green environment. *
* * @param target * The target database for the blue/green deployment. ** Before switchover, the target database is the clone database in the green environment. * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withTarget(String target) { setTarget(target); return this; } /** *
* The details about each source and target resource in the blue/green deployment. *
* * @return The details about each source and target resource in the blue/green deployment. */ public java.util.List* The details about each source and target resource in the blue/green deployment. *
* * @param switchoverDetails * The details about each source and target resource in the blue/green deployment. */ public void setSwitchoverDetails(java.util.Collection* The details about each source and target resource in the blue/green deployment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSwitchoverDetails(java.util.Collection)} or {@link #withSwitchoverDetails(java.util.Collection)} if * you want to override the existing values. *
* * @param switchoverDetails * The details about each source and target resource in the blue/green deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withSwitchoverDetails(SwitchoverDetail... switchoverDetails) { if (this.switchoverDetails == null) { setSwitchoverDetails(new com.amazonaws.internal.SdkInternalList* The details about each source and target resource in the blue/green deployment. *
* * @param switchoverDetails * The details about each source and target resource in the blue/green deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withSwitchoverDetails(java.util.Collection* Either tasks to be performed or tasks that have been completed on the target database before switchover. *
* * @return Either tasks to be performed or tasks that have been completed on the target database before switchover. */ public java.util.List* Either tasks to be performed or tasks that have been completed on the target database before switchover. *
* * @param tasks * Either tasks to be performed or tasks that have been completed on the target database before switchover. */ public void setTasks(java.util.Collection* Either tasks to be performed or tasks that have been completed on the target database before switchover. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTasks(java.util.Collection)} or {@link #withTasks(java.util.Collection)} if you want to override the * existing values. *
* * @param tasks * Either tasks to be performed or tasks that have been completed on the target database before switchover. * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withTasks(BlueGreenDeploymentTask... tasks) { if (this.tasks == null) { setTasks(new com.amazonaws.internal.SdkInternalList* Either tasks to be performed or tasks that have been completed on the target database before switchover. *
* * @param tasks * Either tasks to be performed or tasks that have been completed on the target database before switchover. * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withTasks(java.util.Collection* The status of the blue/green deployment. *
** Valid Values: *
*
* PROVISIONING
- Resources are being created in the green environment.
*
* AVAILABLE
- Resources are available in the green environment.
*
* SWITCHOVER_IN_PROGRESS
- The deployment is being switched from the blue environment to the green
* environment.
*
* SWITCHOVER_COMPLETED
- Switchover from the blue environment to the green environment is complete.
*
* INVALID_CONFIGURATION
- Resources in the green environment are invalid, so switchover isn't
* possible.
*
* SWITCHOVER_FAILED
- Switchover was attempted but failed.
*
* DELETING
- The blue/green deployment is being deleted.
*
* Valid Values: *
*
* PROVISIONING
- Resources are being created in the green environment.
*
* AVAILABLE
- Resources are available in the green environment.
*
* SWITCHOVER_IN_PROGRESS
- The deployment is being switched from the blue environment to the
* green environment.
*
* SWITCHOVER_COMPLETED
- Switchover from the blue environment to the green environment is
* complete.
*
* INVALID_CONFIGURATION
- Resources in the green environment are invalid, so switchover isn't
* possible.
*
* SWITCHOVER_FAILED
- Switchover was attempted but failed.
*
* DELETING
- The blue/green deployment is being deleted.
*
* The status of the blue/green deployment. *
** Valid Values: *
*
* PROVISIONING
- Resources are being created in the green environment.
*
* AVAILABLE
- Resources are available in the green environment.
*
* SWITCHOVER_IN_PROGRESS
- The deployment is being switched from the blue environment to the green
* environment.
*
* SWITCHOVER_COMPLETED
- Switchover from the blue environment to the green environment is complete.
*
* INVALID_CONFIGURATION
- Resources in the green environment are invalid, so switchover isn't
* possible.
*
* SWITCHOVER_FAILED
- Switchover was attempted but failed.
*
* DELETING
- The blue/green deployment is being deleted.
*
* Valid Values: *
*
* PROVISIONING
- Resources are being created in the green environment.
*
* AVAILABLE
- Resources are available in the green environment.
*
* SWITCHOVER_IN_PROGRESS
- The deployment is being switched from the blue environment to the
* green environment.
*
* SWITCHOVER_COMPLETED
- Switchover from the blue environment to the green environment is
* complete.
*
* INVALID_CONFIGURATION
- Resources in the green environment are invalid, so switchover isn't
* possible.
*
* SWITCHOVER_FAILED
- Switchover was attempted but failed.
*
* DELETING
- The blue/green deployment is being deleted.
*
* The status of the blue/green deployment. *
** Valid Values: *
*
* PROVISIONING
- Resources are being created in the green environment.
*
* AVAILABLE
- Resources are available in the green environment.
*
* SWITCHOVER_IN_PROGRESS
- The deployment is being switched from the blue environment to the green
* environment.
*
* SWITCHOVER_COMPLETED
- Switchover from the blue environment to the green environment is complete.
*
* INVALID_CONFIGURATION
- Resources in the green environment are invalid, so switchover isn't
* possible.
*
* SWITCHOVER_FAILED
- Switchover was attempted but failed.
*
* DELETING
- The blue/green deployment is being deleted.
*
* Valid Values: *
*
* PROVISIONING
- Resources are being created in the green environment.
*
* AVAILABLE
- Resources are available in the green environment.
*
* SWITCHOVER_IN_PROGRESS
- The deployment is being switched from the blue environment to the
* green environment.
*
* SWITCHOVER_COMPLETED
- Switchover from the blue environment to the green environment is
* complete.
*
* INVALID_CONFIGURATION
- Resources in the green environment are invalid, so switchover isn't
* possible.
*
* SWITCHOVER_FAILED
- Switchover was attempted but failed.
*
* DELETING
- The blue/green deployment is being deleted.
*
* Additional information about the status of the blue/green deployment. *
* * @param statusDetails * Additional information about the status of the blue/green deployment. */ public void setStatusDetails(String statusDetails) { this.statusDetails = statusDetails; } /** ** Additional information about the status of the blue/green deployment. *
* * @return Additional information about the status of the blue/green deployment. */ public String getStatusDetails() { return this.statusDetails; } /** ** Additional information about the status of the blue/green deployment. *
* * @param statusDetails * Additional information about the status of the blue/green deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withStatusDetails(String statusDetails) { setStatusDetails(statusDetails); return this; } /** ** The time when the blue/green deployment was created, in Universal Coordinated Time (UTC). *
* * @param createTime * The time when the blue/green deployment was created, in Universal Coordinated Time (UTC). */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** ** The time when the blue/green deployment was created, in Universal Coordinated Time (UTC). *
* * @return The time when the blue/green deployment was created, in Universal Coordinated Time (UTC). */ public java.util.Date getCreateTime() { return this.createTime; } /** ** The time when the blue/green deployment was created, in Universal Coordinated Time (UTC). *
* * @param createTime * The time when the blue/green deployment was created, in Universal Coordinated Time (UTC). * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** ** The time when the blue/green deployment was deleted, in Universal Coordinated Time (UTC). *
* * @param deleteTime * The time when the blue/green deployment was deleted, in Universal Coordinated Time (UTC). */ public void setDeleteTime(java.util.Date deleteTime) { this.deleteTime = deleteTime; } /** ** The time when the blue/green deployment was deleted, in Universal Coordinated Time (UTC). *
* * @return The time when the blue/green deployment was deleted, in Universal Coordinated Time (UTC). */ public java.util.Date getDeleteTime() { return this.deleteTime; } /** ** The time when the blue/green deployment was deleted, in Universal Coordinated Time (UTC). *
* * @param deleteTime * The time when the blue/green deployment was deleted, in Universal Coordinated Time (UTC). * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withDeleteTime(java.util.Date deleteTime) { setDeleteTime(deleteTime); return this; } /** * @return */ public java.util.List* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTagList(java.util.Collection)} or {@link #withTagList(java.util.Collection)} if you want to override * the existing values. *
* * @param tagList * @return Returns a reference to this object so that method calls can be chained together. */ public BlueGreenDeployment withTagList(Tag... tagList) { if (this.tagList == null) { setTagList(new com.amazonaws.internal.SdkInternalList