/* * 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 securityhub-2018-10-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.SecurityHub.Model { /// /// Details about an Amazon EC2 VPN connection. /// public partial class AwsEc2VpnConnectionDetails { private string _category; private string _customerGatewayConfiguration; private string _customerGatewayId; private AwsEc2VpnConnectionOptionsDetails _options; private List _routes = new List(); private string _state; private string _transitGatewayId; private string _type; private List _vgwTelemetry = new List(); private string _vpnConnectionId; private string _vpnGatewayId; /// /// Gets and sets the property Category. /// /// The category of the VPN connection. VPN indicates an Amazon Web Services /// VPN connection. VPN-Classic indicates an Amazon Web Services Classic /// VPN connection. /// /// public string Category { get { return this._category; } set { this._category = value; } } // Check to see if Category property is set internal bool IsSetCategory() { return this._category != null; } /// /// Gets and sets the property CustomerGatewayConfiguration. /// /// The configuration information for the VPN connection's customer gateway, in the native /// XML format. /// /// public string CustomerGatewayConfiguration { get { return this._customerGatewayConfiguration; } set { this._customerGatewayConfiguration = value; } } // Check to see if CustomerGatewayConfiguration property is set internal bool IsSetCustomerGatewayConfiguration() { return this._customerGatewayConfiguration != null; } /// /// Gets and sets the property CustomerGatewayId. /// /// The identifier of the customer gateway that is at your end of the VPN connection. /// /// public string CustomerGatewayId { get { return this._customerGatewayId; } set { this._customerGatewayId = value; } } // Check to see if CustomerGatewayId property is set internal bool IsSetCustomerGatewayId() { return this._customerGatewayId != null; } /// /// Gets and sets the property Options. /// /// The VPN connection options. /// /// public AwsEc2VpnConnectionOptionsDetails Options { get { return this._options; } set { this._options = value; } } // Check to see if Options property is set internal bool IsSetOptions() { return this._options != null; } /// /// Gets and sets the property Routes. /// /// The static routes that are associated with the VPN connection. /// /// public List Routes { get { return this._routes; } set { this._routes = value; } } // Check to see if Routes property is set internal bool IsSetRoutes() { return this._routes != null && this._routes.Count > 0; } /// /// Gets and sets the property State. /// /// The current state of the VPN connection. Valid values are as follows: /// ///
  • /// /// available /// ///
  • /// /// deleted /// ///
  • /// /// deleting /// ///
  • /// /// pending /// ///
///
public string State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property TransitGatewayId. /// /// The identifier of the transit gateway that is associated with the VPN connection. /// /// public string TransitGatewayId { get { return this._transitGatewayId; } set { this._transitGatewayId = value; } } // Check to see if TransitGatewayId property is set internal bool IsSetTransitGatewayId() { return this._transitGatewayId != null; } /// /// Gets and sets the property Type. /// /// The type of VPN connection. /// /// public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property VgwTelemetry. /// /// Information about the VPN tunnel. /// /// public List VgwTelemetry { get { return this._vgwTelemetry; } set { this._vgwTelemetry = value; } } // Check to see if VgwTelemetry property is set internal bool IsSetVgwTelemetry() { return this._vgwTelemetry != null && this._vgwTelemetry.Count > 0; } /// /// Gets and sets the property VpnConnectionId. /// /// The identifier of the VPN connection. /// /// public string VpnConnectionId { get { return this._vpnConnectionId; } set { this._vpnConnectionId = value; } } // Check to see if VpnConnectionId property is set internal bool IsSetVpnConnectionId() { return this._vpnConnectionId != null; } /// /// Gets and sets the property VpnGatewayId. /// /// The identifier of the virtual private gateway that is at the Amazon Web Services side /// of the VPN connection. /// /// public string VpnGatewayId { get { return this._vpnGatewayId; } set { this._vpnGatewayId = value; } } // Check to see if VpnGatewayId property is set internal bool IsSetVpnGatewayId() { return this._vpnGatewayId != null; } } }