public static final class CreateNetworkInterfaceRequest.Builder extends Object
public CreateNetworkInterfaceRequest.Builder sourceRegionId(String sourceRegionId)
public CreateNetworkInterfaceRequest.Builder businessType(String businessType)
public CreateNetworkInterfaceRequest.Builder clientToken(String clientToken)
public CreateNetworkInterfaceRequest.Builder connectionTrackingConfiguration(CreateNetworkInterfaceRequest.ConnectionTrackingConfiguration connectionTrackingConfiguration)
public CreateNetworkInterfaceRequest.Builder deleteOnRelease(Boolean deleteOnRelease)
* true * false
public CreateNetworkInterfaceRequest.Builder description(String description)
This parameter is empty by default.
public CreateNetworkInterfaceRequest.Builder enhancedNetwork(CreateNetworkInterfaceRequest.EnhancedNetwork enhancedNetwork)
public CreateNetworkInterfaceRequest.Builder instanceType(String instanceType)
* Secondary: secondary ENI. * Trunk: trunk ENI. This value is in invitational preview. Default value: Secondary.
public CreateNetworkInterfaceRequest.Builder ipv4Prefix(List<String> ipv4Prefix)
> To assign IPv4 prefixes to the ENI, you must specify the Ipv4Prefix.N or Ipv4PrefixCount parameter, but not both.
public CreateNetworkInterfaceRequest.Builder ipv4PrefixCount(Integer ipv4PrefixCount)
> To assign IPv4 prefixes to the ENI, you must specify the Ipv4Prefix.N or Ipv4PrefixCount parameter, but not both.
public CreateNetworkInterfaceRequest.Builder ipv6Address(List<String> ipv6Address)
Example: Ipv6Address.1=2001:db8:1234:1a00::\*\*\*\* > To assign IPv6 addresses to the ENI, you must specify the `Ipv6Addresses.N` or `Ipv6AddressCount` parameter, but not both.
public CreateNetworkInterfaceRequest.Builder ipv6AddressCount(Integer ipv6AddressCount)
> To assign IPv6 addresses to the ENI, you must specify the `Ipv6Addresses.N` or `Ipv6AddressCount` parameter, but not both.
public CreateNetworkInterfaceRequest.Builder ipv6Prefix(List<String> ipv6Prefix)
> To assign IPv6 prefixes to the ENI, you must specify the Ipv6Prefix.N or Ipv6PrefixCount parameter, but not both.
public CreateNetworkInterfaceRequest.Builder ipv6PrefixCount(Integer ipv6PrefixCount)
> To assign IPv6 prefixes to the ENI, you must specify the Ipv6Prefix.N or Ipv6PrefixCount parameter, but not both.
public CreateNetworkInterfaceRequest.Builder networkInterfaceName(String networkInterfaceName)
This parameter is left empty by default.
public CreateNetworkInterfaceRequest.Builder networkInterfaceTrafficConfig(CreateNetworkInterfaceRequest.NetworkInterfaceTrafficConfig networkInterfaceTrafficConfig)
public CreateNetworkInterfaceRequest.Builder networkInterfaceTrafficMode(String networkInterfaceTrafficMode)
* Standard: uses the TCP communication mode. * HighPerformance: uses the remote direct memory access (RDMA) communication mode with Elastic RDMA Interface (ERI) enabled. > ENIs in RDMA mode can be attached only to instances of the instance types that support ERIs. The number of ENIs in RDMA mode that are attached to an instance cannot exceed the maximum number of ENIs that the instance type supports. For more information, see [Overview of ECS instance families](~~25378~~) and [Configure eRDMA on an enterprise-level instance](~~336853~~). Default value: Standard.
public CreateNetworkInterfaceRequest.Builder ownerAccount(String ownerAccount)
public CreateNetworkInterfaceRequest.Builder ownerId(Long ownerId)
public CreateNetworkInterfaceRequest.Builder primaryIpAddress(String primaryIpAddress)
The specified IP address must be an idle IP address within the CIDR block of the vSwitch with which to associate the ENI. If this parameter is not specified, an idle IP address is assigned from within the vSwitch CIDR block at random.
public CreateNetworkInterfaceRequest.Builder privateIpAddress(List<String> privateIpAddress)
> To assign secondary private IP addresses to the ENI, you can specify the `PrivateIpAddress.N` or `SecondaryPrivateIpAddressCount` parameter, but not both.
public CreateNetworkInterfaceRequest.Builder queueNumber(Integer queueNumber)
When you attach the ENI to an instance, make sure that the value of this parameter is less than the maximum number of queues per ENI that is allowed for the instance type. To view the maximum number of queues per ENI allowed for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation and then check the return value of `MaximumQueueNumberPerEni`. This parameter is left empty by default. If you do not specify this parameter, the default number of queues per ENI for the instance type of an instance is used when you attach the ENI to the instance. To view the default number of queues per ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation and then check the return value of `SecondaryEniQueueNumber`.
public CreateNetworkInterfaceRequest.Builder queuePairNumber(Integer queuePairNumber)
public CreateNetworkInterfaceRequest.Builder regionId(String regionId)
public CreateNetworkInterfaceRequest.Builder resourceGroupId(String resourceGroupId)
public CreateNetworkInterfaceRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateNetworkInterfaceRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateNetworkInterfaceRequest.Builder rxQueueSize(Integer rxQueueSize)
Take note of the following items: * The Rx queue depth of an ENI must be the same as the Tx queue depth of the ENI. Valid values: powers of 2 in the range of 8192 to 16384. * A larger Rx queue depth yields higher inbound throughput but consumes more memory.
public CreateNetworkInterfaceRequest.Builder secondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
public CreateNetworkInterfaceRequest.Builder securityGroupId(String securityGroupId)
> You must specify `SecurityGroupId` or `SecurityGroupIds.N` but not both.
public CreateNetworkInterfaceRequest.Builder securityGroupIds(List<String> securityGroupIds)
> You must specify `SecurityGroupId` or `SecurityGroupIds.N` but not both.
public CreateNetworkInterfaceRequest.Builder tag(List<CreateNetworkInterfaceRequest.Tag> tag)
public CreateNetworkInterfaceRequest.Builder txQueueSize(Integer txQueueSize)
Take note of the following items: * The Tx queue depth of an ENI must be the same as the Rx queue depth of the ENI. Valid values: powers of 2 in the range of 8192 to 16384. * A larger Tx queue depth yields higher outbound throughput but consumes more memory.
public CreateNetworkInterfaceRequest.Builder vSwitchId(String vSwitchId)
public CreateNetworkInterfaceRequest.Builder visible(Boolean visible)
public CreateNetworkInterfaceRequest build()
Copyright © 2024. All rights reserved.