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.
|
String |
getBusiness()
Get Type of the resource bound with an ENI.
|
String |
getCreatedTime()
Get Creation time.
|
String |
getEcmRegion()
Get ECM region (EcmRegion)
|
Long |
getEniType()
Get ENI type.
|
String[] |
getGroupSet()
Get Bound security groups.
|
Ipv6Address[] |
getIpv6AddressSet()
Get List of IPv6 addresses.
|
String |
getMacAddress()
Get MAC address.
|
String |
getNetworkInterfaceDescription()
Get ENI description.
|
String |
getNetworkInterfaceId()
Get ENI instance ID, 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 pairs.
|
String |
getVpcId()
Get VPC instance ID.
|
String |
getZone()
Get AZ.
|
void |
setAttachment(NetworkInterfaceAttachment Attachment)
Set Bound CVM object.
|
void |
setBusiness(String Business)
Set Type of the resource bound with an ENI.
|
void |
setCreatedTime(String CreatedTime)
Set Creation time.
|
void |
setEcmRegion(String EcmRegion)
Set ECM region (EcmRegion)
|
void |
setEniType(Long EniType)
Set ENI type.
|
void |
setGroupSet(String[] GroupSet)
Set Bound security groups.
|
void |
setIpv6AddressSet(Ipv6Address[] Ipv6AddressSet)
Set List of IPv6 addresses.
|
void |
setMacAddress(String MacAddress)
Set MAC address.
|
void |
setNetworkInterfaceDescription(String NetworkInterfaceDescription)
Set ENI description.
|
void |
setNetworkInterfaceId(String NetworkInterfaceId)
Set ENI instance ID, 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 pairs.
|
void |
setVpcId(String VpcId)
Set VPC instance ID.
|
void |
setZone(String Zone)
Set AZ.
|
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, toJsonString
public NetworkInterface()
public NetworkInterface(NetworkInterface source)
public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String NetworkInterfaceId)
NetworkInterfaceId
- ENI instance ID, such as `eni-f1xjkw1b`.public String getNetworkInterfaceName()
public void setNetworkInterfaceName(String NetworkInterfaceName)
NetworkInterfaceName
- ENI name.public 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 groups.
Note: this field may return null, indicating that no valid values can be obtained.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 address.public String getState()
public void setState(String State)
State
- ENI status:
PENDING: creating
AVAILABLE: available
ATTACHING: binding
DETACHING: unbinding
DELETING: deletingpublic PrivateIpAddressSpecification[] getPrivateIpAddressSet()
public void setPrivateIpAddressSet(PrivateIpAddressSpecification[] PrivateIpAddressSet)
PrivateIpAddressSet
- Private IP information.
Note: this field may return null, indicating that no valid values can be obtained.public NetworkInterfaceAttachment getAttachment()
public void setAttachment(NetworkInterfaceAttachment Attachment)
Attachment
- Bound CVM object.
Note: this field may return null, indicating that no valid values can be obtained.
Note: this field may return null, indicating that no valid values can be obtained.public String getZone()
public void setZone(String Zone)
Zone
- AZ.public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime
- Creation time.public Ipv6Address[] getIpv6AddressSet()
public void setIpv6AddressSet(Ipv6Address[] Ipv6AddressSet)
Ipv6AddressSet
- List of IPv6 addresses.
Note: this field may return null, indicating that no valid values can be obtained.public Tag[] getTagSet()
public void setTagSet(Tag[] TagSet)
TagSet
- Tag key-value pairs.
Note: this field may return null, indicating that no valid values can be obtained.public Long getEniType()
public void setEniType(Long EniType)
EniType
- ENI type. Valid values: 0: ENI; 1: EVM ENI.public String getEcmRegion()
public void setEcmRegion(String EcmRegion)
EcmRegion
- ECM region (EcmRegion)public String getBusiness()
public void setBusiness(String Business)
Business
- Type of the resource bound with an ENI. Valid values: `cvm` and `eks`.
Note: This field may return `null`, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.