com.aliyun.sdk.service.ens20171110.models.DescribeNetworkInterfacesRequest 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 DescribeNetworkInterfacesRequest} extends {@link RequestModel}
*
* DescribeNetworkInterfacesRequest
*/
public class DescribeNetworkInterfacesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnsRegionId")
private String ensRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6Address")
private java.util.List ipv6Address;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkId")
private String networkId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceId")
private String networkInterfaceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceName")
@com.aliyun.core.annotation.Validation(maxLength = 128)
private String networkInterfaceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100)
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PrimaryIpAddress")
private String primaryIpAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
private DescribeNetworkInterfacesRequest(Builder builder) {
super(builder);
this.ensRegionId = builder.ensRegionId;
this.instanceId = builder.instanceId;
this.ipv6Address = builder.ipv6Address;
this.networkId = builder.networkId;
this.networkInterfaceId = builder.networkInterfaceId;
this.networkInterfaceName = builder.networkInterfaceName;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.primaryIpAddress = builder.primaryIpAddress;
this.securityGroupId = builder.securityGroupId;
this.status = builder.status;
this.type = builder.type;
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNetworkInterfacesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ensRegionId
*/
public String getEnsRegionId() {
return this.ensRegionId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return ipv6Address
*/
public java.util.List getIpv6Address() {
return this.ipv6Address;
}
/**
* @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 pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return primaryIpAddress
*/
public String getPrimaryIpAddress() {
return this.primaryIpAddress;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @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 extends Request.Builder {
private String ensRegionId;
private String instanceId;
private java.util.List ipv6Address;
private String networkId;
private String networkInterfaceId;
private String networkInterfaceName;
private String pageNumber;
private String pageSize;
private String primaryIpAddress;
private String securityGroupId;
private String status;
private String type;
private String vSwitchId;
private Builder() {
super();
}
private Builder(DescribeNetworkInterfacesRequest request) {
super(request);
this.ensRegionId = request.ensRegionId;
this.instanceId = request.instanceId;
this.ipv6Address = request.ipv6Address;
this.networkId = request.networkId;
this.networkInterfaceId = request.networkInterfaceId;
this.networkInterfaceName = request.networkInterfaceName;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.primaryIpAddress = request.primaryIpAddress;
this.securityGroupId = request.securityGroupId;
this.status = request.status;
this.type = request.type;
this.vSwitchId = request.vSwitchId;
}
/**
* The region ID of the instance.
*
* example:
* cn-tianjin-cmcc
*/
public Builder ensRegionId(String ensRegionId) {
this.putQueryParameter("EnsRegionId", ensRegionId);
this.ensRegionId = ensRegionId;
return this;
}
/**
* The ID of the instance.
*
* example:
* i-5t7z99n32gplriv
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* IPv6 addresses N of the ENI. You can specify multiple IPv6 addresses. Valid values of N: 1 to 100.
*/
public Builder ipv6Address(java.util.List ipv6Address) {
String ipv6AddressShrink = shrink(ipv6Address, "Ipv6Address", "simple");
this.putQueryParameter("Ipv6Address", ipv6AddressShrink);
this.ipv6Address = ipv6Address;
return this;
}
/**
* The ID of the network.
*
* example:
* n-2zeuphj08tt7q3brd****
*/
public Builder networkId(String networkId) {
this.putQueryParameter("NetworkId", networkId);
this.networkId = networkId;
return this;
}
/**
* The ID of the ENI.
*
* example:
* eni-58z57orgmt6d1****
*/
public Builder networkInterfaceId(String networkInterfaceId) {
this.putQueryParameter("NetworkInterfaceId", networkInterfaceId);
this.networkInterfaceId = networkInterfaceId;
return this;
}
/**
* The name of the ENI.
*
* example:
* test-01
*/
public Builder networkInterfaceName(String networkInterfaceName) {
this.putQueryParameter("NetworkInterfaceName", networkInterfaceName);
this.networkInterfaceName = networkInterfaceName;
return this;
}
/**
* The page number of the returned page. Pages start from page 1. Default value: 1.
*
* example:
* 1
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries to return on each page. Maximum value: 100. Default value: 50.
*
* example:
* 50
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* The primary IP address of the ENI.
*
* example:
*
*/
public Builder primaryIpAddress(String primaryIpAddress) {
this.putQueryParameter("PrimaryIpAddress", primaryIpAddress);
this.primaryIpAddress = primaryIpAddress;
return this;
}
/**
* The ID of the security group to which the secondary ENI belongs. To query the details of secondary ENIs based on the ID of a security group, specify this parameter.
*
* example:
* sg-5p1fg655nh68xyz9i***
*/
public Builder securityGroupId(String securityGroupId) {
this.putQueryParameter("SecurityGroupId", securityGroupId);
this.securityGroupId = securityGroupId;
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.
*
* This parameter is empty by default, which indicates that ENIs in all states are queried.
*
* example:
* Available
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* The type of the ENI. Valid values:
*
* - Primary: primary ENI.
* - Secondary: secondary ENI.
*
* This parameter is empty by default, which indicates that both primary and secondary ENIs are queried.
*
* example:
* Secondary
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
/**
* The ID of the vSwitch.
*
* example:
* vsw-12345
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
@Override
public DescribeNetworkInterfacesRequest build() {
return new DescribeNetworkInterfacesRequest(this);
}
}
}