/* * 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 an Elastic IP address, or a carrier IP address. /// public partial class Address { private string _allocationId; private string _associationId; private string _carrierIp; private string _customerOwnedIp; private string _customerOwnedIpv4Pool; private DomainType _domain; private string _instanceId; private string _networkBorderGroup; private string _networkInterfaceId; private string _networkInterfaceOwnerId; private string _privateIpAddress; private string _publicIp; private string _publicIpv4Pool; private List _tags = new List(); /// /// Gets and sets the property AllocationId. /// /// The ID representing the allocation of the address. /// /// public string AllocationId { get { return this._allocationId; } set { this._allocationId = value; } } // Check to see if AllocationId property is set internal bool IsSetAllocationId() { return this._allocationId != null; } /// /// Gets and sets the property AssociationId. /// /// The ID representing the association of the address with an instance. /// /// 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 CarrierIp. /// /// The carrier IP address associated. This option is only available for network interfaces /// which reside in a subnet in a Wavelength Zone (for example an EC2 instance). /// /// public string CarrierIp { get { return this._carrierIp; } set { this._carrierIp = value; } } // Check to see if CarrierIp property is set internal bool IsSetCarrierIp() { return this._carrierIp != null; } /// /// Gets and sets the property CustomerOwnedIp. /// /// The customer-owned IP address. /// /// public string CustomerOwnedIp { get { return this._customerOwnedIp; } set { this._customerOwnedIp = value; } } // Check to see if CustomerOwnedIp property is set internal bool IsSetCustomerOwnedIp() { return this._customerOwnedIp != null; } /// /// Gets and sets the property CustomerOwnedIpv4Pool. /// /// The ID of the customer-owned address pool. /// /// public string CustomerOwnedIpv4Pool { get { return this._customerOwnedIpv4Pool; } set { this._customerOwnedIpv4Pool = value; } } // Check to see if CustomerOwnedIpv4Pool property is set internal bool IsSetCustomerOwnedIpv4Pool() { return this._customerOwnedIpv4Pool != null; } /// /// Gets and sets the property Domain. /// /// The network (vpc). /// /// public DomainType Domain { get { return this._domain; } set { this._domain = value; } } // Check to see if Domain property is set internal bool IsSetDomain() { return this._domain != null; } /// /// Gets and sets the property InstanceId. /// /// The ID of the instance that the address is associated with (if any). /// /// public string InstanceId { get { return this._instanceId; } set { this._instanceId = value; } } // Check to see if InstanceId property is set internal bool IsSetInstanceId() { return this._instanceId != null; } /// /// Gets and sets the property NetworkBorderGroup. /// /// The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones /// from which Amazon Web Services advertises IP addresses. /// /// public string NetworkBorderGroup { get { return this._networkBorderGroup; } set { this._networkBorderGroup = value; } } // Check to see if NetworkBorderGroup property is set internal bool IsSetNetworkBorderGroup() { return this._networkBorderGroup != null; } /// /// Gets and sets the property NetworkInterfaceId. /// /// The ID of the network interface. /// /// public string NetworkInterfaceId { get { return this._networkInterfaceId; } set { this._networkInterfaceId = value; } } // Check to see if NetworkInterfaceId property is set internal bool IsSetNetworkInterfaceId() { return this._networkInterfaceId != null; } /// /// Gets and sets the property NetworkInterfaceOwnerId. /// /// The ID of the Amazon Web Services account that owns the network interface. /// /// public string NetworkInterfaceOwnerId { get { return this._networkInterfaceOwnerId; } set { this._networkInterfaceOwnerId = value; } } // Check to see if NetworkInterfaceOwnerId property is set internal bool IsSetNetworkInterfaceOwnerId() { return this._networkInterfaceOwnerId != null; } /// /// Gets and sets the property PrivateIpAddress. /// /// The private IP address associated with the Elastic IP address. /// /// public string PrivateIpAddress { get { return this._privateIpAddress; } set { this._privateIpAddress = value; } } // Check to see if PrivateIpAddress property is set internal bool IsSetPrivateIpAddress() { return this._privateIpAddress != null; } /// /// Gets and sets the property PublicIp. /// /// The Elastic IP address. /// /// public string PublicIp { get { return this._publicIp; } set { this._publicIp = value; } } // Check to see if PublicIp property is set internal bool IsSetPublicIp() { return this._publicIp != null; } /// /// Gets and sets the property PublicIpv4Pool. /// /// The ID of an address pool. /// /// public string PublicIpv4Pool { get { return this._publicIpv4Pool; } set { this._publicIpv4Pool = value; } } // Check to see if PublicIpv4Pool property is set internal bool IsSetPublicIpv4Pool() { return this._publicIpv4Pool != null; } /// /// Gets and sets the property Tags. /// /// Any tags assigned to the Elastic IP address. /// /// 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; } } }