/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the rds-2014-10-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.RDS.Model
{
///
/// 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.
///
///
public partial class BlueGreenDeployment
{
private string _blueGreenDeploymentIdentifier;
private string _blueGreenDeploymentName;
private DateTime? _createTime;
private DateTime? _deleteTime;
private string _source;
private string _status;
private string _statusDetails;
private List _switchoverDetails = new List();
private List _tagList = new List();
private string _target;
private List _tasks = new List();
///
/// Gets and sets the property BlueGreenDeploymentIdentifier.
///
/// The unique identifier of the blue/green deployment.
///
///
[AWSProperty(Min=1, Max=255)]
public string BlueGreenDeploymentIdentifier
{
get { return this._blueGreenDeploymentIdentifier; }
set { this._blueGreenDeploymentIdentifier = value; }
}
// Check to see if BlueGreenDeploymentIdentifier property is set
internal bool IsSetBlueGreenDeploymentIdentifier()
{
return this._blueGreenDeploymentIdentifier != null;
}
///
/// Gets and sets the property BlueGreenDeploymentName.
///
/// The user-supplied name of the blue/green deployment.
///
///
[AWSProperty(Min=1, Max=60)]
public string BlueGreenDeploymentName
{
get { return this._blueGreenDeploymentName; }
set { this._blueGreenDeploymentName = value; }
}
// Check to see if BlueGreenDeploymentName property is set
internal bool IsSetBlueGreenDeploymentName()
{
return this._blueGreenDeploymentName != null;
}
///
/// Gets and sets the property CreateTime.
///
/// The time when the blue/green deployment was created, in Universal Coordinated Time
/// (UTC).
///
///
public DateTime CreateTime
{
get { return this._createTime.GetValueOrDefault(); }
set { this._createTime = value; }
}
// Check to see if CreateTime property is set
internal bool IsSetCreateTime()
{
return this._createTime.HasValue;
}
///
/// Gets and sets the property DeleteTime.
///
/// The time when the blue/green deployment was deleted, in Universal Coordinated Time
/// (UTC).
///
///
public DateTime DeleteTime
{
get { return this._deleteTime.GetValueOrDefault(); }
set { this._deleteTime = value; }
}
// Check to see if DeleteTime property is set
internal bool IsSetDeleteTime()
{
return this._deleteTime.HasValue;
}
///
/// Gets and sets the property Source.
///
/// The source database for the blue/green deployment.
///
///
///
/// Before switchover, the source database is the production database in the blue environment.
///
///
[AWSProperty(Min=1, Max=2048)]
public string Source
{
get { return this._source; }
set { this._source = value; }
}
// Check to see if Source property is set
internal bool IsSetSource()
{
return this._source != null;
}
///
/// Gets and sets the property Status.
///
/// 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.
///
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property StatusDetails.
///
/// Additional information about the status of the blue/green deployment.
///
///
public string StatusDetails
{
get { return this._statusDetails; }
set { this._statusDetails = value; }
}
// Check to see if StatusDetails property is set
internal bool IsSetStatusDetails()
{
return this._statusDetails != null;
}
///
/// Gets and sets the property SwitchoverDetails.
///
/// The details about each source and target resource in the blue/green deployment.
///
///
public List SwitchoverDetails
{
get { return this._switchoverDetails; }
set { this._switchoverDetails = value; }
}
// Check to see if SwitchoverDetails property is set
internal bool IsSetSwitchoverDetails()
{
return this._switchoverDetails != null && this._switchoverDetails.Count > 0;
}
///
/// Gets and sets the property TagList.
///
public List TagList
{
get { return this._tagList; }
set { this._tagList = value; }
}
// Check to see if TagList property is set
internal bool IsSetTagList()
{
return this._tagList != null && this._tagList.Count > 0;
}
///
/// Gets and sets the property Target.
///
/// The target database for the blue/green deployment.
///
///
///
/// Before switchover, the target database is the clone database in the green environment.
///
///
[AWSProperty(Min=1, Max=2048)]
public string Target
{
get { return this._target; }
set { this._target = value; }
}
// Check to see if Target property is set
internal bool IsSetTarget()
{
return this._target != null;
}
///
/// Gets and sets the property Tasks.
///
/// Either tasks to be performed or tasks that have been completed on the target database
/// before switchover.
///
///
public List Tasks
{
get { return this._tasks; }
set { this._tasks = value; }
}
// Check to see if Tasks property is set
internal bool IsSetTasks()
{
return this._tasks != null && this._tasks.Count > 0;
}
}
}