public class CreateNetworkInterfaceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateNetworkInterfaceRequest>
Contains the parameters for CreateNetworkInterface.
NOOP
Constructor and Description |
---|
CreateNetworkInterfaceRequest() |
Modifier and Type | Method and Description |
---|---|
CreateNetworkInterfaceRequest |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description for the network interface.
|
Request<CreateNetworkInterfaceRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getGroups()
The IDs of one or more security groups.
|
String |
getPrivateIpAddress()
The primary private IP address of the network interface.
|
List<PrivateIpAddressSpecification> |
getPrivateIpAddresses()
One or more private IP addresses.
|
Integer |
getSecondaryPrivateIpAddressCount()
The number of secondary private IP addresses to assign to a network
interface.
|
String |
getSubnetId()
The ID of the subnet to associate with the network interface.
|
int |
hashCode() |
void |
setDescription(String description)
A description for the network interface.
|
void |
setGroups(Collection<String> groups)
The IDs of one or more security groups.
|
void |
setPrivateIpAddress(String privateIpAddress)
The primary private IP address of the network interface.
|
void |
setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses.
|
void |
setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses to assign to a network
interface.
|
void |
setSubnetId(String subnetId)
The ID of the subnet to associate with the network interface.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateNetworkInterfaceRequest |
withDescription(String description)
A description for the network interface.
|
CreateNetworkInterfaceRequest |
withGroups(Collection<String> groups)
The IDs of one or more security groups.
|
CreateNetworkInterfaceRequest |
withGroups(String... groups)
The IDs of one or more security groups.
|
CreateNetworkInterfaceRequest |
withPrivateIpAddress(String privateIpAddress)
The primary private IP address of the network interface.
|
CreateNetworkInterfaceRequest |
withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses.
|
CreateNetworkInterfaceRequest |
withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IP addresses.
|
CreateNetworkInterfaceRequest |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses to assign to a network
interface.
|
CreateNetworkInterfaceRequest |
withSubnetId(String subnetId)
The ID of the subnet to associate with the network interface.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setSubnetId(String subnetId)
The ID of the subnet to associate with the network interface.
subnetId
- The ID of the subnet to associate with the network interface.public String getSubnetId()
The ID of the subnet to associate with the network interface.
public CreateNetworkInterfaceRequest withSubnetId(String subnetId)
The ID of the subnet to associate with the network interface.
subnetId
- The ID of the subnet to associate with the network interface.public void setDescription(String description)
A description for the network interface.
description
- A description for the network interface.public String getDescription()
A description for the network interface.
public CreateNetworkInterfaceRequest withDescription(String description)
A description for the network interface.
description
- A description for the network interface.public void setPrivateIpAddress(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. 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).
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 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. 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).
privateIpAddresses
as primary (only one IP address
can be designated as primary).public CreateNetworkInterfaceRequest withPrivateIpAddress(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. 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).
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 List<String> getGroups()
The IDs of one or more security groups.
public void setGroups(Collection<String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public CreateNetworkInterfaceRequest withGroups(String... groups)
The IDs of one or more security groups.
NOTE: This method appends the values to the existing list (if
any). Use setGroups(java.util.Collection)
or
withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- The IDs of one or more security groups.public CreateNetworkInterfaceRequest withGroups(Collection<String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public List<PrivateIpAddressSpecification> getPrivateIpAddresses()
One or more private IP addresses.
public void setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses.
privateIpAddresses
- One or more private IP addresses.public CreateNetworkInterfaceRequest withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IP addresses.
NOTE: This method appends the values to the existing list (if
any). Use setPrivateIpAddresses(java.util.Collection)
or
withPrivateIpAddresses(java.util.Collection)
if you want to
override the existing values.
privateIpAddresses
- One or more private IP addresses.public CreateNetworkInterfaceRequest withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses.
privateIpAddresses
- One or more private IP addresses.public void setSecondaryPrivateIpAddressCount(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. 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.
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 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. 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.
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(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. 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.
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 String toString()
toString
in class Object
Object.toString()
public CreateNetworkInterfaceRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2016. All rights reserved.