Class CreateNetworkInterfaceRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateNetworkInterfaceRequest>
,Serializable
,Cloneable
Contains the parameters for CreateNetworkInterface.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A description for the network interface.This method is intended for internal use only.The IDs of one or more security groups.The primary private IP address of the network interface.One or more private IP addresses.The number of secondary private IP addresses to assign to a network interface.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.toString()
Returns a string representation of this object; useful for testing and debugging.withDescription
(String description) A description for the network interface.withGroups
(String... groups) The IDs of one or more security groups.withGroups
(Collection<String> groups) The IDs of one or more security groups.withPrivateIpAddress
(String privateIpAddress) The primary private IP address of the network interface.withPrivateIpAddresses
(PrivateIpAddressSpecification... privateIpAddresses) One or more private IP addresses.withPrivateIpAddresses
(Collection<PrivateIpAddressSpecification> privateIpAddresses) One or more private IP addresses.withSecondaryPrivateIpAddressCount
(Integer secondaryPrivateIpAddressCount) The number of secondary private IP addresses to assign to a network interface.withSubnetId
(String subnetId) The ID of the subnet to associate with the network interface.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
CreateNetworkInterfaceRequest
public CreateNetworkInterfaceRequest()
-
-
Method Details
-
setSubnetId
The ID of the subnet to associate with the network interface.
- Parameters:
subnetId
- The ID of the subnet to associate with the network interface.
-
getSubnetId
The ID of the subnet to associate with the network interface.
- Returns:
- The ID of the subnet to associate with the network interface.
-
withSubnetId
The ID of the subnet to associate with the network interface.
- Parameters:
subnetId
- The ID of the subnet to associate with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
A description for the network interface.
- Parameters:
description
- A description for the network interface.
-
getDescription
A description for the network interface.
- Returns:
- A description for the network interface.
-
withDescription
A description for the network interface.
- Parameters:
description
- A description for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateIpAddress
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).- 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. If you specify an IP address, you cannot indicate any IP addresses specified inprivateIpAddresses
as primary (only one IP address can be designated as primary).
-
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).- 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. 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).
-
withPrivateIpAddress
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).- 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. If you specify an IP address, you cannot indicate any IP addresses specified inprivateIpAddresses
as primary (only one IP address can be designated as primary).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getGroups
The IDs of one or more security groups.
- Returns:
- The IDs of one or more security groups.
-
setGroups
The IDs of one or more security groups.
- Parameters:
groups
- The IDs of one or more security groups.
-
withGroups
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)
orwithGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
groups
- The IDs of one or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroups
The IDs of one or more security groups.
- Parameters:
groups
- The IDs of one or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPrivateIpAddresses
One or more private IP addresses.
- Returns:
- One or more private IP addresses.
-
setPrivateIpAddresses
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.
NOTE: This method appends the values to the existing list (if any). Use
setPrivateIpAddresses(java.util.Collection)
orwithPrivateIpAddresses(java.util.Collection)
if you want to override the existing values.- Parameters:
privateIpAddresses
- One or more private IP addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPrivateIpAddresses
public CreateNetworkInterfaceRequest withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses) One or more private IP addresses.
- Parameters:
privateIpAddresses
- One or more private IP addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSecondaryPrivateIpAddressCount
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.
- 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. You can't specify this option and specify more than one private IP address usingprivateIpAddresses
.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.
-
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.
- 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. 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.
-
withSecondaryPrivateIpAddressCount
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.
- 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. You can't specify this option and specify more than one private IP address usingprivateIpAddresses
.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:
- Returns a reference to this object so that method calls can be chained together.
-
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 interfaceDryRunSupportedRequest<CreateNetworkInterfaceRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-