public class NetworkInterface extends AbstractModel
| Constructor and Description | 
|---|
| NetworkInterface() | 
| NetworkInterface(NetworkInterface 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 | 
|---|---|
| NetworkInterfaceAttachment | getAttachment()Get Bound CVM object. | 
| Long | getAttachType()Get ENI type. | 
| String | getBusiness()Get Type of the resource bound with an ENI. | 
| String | getCdcId()Get ID of the CDC instance associated with the ENI
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String | getCreatedTime()Get Creation Time. | 
| Long | getEniType()Get The ENI type. | 
| String[] | getGroupSet()Get Bound security group. | 
| Ipv6Address[] | getIpv6AddressSet()Get The `IPv6` address list. | 
| String | getMacAddress()Get MAC address | 
| String | getNetworkInterfaceDescription()Get ENI description. | 
| String | getNetworkInterfaceId()Get The ID of the ENI instance, such as `eni-f1xjkw1b`. | 
| String | getNetworkInterfaceName()Get ENI Name | 
| Boolean | getPrimary()Get Whether it is the primary ENI. | 
| PrivateIpAddressSpecification[] | getPrivateIpAddressSet()Get Private IP information. | 
| String | getState()Get ENI status:
`PENDING`: Creating
`AVAILABLE`: Available
`ATTACHING`: Binding
`DETACHING`: Unbinding
`DELETING`: Deleting | 
| String | getSubnetId()Get Subnet instance ID. | 
| Tag[] | getTagSet()Get Tag key-value pair. | 
| String | getVpcId()Get VPC instance ID. | 
| String | getZone()Get Availability Zone. | 
| void | setAttachment(NetworkInterfaceAttachment Attachment)Set Bound CVM object. | 
| void | setAttachType(Long AttachType)Set ENI type. | 
| void | setBusiness(String Business)Set Type of the resource bound with an ENI. | 
| void | setCdcId(String CdcId)Set ID of the CDC instance associated with the ENI
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setCreatedTime(String CreatedTime)Set Creation Time. | 
| void | setEniType(Long EniType)Set The ENI type. | 
| void | setGroupSet(String[] GroupSet)Set Bound security group. | 
| void | setIpv6AddressSet(Ipv6Address[] Ipv6AddressSet)Set The `IPv6` address list. | 
| void | setMacAddress(String MacAddress)Set MAC address | 
| void | setNetworkInterfaceDescription(String NetworkInterfaceDescription)Set ENI description. | 
| void | setNetworkInterfaceId(String NetworkInterfaceId)Set The ID of the ENI instance, such as `eni-f1xjkw1b`. | 
| void | setNetworkInterfaceName(String NetworkInterfaceName)Set ENI Name | 
| void | setPrimary(Boolean Primary)Set Whether it is the primary ENI. | 
| void | setPrivateIpAddressSet(PrivateIpAddressSpecification[] PrivateIpAddressSet)Set Private IP information. | 
| void | setState(String State)Set ENI status:
`PENDING`: Creating
`AVAILABLE`: Available
`ATTACHING`: Binding
`DETACHING`: Unbinding
`DELETING`: Deleting | 
| void | setSubnetId(String SubnetId)Set Subnet instance ID. | 
| void | setTagSet(Tag[] TagSet)Set Tag key-value pair. | 
| void | setVpcId(String VpcId)Set VPC instance ID. | 
| void | setZone(String Zone)Set Availability Zone. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic NetworkInterface()
public NetworkInterface(NetworkInterface source)
public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String NetworkInterfaceId)
NetworkInterfaceId - The ID of the ENI instance, such as `eni-f1xjkw1b`.public String getNetworkInterfaceName()
public void setNetworkInterfaceName(String NetworkInterfaceName)
NetworkInterfaceName - ENI Namepublic String getNetworkInterfaceDescription()
public void setNetworkInterfaceDescription(String NetworkInterfaceDescription)
NetworkInterfaceDescription - ENI description.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId - Subnet instance ID.public String getVpcId()
public void setVpcId(String VpcId)
VpcId - VPC instance ID.public String[] getGroupSet()
public void setGroupSet(String[] GroupSet)
GroupSet - Bound security group.public Boolean getPrimary()
public void setPrimary(Boolean Primary)
Primary - Whether it is the primary ENI.public String getMacAddress()
public void setMacAddress(String MacAddress)
MacAddress - MAC addresspublic String getState()
public void setState(String State)
State - ENI status:
public PrivateIpAddressSpecification[] getPrivateIpAddressSet()
public void setPrivateIpAddressSet(PrivateIpAddressSpecification[] PrivateIpAddressSet)
PrivateIpAddressSet - Private IP information.public NetworkInterfaceAttachment getAttachment()
public void setAttachment(NetworkInterfaceAttachment Attachment)
Attachment - Bound CVM object.
Note: This field may return null, indicating no valid value.public String getZone()
public void setZone(String Zone)
Zone - Availability Zone.public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime - Creation Time.public Ipv6Address[] getIpv6AddressSet()
public void setIpv6AddressSet(Ipv6Address[] Ipv6AddressSet)
Ipv6AddressSet - The `IPv6` address list.public Tag[] getTagSet()
public void setTagSet(Tag[] TagSet)
TagSet - Tag key-value pair.public Long getEniType()
public void setEniType(Long EniType)
EniType - The ENI type. 0: ENI. 1: EVM ENI.public String getBusiness()
public void setBusiness(String Business)
Business - Type of the resource bound with an ENI. Valid values: cvm, eks.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getCdcId()
public void setCdcId(String CdcId)
CdcId - ID of the CDC instance associated with the ENI
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getAttachType()
public void setAttachType(Long AttachType)
AttachType - ENI type. Valid values: `0` (standard); `1` (extension). Default value: `0`.
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2021. All rights reserved.