/* * 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; /** *
* Contains the 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 SwitchoverDetail implements Serializable, Cloneable { /** ** The Amazon Resource Name (ARN) of a resource in the blue environment. *
*/ private String sourceMember; /** ** The Amazon Resource Name (ARN) of a resource in the green environment. *
*/ private String targetMember; /** ** The switchover status of a resource in a blue/green deployment. *
** Values: *
*
* PROVISIONING
- The resource is being prepared to switch over.
*
* AVAILABLE
- The resource is ready to switch over.
*
* SWITCHOVER_IN_PROGRESS
- The resource is being switched over.
*
* SWITCHOVER_COMPLETED
- The resource has been switched over.
*
* SWITCHOVER_FAILED
- The resource attempted to switch over but failed.
*
* MISSING_SOURCE
- The source resource has been deleted.
*
* MISSING_TARGET
- The target resource has been deleted.
*
* The Amazon Resource Name (ARN) of a resource in the blue environment. *
* * @param sourceMember * The Amazon Resource Name (ARN) of a resource in the blue environment. */ public void setSourceMember(String sourceMember) { this.sourceMember = sourceMember; } /** ** The Amazon Resource Name (ARN) of a resource in the blue environment. *
* * @return The Amazon Resource Name (ARN) of a resource in the blue environment. */ public String getSourceMember() { return this.sourceMember; } /** ** The Amazon Resource Name (ARN) of a resource in the blue environment. *
* * @param sourceMember * The Amazon Resource Name (ARN) of a resource in the blue environment. * @return Returns a reference to this object so that method calls can be chained together. */ public SwitchoverDetail withSourceMember(String sourceMember) { setSourceMember(sourceMember); return this; } /** ** The Amazon Resource Name (ARN) of a resource in the green environment. *
* * @param targetMember * The Amazon Resource Name (ARN) of a resource in the green environment. */ public void setTargetMember(String targetMember) { this.targetMember = targetMember; } /** ** The Amazon Resource Name (ARN) of a resource in the green environment. *
* * @return The Amazon Resource Name (ARN) of a resource in the green environment. */ public String getTargetMember() { return this.targetMember; } /** ** The Amazon Resource Name (ARN) of a resource in the green environment. *
* * @param targetMember * The Amazon Resource Name (ARN) of a resource in the green environment. * @return Returns a reference to this object so that method calls can be chained together. */ public SwitchoverDetail withTargetMember(String targetMember) { setTargetMember(targetMember); return this; } /** ** The switchover status of a resource in a blue/green deployment. *
** Values: *
*
* PROVISIONING
- The resource is being prepared to switch over.
*
* AVAILABLE
- The resource is ready to switch over.
*
* SWITCHOVER_IN_PROGRESS
- The resource is being switched over.
*
* SWITCHOVER_COMPLETED
- The resource has been switched over.
*
* SWITCHOVER_FAILED
- The resource attempted to switch over but failed.
*
* MISSING_SOURCE
- The source resource has been deleted.
*
* MISSING_TARGET
- The target resource has been deleted.
*
* Values: *
*
* PROVISIONING
- The resource is being prepared to switch over.
*
* AVAILABLE
- The resource is ready to switch over.
*
* SWITCHOVER_IN_PROGRESS
- The resource is being switched over.
*
* SWITCHOVER_COMPLETED
- The resource has been switched over.
*
* SWITCHOVER_FAILED
- The resource attempted to switch over but failed.
*
* MISSING_SOURCE
- The source resource has been deleted.
*
* MISSING_TARGET
- The target resource has been deleted.
*
* The switchover status of a resource in a blue/green deployment. *
** Values: *
*
* PROVISIONING
- The resource is being prepared to switch over.
*
* AVAILABLE
- The resource is ready to switch over.
*
* SWITCHOVER_IN_PROGRESS
- The resource is being switched over.
*
* SWITCHOVER_COMPLETED
- The resource has been switched over.
*
* SWITCHOVER_FAILED
- The resource attempted to switch over but failed.
*
* MISSING_SOURCE
- The source resource has been deleted.
*
* MISSING_TARGET
- The target resource has been deleted.
*
* Values: *
*
* PROVISIONING
- The resource is being prepared to switch over.
*
* AVAILABLE
- The resource is ready to switch over.
*
* SWITCHOVER_IN_PROGRESS
- The resource is being switched over.
*
* SWITCHOVER_COMPLETED
- The resource has been switched over.
*
* SWITCHOVER_FAILED
- The resource attempted to switch over but failed.
*
* MISSING_SOURCE
- The source resource has been deleted.
*
* MISSING_TARGET
- The target resource has been deleted.
*
* The switchover status of a resource in a blue/green deployment. *
** Values: *
*
* PROVISIONING
- The resource is being prepared to switch over.
*
* AVAILABLE
- The resource is ready to switch over.
*
* SWITCHOVER_IN_PROGRESS
- The resource is being switched over.
*
* SWITCHOVER_COMPLETED
- The resource has been switched over.
*
* SWITCHOVER_FAILED
- The resource attempted to switch over but failed.
*
* MISSING_SOURCE
- The source resource has been deleted.
*
* MISSING_TARGET
- The target resource has been deleted.
*
* Values: *
*
* PROVISIONING
- The resource is being prepared to switch over.
*
* AVAILABLE
- The resource is ready to switch over.
*
* SWITCHOVER_IN_PROGRESS
- The resource is being switched over.
*
* SWITCHOVER_COMPLETED
- The resource has been switched over.
*
* SWITCHOVER_FAILED
- The resource attempted to switch over but failed.
*
* MISSING_SOURCE
- The source resource has been deleted.
*
* MISSING_TARGET
- The target resource has been deleted.
*