/* * 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 peering connection. /// public partial class VpcPeeringConnection { private VpcPeeringConnectionVpcInfo _accepterVpcInfo; private DateTime? _expirationTime; private VpcPeeringConnectionVpcInfo _requesterVpcInfo; private VpcPeeringConnectionStateReason _status; private List _tags = new List(); private string _vpcPeeringConnectionId; /// /// Gets and sets the property AccepterVpcInfo. /// /// Information about the accepter VPC. CIDR block information is only returned when describing /// an active VPC peering connection. /// /// public VpcPeeringConnectionVpcInfo AccepterVpcInfo { get { return this._accepterVpcInfo; } set { this._accepterVpcInfo = value; } } // Check to see if AccepterVpcInfo property is set internal bool IsSetAccepterVpcInfo() { return this._accepterVpcInfo != null; } /// /// Gets and sets the property ExpirationTime. /// /// The time that an unaccepted VPC peering connection will expire. /// /// public DateTime ExpirationTime { get { return this._expirationTime.GetValueOrDefault(); } set { this._expirationTime = value; } } // Check to see if ExpirationTime property is set internal bool IsSetExpirationTime() { return this._expirationTime.HasValue; } /// /// Gets and sets the property RequesterVpcInfo. /// /// Information about the requester VPC. CIDR block information is only returned when /// describing an active VPC peering connection. /// /// public VpcPeeringConnectionVpcInfo RequesterVpcInfo { get { return this._requesterVpcInfo; } set { this._requesterVpcInfo = value; } } // Check to see if RequesterVpcInfo property is set internal bool IsSetRequesterVpcInfo() { return this._requesterVpcInfo != null; } /// /// Gets and sets the property Status. /// /// The status of the VPC peering connection. /// /// public VpcPeeringConnectionStateReason 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 Tags. /// /// Any tags assigned to the resource. /// /// 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 VpcPeeringConnectionId. /// /// The ID of the VPC peering connection. /// /// public string VpcPeeringConnectionId { get { return this._vpcPeeringConnectionId; } set { this._vpcPeeringConnectionId = value; } } // Check to see if VpcPeeringConnectionId property is set internal bool IsSetVpcPeeringConnectionId() { return this._vpcPeeringConnectionId != null; } } }