AWS SDK for .NET Documentation
AssociateAddressRequest Class
AmazonAmazon.EC2.ModelAssociateAddressRequest Did this page help you?   Yes   No    Tell us about it...
Associates an elastic IP address with an instance. If the IP address is currently assigned to another instance, the IP address is assigned to the new instance.
Declaration Syntax
C#
public class AssociateAddressRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
AssociateAddressRequest()()()()
Initializes a new instance of the AssociateAddressRequest class

AllocationId
The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC. Condition: Required for VPC elastic IP addresses

AllowReassociation
Specify whether to allow an Elastic IP address that is already associated with another network interface or instance to be re-associated with the specified instance or interface. If the Elastic IP address is associated, and this option is not specified, the operation will fail. This is only available in Amazon VPC.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
InstanceId
The instance to associate with the IP address.

IsSetAllocationId()()()()
Checks if AllocationId property is set

IsSetAllowReassociation()()()()
Checks if the AllowReassociation property is set

IsSetInstanceId()()()()
Checks if InstanceId property is set

IsSetNetworkInterfaceId()()()()
Checks if the NetworkInterfaceId property is set

IsSetPrivateIpAddress()()()()
Checks if the PrivateIpAddress property is set

IsSetPublicIp()()()()
Checks if PublicIp property is set

NetworkInterfaceId
The network interface ID to associate with an instance. Association fails when specifying an instance ID unless exactly one interface is attached.

PrivateIpAddress
The primary or secondary private IP address to associate with the Elastic IP address. If no private IP is specified, the Elastic IP address is associated with the primary private IP address. This is only available in Amazon VPC.

PublicIp
The Elastic IP address to assign to the instance.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithAllocationId(String) Obsolete.
Sets the allocation ID for use with Amazon VPC.

WithAllowReassociation(Boolean) Obsolete.
Sets whether to allow an Elastic IP address that is already associated with another network interface or instance to be re-associated with the specified instance or interface.

WithInstanceId(String) Obsolete.
Sets the instance to associate with the IP address.

WithNetworkInterfaceId(String) Obsolete.
Sets the network interface ID to associate with an instance.

WithPrivateIpAddress(String) Obsolete.
Sets the primary or secondary private IP address to associate with the Elastic IP address.

WithPublicIp(String) Obsolete.
Sets the Elastic IP address to assign to the instance.

Remarks
This is an idempotent operation. If you call it more than once, Amazon EC2 does not return an error.
Inheritance Hierarchy
Object
EC2Request
 AssociateAddressRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)