public class AttachNetworkInterfaceRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| AttachNetworkInterfaceRequest() | 
| AttachNetworkInterfaceRequest(AttachNetworkInterfaceRequest 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 | 
|---|---|
| Long | getAttachType()Get 网卡的挂载类型:0 标准型,1扩展型,默认值0。 | 
| String | getClientToken()Get 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 | 
| String | getInstanceId()Get CVM实例ID。形如:ins-r8hr2upy。可通过[DescribeInstances](https://cloud.tencent.com/document/product/213/15728)接口获取。 | 
| String | getNetworkInterfaceId()Get 弹性网卡实例ID,例如:eni-m6dyj72l。可通过[DescribeNetworkInterfaces](https://cloud.tencent.com/document/product/215/15817)接口获取。 | 
| void | setAttachType(Long AttachType)Set 网卡的挂载类型:0 标准型,1扩展型,默认值0。 | 
| void | setClientToken(String ClientToken)Set 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 | 
| void | setInstanceId(String InstanceId)Set CVM实例ID。形如:ins-r8hr2upy。可通过[DescribeInstances](https://cloud.tencent.com/document/product/213/15728)接口获取。 | 
| void | setNetworkInterfaceId(String NetworkInterfaceId)Set 弹性网卡实例ID,例如:eni-m6dyj72l。可通过[DescribeNetworkInterfaces](https://cloud.tencent.com/document/product/215/15817)接口获取。 | 
| 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 AttachNetworkInterfaceRequest()
public AttachNetworkInterfaceRequest(AttachNetworkInterfaceRequest source)
public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String NetworkInterfaceId)
NetworkInterfaceId - 弹性网卡实例ID,例如:eni-m6dyj72l。可通过[DescribeNetworkInterfaces](https://cloud.tencent.com/document/product/215/15817)接口获取。public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - CVM实例ID。形如:ins-r8hr2upy。可通过[DescribeInstances](https://cloud.tencent.com/document/product/213/15728)接口获取。public Long getAttachType()
public void setAttachType(Long AttachType)
AttachType - 网卡的挂载类型:0 标准型,1扩展型,默认值0。public String getClientToken()
public void setClientToken(String ClientToken)
ClientToken - 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。Copyright © 2025. All rights reserved.