public class CreateNetworkInterfaceRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<CreateNetworkInterfaceRequest>
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 .
Constructor and Description |
---|
CreateNetworkInterfaceRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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()
privateIpAddresses
as primary
(only one IP address can be designated as primary).privateIpAddresses
as primary
(only one IP address can be designated as primary).public void setPrivateIpAddress(java.lang.String privateIpAddress)
privateIpAddresses
as primary
(only one IP address can be designated as primary).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. If you specify an IP address, you cannot indicate any IP
addresses specified in privateIpAddresses
as primary
(only one IP address can be designated as primary).public CreateNetworkInterfaceRequest withPrivateIpAddress(java.lang.String privateIpAddress)
privateIpAddresses
as primary
(only one IP address can be designated as primary).
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. If you specify an IP address, you cannot indicate any IP
addresses specified in privateIpAddresses
as primary
(only one IP address can be designated as primary).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()
privateIpAddresses
. 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.
privateIpAddresses
. 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)
privateIpAddresses
. 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. You can't
specify this option and specify more than one private IP address using
privateIpAddresses
. 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)
privateIpAddresses
. 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. You can't
specify this option and specify more than one private IP address using
privateIpAddresses
. 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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.