@Generated(value="software.amazon.awssdk:codegen") public final class CreateNetworkInterfaceRequest extends Ec2Request implements ToCopyableBuilder<CreateNetworkInterfaceRequest.Builder,CreateNetworkInterfaceRequest>
Contains the parameters for CreateNetworkInterface.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateNetworkInterfaceRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateNetworkInterfaceRequest.Builder |
builder() |
String |
description()
A description for the network interface.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
List<String> |
groups()
The IDs of one or more security groups.
|
int |
hashCode() |
Integer |
ipv6AddressCount()
The number of IPv6 addresses to assign to a network interface.
|
List<InstanceIpv6Address> |
ipv6Addresses()
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
String |
privateIpAddress()
The primary private IPv4 address of the network interface.
|
List<PrivateIpAddressSpecification> |
privateIpAddresses()
One or more private IPv4 addresses.
|
Integer |
secondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses to assign to a network interface.
|
static Class<? extends CreateNetworkInterfaceRequest.Builder> |
serializableBuilderClass() |
String |
subnetId()
The ID of the subnet to associate with the network interface.
|
CreateNetworkInterfaceRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String description()
A description for the network interface.
public List<String> groups()
The IDs of one or more security groups.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Integer ipv6AddressCount()
The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6
addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses. If your subnet
has the AssignIpv6AddressOnCreation
attribute set to true
, you can specify
0
to override this setting.
AssignIpv6AddressOnCreation
attribute set to true
, you can
specify 0
to override this setting.public List<InstanceIpv6Address> ipv6Addresses()
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String privateIpAddress()
The primary private IPv4 address of the network interface. If you don't specify an IPv4 address, Amazon EC2
selects one for you from the subnet's IPv4 CIDR 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 List<PrivateIpAddressSpecification> privateIpAddresses()
One or more private IPv4 addresses.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Integer secondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of
secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR 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 IP Addresses Per ENI Per Instance Type in the Amazon Virtual Private Cloud User Guide.
privateIpAddresses
.
The number of IP addresses you can assign to a network interface varies by instance type. For more information, see IP Addresses Per ENI Per Instance Type in the Amazon Virtual Private Cloud User Guide.
public String subnetId()
The ID of the subnet to associate with the network interface.
public CreateNetworkInterfaceRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateNetworkInterfaceRequest.Builder,CreateNetworkInterfaceRequest>
toBuilder
in class Ec2Request
public static CreateNetworkInterfaceRequest.Builder builder()
public static Class<? extends CreateNetworkInterfaceRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.