public static final class CreateNetworkInterfaceRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateNetworkInterfaceRequest |
build() |
CreateNetworkInterfaceRequest.Builder |
businessType(String businessType)
> This parameter is no longer used.
|
CreateNetworkInterfaceRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateNetworkInterfaceRequest.Builder |
description(String description)
The description of the ENI.
|
CreateNetworkInterfaceRequest.Builder |
instanceType(String instanceType)
> This parameter is no longer used.
|
CreateNetworkInterfaceRequest.Builder |
ipv4Prefix(List<String> ipv4Prefix)
> This parameter is in invitational preview and is unavailable for general users.
|
CreateNetworkInterfaceRequest.Builder |
ipv4PrefixCount(Integer ipv4PrefixCount)
> This parameter is in invitational preview and is unavailable for general users.
|
CreateNetworkInterfaceRequest.Builder |
ipv6Address(List<String> ipv6Address)
IPv6 address N to assign to the ENI.
|
CreateNetworkInterfaceRequest.Builder |
ipv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to generate at random for the ENI.
|
CreateNetworkInterfaceRequest.Builder |
ipv6Prefix(List<String> ipv6Prefix)
> This parameter is in invitational preview and is unavailable for general users.
|
CreateNetworkInterfaceRequest.Builder |
ipv6PrefixCount(Integer ipv6PrefixCount)
> This parameter is in invitational preview and is unavailable for general users.
|
CreateNetworkInterfaceRequest.Builder |
networkInterfaceName(String networkInterfaceName)
The name of the ENI.
|
CreateNetworkInterfaceRequest.Builder |
networkInterfaceTrafficMode(String networkInterfaceTrafficMode)
The communication model of the ENI.
|
CreateNetworkInterfaceRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateNetworkInterfaceRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateNetworkInterfaceRequest.Builder |
primaryIpAddress(String primaryIpAddress)
The primary private IP address to assign to the ENI.
|
CreateNetworkInterfaceRequest.Builder |
privateIpAddress(List<String> privateIpAddress)
Secondary private IP address N to assign to the ENI.
|
CreateNetworkInterfaceRequest.Builder |
queueNumber(Integer queueNumber)
The number of queues supported by the ENI.
|
CreateNetworkInterfaceRequest.Builder |
queuePairNumber(Integer queuePairNumber)
> This parameter is in invitational preview and is unavailable for general users.
|
CreateNetworkInterfaceRequest.Builder |
regionId(String regionId)
The ID of the region in which to create the ENI.
|
CreateNetworkInterfaceRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which to assign the ENI.
|
CreateNetworkInterfaceRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateNetworkInterfaceRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateNetworkInterfaceRequest.Builder |
secondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of private IP addresses to be automatically created by ECS.
|
CreateNetworkInterfaceRequest.Builder |
securityGroupId(String securityGroupId)
The ID of the security group to which to assign the ENI.
|
CreateNetworkInterfaceRequest.Builder |
securityGroupIds(List<String> securityGroupIds)
The ID of security group N to which to assign the ENI.
|
CreateNetworkInterfaceRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
CreateNetworkInterfaceRequest.Builder |
tag(List<CreateNetworkInterfaceRequest.Tag> tag)
The tags to add to the ENI.
|
CreateNetworkInterfaceRequest.Builder |
visible(Boolean visible)
> This parameter is no longer used.
|
CreateNetworkInterfaceRequest.Builder |
vSwitchId(String vSwitchId)
The ID of the vSwitch with which to associate the ENI.
|
public CreateNetworkInterfaceRequest.Builder sourceRegionId(String sourceRegionId)
public CreateNetworkInterfaceRequest.Builder businessType(String businessType)
public CreateNetworkInterfaceRequest.Builder clientToken(String clientToken)
public CreateNetworkInterfaceRequest.Builder description(String description)
This parameter is empty by default.
public CreateNetworkInterfaceRequest.Builder instanceType(String instanceType)
public CreateNetworkInterfaceRequest.Builder ipv4Prefix(List<String> ipv4Prefix)
public CreateNetworkInterfaceRequest.Builder ipv4PrefixCount(Integer ipv4PrefixCount)
public CreateNetworkInterfaceRequest.Builder ipv6Address(List<String> ipv6Address)
Example: Ipv6Address.1=2001:db8:1234:1a00::\*\*\*\* > To assign IPv6 addresses to the ENI, you must specify `Ipv6Addresses.N` or `Ipv6AddressCount` but not both.
public CreateNetworkInterfaceRequest.Builder ipv6AddressCount(Integer ipv6AddressCount)
> To assign IPv6 addresses to the ENI, you must specify `Ipv6Addresses.N` or `Ipv6AddressCount` but not both.
public CreateNetworkInterfaceRequest.Builder ipv6Prefix(List<String> ipv6Prefix)
public CreateNetworkInterfaceRequest.Builder ipv6PrefixCount(Integer ipv6PrefixCount)
public CreateNetworkInterfaceRequest.Builder networkInterfaceName(String networkInterfaceName)
This parameter is empty by default.
public CreateNetworkInterfaceRequest.Builder networkInterfaceTrafficMode(String networkInterfaceTrafficMode)
* Standard: uses the TCP communication mode. * HighPerformance: enables Elastic RDMA Interface (ERI) and uses the remote direct memory access (RDMA) communication mode. > HighPerformance supports only the c7re RDMA-enhanced instance family. The maximum number of ENIs in RDMA mode that can be attached to a c7re instance is determined based on the instance type. The c7re instance family is in invitational preview in Beijing Zone K. For more information, see [Instance families](~~25378~~). 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 randomly assigned from within the CIDR block of the vSwitch.
public CreateNetworkInterfaceRequest.Builder privateIpAddress(List<String> privateIpAddress)
> To assign secondary private IP addresses to the ENI, you cannot specify both the `PrivateIpAddress.N` and `SecondaryPrivateIpAddressCount` parameters.
public CreateNetworkInterfaceRequest.Builder queueNumber(Integer queueNumber)
When you attach the ENI to an instance, make sure that the value of this parameter is smaller than the maximum number of queues per ENI 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 `MaximumQueueNumberPerEni` response parameter. This parameter is 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 `SecondaryEniQueueNumber` response parameter.
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 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 vSwitchId(String vSwitchId)
public CreateNetworkInterfaceRequest.Builder visible(Boolean visible)
public CreateNetworkInterfaceRequest build()
Copyright © 2023. All rights reserved.