/*
* 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 customer gateway.
///
public partial class CustomerGateway
{
private string _bgpAsn;
private string _certificateArn;
private string _customerGatewayId;
private string _deviceName;
private string _ipAddress;
private string _state;
private List _tags = new List();
private string _type;
///
/// Gets and sets the property BgpAsn.
///
/// The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
///
///
public string BgpAsn
{
get { return this._bgpAsn; }
set { this._bgpAsn = value; }
}
// Check to see if BgpAsn property is set
internal bool IsSetBgpAsn()
{
return this._bgpAsn != null;
}
///
/// Gets and sets the property CertificateArn.
///
/// The Amazon Resource Name (ARN) for the customer gateway certificate.
///
///
public string CertificateArn
{
get { return this._certificateArn; }
set { this._certificateArn = value; }
}
// Check to see if CertificateArn property is set
internal bool IsSetCertificateArn()
{
return this._certificateArn != null;
}
///
/// Gets and sets the property CustomerGatewayId.
///
/// The ID of the customer gateway.
///
///
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 DeviceName.
///
/// The name of customer gateway device.
///
///
public string DeviceName
{
get { return this._deviceName; }
set { this._deviceName = value; }
}
// Check to see if DeviceName property is set
internal bool IsSetDeviceName()
{
return this._deviceName != null;
}
///
/// Gets and sets the property IpAddress.
///
/// The IP address of the customer gateway device's outside interface.
///
///
public string IpAddress
{
get { return this._ipAddress; }
set { this._ipAddress = value; }
}
// Check to see if IpAddress property is set
internal bool IsSetIpAddress()
{
return this._ipAddress != null;
}
///
/// Gets and sets the property State.
///
/// The current state of the customer gateway (pending | available | deleting |
/// deleted
).
///
///
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 Tags.
///
/// Any tags assigned to the customer gateway.
///
///
public List 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;
}
///
/// Gets and sets the property Type.
///
/// The type of VPN connection the customer gateway supports (ipsec.1
).
///
///
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;
}
}
}