public static class CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
description
The description of the secondary ENI.
|
String |
instanceType
The type of ENI N.
|
String |
networkInterfaceName
The name of the secondary ENI.
|
String |
networkInterfaceTrafficMode
The communication mode of the primary ENI.
|
String |
primaryIpAddress
The primary private IP address of the secondary ENI.
|
String |
securityGroupId
The ID of the security group to which to assign the secondary ENI.
|
List<String> |
securityGroupIds
The IDs of the security groups to which to assign the secondary ENI.
|
String |
vSwitchId
The ID of the vSwitch to which to connect the secondary ENI.
|
构造器和说明 |
---|
CreateLaunchTemplateVersionRequestNetworkInterface() |
@NameInMap(value="Description") public String description
The description of the secondary ENI. The description must be 2 to 256 characters in length and cannot start with http://
or https://
. The value of N in NetworkInterface.N
cannot be greater than 1.
testNetworkInterfaceDescription
@NameInMap(value="InstanceType") public String instanceType
The type of ENI N. Valid values of N: 1 and 2. If the value of N is 1, you can configure a primary or secondary ENI. If the value of N is 2, you must configure a primary ENI and a secondary ENI.
Valid values:
Default value: Secondary.
example:ecs.g5.large
@NameInMap(value="NetworkInterfaceName") public String networkInterfaceName
The name of the secondary ENI. The value of N in NetworkInterface.N
cannot be greater than 1.
testNetworkInterfaceName
@NameInMap(value="NetworkInterfaceTrafficMode") public String networkInterfaceTrafficMode
The communication mode of the primary ENI. Valid values:
Standard
@NameInMap(value="PrimaryIpAddress") public String primaryIpAddress
The primary private IP address of the secondary ENI. The value of N in NetworkInterface.N
cannot be greater than 1.
192.168.**.**
@NameInMap(value="SecurityGroupId") public String securityGroupId
The ID of the security group to which to assign the secondary ENI. The security groups of the secondary ENI and of the instance must belong to the same VPC. The value of N in NetworkInterface.N
cannot be greater than 1.
example:You cannot specify both
NetworkInterface.N.SecurityGroupId
andNetworkInterface.N.SecurityGroupIds.N
.
sg-bp15ed6xe1yxeycg****
@NameInMap(value="SecurityGroupIds") public List<String> securityGroupIds
The IDs of the security groups to which to assign the secondary ENI. The security group and the secondary ENI must belong to the same VPC. The valid values of N in SecurityGroupIds.N
vary based on the maximum number of security groups to which a secondary ENI can belong. For more information, see the "Security group limits" section in Limits. The value of N in NetworkInterface.N
cannot be greater than 1.
example:You cannot specify both
NetworkInterface.N.SecurityGroupId
andNetworkInterface.N.SecurityGroupIds.N
.
sg-bp67acfmxazb4p****
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch to which to connect the secondary ENI. The instance and the secondary ENI must reside in the same zone of the same VPC, but they can be connected to different vSwitches. The value of N in NetworkInterface.N
cannot be greater than 1.
vsw-bp1s5fnvk4gn2tws0****
public CreateLaunchTemplateVersionRequestNetworkInterface()
public static CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface build(Map<String,?> map) throws Exception
Exception
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface setDescription(String description)
public String getDescription()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface setInstanceType(String instanceType)
public String getInstanceType()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface setNetworkInterfaceName(String networkInterfaceName)
public String getNetworkInterfaceName()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode)
public String getNetworkInterfaceTrafficMode()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface setPrimaryIpAddress(String primaryIpAddress)
public String getPrimaryIpAddress()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface setSecurityGroupIds(List<String> securityGroupIds)
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface setVSwitchId(String vSwitchId)
public String getVSwitchId()
Copyright © 2024. All rights reserved.