public static class RunInstancesRequest.RunInstancesRequestNetworkInterface
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
deleteOnRelease
Specifies whether to release ENI N when the associated instance is released.
|
String |
description
The description of ENI N.
|
String |
instanceType
The type of ENI N.
|
List<String> |
ipv6Address
The IPv6 addresses to assign to the primary ENI.
|
Long |
ipv6AddressCount
The number of IPv6 addresses to randomly generate for the primary ENI.
|
Integer |
networkCardIndex
The index of the network card for ENI N.
|
String |
networkInterfaceId
The ID of ENI N to attach to the instance.
|
String |
networkInterfaceName
The name of ENI N.
|
String |
networkInterfaceTrafficMode
The communication mode of ENI N.
|
String |
primaryIpAddress
The primary IP address to assign to ENI N.
|
Integer |
queueNumber
The number of queues supported by ENI N.
|
Long |
queuePairNumber
The number of queues supported by the ERI.
|
Integer |
rxQueueSize
The receive (Rx) queue depth of ENI N.
|
String |
securityGroupId
The ID of the security group to which to assign ENI N.
|
List<String> |
securityGroupIds
The IDs of security groups to which to assign ENI N.
|
Integer |
txQueueSize
The Tx queue depth of ENI N.
|
String |
vSwitchId
The ID of the vSwitch to which to connect ENI N.
|
构造器和说明 |
---|
RunInstancesRequestNetworkInterface() |
@NameInMap(value="DeleteOnRelease") public Boolean deleteOnRelease
Specifies whether to release ENI N when the associated instance is released. Valid values:
Default value: true.
example:This parameter takes effect only for secondary ENIs.
true
@NameInMap(value="Description") public String description
The description of ENI N.
When you specify this parameter, take note of the following items:
http://
or https://
.NetworkInterface.N.InstanceType
to Primary
, you do not need to specify this parameter.Network_Description
@NameInMap(value="InstanceType") public String instanceType
The type of ENI N. The value of N cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see Overview of instance families or call the DescribeInstanceTypes operation.
Valid values:
Default value: Secondary.
example:Secondary
@NameInMap(value="Ipv6Address") public List<String> ipv6Address
The IPv6 addresses to assign to the primary ENI. You can assign up to 10 IPv6 addresses to the primary ENI. Valid values of the second N: 1 to 10.
Example: Ipv6Address.1=2001:db8:1234:1a00::***
.
When you specify this parameter, take note of the following items:
NetworkInterface.N.InstanceType
is set to Primary
. If you set NetworkInterface.N.InstanceType
to Secondary
or leave NetworkInterface.N.InstanceType empty, you cannot specify this parameter.Amount
to 1 and cannot specify Ipv6AddressCount
, Ipv6Address.N
, or NetworkInterface.N.Ipv6AddressCount
.@NameInMap(value="Ipv6AddressCount") public Long ipv6AddressCount
The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10.
When you specify this parameter, take note of the following items:
NetworkInterface.N.InstanceType
is set to Primary
. If you set NetworkInterface.N.InstanceType
to Secondary
or leave NetworkInterface.N.InstanceType empty, you cannot specify this parameter.Ipv6AddressCount
, Ipv6Address.N
, or NetworkInterface.N.Ipv6Address.N
.1
@NameInMap(value="NetworkCardIndex") public Integer networkCardIndex
The index of the network card for ENI N.
When you specify this parameter, take note of the following items:
0
@NameInMap(value="NetworkInterfaceId") public String networkInterfaceId
The ID of ENI N to attach to the instance.
example:This parameter takes effect only for secondary ENIs. After you specify an existing secondary ENI, you cannot specify other ENI creation parameters.
eni-bp1gn106np8jhxhj****
@NameInMap(value="NetworkInterfaceName") public String networkInterfaceName
The name of ENI N. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
When you specify this parameter, take note of the following items:
NetworkInterface.N.InstanceType
to Primary
, you do not need to specify this parameter.Network_Name
@NameInMap(value="NetworkInterfaceTrafficMode") public String networkInterfaceTrafficMode
The communication mode of ENI N. Valid values:
Default value: Standard.
example:The number of ERIs on an instance cannot exceed the maximum number of ERIs that the instance type supports. For more information, see Overview of instance families.
Standard
@NameInMap(value="PrimaryIpAddress") public String primaryIpAddress
The primary IP address to assign to ENI N.
When you specify this parameter, take note of the following items:
The value of N cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see Overview of instance families or call the DescribeInstanceTypes operation.
Amount
to a numeric value greater than 1, and set NetworkInterface.N.InstanceType to Primary, the specified number of instances are created and consecutive primary IP addresses starting from the specified IP address are assigned to the instances. In this case, you cannot attach secondary ENIs to the instances.Amount
to a numeric value greater than 1, and set NetworkInterface.N.InstanceType to Primary, you cannot set NetworkInterface.2.InstanceType
to Secondary to attach a secondary ENI.If you set NetworkInterface.N.InstanceType
to Primary
, this parameter is equivalent to PrivateIpAddress
. You cannot specify both this parameter and PrivateIpAddress
in the same request.
If you set NetworkInterface.N.InstanceType
to Secondary
or leave NetworkInterface.N.InstanceType empty, the specified primary IP address is assigned to the secondary ENI. The default value is an IP address that is randomly selected from within the CIDR block of the vSwitch to which to connect the secondary ENI.
172.16.**.**
@NameInMap(value="QueueNumber") public Integer queueNumber
The number of queues supported by ENI N.
When you specify this parameter, take note of the following items:
MaximumQueueNumberPerEni
and TotalEniQueueQuantity
values in the response.NetworkInterface.N.InstanceType
to Primary
, you cannot specify NetworkInterfaceQueueNumber
.8
@NameInMap(value="QueuePairNumber") public Long queuePairNumber
The number of queues supported by the ERI.
example:0
@NameInMap(value="RxQueueSize") public Integer rxQueueSize
The receive (Rx) queue depth of ENI N.
When you specify this parameter, take note of the following items:
8192
@NameInMap(value="SecurityGroupId") public String securityGroupId
The ID of the security group to which to assign ENI N.
When you specify this parameter, take note of the following items:
NetworkInterface.N.InstanceType
to Primary
, you must specify this parameter. In this case, this parameter is equivalent to SecurityGroupId
and you cannot specify SecurityGroupId
, SecurityGroupIds.N
, or NetworkInterface.N.SecurityGroupIds.N
.NetworkInterface.N.InstanceType
to Secondary
or leave NetworkInterface.N.InstanceType empty, you do not need to specify this parameter. The default value is the ID of the security group to which to assign the instance.sg-bp67acfmxazb4p****
@NameInMap(value="SecurityGroupIds") public List<String> securityGroupIds
The IDs of security groups to which to assign ENI N.
When you specify this parameter, take note of the following items:
NetworkInterface.N.InstanceType
to Primary
, you must specify this parameter or NetworkInterface.N.SecurityGroupId
. In this case, this parameter is equivalent to SecurityGroupIds.N
, and you cannot specify SecurityGroupId
, SecurityGroupIds.N
, or NetworkInterface.N.SecurityGroupId
.NetworkInterface.N.InstanceType
to Secondary
or leave NetworkInterface.N.InstanceType empty, you do not need to specify this parameter. The default value is the ID of the security group to which to assign the instance.sg-bp15ed6xe1yxeycg7****
@NameInMap(value="TxQueueSize") public Integer txQueueSize
The Tx queue depth of ENI N.
When you specify this parameter, take note of the following items:
8192
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch to which to connect ENI N.
When you specify this parameter, take note of the following items:
NetworkInterface.N.InstanceType
to Primary
, you must specify this parameter. In this case, this parameter is equivalent to VSwitchId
. You cannot specify both NetworkInterface.N.VSwitchId and VSwitchId
in the same request.NetworkInterface.N.InstanceType
to Secondary
or leave NetworkInterface.N.InstanceType empty, you do not need to specify this parameter. The default value is the VSwitchId value.vsw-bp67acfmxazb4p****
public static RunInstancesRequest.RunInstancesRequestNetworkInterface build(Map<String,?> map) throws Exception
Exception
public RunInstancesRequest.RunInstancesRequestNetworkInterface setDeleteOnRelease(Boolean deleteOnRelease)
public Boolean getDeleteOnRelease()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setDescription(String description)
public String getDescription()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setInstanceType(String instanceType)
public String getInstanceType()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setIpv6Address(List<String> ipv6Address)
public RunInstancesRequest.RunInstancesRequestNetworkInterface setIpv6AddressCount(Long ipv6AddressCount)
public Long getIpv6AddressCount()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setNetworkCardIndex(Integer networkCardIndex)
public Integer getNetworkCardIndex()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setNetworkInterfaceId(String networkInterfaceId)
public String getNetworkInterfaceId()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setNetworkInterfaceName(String networkInterfaceName)
public String getNetworkInterfaceName()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode)
public String getNetworkInterfaceTrafficMode()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setPrimaryIpAddress(String primaryIpAddress)
public String getPrimaryIpAddress()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setQueueNumber(Integer queueNumber)
public Integer getQueueNumber()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setQueuePairNumber(Long queuePairNumber)
public Long getQueuePairNumber()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setRxQueueSize(Integer rxQueueSize)
public Integer getRxQueueSize()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setSecurityGroupIds(List<String> securityGroupIds)
public RunInstancesRequest.RunInstancesRequestNetworkInterface setTxQueueSize(Integer txQueueSize)
public Integer getTxQueueSize()
public RunInstancesRequest.RunInstancesRequestNetworkInterface setVSwitchId(String vSwitchId)
public String getVSwitchId()
Copyright © 2024. All rights reserved.