/*
* 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 VPC endpoint connection to a service.
///
public partial class VpcEndpointConnection
{
private DateTime? _creationTimestamp;
private List _dnsEntries = new List();
private List _gatewayLoadBalancerArns = new List();
private IpAddressType _ipAddressType;
private List _networkLoadBalancerArns = new List();
private string _serviceId;
private List _tags = new List();
private string _vpcEndpointConnectionId;
private string _vpcEndpointId;
private string _vpcEndpointOwner;
private State _vpcEndpointState;
///
/// Gets and sets the property CreationTimestamp.
///
/// The date and time that the VPC endpoint was created.
///
///
public DateTime CreationTimestamp
{
get { return this._creationTimestamp.GetValueOrDefault(); }
set { this._creationTimestamp = value; }
}
// Check to see if CreationTimestamp property is set
internal bool IsSetCreationTimestamp()
{
return this._creationTimestamp.HasValue;
}
///
/// Gets and sets the property DnsEntries.
///
/// The DNS entries for the VPC endpoint.
///
///
public List DnsEntries
{
get { return this._dnsEntries; }
set { this._dnsEntries = value; }
}
// Check to see if DnsEntries property is set
internal bool IsSetDnsEntries()
{
return this._dnsEntries != null && this._dnsEntries.Count > 0;
}
///
/// Gets and sets the property GatewayLoadBalancerArns.
///
/// The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service.
///
///
public List GatewayLoadBalancerArns
{
get { return this._gatewayLoadBalancerArns; }
set { this._gatewayLoadBalancerArns = value; }
}
// Check to see if GatewayLoadBalancerArns property is set
internal bool IsSetGatewayLoadBalancerArns()
{
return this._gatewayLoadBalancerArns != null && this._gatewayLoadBalancerArns.Count > 0;
}
///
/// Gets and sets the property IpAddressType.
///
/// The IP address type for the endpoint.
///
///
public IpAddressType IpAddressType
{
get { return this._ipAddressType; }
set { this._ipAddressType = value; }
}
// Check to see if IpAddressType property is set
internal bool IsSetIpAddressType()
{
return this._ipAddressType != null;
}
///
/// Gets and sets the property NetworkLoadBalancerArns.
///
/// The Amazon Resource Names (ARNs) of the network load balancers for the service.
///
///
public List NetworkLoadBalancerArns
{
get { return this._networkLoadBalancerArns; }
set { this._networkLoadBalancerArns = value; }
}
// Check to see if NetworkLoadBalancerArns property is set
internal bool IsSetNetworkLoadBalancerArns()
{
return this._networkLoadBalancerArns != null && this._networkLoadBalancerArns.Count > 0;
}
///
/// Gets and sets the property ServiceId.
///
/// The ID of the service to which the endpoint is connected.
///
///
public string ServiceId
{
get { return this._serviceId; }
set { this._serviceId = value; }
}
// Check to see if ServiceId property is set
internal bool IsSetServiceId()
{
return this._serviceId != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags.
///
///
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 VpcEndpointConnectionId.
///
/// The ID of the VPC endpoint connection.
///
///
public string VpcEndpointConnectionId
{
get { return this._vpcEndpointConnectionId; }
set { this._vpcEndpointConnectionId = value; }
}
// Check to see if VpcEndpointConnectionId property is set
internal bool IsSetVpcEndpointConnectionId()
{
return this._vpcEndpointConnectionId != null;
}
///
/// Gets and sets the property VpcEndpointId.
///
/// The ID of the VPC endpoint.
///
///
public string VpcEndpointId
{
get { return this._vpcEndpointId; }
set { this._vpcEndpointId = value; }
}
// Check to see if VpcEndpointId property is set
internal bool IsSetVpcEndpointId()
{
return this._vpcEndpointId != null;
}
///
/// Gets and sets the property VpcEndpointOwner.
///
/// The ID of the Amazon Web Services account that owns the VPC endpoint.
///
///
public string VpcEndpointOwner
{
get { return this._vpcEndpointOwner; }
set { this._vpcEndpointOwner = value; }
}
// Check to see if VpcEndpointOwner property is set
internal bool IsSetVpcEndpointOwner()
{
return this._vpcEndpointOwner != null;
}
///
/// Gets and sets the property VpcEndpointState.
///
/// The state of the VPC endpoint.
///
///
public State VpcEndpointState
{
get { return this._vpcEndpointState; }
set { this._vpcEndpointState = value; }
}
// Check to see if VpcEndpointState property is set
internal bool IsSetVpcEndpointState()
{
return this._vpcEndpointState != null;
}
}
}