@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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
List<String> |
groups()
The IDs of one or more security groups.
|
boolean |
hasGroups()
Returns true if the Groups property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasIpv6Addresses()
Returns true if the Ipv6Addresses property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasPrivateIpAddresses()
Returns true if the PrivateIpAddresses property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasTagSpecifications()
Returns true if the TagSpecifications property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
NetworkInterfaceCreationType |
interfaceType()
Indicates the type of network interface.
|
String |
interfaceTypeAsString()
Indicates the type of network interface.
|
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.
|
List<SdkField<?>> |
sdkFields() |
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.
|
List<TagSpecification> |
tagSpecifications()
The tags to apply to the new network interface.
|
CreateNetworkInterfaceRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String description()
A description for the network interface.
public final boolean hasGroups()
public final 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.
You can use hasGroups() to see if a value was sent in this field.
public final 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 final boolean hasIpv6Addresses()
public final 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.
You can use hasIpv6Addresses() to see if a value was sent in this field.
public final 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 final boolean hasPrivateIpAddresses()
public final List<PrivateIpAddressSpecification> privateIpAddresses()
One or more private IPv4 addresses.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPrivateIpAddresses() to see if a value was sent in this field.
public final 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 final NetworkInterfaceCreationType interfaceType()
Indicates the type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. For
more information, see Elastic Fabric
Adapter in the Amazon Elastic Compute Cloud User Guide.
If the service returns an enum value that is not available in the current SDK version, interfaceType
will return NetworkInterfaceCreationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from interfaceTypeAsString().
efa. For more information, see Elastic Fabric Adapter in the
Amazon Elastic Compute Cloud User Guide.NetworkInterfaceCreationTypepublic final String interfaceTypeAsString()
Indicates the type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. For
more information, see Elastic Fabric
Adapter in the Amazon Elastic Compute Cloud User Guide.
If the service returns an enum value that is not available in the current SDK version, interfaceType
will return NetworkInterfaceCreationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from interfaceTypeAsString().
efa. For more information, see Elastic Fabric Adapter in the
Amazon Elastic Compute Cloud User Guide.NetworkInterfaceCreationTypepublic final String subnetId()
The ID of the subnet to associate with the network interface.
public final boolean hasTagSpecifications()
public final List<TagSpecification> tagSpecifications()
The tags to apply to the new network interface.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTagSpecifications() to see if a value was sent in this field.
public CreateNetworkInterfaceRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateNetworkInterfaceRequest.Builder,CreateNetworkInterfaceRequest>toBuilder in class Ec2Requestpublic static CreateNetworkInterfaceRequest.Builder builder()
public static Class<? extends CreateNetworkInterfaceRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.