com.amazonaws.services.ec2.model
Class InstanceNetworkInterfaceSpecification

java.lang.Object
  extended by com.amazonaws.services.ec2.model.InstanceNetworkInterfaceSpecification
All Implemented Interfaces:
java.io.Serializable

public class InstanceNetworkInterfaceSpecification
extends java.lang.Object
implements java.io.Serializable

Describes a network interface.

See Also:
Serialized Form

Constructor Summary
InstanceNetworkInterfaceSpecification()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Boolean getAssociatePublicIpAddress()
          Indicates whether to auto-assign a public IP address to an instance in a VPC.
 java.lang.Boolean getDeleteOnTermination()
          If set to true, the interface is deleted when the instance is terminated.
 java.lang.String getDescription()
          The description of the network interface.
 java.lang.Integer getDeviceIndex()
          The index of the device on the instance for the network interface attachment.
 java.util.List<java.lang.String> getGroups()
          The IDs of the security groups for the network interface.
 java.lang.String getNetworkInterfaceId()
          The ID of the network interface.
 java.lang.String getPrivateIpAddress()
          The private IP address of the network interface.
 java.util.List<PrivateIpAddressSpecification> getPrivateIpAddresses()
          One or more private IP addresses to assign to the network interface.
 java.lang.Integer getSecondaryPrivateIpAddressCount()
          The number of secondary private IP addresses.
 java.lang.String getSubnetId()
          The ID of the subnet associated with the network string.
 int hashCode()
           
 java.lang.Boolean isAssociatePublicIpAddress()
          Indicates whether to auto-assign a public IP address to an instance in a VPC.
 java.lang.Boolean isDeleteOnTermination()
          If set to true, the interface is deleted when the instance is terminated.
 void setAssociatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
          Indicates whether to auto-assign a public IP address to an instance in a VPC.
 void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
          If set to true, the interface is deleted when the instance is terminated.
 void setDescription(java.lang.String description)
          The description of the network interface.
 void setDeviceIndex(java.lang.Integer deviceIndex)
          The index of the device on the instance for the network interface attachment.
 void setGroups(java.util.Collection<java.lang.String> groups)
          The IDs of the security groups for the network interface.
 void setNetworkInterfaceId(java.lang.String networkInterfaceId)
          The ID of the network interface.
 void setPrivateIpAddress(java.lang.String privateIpAddress)
          The private IP address of the network interface.
 void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
          One or more private IP addresses to assign to the network interface.
 void setSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
          The number of secondary private IP addresses.
 void setSubnetId(java.lang.String subnetId)
          The ID of the subnet associated with the network string.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceNetworkInterfaceSpecification withAssociatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
          Indicates whether to auto-assign a public IP address to an instance in a VPC.
 InstanceNetworkInterfaceSpecification withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
          If set to true, the interface is deleted when the instance is terminated.
 InstanceNetworkInterfaceSpecification withDescription(java.lang.String description)
          The description of the network interface.
 InstanceNetworkInterfaceSpecification withDeviceIndex(java.lang.Integer deviceIndex)
          The index of the device on the instance for the network interface attachment.
 InstanceNetworkInterfaceSpecification withGroups(java.util.Collection<java.lang.String> groups)
          The IDs of the security groups for the network interface.
 InstanceNetworkInterfaceSpecification withGroups(java.lang.String... groups)
          The IDs of the security groups for the network interface.
 InstanceNetworkInterfaceSpecification withNetworkInterfaceId(java.lang.String networkInterfaceId)
          The ID of the network interface.
 InstanceNetworkInterfaceSpecification withPrivateIpAddress(java.lang.String privateIpAddress)
          The private IP address of the network interface.
 InstanceNetworkInterfaceSpecification withPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
          One or more private IP addresses to assign to the network interface.
 InstanceNetworkInterfaceSpecification withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
          One or more private IP addresses to assign to the network interface.
 InstanceNetworkInterfaceSpecification withSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
          The number of secondary private IP addresses.
 InstanceNetworkInterfaceSpecification withSubnetId(java.lang.String subnetId)
          The ID of the subnet associated with the network string.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceNetworkInterfaceSpecification

public InstanceNetworkInterfaceSpecification()
Method Detail

getNetworkInterfaceId

public java.lang.String getNetworkInterfaceId()
The ID of the network interface.

Returns:
The ID of the network interface.

setNetworkInterfaceId

public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.

Parameters:
networkInterfaceId - The ID of the network interface.

withNetworkInterfaceId

public InstanceNetworkInterfaceSpecification withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
networkInterfaceId - The ID of the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeviceIndex

public java.lang.Integer getDeviceIndex()
The index of the device on the instance for the network interface attachment.

Returns:
The index of the device on the instance for the network interface attachment.

setDeviceIndex

public void setDeviceIndex(java.lang.Integer deviceIndex)
The index of the device on the instance for the network interface attachment.

Parameters:
deviceIndex - The index of the device on the instance for the network interface attachment.

withDeviceIndex

public InstanceNetworkInterfaceSpecification withDeviceIndex(java.lang.Integer deviceIndex)
The index of the device on the instance for the network interface attachment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deviceIndex - The index of the device on the instance for the network interface attachment.
Returns:
A reference to this updated object so that method calls can be chained together.

getSubnetId

public java.lang.String getSubnetId()
The ID of the subnet associated with the network string.

Returns:
The ID of the subnet associated with the network string.

setSubnetId

public void setSubnetId(java.lang.String subnetId)
The ID of the subnet associated with the network string.

Parameters:
subnetId - The ID of the subnet associated with the network string.

withSubnetId

public InstanceNetworkInterfaceSpecification withSubnetId(java.lang.String subnetId)
The ID of the subnet associated with the network string.

Returns a reference to this object so that method calls can be chained together.

Parameters:
subnetId - The ID of the subnet associated with the network string.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public java.lang.String getDescription()
The description of the network interface.

Returns:
The description of the network interface.

setDescription

public void setDescription(java.lang.String description)
The description of the network interface.

Parameters:
description - The description of the network interface.

withDescription

public InstanceNetworkInterfaceSpecification withDescription(java.lang.String description)
The description of the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - The description of the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrivateIpAddress

public java.lang.String getPrivateIpAddress()
The private IP address of the network interface.

Returns:
The private IP address of the network interface.

setPrivateIpAddress

public void setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the network interface.

Parameters:
privateIpAddress - The private IP address of the network interface.

withPrivateIpAddress

public InstanceNetworkInterfaceSpecification withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddress - The private IP address of the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroups

public java.util.List<java.lang.String> getGroups()
The IDs of the security groups for the network interface.

Returns:
The IDs of the security groups for the network interface.

setGroups

public void setGroups(java.util.Collection<java.lang.String> groups)
The IDs of the security groups for the network interface.

Parameters:
groups - The IDs of the security groups for the network interface.

withGroups

public InstanceNetworkInterfaceSpecification withGroups(java.lang.String... groups)
The IDs of the security groups for the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groups - The IDs of the security groups for the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

withGroups

public InstanceNetworkInterfaceSpecification withGroups(java.util.Collection<java.lang.String> groups)
The IDs of the security groups for the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groups - The IDs of the security groups for the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

isDeleteOnTermination

public java.lang.Boolean isDeleteOnTermination()
If set to true, the interface is deleted when the instance is terminated.

Returns:
If set to true, the interface is deleted when the instance is terminated.

setDeleteOnTermination

public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
If set to true, the interface is deleted when the instance is terminated.

Parameters:
deleteOnTermination - If set to true, the interface is deleted when the instance is terminated.

withDeleteOnTermination

public InstanceNetworkInterfaceSpecification withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
If set to true, the interface is deleted when the instance is terminated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deleteOnTermination - If set to true, the interface is deleted when the instance is terminated.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeleteOnTermination

public java.lang.Boolean getDeleteOnTermination()
If set to true, the interface is deleted when the instance is terminated.

Returns:
If set to true, the interface is deleted when the instance is terminated.

getPrivateIpAddresses

public java.util.List<PrivateIpAddressSpecification> getPrivateIpAddresses()
One or more private IP addresses to assign to the network interface.

Returns:
One or more private IP addresses to assign to the network interface.

setPrivateIpAddresses

public void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses to assign to the network interface.

Parameters:
privateIpAddresses - One or more private IP addresses to assign to the network interface.

withPrivateIpAddresses

public InstanceNetworkInterfaceSpecification withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IP addresses to assign to the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddresses - One or more private IP addresses to assign to the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

withPrivateIpAddresses

public InstanceNetworkInterfaceSpecification withPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses to assign to the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddresses - One or more private IP addresses to assign to the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getSecondaryPrivateIpAddressCount

public java.lang.Integer getSecondaryPrivateIpAddressCount()
The number of secondary private IP addresses.

Returns:
The number of secondary private IP addresses.

setSecondaryPrivateIpAddressCount

public void setSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.

Parameters:
secondaryPrivateIpAddressCount - The number of secondary private IP addresses.

withSecondaryPrivateIpAddressCount

public InstanceNetworkInterfaceSpecification withSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.

Returns a reference to this object so that method calls can be chained together.

Parameters:
secondaryPrivateIpAddressCount - The number of secondary private IP addresses.
Returns:
A reference to this updated object so that method calls can be chained together.

isAssociatePublicIpAddress

public java.lang.Boolean isAssociatePublicIpAddress()
Indicates whether to auto-assign a public IP address to an instance in a VPC. This public IP address can be assigned to the network interface for eth0 only when you launch the instance. You must create the network interface instead of using an existing network interface for eth0, and you must not specify more than one network interface.

Returns:
Indicates whether to auto-assign a public IP address to an instance in a VPC. This public IP address can be assigned to the network interface for eth0 only when you launch the instance. You must create the network interface instead of using an existing network interface for eth0, and you must not specify more than one network interface.

setAssociatePublicIpAddress

public void setAssociatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
Indicates whether to auto-assign a public IP address to an instance in a VPC. This public IP address can be assigned to the network interface for eth0 only when you launch the instance. You must create the network interface instead of using an existing network interface for eth0, and you must not specify more than one network interface.

Parameters:
associatePublicIpAddress - Indicates whether to auto-assign a public IP address to an instance in a VPC. This public IP address can be assigned to the network interface for eth0 only when you launch the instance. You must create the network interface instead of using an existing network interface for eth0, and you must not specify more than one network interface.

withAssociatePublicIpAddress

public InstanceNetworkInterfaceSpecification withAssociatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
Indicates whether to auto-assign a public IP address to an instance in a VPC. This public IP address can be assigned to the network interface for eth0 only when you launch the instance. You must create the network interface instead of using an existing network interface for eth0, and you must not specify more than one network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
associatePublicIpAddress - Indicates whether to auto-assign a public IP address to an instance in a VPC. This public IP address can be assigned to the network interface for eth0 only when you launch the instance. You must create the network interface instead of using an existing network interface for eth0, and you must not specify more than one network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getAssociatePublicIpAddress

public java.lang.Boolean getAssociatePublicIpAddress()
Indicates whether to auto-assign a public IP address to an instance in a VPC. This public IP address can be assigned to the network interface for eth0 only when you launch the instance. You must create the network interface instead of using an existing network interface for eth0, and you must not specify more than one network interface.

Returns:
Indicates whether to auto-assign a public IP address to an instance in a VPC. This public IP address can be assigned to the network interface for eth0 only when you launch the instance. You must create the network interface instead of using an existing network interface for eth0, and you must not specify more than one network interface.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.