@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 | getInterfaceType()
 Indicates the type of network interface. | 
| Integer | getIpv6AddressCount()
 The number of IPv6 addresses to assign to a network interface. | 
| List<InstanceIpv6Address> | getIpv6Addresses()
 One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. | 
| String | getPrivateIpAddress()
 The primary private IPv4 address of the network interface. | 
| List<PrivateIpAddressSpecification> | getPrivateIpAddresses()
 One or more private IPv4 addresses. | 
| Integer | getSecondaryPrivateIpAddressCount()
 The number of secondary private IPv4 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 | setInterfaceType(String interfaceType)
 Indicates the type of network interface. | 
| void | setIpv6AddressCount(Integer ipv6AddressCount)
 The number of IPv6 addresses to assign to a network interface. | 
| void | setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
 One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. | 
| void | setPrivateIpAddress(String privateIpAddress)
 The primary private IPv4 address of the network interface. | 
| void | setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
 One or more private IPv4 addresses. | 
| void | setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
 The number of secondary private IPv4 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. | 
| 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 | withInterfaceType(NetworkInterfaceCreationType interfaceType)
 Indicates the type of network interface. | 
| CreateNetworkInterfaceRequest | withInterfaceType(String interfaceType)
 Indicates the type of network interface. | 
| CreateNetworkInterfaceRequest | withIpv6AddressCount(Integer ipv6AddressCount)
 The number of IPv6 addresses to assign to a network interface. | 
| CreateNetworkInterfaceRequest | withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
 One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. | 
| CreateNetworkInterfaceRequest | withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
 One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. | 
| CreateNetworkInterfaceRequest | withPrivateIpAddress(String privateIpAddress)
 The primary private IPv4 address of the network interface. | 
| CreateNetworkInterfaceRequest | withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
 One or more private IPv4 addresses. | 
| CreateNetworkInterfaceRequest | withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
 One or more private IPv4 addresses. | 
| CreateNetworkInterfaceRequest | withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
 The number of secondary private IPv4 addresses to assign to a network interface. | 
| CreateNetworkInterfaceRequest | withSubnetId(String subnetId)
 The ID of the subnet to associate with the network interface. | 
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic 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 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 void setIpv6AddressCount(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.
 
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.public Integer getIpv6AddressCount()
 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 CreateNetworkInterfaceRequest withIpv6AddressCount(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.
 
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.public List<InstanceIpv6Address> getIpv6Addresses()
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.
public void setIpv6Addresses(Collection<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.
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.public CreateNetworkInterfaceRequest withIpv6Addresses(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.
 NOTE: This method appends the values to the existing list (if any). Use
 setIpv6Addresses(java.util.Collection) or withIpv6Addresses(java.util.Collection) if you want
 to override the existing values.
 
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.public CreateNetworkInterfaceRequest withIpv6Addresses(Collection<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.
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.public void setPrivateIpAddress(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).
 
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).public String getPrivateIpAddress()
 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 CreateNetworkInterfaceRequest withPrivateIpAddress(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).
 
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).public List<PrivateIpAddressSpecification> getPrivateIpAddresses()
One or more private IPv4 addresses.
public void setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
privateIpAddresses - One or more private IPv4 addresses.public CreateNetworkInterfaceRequest withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IPv4 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 IPv4 addresses.public CreateNetworkInterfaceRequest withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
privateIpAddresses - One or more private IPv4 addresses.public void setSecondaryPrivateIpAddressCount(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.
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.
public Integer getSecondaryPrivateIpAddressCount()
 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 CreateNetworkInterfaceRequest withSecondaryPrivateIpAddressCount(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.
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.
public void setInterfaceType(String 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.
 
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.NetworkInterfaceCreationTypepublic String getInterfaceType()
 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.
 
efa. For more information, see  Elastic Fabric Adapter in the
         Amazon Elastic Compute Cloud User Guide.NetworkInterfaceCreationTypepublic CreateNetworkInterfaceRequest withInterfaceType(String 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.
 
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.NetworkInterfaceCreationTypepublic CreateNetworkInterfaceRequest withInterfaceType(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.
 
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.NetworkInterfaceCreationTypepublic 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 Request<CreateNetworkInterfaceRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateNetworkInterfaceRequest>public String toString()
toString in class ObjectObject.toString()public CreateNetworkInterfaceRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2020. All rights reserved.