/* * 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 ec2-2016-11-15.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.EC2.Model { /// /// Describes a target network associated with a Client VPN endpoint. /// public partial class TargetNetwork { private string _associationId; private string _clientVpnEndpointId; private List _securityGroups = new List(); private AssociationStatus _status; private string _targetNetworkId; private string _vpcId; /// /// Gets and sets the property AssociationId. /// /// The ID of the association. /// /// public string AssociationId { get { return this._associationId; } set { this._associationId = value; } } // Check to see if AssociationId property is set internal bool IsSetAssociationId() { return this._associationId != null; } /// /// Gets and sets the property ClientVpnEndpointId. /// /// The ID of the Client VPN endpoint with which the target network is associated. /// /// public string ClientVpnEndpointId { get { return this._clientVpnEndpointId; } set { this._clientVpnEndpointId = value; } } // Check to see if ClientVpnEndpointId property is set internal bool IsSetClientVpnEndpointId() { return this._clientVpnEndpointId != null; } /// /// Gets and sets the property SecurityGroups. /// /// The IDs of the security groups applied to the target network association. /// /// public List SecurityGroups { get { return this._securityGroups; } set { this._securityGroups = value; } } // Check to see if SecurityGroups property is set internal bool IsSetSecurityGroups() { return this._securityGroups != null && this._securityGroups.Count > 0; } /// /// Gets and sets the property Status. /// /// The current state of the target network association. /// /// public AssociationStatus 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 TargetNetworkId. /// /// The ID of the subnet specified as the target network. /// /// public string TargetNetworkId { get { return this._targetNetworkId; } set { this._targetNetworkId = value; } } // Check to see if TargetNetworkId property is set internal bool IsSetTargetNetworkId() { return this._targetNetworkId != null; } /// /// Gets and sets the property VpcId. /// /// The ID of the VPC in which the target network (subnet) is located. /// /// public string VpcId { get { return this._vpcId; } set { this._vpcId = value; } } // Check to see if VpcId property is set internal bool IsSetVpcId() { return this._vpcId != null; } } }