public class CreateNetworkInterfaceRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
CreateNetworkInterfaceRequest()  | 
CreateNetworkInterfaceRequest(CreateNetworkInterfaceRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getClientToken()
Get 
 | 
String | 
getNetworkInterfaceDescription()
Get ENI description can be named freely, but the maximum length is 60 characters. 
 | 
String | 
getNetworkInterfaceName()
Get The name of the ENI. 
 | 
PrivateIpAddressSpecification[] | 
getPrivateIpAddresses()
Get The information of the specified private IPs. 
 | 
String | 
getQosLevel()
Get IP service level. 
 | 
Long | 
getSecondaryPrivateIpAddressCount()
Get The number of private IP addresses you apply for. 
 | 
String[] | 
getSecurityGroupIds()
Get Specifies the security group to be bound with, such as ['sg-1dd51d']. 
 | 
String | 
getSubnetId()
Get The subnet instance ID of the ENI, such as `subnet-0ap8nwca`. 
 | 
Tag[] | 
getTags()
Get Bound tags, such as [{"Key": "city", "Value": "shanghai"}]. 
 | 
String | 
getTrunkingFlag()
Get Configuration of the ENI trunking mode. 
 | 
String | 
getVpcId()
Get The ID of the VPC instance. 
 | 
void | 
setClientToken(String ClientToken)
Set 
 | 
void | 
setNetworkInterfaceDescription(String NetworkInterfaceDescription)
Set ENI description can be named freely, but the maximum length is 60 characters. 
 | 
void | 
setNetworkInterfaceName(String NetworkInterfaceName)
Set The name of the ENI. 
 | 
void | 
setPrivateIpAddresses(PrivateIpAddressSpecification[] PrivateIpAddresses)
Set The information of the specified private IPs. 
 | 
void | 
setQosLevel(String QosLevel)
Set IP service level. 
 | 
void | 
setSecondaryPrivateIpAddressCount(Long SecondaryPrivateIpAddressCount)
Set The number of private IP addresses you apply for. 
 | 
void | 
setSecurityGroupIds(String[] SecurityGroupIds)
Set Specifies the security group to be bound with, such as ['sg-1dd51d']. 
 | 
void | 
setSubnetId(String SubnetId)
Set The subnet instance ID of the ENI, such as `subnet-0ap8nwca`. 
 | 
void | 
setTags(Tag[] Tags)
Set Bound tags, such as [{"Key": "city", "Value": "shanghai"}]. 
 | 
void | 
setTrunkingFlag(String TrunkingFlag)
Set Configuration of the ENI trunking mode. 
 | 
void | 
setVpcId(String VpcId)
Set The ID of the VPC instance. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateNetworkInterfaceRequest()
public CreateNetworkInterfaceRequest(CreateNetworkInterfaceRequest source)
public String getVpcId()
public void setVpcId(String VpcId)
VpcId - The ID of the VPC instance. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.public String getNetworkInterfaceName()
public void setNetworkInterfaceName(String NetworkInterfaceName)
NetworkInterfaceName - The name of the ENI. The maximum length is 60 characters.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId - The subnet instance ID of the ENI, such as `subnet-0ap8nwca`.public String getNetworkInterfaceDescription()
public void setNetworkInterfaceDescription(String NetworkInterfaceDescription)
NetworkInterfaceDescription - ENI description can be named freely, but the maximum length is 60 characters.public Long getSecondaryPrivateIpAddressCount()
public void setSecondaryPrivateIpAddressCount(Long SecondaryPrivateIpAddressCount)
SecondaryPrivateIpAddressCount - The number of private IP addresses you apply for. The total number of private IP addresses cannot exceed the quota.public String getQosLevel()
public void setQosLevel(String QosLevel)
QosLevel - IP service level. It is used together with `SecondaryPrivateIpAddressCount`. Values: `PT` (Gold), `AU` (Silver), `AG` (Bronze) and `DEFAULT` (Default).public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds - Specifies the security group to be bound with, such as ['sg-1dd51d'].public PrivateIpAddressSpecification[] getPrivateIpAddresses()
public void setPrivateIpAddresses(PrivateIpAddressSpecification[] PrivateIpAddresses)
PrivateIpAddresses - The information of the specified private IPs. You can specify a maximum of 10 each time.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags - Bound tags, such as [{"Key": "city", "Value": "shanghai"}].public String getTrunkingFlag()
public void setTrunkingFlag(String TrunkingFlag)
TrunkingFlag - Configuration of the ENI trunking mode. Valid values: `Enable` and `Disable`. Default value: `Disable`.public String getClientToken()
public void setClientToken(String ClientToken)
ClientToken - Copyright © 2025. All rights reserved.