com.amazonaws.services.ec2.model
Class CreateNetworkInterfaceRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateNetworkInterfaceRequest
All Implemented Interfaces:
DryRunSupportedRequest<CreateNetworkInterfaceRequest>, java.io.Serializable

public class CreateNetworkInterfaceRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<CreateNetworkInterfaceRequest>

Container for the parameters to the CreateNetworkInterface operation.

Creates a network interface in the specified subnet.

For more information about network interfaces, see Elastic Network Interfaces in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.createNetworkInterface(CreateNetworkInterfaceRequest), Serialized Form

Constructor Summary
CreateNetworkInterfaceRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          A description for the network interface.
 Request<CreateNetworkInterfaceRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.util.List<java.lang.String> getGroups()
          The IDs of one or more security groups.
 java.lang.String getPrivateIpAddress()
          The primary private IP address of the network interface.
 java.util.List<PrivateIpAddressSpecification> getPrivateIpAddresses()
          One or more private IP addresses.
 java.lang.Integer getSecondaryPrivateIpAddressCount()
          The number of secondary private IP addresses to assign to a network interface.
 java.lang.String getSubnetId()
          The ID of the subnet to associate with the network interface.
 int hashCode()
           
 void setDescription(java.lang.String description)
          A description for the network interface.
 void setGroups(java.util.Collection<java.lang.String> groups)
          The IDs of one or more security groups.
 void setPrivateIpAddress(java.lang.String privateIpAddress)
          The primary private IP address of the network interface.
 void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
          One or more private IP addresses.
 void setSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
          The number of secondary private IP addresses to assign to a network interface.
 void setSubnetId(java.lang.String subnetId)
          The ID of the subnet to associate with the network interface.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateNetworkInterfaceRequest withDescription(java.lang.String description)
          A description for the network interface.
 CreateNetworkInterfaceRequest withGroups(java.util.Collection<java.lang.String> groups)
          The IDs of one or more security groups.
 CreateNetworkInterfaceRequest withGroups(java.lang.String... groups)
          The IDs of one or more security groups.
 CreateNetworkInterfaceRequest withPrivateIpAddress(java.lang.String privateIpAddress)
          The primary private IP address of the network interface.
 CreateNetworkInterfaceRequest withPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
          One or more private IP addresses.
 CreateNetworkInterfaceRequest withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
          One or more private IP addresses.
 CreateNetworkInterfaceRequest withSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
          The number of secondary private IP addresses to assign to a network interface.
 CreateNetworkInterfaceRequest withSubnetId(java.lang.String subnetId)
          The ID of the subnet to associate with the network interface.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateNetworkInterfaceRequest

public CreateNetworkInterfaceRequest()
Method Detail

getSubnetId

public java.lang.String getSubnetId()
The ID of the subnet to associate with the network interface.

Returns:
The ID of the subnet to associate with the network interface.

setSubnetId

public void setSubnetId(java.lang.String subnetId)
The ID of the subnet to associate with the network interface.

Parameters:
subnetId - The ID of the subnet to associate with the network interface.

withSubnetId

public CreateNetworkInterfaceRequest withSubnetId(java.lang.String subnetId)
The ID of the subnet to associate with the network interface.

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

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

getDescription

public java.lang.String getDescription()
A description for the network interface.

Returns:
A description for the network interface.

setDescription

public void setDescription(java.lang.String description)
A description for the network interface.

Parameters:
description - A description for the network interface.

withDescription

public CreateNetworkInterfaceRequest withDescription(java.lang.String description)
A description for the network interface.

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

Parameters:
description - A description for 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 primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range.

Returns:
The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range.

setPrivateIpAddress

public void setPrivateIpAddress(java.lang.String privateIpAddress)
The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range.

Parameters:
privateIpAddress - The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range.

withPrivateIpAddress

public CreateNetworkInterfaceRequest withPrivateIpAddress(java.lang.String privateIpAddress)
The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range.

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

Parameters:
privateIpAddress - The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range.
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 one or more security groups.

Returns:
The IDs of one or more security groups.

setGroups

public void setGroups(java.util.Collection<java.lang.String> groups)
The IDs of one or more security groups.

Parameters:
groups - The IDs of one or more security groups.

withGroups

public CreateNetworkInterfaceRequest withGroups(java.lang.String... groups)
The IDs of one or more security groups.

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

Parameters:
groups - The IDs of one or more security groups.
Returns:
A reference to this updated object so that method calls can be chained together.

withGroups

public CreateNetworkInterfaceRequest withGroups(java.util.Collection<java.lang.String> groups)
The IDs of one or more security groups.

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

Parameters:
groups - The IDs of one or more security groups.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrivateIpAddresses

public java.util.List<PrivateIpAddressSpecification> getPrivateIpAddresses()
One or more private IP addresses.

Returns:
One or more private IP addresses.

setPrivateIpAddresses

public void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses.

Parameters:
privateIpAddresses - One or more private IP addresses.

withPrivateIpAddresses

public CreateNetworkInterfaceRequest withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IP addresses.

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

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

withPrivateIpAddresses

public CreateNetworkInterfaceRequest withPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses.

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

Parameters:
privateIpAddresses - One or more private IP addresses.
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 to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range.

The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

Returns:
The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range.

The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.


setSecondaryPrivateIpAddressCount

public void setSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range.

The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

Parameters:
secondaryPrivateIpAddressCount - The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range.

The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.


withSecondaryPrivateIpAddressCount

public CreateNetworkInterfaceRequest withSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range.

The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

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

Parameters:
secondaryPrivateIpAddressCount - The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range.

The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<CreateNetworkInterfaceRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<CreateNetworkInterfaceRequest>

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.