com.aliyun.sdk.service.ens20171110.models.DescribeNetworkInterfacesResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-ens20171110 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* DescribeNetworkInterfacesResponseBody
*/
public class DescribeNetworkInterfacesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceSets")
private NetworkInterfaceSets networkInterfaceSets;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeNetworkInterfacesResponseBody(Builder builder) {
this.networkInterfaceSets = builder.networkInterfaceSets;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNetworkInterfacesResponseBody create() {
return builder().build();
}
/**
* @return networkInterfaceSets
*/
public NetworkInterfaceSets getNetworkInterfaceSets() {
return this.networkInterfaceSets;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private NetworkInterfaceSets networkInterfaceSets;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
/**
* Details about the ENIs.
*/
public Builder networkInterfaceSets(NetworkInterfaceSets networkInterfaceSets) {
this.networkInterfaceSets = networkInterfaceSets;
return this;
}
/**
* The number of the page to return. Pages start from page 1. Default value: 1.
*
* example:
* 1
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries returned per page. Maximum value: 50. Default value: 10.
*
* example:
* 50
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* The request ID.
*
* example:
* 708AF9CE-FF92-5DF9-93F8-B7754AB1061A
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The total number of entries in the list.
*
* example:
* 49
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeNetworkInterfacesResponseBody build() {
return new DescribeNetworkInterfacesResponseBody(this);
}
}
/**
*
* {@link DescribeNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* DescribeNetworkInterfacesResponseBody
*/
public static class Ipv6Set extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6Address")
private String ipv6Address;
private Ipv6Set(Builder builder) {
this.ipv6Address = builder.ipv6Address;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6Set create() {
return builder().build();
}
/**
* @return ipv6Address
*/
public String getIpv6Address() {
return this.ipv6Address;
}
public static final class Builder {
private String ipv6Address;
/**
* The IPv6 address of the ENI.
*
* example:
* 2605:340:cdb1:XXXX:XXXX:XXXX:XXXX:e2d6
*/
public Builder ipv6Address(String ipv6Address) {
this.ipv6Address = ipv6Address;
return this;
}
public Ipv6Set build() {
return new Ipv6Set(this);
}
}
}
/**
*
* {@link DescribeNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* DescribeNetworkInterfacesResponseBody
*/
public static class Ipv6Sets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6Set")
private java.util.List ipv6Set;
private Ipv6Sets(Builder builder) {
this.ipv6Set = builder.ipv6Set;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6Sets create() {
return builder().build();
}
/**
* @return ipv6Set
*/
public java.util.List getIpv6Set() {
return this.ipv6Set;
}
public static final class Builder {
private java.util.List ipv6Set;
/**
* Ipv6Set.
*/
public Builder ipv6Set(java.util.List ipv6Set) {
this.ipv6Set = ipv6Set;
return this;
}
public Ipv6Sets build() {
return new Ipv6Sets(this);
}
}
}
/**
*
* {@link DescribeNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* DescribeNetworkInterfacesResponseBody
*/
public static class PrivateIpSet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Primary")
private Boolean primary;
@com.aliyun.core.annotation.NameInMap("PrivateIpAddress")
private String privateIpAddress;
private PrivateIpSet(Builder builder) {
this.primary = builder.primary;
this.privateIpAddress = builder.privateIpAddress;
}
public static Builder builder() {
return new Builder();
}
public static PrivateIpSet create() {
return builder().build();
}
/**
* @return primary
*/
public Boolean getPrimary() {
return this.primary;
}
/**
* @return privateIpAddress
*/
public String getPrivateIpAddress() {
return this.privateIpAddress;
}
public static final class Builder {
private Boolean primary;
private String privateIpAddress;
/**
* Specifies whether the private IP address is the primary private IP address. Valid values:
*
* - true
* - false
*
*
* example:
* true
*/
public Builder primary(Boolean primary) {
this.primary = primary;
return this;
}
/**
* The private IP address.
*
* example:
* 192.168.0.130
*/
public Builder privateIpAddress(String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
return this;
}
public PrivateIpSet build() {
return new PrivateIpSet(this);
}
}
}
/**
*
* {@link DescribeNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* DescribeNetworkInterfacesResponseBody
*/
public static class PrivateIpSets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PrivateIpSet")
private java.util.List privateIpSet;
private PrivateIpSets(Builder builder) {
this.privateIpSet = builder.privateIpSet;
}
public static Builder builder() {
return new Builder();
}
public static PrivateIpSets create() {
return builder().build();
}
/**
* @return privateIpSet
*/
public java.util.List getPrivateIpSet() {
return this.privateIpSet;
}
public static final class Builder {
private java.util.List privateIpSet;
/**
* PrivateIpSet.
*/
public Builder privateIpSet(java.util.List privateIpSet) {
this.privateIpSet = privateIpSet;
return this;
}
public PrivateIpSets build() {
return new PrivateIpSets(this);
}
}
}
/**
*
* {@link DescribeNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* DescribeNetworkInterfacesResponseBody
*/
public static class SecurityGroupIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecurityGroup")
private java.util.List securityGroup;
private SecurityGroupIds(Builder builder) {
this.securityGroup = builder.securityGroup;
}
public static Builder builder() {
return new Builder();
}
public static SecurityGroupIds create() {
return builder().build();
}
/**
* @return securityGroup
*/
public java.util.List getSecurityGroup() {
return this.securityGroup;
}
public static final class Builder {
private java.util.List securityGroup;
/**
* SecurityGroup.
*/
public Builder securityGroup(java.util.List securityGroup) {
this.securityGroup = securityGroup;
return this;
}
public SecurityGroupIds build() {
return new SecurityGroupIds(this);
}
}
}
/**
*
* {@link DescribeNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* DescribeNetworkInterfacesResponseBody
*/
public static class NetworkInterfaceSet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EnsRegionId")
private String ensRegionId;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("Ipv6Sets")
private Ipv6Sets ipv6Sets;
@com.aliyun.core.annotation.NameInMap("MacAddress")
private String macAddress;
@com.aliyun.core.annotation.NameInMap("NetworkId")
private String networkId;
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceId")
private String networkInterfaceId;
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceName")
private String networkInterfaceName;
@com.aliyun.core.annotation.NameInMap("PrimaryIp")
private String primaryIp;
@com.aliyun.core.annotation.NameInMap("PrimaryIpType")
private String primaryIpType;
@com.aliyun.core.annotation.NameInMap("PrivateIpSets")
private PrivateIpSets privateIpSets;
@com.aliyun.core.annotation.NameInMap("SecurityGroupIds")
private SecurityGroupIds securityGroupIds;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
private NetworkInterfaceSet(Builder builder) {
this.creationTime = builder.creationTime;
this.description = builder.description;
this.ensRegionId = builder.ensRegionId;
this.instanceId = builder.instanceId;
this.ipv6Sets = builder.ipv6Sets;
this.macAddress = builder.macAddress;
this.networkId = builder.networkId;
this.networkInterfaceId = builder.networkInterfaceId;
this.networkInterfaceName = builder.networkInterfaceName;
this.primaryIp = builder.primaryIp;
this.primaryIpType = builder.primaryIpType;
this.privateIpSets = builder.privateIpSets;
this.securityGroupIds = builder.securityGroupIds;
this.status = builder.status;
this.type = builder.type;
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static NetworkInterfaceSet create() {
return builder().build();
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return ensRegionId
*/
public String getEnsRegionId() {
return this.ensRegionId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return ipv6Sets
*/
public Ipv6Sets getIpv6Sets() {
return this.ipv6Sets;
}
/**
* @return macAddress
*/
public String getMacAddress() {
return this.macAddress;
}
/**
* @return networkId
*/
public String getNetworkId() {
return this.networkId;
}
/**
* @return networkInterfaceId
*/
public String getNetworkInterfaceId() {
return this.networkInterfaceId;
}
/**
* @return networkInterfaceName
*/
public String getNetworkInterfaceName() {
return this.networkInterfaceName;
}
/**
* @return primaryIp
*/
public String getPrimaryIp() {
return this.primaryIp;
}
/**
* @return primaryIpType
*/
public String getPrimaryIpType() {
return this.primaryIpType;
}
/**
* @return privateIpSets
*/
public PrivateIpSets getPrivateIpSets() {
return this.privateIpSets;
}
/**
* @return securityGroupIds
*/
public SecurityGroupIds getSecurityGroupIds() {
return this.securityGroupIds;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder {
private String creationTime;
private String description;
private String ensRegionId;
private String instanceId;
private Ipv6Sets ipv6Sets;
private String macAddress;
private String networkId;
private String networkInterfaceId;
private String networkInterfaceName;
private String primaryIp;
private String primaryIpType;
private PrivateIpSets privateIpSets;
private SecurityGroupIds securityGroupIds;
private String status;
private String type;
private String vSwitchId;
/**
* The time when the ENI was created. Specify the time in the ISO 8601 standard in the yyyy-MM-ddThh:mmZ format. The time is displayed in UTC.
*
* example:
* 2022-02-22T03:53:25Z
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* The description of ENI.
*
* example:
* test-description
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The ID of the edge node.
*
* example:
* id-jakarta-1
*/
public Builder ensRegionId(String ensRegionId) {
this.ensRegionId = ensRegionId;
return this;
}
/**
* The ID of the instance to which the ENI is bound.
*
* example:
* i-5siavnr3
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The IPv6 addresses of the ENIs.
*/
public Builder ipv6Sets(Ipv6Sets ipv6Sets) {
this.ipv6Sets = ipv6Sets;
return this;
}
/**
* The MAC address of the ENI.
*
* example:
* 00:16:3e:08:60:0a
*/
public Builder macAddress(String macAddress) {
this.macAddress = macAddress;
return this;
}
/**
* The ID of the network.
*
* example:
* n-5w0qd03adw****
*/
public Builder networkId(String networkId) {
this.networkId = networkId;
return this;
}
/**
* The ID of the ENI.
*
* example:
* eni-uf686a5
*/
public Builder networkInterfaceId(String networkInterfaceId) {
this.networkInterfaceId = networkInterfaceId;
return this;
}
/**
* The ENI name.
*
* example:
* primaryTest
*/
public Builder networkInterfaceName(String networkInterfaceName) {
this.networkInterfaceName = networkInterfaceName;
return this;
}
/**
* The private IP address of the server.
*
* example:
* 12.23.3.4
*/
public Builder primaryIp(String primaryIp) {
this.primaryIp = primaryIp;
return this;
}
/**
* The primary private IP address. Valid values:
*
* - Public: public IP address.
* - Private: internal IP address.
*
*
* example:
* private
*/
public Builder primaryIpType(String primaryIpType) {
this.primaryIpType = primaryIpType;
return this;
}
/**
* Details about the private IP address.
*/
public Builder privateIpSets(PrivateIpSets privateIpSets) {
this.privateIpSets = privateIpSets;
return this;
}
/**
* The ID of the security group.
*/
public Builder securityGroupIds(SecurityGroupIds securityGroupIds) {
this.securityGroupIds = securityGroupIds;
return this;
}
/**
* The status of the ENI. Valid values:
*
* - Available: The ENI is available.
* - Attaching: The ENI is being attached to an instance.
* - InUse: The ENI is attached to an instance.
* - Detaching: The ENI is being detached from an instance.
* - Deleting: The ENI is being deleted.
*
*
* example:
* In_use
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* The type of the ENI. Valid values:
*
* - Primary
* - Secondary
*
*
* example:
* Primary
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* The ID of the vSwitch.
*
* example:
* vsw-5rqswx1trlsj9
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public NetworkInterfaceSet build() {
return new NetworkInterfaceSet(this);
}
}
}
/**
*
* {@link DescribeNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* DescribeNetworkInterfacesResponseBody
*/
public static class NetworkInterfaceSets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceSet")
private java.util.List networkInterfaceSet;
private NetworkInterfaceSets(Builder builder) {
this.networkInterfaceSet = builder.networkInterfaceSet;
}
public static Builder builder() {
return new Builder();
}
public static NetworkInterfaceSets create() {
return builder().build();
}
/**
* @return networkInterfaceSet
*/
public java.util.List getNetworkInterfaceSet() {
return this.networkInterfaceSet;
}
public static final class Builder {
private java.util.List networkInterfaceSet;
/**
* NetworkInterfaceSet.
*/
public Builder networkInterfaceSet(java.util.List networkInterfaceSet) {
this.networkInterfaceSet = networkInterfaceSet;
return this;
}
public NetworkInterfaceSets build() {
return new NetworkInterfaceSets(this);
}
}
}
}