public class CreateNetworkInterfaceRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
businessType
This parameter is no longer used.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestConnectionTrackingConfiguration |
connectionTrackingConfiguration
This parameter is not publicly available.
|
Boolean |
deleteOnRelease
Specifies whether to release the ENI when the associated instance is released.
|
String |
description
The description of the ENI.
|
CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestEnhancedNetwork |
enhancedNetwork
This parameter is unavailable.
|
String |
instanceType
The type of the ENI.
|
List<String> |
ipv4Prefix
IPv4 prefixes to assign to the ENI.
|
Integer |
ipv4PrefixCount
The number of IPv4 prefixes to assign to the ENI.
|
List<String> |
ipv6Address
IPv6 addresses to assign to the ENI.
|
Integer |
ipv6AddressCount
The number of IPv6 addresses to randomly generate for the ENI.
|
List<String> |
ipv6Prefix
IPv6 prefixes to assign to the ENI.
|
Integer |
ipv6PrefixCount
The number of IPv6 prefixes to assign to the ENI.
|
String |
networkInterfaceName
The name of the ENI.
|
CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig |
networkInterfaceTrafficConfig
The communication settings of the ENI.
|
String |
networkInterfaceTrafficMode
The communication mode of the ENI.
|
String |
ownerAccount |
Long |
ownerId |
String |
primaryIpAddress
The primary private IP address of the ENI.
|
List<String> |
privateIpAddress
Secondary private IP addresses to assign to the ENI.
|
Integer |
queueNumber
The number of queues supported by the ENI.
|
Integer |
queuePairNumber
This parameter is in invitational preview and is not publicly available.
|
String |
regionId
The region in which to create the ENI.
|
String |
resourceGroupId
The ID of the resource group to which you want to assign the ENI.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
rxQueueSize
The receive (Rx) queue depth of the ENI.
|
Integer |
secondaryPrivateIpAddressCount
The number of private IP addresses to be assigned by ECS.
|
String |
securityGroupId
The ID of the security group to which to assign the ENI.
|
List<String> |
securityGroupIds
The IDs of security groups to which to assign the ENI.
|
List<CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestTag> |
tag
The tags to add to the ENI.
|
Integer |
txQueueSize
The transmit (Tx) queue depth of the ENI.
|
Boolean |
visible
This parameter is no longer used.
|
String |
vSwitchId
The ID of the vSwitch with which to associate the ENI.
|
构造器和说明 |
---|
CreateNetworkInterfaceRequest() |
@NameInMap(value="BusinessType") public String businessType
example:This parameter is no longer used.
null
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="ConnectionTrackingConfiguration") public CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestConnectionTrackingConfiguration connectionTrackingConfiguration
This parameter is not publicly available.
@NameInMap(value="DeleteOnRelease") public Boolean deleteOnRelease
Specifies whether to release the ENI when the associated instance is released. Valid values:
true
@NameInMap(value="Description") public String description
The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
This parameter is empty by default.
example:testDescription
@NameInMap(value="EnhancedNetwork") public CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestEnhancedNetwork enhancedNetwork
This parameter is unavailable.
@NameInMap(value="InstanceType") public String instanceType
The type of the ENI. Valid values:
Default value: Secondary.
example:null
@NameInMap(value="Ipv4Prefix") public List<String> ipv4Prefix
IPv4 prefixes to assign to the ENI. Valid values of N: 1 to 10.
To assign IPv4 prefixes to the ENI, you must specify the Ipv4Prefix.N or Ipv4PrefixCount parameter, but not both.
@NameInMap(value="Ipv4PrefixCount") public Integer ipv4PrefixCount
The number of IPv4 prefixes to assign to the ENI. Valid values: 1 to 10.
example:To assign IPv4 prefixes to the ENI, you must specify the Ipv4Prefix.N or Ipv4PrefixCount parameter, but not both.
hide
@NameInMap(value="Ipv6Address") public List<String> ipv6Address
IPv6 addresses to assign to the ENI. Valid values of N: 1 to 10.
Example: Ipv6Address.1=2001:db8:1234:1a00::\\\\
example:To assign IPv6 addresses to the ENI, you must specify the
Ipv6Addresses.N
orIpv6AddressCount
parameter, but not both.
2001:db8:1234:1a00::****
@NameInMap(value="Ipv6AddressCount") public Integer ipv6AddressCount
The number of IPv6 addresses to randomly generate for the ENI. Valid values: 1 to 10.
example:To assign IPv6 addresses to the ENI, you must specify the
Ipv6Addresses.N
orIpv6AddressCount
parameter, but not both.
1
@NameInMap(value="Ipv6Prefix") public List<String> ipv6Prefix
IPv6 prefixes to assign to the ENI. Valid values of N: 1 to 10.
To assign IPv6 prefixes to the ENI, you must specify the Ipv6Prefix.N or Ipv6PrefixCount parameter, but not both.
@NameInMap(value="Ipv6PrefixCount") public Integer ipv6PrefixCount
The number of IPv6 prefixes to assign to the ENI. Valid values: 1 to 10.
example:To assign IPv6 prefixes to the ENI, you must specify the Ipv6Prefix.N or Ipv6PrefixCount parameter, but not both.
hide
@NameInMap(value="NetworkInterfaceName") public String networkInterfaceName
The name of the ENI. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
This parameter is left empty by default.
example:testNetworkInterfaceName
@NameInMap(value="NetworkInterfaceTrafficConfig") public CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig networkInterfaceTrafficConfig
The communication settings of the ENI.
@NameInMap(value="NetworkInterfaceTrafficMode") public String networkInterfaceTrafficMode
The communication mode of the ENI. Valid values:
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 and Configure eRDMA on an enterprise-level instance.
Default value: Standard.
example:Standard
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PrimaryIpAddress") public String primaryIpAddress
The primary private IP address of the ENI.
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.
example:172.17.**.**
@NameInMap(value="PrivateIpAddress") public List<String> privateIpAddress
Secondary private IP addresses to assign to the ENI. The IP addresses must be idle IP addresses in the CIDR block of the vSwitch with which to associate the ENI. Valid values of N: 0 to 10.
example:To assign secondary private IP addresses to the ENI, you can specify the
PrivateIpAddress.N
orSecondaryPrivateIpAddressCount
parameter, but not both.
172.17.**.**
@NameInMap(value="QueueNumber") public Integer queueNumber
The number of queues supported by the ENI. Valid values: 1 to 2048.
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 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 operation and then check the return value of SecondaryEniQueueNumber
.
1
@NameInMap(value="QueuePairNumber") public Integer queuePairNumber
example:This parameter is in invitational preview and is not publicly available.
22
@NameInMap(value="RegionId") public String regionId
The region in which to create the ENI. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which you want to assign the ENI. You can call the ListResourceGroups operation to query the most recent resource group list.
example:rg-bp67acfmxazb4ph****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="RxQueueSize") public Integer rxQueueSize
The receive (Rx) queue depth of the ENI.
Take note of the following items:
8192
@NameInMap(value="SecondaryPrivateIpAddressCount") public Integer secondaryPrivateIpAddressCount
The number of private IP addresses to be assigned by ECS. Valid values: 1 to 49.
example:1
@NameInMap(value="SecurityGroupId") public String securityGroupId
The ID of the security group to which to assign the ENI. The security group and the ENI must belong to the same VPC.
example:You must specify
SecurityGroupId
orSecurityGroupIds.N
but not both.
sg-bp1fg655nh68xyz9i****
@NameInMap(value="SecurityGroupIds") public List<String> securityGroupIds
The IDs of security groups to which to assign the ENI. The security groups and the ENI must belong to the same VPC. The valid values of N are determined based on the maximum number of security groups to which an ENI can be assigned. For more information, see Limits.
example:You must specify
SecurityGroupId
orSecurityGroupIds.N
but not both.
sg-bp1fg655nh68xyz9i****
@NameInMap(value="Tag") public List<CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestTag> tag
The tags to add to the ENI.
@NameInMap(value="TxQueueSize") public Integer txQueueSize
The transmit (Tx) queue depth of the ENI.
Take note of the following items:
8192
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch with which to associate the ENI. Private IP addresses are assigned to the ENI from within the CIDR block of the vSwitch.
This parameter is required.
example:vsw-bp1s5fnvk4gn2tws03****
@NameInMap(value="Visible") public Boolean visible
example:This parameter is no longer used.
null
public static CreateNetworkInterfaceRequest build(Map<String,?> map) throws Exception
Exception
public CreateNetworkInterfaceRequest setBusinessType(String businessType)
public String getBusinessType()
public CreateNetworkInterfaceRequest setClientToken(String clientToken)
public String getClientToken()
public CreateNetworkInterfaceRequest setConnectionTrackingConfiguration(CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestConnectionTrackingConfiguration connectionTrackingConfiguration)
public CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestConnectionTrackingConfiguration getConnectionTrackingConfiguration()
public CreateNetworkInterfaceRequest setDeleteOnRelease(Boolean deleteOnRelease)
public Boolean getDeleteOnRelease()
public CreateNetworkInterfaceRequest setDescription(String description)
public String getDescription()
public CreateNetworkInterfaceRequest setEnhancedNetwork(CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestEnhancedNetwork enhancedNetwork)
public CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestEnhancedNetwork getEnhancedNetwork()
public CreateNetworkInterfaceRequest setInstanceType(String instanceType)
public String getInstanceType()
public CreateNetworkInterfaceRequest setIpv4Prefix(List<String> ipv4Prefix)
public CreateNetworkInterfaceRequest setIpv4PrefixCount(Integer ipv4PrefixCount)
public Integer getIpv4PrefixCount()
public CreateNetworkInterfaceRequest setIpv6Address(List<String> ipv6Address)
public CreateNetworkInterfaceRequest setIpv6AddressCount(Integer ipv6AddressCount)
public Integer getIpv6AddressCount()
public CreateNetworkInterfaceRequest setIpv6Prefix(List<String> ipv6Prefix)
public CreateNetworkInterfaceRequest setIpv6PrefixCount(Integer ipv6PrefixCount)
public Integer getIpv6PrefixCount()
public CreateNetworkInterfaceRequest setNetworkInterfaceName(String networkInterfaceName)
public String getNetworkInterfaceName()
public CreateNetworkInterfaceRequest setNetworkInterfaceTrafficConfig(CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig networkInterfaceTrafficConfig)
public CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig getNetworkInterfaceTrafficConfig()
public CreateNetworkInterfaceRequest setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode)
public String getNetworkInterfaceTrafficMode()
public CreateNetworkInterfaceRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateNetworkInterfaceRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateNetworkInterfaceRequest setPrimaryIpAddress(String primaryIpAddress)
public String getPrimaryIpAddress()
public CreateNetworkInterfaceRequest setPrivateIpAddress(List<String> privateIpAddress)
public CreateNetworkInterfaceRequest setQueueNumber(Integer queueNumber)
public Integer getQueueNumber()
public CreateNetworkInterfaceRequest setQueuePairNumber(Integer queuePairNumber)
public Integer getQueuePairNumber()
public CreateNetworkInterfaceRequest setRegionId(String regionId)
public String getRegionId()
public CreateNetworkInterfaceRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateNetworkInterfaceRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateNetworkInterfaceRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateNetworkInterfaceRequest setRxQueueSize(Integer rxQueueSize)
public Integer getRxQueueSize()
public CreateNetworkInterfaceRequest setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
public Integer getSecondaryPrivateIpAddressCount()
public CreateNetworkInterfaceRequest setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public CreateNetworkInterfaceRequest setSecurityGroupIds(List<String> securityGroupIds)
public CreateNetworkInterfaceRequest setTag(List<CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestTag> tag)
public List<CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestTag> getTag()
public CreateNetworkInterfaceRequest setTxQueueSize(Integer txQueueSize)
public Integer getTxQueueSize()
public CreateNetworkInterfaceRequest setVSwitchId(String vSwitchId)
public String getVSwitchId()
public CreateNetworkInterfaceRequest setVisible(Boolean visible)
public Boolean getVisible()
Copyright © 2024. All rights reserved.