|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateNetworkInterfaceRequest
public class 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 .
AmazonEC2.createNetworkInterface(CreateNetworkInterfaceRequest)
,
Serialized FormConstructor 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 |
---|
public CreateNetworkInterfaceRequest()
Method Detail |
---|
public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId
- The ID of the subnet to associate with the network interface.public CreateNetworkInterfaceRequest withSubnetId(java.lang.String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet to associate with the network interface.
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- A description for the network interface.public CreateNetworkInterfaceRequest withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description for the network interface.
public java.lang.String getPrivateIpAddress()
public void setPrivateIpAddress(java.lang.String privateIpAddress)
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.public CreateNetworkInterfaceRequest withPrivateIpAddress(java.lang.String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
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.
public java.util.List<java.lang.String> getGroups()
public void setGroups(java.util.Collection<java.lang.String> groups)
groups
- The IDs of one or more security groups.public CreateNetworkInterfaceRequest withGroups(java.lang.String... groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The IDs of one or more security groups.
public CreateNetworkInterfaceRequest withGroups(java.util.Collection<java.lang.String> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The IDs of one or more security groups.
public java.util.List<PrivateIpAddressSpecification> getPrivateIpAddresses()
public void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
privateIpAddresses
- One or more private IP addresses.public CreateNetworkInterfaceRequest withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
Returns a reference to this object so that method calls can be chained together.
privateIpAddresses
- One or more private IP addresses.
public CreateNetworkInterfaceRequest withPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
Returns a reference to this object so that method calls can be chained together.
privateIpAddresses
- One or more private IP addresses.
public java.lang.Integer getSecondaryPrivateIpAddressCount()
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.
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.
public void setSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
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.
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.
public CreateNetworkInterfaceRequest withSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
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.
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.
public Request<CreateNetworkInterfaceRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateNetworkInterfaceRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |