public class CreateNetworkInterfaceRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
businessType
> This parameter is no longer used.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the ENI.
|
String |
instanceType
> This parameter is no longer used.
|
List<String> |
ipv4Prefix
> This parameter is in invitational preview and is unavailable for general users.
|
Integer |
ipv4PrefixCount
> This parameter is in invitational preview and is unavailable for general users.
|
List<String> |
ipv6Address
IPv6 address N to assign to the ENI.
|
Integer |
ipv6AddressCount
The number of IPv6 addresses to generate at random for the ENI.
|
List<String> |
ipv6Prefix
> This parameter is in invitational preview and is unavailable for general users.
|
Integer |
ipv6PrefixCount
> This parameter is in invitational preview and is unavailable for general users.
|
String |
networkInterfaceName
The name of the ENI.
|
String |
networkInterfaceTrafficMode
The communication model of the ENI.
|
String |
ownerAccount |
Long |
ownerId |
String |
primaryIpAddress
The primary private IP address to assign to the ENI.
|
List<String> |
privateIpAddress
Secondary private IP address N 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 unavailable for general users.
|
String |
regionId
The ID of the region in which to create the ENI.
|
String |
resourceGroupId
The ID of the resource group to which to assign the ENI.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
secondaryPrivateIpAddressCount
The number of private IP addresses to be automatically created by ECS.
|
String |
securityGroupId
The ID of the security group to which to assign the ENI.
|
List<String> |
securityGroupIds
The ID of security group N to which to assign the ENI.
|
List<CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestTag> |
tag
The tags to add to 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
> This parameter is no longer used.
@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 value, but you must make sure that it is unique among different requests. The **ClientToken** value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).
@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.
@NameInMap(value="InstanceType") public String instanceType
> This parameter is no longer used.
@NameInMap(value="Ipv4Prefix") public List<String> ipv4Prefix
> This parameter is in invitational preview and is unavailable for general users.
@NameInMap(value="Ipv4PrefixCount") public Integer ipv4PrefixCount
> This parameter is in invitational preview and is unavailable for general users.
@NameInMap(value="Ipv6Address") public List<String> ipv6Address
IPv6 address N to assign to the ENI. Valid values of N: 1 to 10.
Example: Ipv6Address.1=2001:db8:1234:1a00::\*\*\*\*
> To assign IPv6 addresses to the ENI, you must specify `Ipv6Addresses.N` or `Ipv6AddressCount` but not both.
@NameInMap(value="Ipv6AddressCount") public Integer ipv6AddressCount
The number of IPv6 addresses to generate at random for the ENI. Valid values: 1 to 10.
> To assign IPv6 addresses to the ENI, you must specify `Ipv6Addresses.N` or `Ipv6AddressCount` but not both.
@NameInMap(value="Ipv6Prefix") public List<String> ipv6Prefix
> This parameter is in invitational preview and is unavailable for general users.
@NameInMap(value="Ipv6PrefixCount") public Integer ipv6PrefixCount
> This parameter is in invitational preview and is unavailable for general users.
@NameInMap(value="NetworkInterfaceName") public String networkInterfaceName
The name of the ENI. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-).
This parameter is empty by default.
@NameInMap(value="NetworkInterfaceTrafficMode") public String networkInterfaceTrafficMode
The communication model of the ENI. Valid values:
* 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.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PrimaryIpAddress") public String primaryIpAddress
The primary private IP address to assign to 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 randomly assigned from within the CIDR block of the vSwitch.
@NameInMap(value="PrivateIpAddress") public List<String> privateIpAddress
Secondary private IP address N to assign to the ENI. The IP address must be an idle IP address within the CIDR block of the vSwitch with which to associate the ENI. Valid values of N: 0 to 10.
> To assign secondary private IP addresses to the ENI, you cannot specify both the `PrivateIpAddress.N` and `SecondaryPrivateIpAddressCount` parameters.
@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 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.
@NameInMap(value="QueuePairNumber") public Integer queuePairNumber
> This parameter is in invitational preview and is unavailable for general users.
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create the ENI. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the ENI. You can call the [ListResourceGroups](~~158855~~) operation to query the most recent resource group list.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecondaryPrivateIpAddressCount") public Integer secondaryPrivateIpAddressCount
The number of private IP addresses to be automatically created by ECS.
@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.
> You must specify `SecurityGroupId` or `SecurityGroupIds.N` but not both.
@NameInMap(value="SecurityGroupIds") public List<String> securityGroupIds
The ID of security group N to which to assign the ENI. The security group 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](~~25412~~).
> You must specify `SecurityGroupId` or `SecurityGroupIds.N` but not both.
@NameInMap(value="Tag") public List<CreateNetworkInterfaceRequest.CreateNetworkInterfaceRequestTag> tag
The tags to add to the ENI.
@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.
@NameInMap(value="Visible") public Boolean visible
> This parameter is no longer used.
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 setDescription(String description)
public String getDescription()
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 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 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 setVSwitchId(String vSwitchId)
public String getVSwitchId()
public CreateNetworkInterfaceRequest setVisible(Boolean visible)
public Boolean getVisible()
Copyright © 2023. All rights reserved.