/* * 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 { /// /// The ARN of the Source Network. /// public partial class SourceNetwork { private string _arn; private string _cfnStackName; private RecoveryLifeCycle _lastRecovery; private string _launchedVpcID; private ReplicationStatus _replicationStatus; private string _replicationStatusDetails; private string _sourceAccountID; private string _sourceNetworkID; private string _sourceRegion; private string _sourceVpcID; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property Arn. /// /// The ARN of the Source Network. /// /// [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 CfnStackName. /// /// CloudFormation stack name that was deployed for recovering the Source Network. /// /// [AWSProperty(Sensitive=true, Min=1, Max=128)] public string CfnStackName { get { return this._cfnStackName; } set { this._cfnStackName = value; } } // Check to see if CfnStackName property is set internal bool IsSetCfnStackName() { return this._cfnStackName != null; } /// /// Gets and sets the property LastRecovery. /// /// An object containing information regarding the last recovery of the Source Network. /// /// public RecoveryLifeCycle LastRecovery { get { return this._lastRecovery; } set { this._lastRecovery = value; } } // Check to see if LastRecovery property is set internal bool IsSetLastRecovery() { return this._lastRecovery != null; } /// /// Gets and sets the property LaunchedVpcID. /// /// ID of the recovered VPC following Source Network recovery. /// /// [AWSProperty(Min=12, Max=21)] public string LaunchedVpcID { get { return this._launchedVpcID; } set { this._launchedVpcID = value; } } // Check to see if LaunchedVpcID property is set internal bool IsSetLaunchedVpcID() { return this._launchedVpcID != null; } /// /// Gets and sets the property ReplicationStatus. /// /// Status of Source Network Replication. Possible values: (a) STOPPED - Source Network /// is not replicating. (b) IN_PROGRESS - Source Network is being replicated. (c) PROTECTED /// - Source Network was replicated successfully and is being synchronized for changes. /// (d) ERROR - Source Network replication has failed /// /// public ReplicationStatus ReplicationStatus { get { return this._replicationStatus; } set { this._replicationStatus = value; } } // Check to see if ReplicationStatus property is set internal bool IsSetReplicationStatus() { return this._replicationStatus != null; } /// /// Gets and sets the property ReplicationStatusDetails. /// /// Error details in case Source Network replication status is ERROR. /// /// [AWSProperty(Sensitive=true, Min=0, Max=256)] public string ReplicationStatusDetails { get { return this._replicationStatusDetails; } set { this._replicationStatusDetails = value; } } // Check to see if ReplicationStatusDetails property is set internal bool IsSetReplicationStatusDetails() { return this._replicationStatusDetails != null; } /// /// Gets and sets the property SourceAccountID. /// /// Account ID containing the VPC protected by the Source Network. /// /// [AWSProperty(Min=12, Max=12)] public string SourceAccountID { get { return this._sourceAccountID; } set { this._sourceAccountID = value; } } // Check to see if SourceAccountID property is set internal bool IsSetSourceAccountID() { return this._sourceAccountID != null; } /// /// Gets and sets the property SourceNetworkID. /// /// Source Network ID. /// /// [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 SourceRegion. /// /// Region containing the VPC protected by the Source Network. /// /// [AWSProperty(Min=0, Max=255)] public string SourceRegion { get { return this._sourceRegion; } set { this._sourceRegion = value; } } // Check to see if SourceRegion property is set internal bool IsSetSourceRegion() { return this._sourceRegion != null; } /// /// Gets and sets the property SourceVpcID. /// /// VPC ID protected by the Source Network. /// /// [AWSProperty(Min=12, Max=21)] public string SourceVpcID { get { return this._sourceVpcID; } set { this._sourceVpcID = value; } } // Check to see if SourceVpcID property is set internal bool IsSetSourceVpcID() { return this._sourceVpcID != null; } /// /// Gets and sets the property Tags. /// /// A list of tags associated with the Source Network. /// /// [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; } } }