com.tencentcloudapi.vpc.v20170312.models.NetworkInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.vpc.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class NetworkInterface extends AbstractModel {
/**
* The ID of the ENI instance, such as `eni-f1xjkw1b`.
*/
@SerializedName("NetworkInterfaceId")
@Expose
private String NetworkInterfaceId;
/**
* ENI Name
*/
@SerializedName("NetworkInterfaceName")
@Expose
private String NetworkInterfaceName;
/**
* ENI description.
*/
@SerializedName("NetworkInterfaceDescription")
@Expose
private String NetworkInterfaceDescription;
/**
* Subnet instance ID.
*/
@SerializedName("SubnetId")
@Expose
private String SubnetId;
/**
* VPC instance ID.
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* Bound security group.
*/
@SerializedName("GroupSet")
@Expose
private String [] GroupSet;
/**
* Whether it is the primary ENI.
*/
@SerializedName("Primary")
@Expose
private Boolean Primary;
/**
* MAC address
*/
@SerializedName("MacAddress")
@Expose
private String MacAddress;
/**
* ENI status:
`PENDING`: Creating
`AVAILABLE`: Available
`ATTACHING`: Binding
`DETACHING`: Unbinding
`DELETING`: Deleting
*/
@SerializedName("State")
@Expose
private String State;
/**
* Private IP information.
*/
@SerializedName("PrivateIpAddressSet")
@Expose
private PrivateIpAddressSpecification [] PrivateIpAddressSet;
/**
* Bound CVM object.
Note: This field may return null, indicating no valid value.
*/
@SerializedName("Attachment")
@Expose
private NetworkInterfaceAttachment Attachment;
/**
* Availability Zone.
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* Creation Time.
*/
@SerializedName("CreatedTime")
@Expose
private String CreatedTime;
/**
* The `IPv6` address list.
*/
@SerializedName("Ipv6AddressSet")
@Expose
private Ipv6Address [] Ipv6AddressSet;
/**
* Tag key-value pair.
*/
@SerializedName("TagSet")
@Expose
private Tag [] TagSet;
/**
* The ENI type. 0: ENI. 1: EVM ENI.
*/
@SerializedName("EniType")
@Expose
private Long EniType;
/**
* 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.
*/
@SerializedName("Business")
@Expose
private String Business;
/**
* ID of the CDC instance associated with the ENI
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("CdcId")
@Expose
private String CdcId;
/**
* 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.
*/
@SerializedName("AttachType")
@Expose
private Long AttachType;
/**
* The ID of resource to retain the ENI primary IP. It’s used as the request parameters for deleting an ENI.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("ResourceId")
@Expose
private String ResourceId;
/**
* Service level
`DEFAULT`: Default level
`PT`: Gold
`AU`: Silver
`AG`: Bronze
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("QosLevel")
@Expose
private String QosLevel;
/**
* Get The ID of the ENI instance, such as `eni-f1xjkw1b`.
* @return NetworkInterfaceId The ID of the ENI instance, such as `eni-f1xjkw1b`.
*/
public String getNetworkInterfaceId() {
return this.NetworkInterfaceId;
}
/**
* Set The ID of the ENI instance, such as `eni-f1xjkw1b`.
* @param NetworkInterfaceId The ID of the ENI instance, such as `eni-f1xjkw1b`.
*/
public void setNetworkInterfaceId(String NetworkInterfaceId) {
this.NetworkInterfaceId = NetworkInterfaceId;
}
/**
* Get ENI Name
* @return NetworkInterfaceName ENI Name
*/
public String getNetworkInterfaceName() {
return this.NetworkInterfaceName;
}
/**
* Set ENI Name
* @param NetworkInterfaceName ENI Name
*/
public void setNetworkInterfaceName(String NetworkInterfaceName) {
this.NetworkInterfaceName = NetworkInterfaceName;
}
/**
* Get ENI description.
* @return NetworkInterfaceDescription ENI description.
*/
public String getNetworkInterfaceDescription() {
return this.NetworkInterfaceDescription;
}
/**
* Set ENI description.
* @param NetworkInterfaceDescription ENI description.
*/
public void setNetworkInterfaceDescription(String NetworkInterfaceDescription) {
this.NetworkInterfaceDescription = NetworkInterfaceDescription;
}
/**
* Get Subnet instance ID.
* @return SubnetId Subnet instance ID.
*/
public String getSubnetId() {
return this.SubnetId;
}
/**
* Set Subnet instance ID.
* @param SubnetId Subnet instance ID.
*/
public void setSubnetId(String SubnetId) {
this.SubnetId = SubnetId;
}
/**
* Get VPC instance ID.
* @return VpcId VPC instance ID.
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set VPC instance ID.
* @param VpcId VPC instance ID.
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get Bound security group.
* @return GroupSet Bound security group.
*/
public String [] getGroupSet() {
return this.GroupSet;
}
/**
* Set Bound security group.
* @param GroupSet Bound security group.
*/
public void setGroupSet(String [] GroupSet) {
this.GroupSet = GroupSet;
}
/**
* Get Whether it is the primary ENI.
* @return Primary Whether it is the primary ENI.
*/
public Boolean getPrimary() {
return this.Primary;
}
/**
* Set Whether it is the primary ENI.
* @param Primary Whether it is the primary ENI.
*/
public void setPrimary(Boolean Primary) {
this.Primary = Primary;
}
/**
* Get MAC address
* @return MacAddress MAC address
*/
public String getMacAddress() {
return this.MacAddress;
}
/**
* Set MAC address
* @param MacAddress MAC address
*/
public void setMacAddress(String MacAddress) {
this.MacAddress = MacAddress;
}
/**
* Get ENI status:
`PENDING`: Creating
`AVAILABLE`: Available
`ATTACHING`: Binding
`DETACHING`: Unbinding
`DELETING`: Deleting
* @return State ENI status:
`PENDING`: Creating
`AVAILABLE`: Available
`ATTACHING`: Binding
`DETACHING`: Unbinding
`DELETING`: Deleting
*/
public String getState() {
return this.State;
}
/**
* Set ENI status:
`PENDING`: Creating
`AVAILABLE`: Available
`ATTACHING`: Binding
`DETACHING`: Unbinding
`DELETING`: Deleting
* @param State ENI status:
`PENDING`: Creating
`AVAILABLE`: Available
`ATTACHING`: Binding
`DETACHING`: Unbinding
`DELETING`: Deleting
*/
public void setState(String State) {
this.State = State;
}
/**
* Get Private IP information.
* @return PrivateIpAddressSet Private IP information.
*/
public PrivateIpAddressSpecification [] getPrivateIpAddressSet() {
return this.PrivateIpAddressSet;
}
/**
* Set Private IP information.
* @param PrivateIpAddressSet Private IP information.
*/
public void setPrivateIpAddressSet(PrivateIpAddressSpecification [] PrivateIpAddressSet) {
this.PrivateIpAddressSet = PrivateIpAddressSet;
}
/**
* Get Bound CVM object.
Note: This field may return null, indicating no valid value.
* @return Attachment Bound CVM object.
Note: This field may return null, indicating no valid value.
*/
public NetworkInterfaceAttachment getAttachment() {
return this.Attachment;
}
/**
* Set Bound CVM object.
Note: This field may return null, indicating no valid value.
* @param Attachment Bound CVM object.
Note: This field may return null, indicating no valid value.
*/
public void setAttachment(NetworkInterfaceAttachment Attachment) {
this.Attachment = Attachment;
}
/**
* Get Availability Zone.
* @return Zone Availability Zone.
*/
public String getZone() {
return this.Zone;
}
/**
* Set Availability Zone.
* @param Zone Availability Zone.
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get Creation Time.
* @return CreatedTime Creation Time.
*/
public String getCreatedTime() {
return this.CreatedTime;
}
/**
* Set Creation Time.
* @param CreatedTime Creation Time.
*/
public void setCreatedTime(String CreatedTime) {
this.CreatedTime = CreatedTime;
}
/**
* Get The `IPv6` address list.
* @return Ipv6AddressSet The `IPv6` address list.
*/
public Ipv6Address [] getIpv6AddressSet() {
return this.Ipv6AddressSet;
}
/**
* Set The `IPv6` address list.
* @param Ipv6AddressSet The `IPv6` address list.
*/
public void setIpv6AddressSet(Ipv6Address [] Ipv6AddressSet) {
this.Ipv6AddressSet = Ipv6AddressSet;
}
/**
* Get Tag key-value pair.
* @return TagSet Tag key-value pair.
*/
public Tag [] getTagSet() {
return this.TagSet;
}
/**
* Set Tag key-value pair.
* @param TagSet Tag key-value pair.
*/
public void setTagSet(Tag [] TagSet) {
this.TagSet = TagSet;
}
/**
* Get The ENI type. 0: ENI. 1: EVM ENI.
* @return EniType The ENI type. 0: ENI. 1: EVM ENI.
*/
public Long getEniType() {
return this.EniType;
}
/**
* Set The ENI type. 0: ENI. 1: EVM ENI.
* @param EniType The ENI type. 0: ENI. 1: EVM ENI.
*/
public void setEniType(Long EniType) {
this.EniType = EniType;
}
/**
* Get 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.
* @return 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 getBusiness() {
return this.Business;
}
/**
* Set 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.
* @param 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 void setBusiness(String Business) {
this.Business = Business;
}
/**
* Get ID of the CDC instance associated with the ENI
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return 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 String getCdcId() {
return this.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.
* @param 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 void setCdcId(String CdcId) {
this.CdcId = CdcId;
}
/**
* Get 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.
* @return 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.
*/
public Long getAttachType() {
return this.AttachType;
}
/**
* Set 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.
* @param 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.
*/
public void setAttachType(Long AttachType) {
this.AttachType = AttachType;
}
/**
* Get The ID of resource to retain the ENI primary IP. It’s used as the request parameters for deleting an ENI.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return ResourceId The ID of resource to retain the ENI primary IP. It’s used as the request parameters for deleting an ENI.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public String getResourceId() {
return this.ResourceId;
}
/**
* Set The ID of resource to retain the ENI primary IP. It’s used as the request parameters for deleting an ENI.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param ResourceId The ID of resource to retain the ENI primary IP. It’s used as the request parameters for deleting an ENI.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setResourceId(String ResourceId) {
this.ResourceId = ResourceId;
}
/**
* Get Service level
`DEFAULT`: Default level
`PT`: Gold
`AU`: Silver
`AG`: Bronze
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return QosLevel Service level
`DEFAULT`: Default level
`PT`: Gold
`AU`: Silver
`AG`: Bronze
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public String getQosLevel() {
return this.QosLevel;
}
/**
* Set Service level
`DEFAULT`: Default level
`PT`: Gold
`AU`: Silver
`AG`: Bronze
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param QosLevel Service level
`DEFAULT`: Default level
`PT`: Gold
`AU`: Silver
`AG`: Bronze
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setQosLevel(String QosLevel) {
this.QosLevel = QosLevel;
}
public NetworkInterface() {
}
/**
* 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.
*/
public NetworkInterface(NetworkInterface source) {
if (source.NetworkInterfaceId != null) {
this.NetworkInterfaceId = new String(source.NetworkInterfaceId);
}
if (source.NetworkInterfaceName != null) {
this.NetworkInterfaceName = new String(source.NetworkInterfaceName);
}
if (source.NetworkInterfaceDescription != null) {
this.NetworkInterfaceDescription = new String(source.NetworkInterfaceDescription);
}
if (source.SubnetId != null) {
this.SubnetId = new String(source.SubnetId);
}
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.GroupSet != null) {
this.GroupSet = new String[source.GroupSet.length];
for (int i = 0; i < source.GroupSet.length; i++) {
this.GroupSet[i] = new String(source.GroupSet[i]);
}
}
if (source.Primary != null) {
this.Primary = new Boolean(source.Primary);
}
if (source.MacAddress != null) {
this.MacAddress = new String(source.MacAddress);
}
if (source.State != null) {
this.State = new String(source.State);
}
if (source.PrivateIpAddressSet != null) {
this.PrivateIpAddressSet = new PrivateIpAddressSpecification[source.PrivateIpAddressSet.length];
for (int i = 0; i < source.PrivateIpAddressSet.length; i++) {
this.PrivateIpAddressSet[i] = new PrivateIpAddressSpecification(source.PrivateIpAddressSet[i]);
}
}
if (source.Attachment != null) {
this.Attachment = new NetworkInterfaceAttachment(source.Attachment);
}
if (source.Zone != null) {
this.Zone = new String(source.Zone);
}
if (source.CreatedTime != null) {
this.CreatedTime = new String(source.CreatedTime);
}
if (source.Ipv6AddressSet != null) {
this.Ipv6AddressSet = new Ipv6Address[source.Ipv6AddressSet.length];
for (int i = 0; i < source.Ipv6AddressSet.length; i++) {
this.Ipv6AddressSet[i] = new Ipv6Address(source.Ipv6AddressSet[i]);
}
}
if (source.TagSet != null) {
this.TagSet = new Tag[source.TagSet.length];
for (int i = 0; i < source.TagSet.length; i++) {
this.TagSet[i] = new Tag(source.TagSet[i]);
}
}
if (source.EniType != null) {
this.EniType = new Long(source.EniType);
}
if (source.Business != null) {
this.Business = new String(source.Business);
}
if (source.CdcId != null) {
this.CdcId = new String(source.CdcId);
}
if (source.AttachType != null) {
this.AttachType = new Long(source.AttachType);
}
if (source.ResourceId != null) {
this.ResourceId = new String(source.ResourceId);
}
if (source.QosLevel != null) {
this.QosLevel = new String(source.QosLevel);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "NetworkInterfaceId", this.NetworkInterfaceId);
this.setParamSimple(map, prefix + "NetworkInterfaceName", this.NetworkInterfaceName);
this.setParamSimple(map, prefix + "NetworkInterfaceDescription", this.NetworkInterfaceDescription);
this.setParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamArraySimple(map, prefix + "GroupSet.", this.GroupSet);
this.setParamSimple(map, prefix + "Primary", this.Primary);
this.setParamSimple(map, prefix + "MacAddress", this.MacAddress);
this.setParamSimple(map, prefix + "State", this.State);
this.setParamArrayObj(map, prefix + "PrivateIpAddressSet.", this.PrivateIpAddressSet);
this.setParamObj(map, prefix + "Attachment.", this.Attachment);
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamSimple(map, prefix + "CreatedTime", this.CreatedTime);
this.setParamArrayObj(map, prefix + "Ipv6AddressSet.", this.Ipv6AddressSet);
this.setParamArrayObj(map, prefix + "TagSet.", this.TagSet);
this.setParamSimple(map, prefix + "EniType", this.EniType);
this.setParamSimple(map, prefix + "Business", this.Business);
this.setParamSimple(map, prefix + "CdcId", this.CdcId);
this.setParamSimple(map, prefix + "AttachType", this.AttachType);
this.setParamSimple(map, prefix + "ResourceId", this.ResourceId);
this.setParamSimple(map, prefix + "QosLevel", this.QosLevel);
}
}