/*
* 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 drs-2020-02-26.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.Drs.Model
{
///
/// This is the response object from the RetryDataReplication operation.
///
public partial class RetryDataReplicationResponse : AmazonWebServiceResponse
{
private string _arn;
private DataReplicationInfo _dataReplicationInfo;
private LastLaunchResult _lastLaunchResult;
private LifeCycle _lifeCycle;
private string _recoveryInstanceId;
private ReplicationDirection _replicationDirection;
private string _reversedDirectionSourceServerArn;
private SourceCloudProperties _sourceCloudProperties;
private string _sourceNetworkID;
private SourceProperties _sourceProperties;
private string _sourceServerID;
private StagingArea _stagingArea;
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property Arn.
///
/// The ARN of the Source Server.
///
///
[AWSProperty(Min=20, Max=2048)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property DataReplicationInfo.
///
/// The Data Replication Info of the Source Server.
///
///
public DataReplicationInfo DataReplicationInfo
{
get { return this._dataReplicationInfo; }
set { this._dataReplicationInfo = value; }
}
// Check to see if DataReplicationInfo property is set
internal bool IsSetDataReplicationInfo()
{
return this._dataReplicationInfo != null;
}
///
/// Gets and sets the property LastLaunchResult.
///
/// The status of the last recovery launch of this Source Server.
///
///
public LastLaunchResult LastLaunchResult
{
get { return this._lastLaunchResult; }
set { this._lastLaunchResult = value; }
}
// Check to see if LastLaunchResult property is set
internal bool IsSetLastLaunchResult()
{
return this._lastLaunchResult != null;
}
///
/// Gets and sets the property LifeCycle.
///
/// The lifecycle information of this Source Server.
///
///
public LifeCycle LifeCycle
{
get { return this._lifeCycle; }
set { this._lifeCycle = value; }
}
// Check to see if LifeCycle property is set
internal bool IsSetLifeCycle()
{
return this._lifeCycle != null;
}
///
/// Gets and sets the property RecoveryInstanceId.
///
/// The ID of the Recovery Instance associated with this Source Server.
///
///
[AWSProperty(Min=10, Max=19)]
public string RecoveryInstanceId
{
get { return this._recoveryInstanceId; }
set { this._recoveryInstanceId = value; }
}
// Check to see if RecoveryInstanceId property is set
internal bool IsSetRecoveryInstanceId()
{
return this._recoveryInstanceId != null;
}
///
/// Gets and sets the property ReplicationDirection.
///
/// Replication direction of the Source Server.
///
///
public ReplicationDirection ReplicationDirection
{
get { return this._replicationDirection; }
set { this._replicationDirection = value; }
}
// Check to see if ReplicationDirection property is set
internal bool IsSetReplicationDirection()
{
return this._replicationDirection != null;
}
///
/// Gets and sets the property ReversedDirectionSourceServerArn.
///
/// For EC2-originated Source Servers which have been failed over and then failed back,
/// this value will mean the ARN of the Source Server on the opposite replication direction.
///
///
[AWSProperty(Min=20, Max=2048)]
public string ReversedDirectionSourceServerArn
{
get { return this._reversedDirectionSourceServerArn; }
set { this._reversedDirectionSourceServerArn = value; }
}
// Check to see if ReversedDirectionSourceServerArn property is set
internal bool IsSetReversedDirectionSourceServerArn()
{
return this._reversedDirectionSourceServerArn != null;
}
///
/// Gets and sets the property SourceCloudProperties.
///
/// Source cloud properties of the Source Server.
///
///
public SourceCloudProperties SourceCloudProperties
{
get { return this._sourceCloudProperties; }
set { this._sourceCloudProperties = value; }
}
// Check to see if SourceCloudProperties property is set
internal bool IsSetSourceCloudProperties()
{
return this._sourceCloudProperties != null;
}
///
/// Gets and sets the property SourceNetworkID.
///
/// ID of the Source Network which is protecting this Source Server's network.
///
///
[AWSProperty(Min=20, Max=20)]
public string SourceNetworkID
{
get { return this._sourceNetworkID; }
set { this._sourceNetworkID = value; }
}
// Check to see if SourceNetworkID property is set
internal bool IsSetSourceNetworkID()
{
return this._sourceNetworkID != null;
}
///
/// Gets and sets the property SourceProperties.
///
/// The source properties of the Source Server.
///
///
public SourceProperties SourceProperties
{
get { return this._sourceProperties; }
set { this._sourceProperties = value; }
}
// Check to see if SourceProperties property is set
internal bool IsSetSourceProperties()
{
return this._sourceProperties != null;
}
///
/// Gets and sets the property SourceServerID.
///
/// The ID of the Source Server.
///
///
[AWSProperty(Min=19, Max=19)]
public string SourceServerID
{
get { return this._sourceServerID; }
set { this._sourceServerID = value; }
}
// Check to see if SourceServerID property is set
internal bool IsSetSourceServerID()
{
return this._sourceServerID != null;
}
///
/// Gets and sets the property StagingArea.
///
/// The staging area of the source server.
///
///
public StagingArea StagingArea
{
get { return this._stagingArea; }
set { this._stagingArea = value; }
}
// Check to see if StagingArea property is set
internal bool IsSetStagingArea()
{
return this._stagingArea != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags associated with the Source Server.
///
///
[AWSProperty(Sensitive=true)]
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}