index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipAddressesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipAddressesRequest} extends {@link RequestModel}
*
* <p>DescribeEipAddressesRequest</p>
*/
public class DescribeEipAddressesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Filter")
private java.util.List<Filter> filter;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllocationId")
private String allocationId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssociatedInstanceId")
private String associatedInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssociatedInstanceType")
private String associatedInstanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ChargeType")
private String chargeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EipAddress")
private String eipAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EipName")
private String eipName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ISP")
private String ISP;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IncludeReservationData")
private Boolean includeReservationData;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LockReason")
private String lockReason;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PublicIpAddressPoolId")
private String publicIpAddressPoolId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityProtectionEnabled")
private Boolean securityProtectionEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SegmentInstanceId")
private String segmentInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceManaged")
private Boolean serviceManaged;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private DescribeEipAddressesRequest(Builder builder) {
super(builder);
this.filter = builder.filter;
this.allocationId = builder.allocationId;
this.associatedInstanceId = builder.associatedInstanceId;
this.associatedInstanceType = builder.associatedInstanceType;
this.chargeType = builder.chargeType;
this.dryRun = builder.dryRun;
this.eipAddress = builder.eipAddress;
this.eipName = builder.eipName;
this.ISP = builder.ISP;
this.includeReservationData = builder.includeReservationData;
this.lockReason = builder.lockReason;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.publicIpAddressPoolId = builder.publicIpAddressPoolId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityProtectionEnabled = builder.securityProtectionEnabled;
this.segmentInstanceId = builder.segmentInstanceId;
this.serviceManaged = builder.serviceManaged;
this.status = builder.status;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEipAddressesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return filter
*/
public java.util.List<Filter> getFilter() {
return this.filter;
}
/**
* @return allocationId
*/
public String getAllocationId() {
return this.allocationId;
}
/**
* @return associatedInstanceId
*/
public String getAssociatedInstanceId() {
return this.associatedInstanceId;
}
/**
* @return associatedInstanceType
*/
public String getAssociatedInstanceType() {
return this.associatedInstanceType;
}
/**
* @return chargeType
*/
public String getChargeType() {
return this.chargeType;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return eipAddress
*/
public String getEipAddress() {
return this.eipAddress;
}
/**
* @return eipName
*/
public String getEipName() {
return this.eipName;
}
/**
* @return ISP
*/
public String getISP() {
return this.ISP;
}
/**
* @return includeReservationData
*/
public Boolean getIncludeReservationData() {
return this.includeReservationData;
}
/**
* @return lockReason
*/
public String getLockReason() {
return this.lockReason;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return publicIpAddressPoolId
*/
public String getPublicIpAddressPoolId() {
return this.publicIpAddressPoolId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityProtectionEnabled
*/
public Boolean getSecurityProtectionEnabled() {
return this.securityProtectionEnabled;
}
/**
* @return segmentInstanceId
*/
public String getSegmentInstanceId() {
return this.segmentInstanceId;
}
/**
* @return serviceManaged
*/
public Boolean getServiceManaged() {
return this.serviceManaged;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<DescribeEipAddressesRequest, Builder> {
private java.util.List<Filter> filter;
private String allocationId;
private String associatedInstanceId;
private String associatedInstanceType;
private String chargeType;
private Boolean dryRun;
private String eipAddress;
private String eipName;
private String ISP;
private Boolean includeReservationData;
private String lockReason;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String publicIpAddressPoolId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Boolean securityProtectionEnabled;
private String segmentInstanceId;
private Boolean serviceManaged;
private String status;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(DescribeEipAddressesRequest request) {
super(request);
this.filter = request.filter;
this.allocationId = request.allocationId;
this.associatedInstanceId = request.associatedInstanceId;
this.associatedInstanceType = request.associatedInstanceType;
this.chargeType = request.chargeType;
this.dryRun = request.dryRun;
this.eipAddress = request.eipAddress;
this.eipName = request.eipName;
this.ISP = request.ISP;
this.includeReservationData = request.includeReservationData;
this.lockReason = request.lockReason;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.publicIpAddressPoolId = request.publicIpAddressPoolId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityProtectionEnabled = request.securityProtectionEnabled;
this.segmentInstanceId = request.segmentInstanceId;
this.serviceManaged = request.serviceManaged;
this.status = request.status;
this.tag = request.tag;
}
/**
* Filter.
*/
public Builder filter(java.util.List<Filter> filter) {
this.putQueryParameter("Filter", filter);
this.filter = filter;
return this;
}
/**
* <p>The ID of the EIP that you want to query.</p>
* <p>You can specify up to 50 EIP IDs. Separate multiple IDs with commas (,).</p>
* <blockquote>
* <p> If both <strong>EipAddress</strong> and <strong>AllocationId</strong> are specified, you can specify up to 50 EIP IDs for <strong>AllocationId</strong>, and specify up to 50 EIPs for <strong>EipAddress</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>eip-2zeerraiwb7ujxscd****</p>
*/
public Builder allocationId(String allocationId) {
this.putQueryParameter("AllocationId", allocationId);
this.allocationId = allocationId;
return this;
}
/**
* <p>The ID of the instance associated with the EIP.</p>
*
* <strong>example:</strong>
* <p>i-2zebb08phyccdvf****</p>
*/
public Builder associatedInstanceId(String associatedInstanceId) {
this.putQueryParameter("AssociatedInstanceId", associatedInstanceId);
this.associatedInstanceId = associatedInstanceId;
return this;
}
/**
* <p>The type of the cloud resource with which you want to associate the EIP. Valid values:</p>
* <ul>
* <li><strong>EcsInstance</strong> (default): an Elastic Compute Service (ECS) instance in a virtual private cloud (VPC).</li>
* <li><strong>SlbInstance</strong>: a CLB instance in a VPC.</li>
* <li><strong>Nat</strong>: a NAT gateway.</li>
* <li><strong>HaVip</strong>: an HAVIP.</li>
* <li><strong>NetworkInterface</strong>: a secondary ENI.</li>
* <li><strong>IpAddress</strong>: an IP address.</li>
* </ul>
* <blockquote>
* <p> Each ECS instance, CLB instance, HAVIP, and IP address can be associated with only one EIP. A NAT gateway can be associated with multiple EIPs. The number of EIPs that you can associate with a secondary ENI depends on the association mode. For more information, see <a href="https://help.aliyun.com/document_detail/72125.html">Associate EIPs with and disassociate EIPs from cloud resources</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>EcsInstance</p>
*/
public Builder associatedInstanceType(String associatedInstanceType) {
this.putQueryParameter("AssociatedInstanceType", associatedInstanceType);
this.associatedInstanceType = associatedInstanceType;
return this;
}
/**
* <p>The billing method of the EIP. Valid values:</p>
* <ul>
* <li><strong>PostPaid</strong>: pay-as-you-go.</li>
* <li><strong>PrePaid</strong>: subscription.</li>
* </ul>
*
* <strong>example:</strong>
* <p>PostPaid</p>
*/
public Builder chargeType(String chargeType) {
this.putQueryParameter("ChargeType", chargeType);
this.chargeType = chargeType;
return this;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The EIP that you want to query.</p>
* <p>You can specify up to 50 EIPs. Separate multiple EIPs with commas (,).</p>
* <blockquote>
* <p> If both <strong>EipAddress</strong> and <strong>AllocationId</strong> are specified, you can specify up to 50 EIPs for <strong>EipAddress</strong>, and specify up to 50 EIP IDs for <strong>AllocationId</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>47.75.XX.XX</p>
*/
public Builder eipAddress(String eipAddress) {
this.putQueryParameter("EipAddress", eipAddress);
this.eipAddress = eipAddress;
return this;
}
/**
* <p>The name of the EIP.</p>
* <p>The name must be 1 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.</p>
*
* <strong>example:</strong>
* <p>EIP-01</p>
*/
public Builder eipName(String eipName) {
this.putQueryParameter("EipName", eipName);
this.eipName = eipName;
return this;
}
/**
* <p>The line type. Valid values:</p>
* <ul>
* <li><strong>BGP</strong> (default): Border Gateway Protocol (BGP) (Multi-ISP) lines. All regions support BGP (Multi-ISP) EIPs.</li>
* <li><strong>BGP_PRO</strong>: BGP (Multi-ISP) Pro lines. Only the following regions support BGP (Multi-ISP) Pro lines: China (Hong Kong), Singapore, Japan (Tokyo), Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok).</li>
* </ul>
* <p>For more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see the <a href="https://help.aliyun.com/document_detail/32321.html">Line types</a> section of the "What is EIP?" topic.</p>
* <p>If you are allowed to use single-ISP bandwidth, you can also use one of the following values:</p>
* <ul>
* <li><strong>ChinaTelecom</strong></li>
* <li><strong>ChinaUnicom</strong></li>
* <li><strong>ChinaMobile</strong></li>
* <li><strong>ChinaTelecom_L2</strong></li>
* <li><strong>ChinaUnicom_L2</strong></li>
* <li><strong>ChinaMobile_L2</strong></li>
* </ul>
* <p>If your services are deployed in China East 1 Finance, this parameter is required and you must set the value to <strong>BGP_FinanceCloud</strong>.</p>
*
* <strong>example:</strong>
* <p>BGP</p>
*/
public Builder ISP(String ISP) {
this.putQueryParameter("ISP", ISP);
this.ISP = ISP;
return this;
}
/**
* <p>Specifies whether to return information about pending orders. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default)</li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder includeReservationData(Boolean includeReservationData) {
this.putQueryParameter("IncludeReservationData", includeReservationData);
this.includeReservationData = includeReservationData;
return this;
}
/**
* <p>The reason why the EIP is locked. Valid values:</p>
* <ul>
* <li><strong>financial</strong>: The EIP is locked due to overdue payments.</li>
* <li><strong>security</strong>: The EIP is locked for security reasons.</li>
* </ul>
*
* <strong>example:</strong>
* <p>financial</p>
*/
public Builder lockReason(String lockReason) {
this.putQueryParameter("LockReason", lockReason);
this.lockReason = lockReason;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid values: 1 to <strong>100</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The IP address pool to which the EIP that you want to query belongs.</p>
*
* <strong>example:</strong>
* <p>pippool-2vc0kxcedhquybdsz****</p>
*/
public Builder publicIpAddressPoolId(String publicIpAddressPoolId) {
this.putQueryParameter("PublicIpAddressPoolId", publicIpAddressPoolId);
this.publicIpAddressPoolId = publicIpAddressPoolId;
return this;
}
/**
* <p>The region ID of the EIP.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the region ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the EIP belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4pcdvf****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>Specifies whether to activate Anti-DDoS Pro/Premium. Valid values:</p>
* <ul>
* <li><strong>false</strong></li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder securityProtectionEnabled(Boolean securityProtectionEnabled) {
this.putQueryParameter("SecurityProtectionEnabled", securityProtectionEnabled);
this.securityProtectionEnabled = securityProtectionEnabled;
return this;
}
/**
* <p>The ID of the contiguous EIP group.</p>
*
* <strong>example:</strong>
* <p>eipsg-t4nr90yik5oy38xdy****</p>
*/
public Builder segmentInstanceId(String segmentInstanceId) {
this.putQueryParameter("SegmentInstanceId", segmentInstanceId);
this.segmentInstanceId = segmentInstanceId;
return this;
}
/**
* <p>Indicates whether the instance is managed. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no.</li>
* </ul>
* <p>If you do not specify this parameter, all instances are queried.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder serviceManaged(Boolean serviceManaged) {
this.putQueryParameter("ServiceManaged", serviceManaged);
this.serviceManaged = serviceManaged;
return this;
}
/**
* <p>The state of the EIP. Valid values:</p>
* <ul>
* <li><strong>Associating</strong></li>
* <li><strong>Unassociating</strong></li>
* <li><strong>InUse</strong></li>
* <li><strong>Available</strong></li>
* <li><strong>Releasing</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* <p>The tags used to filter EIPs.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeEipAddressesRequest build() {
return new DescribeEipAddressesRequest(this);
}
}
/**
*
* {@link DescribeEipAddressesRequest} extends {@link TeaModel}
*
* <p>DescribeEipAddressesRequest</p>
*/
public static class Filter extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Filter(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Filter create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Filter model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The filter key used to query resources. Set the value to <strong>CreationStartTime</strong>, which specifies the time when the system started to create the resource.</p>
*
* <strong>example:</strong>
* <p>CreationStartTime</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The filter value used to query resources. Specify the time in the ISO 8601 standard in the <code>YYYY-MM-DDThh:mmZ</code> format. The time must be in Coordinated Universal Time (UTC).</p>
*
* <strong>example:</strong>
* <p>2023-01-01T01:00Z</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Filter build() {
return new Filter(this);
}
}
}
/**
*
* {@link DescribeEipAddressesRequest} extends {@link TeaModel}
*
* <p>DescribeEipAddressesRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of the tag. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>acs:</code> or <code>aliyun</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of the tag. You can specify up to 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>acs:</code> or <code>aliyun</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipAddressesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipAddressesResponse} extends {@link TeaModel}
*
* <p>DescribeEipAddressesResponse</p>
*/
public class DescribeEipAddressesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeEipAddressesResponseBody body;
private DescribeEipAddressesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeEipAddressesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeEipAddressesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeEipAddressesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeEipAddressesResponseBody body);
@Override
DescribeEipAddressesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeEipAddressesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeEipAddressesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeEipAddressesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeEipAddressesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeEipAddressesResponse build() {
return new DescribeEipAddressesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipAddressesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipAddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipAddressesResponseBody</p>
*/
public class DescribeEipAddressesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EipAddresses")
private EipAddresses eipAddresses;
@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 DescribeEipAddressesResponseBody(Builder builder) {
this.eipAddresses = builder.eipAddresses;
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 DescribeEipAddressesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return eipAddresses
*/
public EipAddresses getEipAddresses() {
return this.eipAddresses;
}
/**
* @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 EipAddresses eipAddresses;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeEipAddressesResponseBody model) {
this.eipAddresses = model.eipAddresses;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>Details of the EIPs.</p>
*/
public Builder eipAddresses(EipAddresses eipAddresses) {
this.eipAddresses = eipAddresses;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>4EC47282-1B74-4534-BD0E-403F3EE64CAF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeEipAddressesResponseBody build() {
return new DescribeEipAddressesResponseBody(this);
}
}
/**
*
* {@link DescribeEipAddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipAddressesResponseBody</p>
*/
public static class LockReason extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LockReason")
private String lockReason;
private LockReason(Builder builder) {
this.lockReason = builder.lockReason;
}
public static Builder builder() {
return new Builder();
}
public static LockReason create() {
return builder().build();
}
/**
* @return lockReason
*/
public String getLockReason() {
return this.lockReason;
}
public static final class Builder {
private String lockReason;
private Builder() {
}
private Builder(LockReason model) {
this.lockReason = model.lockReason;
}
/**
* <p>The reason why the EIP is locked. Valid values:</p>
* <ul>
* <li><strong>financial</strong>: The EIP is locked due to overdue payments.</li>
* <li><strong>security</strong>: The instance is locked for security purposes.</li>
* <li><strong>sharedPool</strong>: The shared IP address pool is locked due to overdue payments.</li>
* </ul>
*
* <strong>example:</strong>
* <p>financial</p>
*/
public Builder lockReason(String lockReason) {
this.lockReason = lockReason;
return this;
}
public LockReason build() {
return new LockReason(this);
}
}
}
/**
*
* {@link DescribeEipAddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipAddressesResponseBody</p>
*/
public static class OperationLocks extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LockReason")
private java.util.List<LockReason> lockReason;
private OperationLocks(Builder builder) {
this.lockReason = builder.lockReason;
}
public static Builder builder() {
return new Builder();
}
public static OperationLocks create() {
return builder().build();
}
/**
* @return lockReason
*/
public java.util.List<LockReason> getLockReason() {
return this.lockReason;
}
public static final class Builder {
private java.util.List<LockReason> lockReason;
private Builder() {
}
private Builder(OperationLocks model) {
this.lockReason = model.lockReason;
}
/**
* <p>The reason why the EIP is locked. Valid values:</p>
* <ul>
* <li><strong>financial</strong>: The EIP is locked due to overdue payments.</li>
* <li><strong>security</strong>: The instance is locked for security purposes.</li>
* <li><strong>sharedPool</strong>: The shared IP address pool is locked due to overdue payments.</li>
* </ul>
*
* <strong>example:</strong>
* <p>financial</p>
*/
public Builder lockReason(java.util.List<LockReason> lockReason) {
this.lockReason = lockReason;
return this;
}
public OperationLocks build() {
return new OperationLocks(this);
}
}
}
/**
*
* {@link DescribeEipAddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipAddressesResponseBody</p>
*/
public static class SecurityProtectionTypes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecurityProtectionType")
private java.util.List<String> securityProtectionType;
private SecurityProtectionTypes(Builder builder) {
this.securityProtectionType = builder.securityProtectionType;
}
public static Builder builder() {
return new Builder();
}
public static SecurityProtectionTypes create() {
return builder().build();
}
/**
* @return securityProtectionType
*/
public java.util.List<String> getSecurityProtectionType() {
return this.securityProtectionType;
}
public static final class Builder {
private java.util.List<String> securityProtectionType;
private Builder() {
}
private Builder(SecurityProtectionTypes model) {
this.securityProtectionType = model.securityProtectionType;
}
/**
* SecurityProtectionType.
*/
public Builder securityProtectionType(java.util.List<String> securityProtectionType) {
this.securityProtectionType = securityProtectionType;
return this;
}
public SecurityProtectionTypes build() {
return new SecurityProtectionTypes(this);
}
}
}
/**
*
* {@link DescribeEipAddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipAddressesResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key of the EIP.</p>
*
* <strong>example:</strong>
* <p>KeyTest</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value of the EIP.</p>
*
* <strong>example:</strong>
* <p>ValueTest</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeEipAddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipAddressesResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeEipAddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipAddressesResponseBody</p>
*/
public static class EipAddress extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllocationId")
private String allocationId;
@com.aliyun.core.annotation.NameInMap("AllocationTime")
private String allocationTime;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private String bandwidth;
@com.aliyun.core.annotation.NameInMap("BandwidthPackageBandwidth")
private String bandwidthPackageBandwidth;
@com.aliyun.core.annotation.NameInMap("BandwidthPackageId")
private String bandwidthPackageId;
@com.aliyun.core.annotation.NameInMap("BandwidthPackageType")
private String bandwidthPackageType;
@com.aliyun.core.annotation.NameInMap("BizType")
private String bizType;
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.NameInMap("ChargeType")
private String chargeType;
@com.aliyun.core.annotation.NameInMap("DeletionProtection")
private Boolean deletionProtection;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EipBandwidth")
private String eipBandwidth;
@com.aliyun.core.annotation.NameInMap("ExpiredTime")
private String expiredTime;
@com.aliyun.core.annotation.NameInMap("HDMonitorStatus")
private String HDMonitorStatus;
@com.aliyun.core.annotation.NameInMap("HasReservationData")
private String hasReservationData;
@com.aliyun.core.annotation.NameInMap("ISP")
private String ISP;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceRegionId")
private String instanceRegionId;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
@com.aliyun.core.annotation.NameInMap("Mode")
private String mode;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Netmode")
private String netmode;
@com.aliyun.core.annotation.NameInMap("OperationLocks")
private OperationLocks operationLocks;
@com.aliyun.core.annotation.NameInMap("PrivateIpAddress")
private String privateIpAddress;
@com.aliyun.core.annotation.NameInMap("PublicIpAddressPoolId")
private String publicIpAddressPoolId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ReservationActiveTime")
private String reservationActiveTime;
@com.aliyun.core.annotation.NameInMap("ReservationBandwidth")
private String reservationBandwidth;
@com.aliyun.core.annotation.NameInMap("ReservationInternetChargeType")
private String reservationInternetChargeType;
@com.aliyun.core.annotation.NameInMap("ReservationOrderType")
private String reservationOrderType;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("SecondLimited")
private Boolean secondLimited;
@com.aliyun.core.annotation.NameInMap("SecurityProtectionTypes")
private SecurityProtectionTypes securityProtectionTypes;
@com.aliyun.core.annotation.NameInMap("SegmentInstanceId")
private String segmentInstanceId;
@com.aliyun.core.annotation.NameInMap("ServiceID")
private Long serviceID;
@com.aliyun.core.annotation.NameInMap("ServiceManaged")
private Integer serviceManaged;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.NameInMap("Zone")
private String zone;
private EipAddress(Builder builder) {
this.allocationId = builder.allocationId;
this.allocationTime = builder.allocationTime;
this.bandwidth = builder.bandwidth;
this.bandwidthPackageBandwidth = builder.bandwidthPackageBandwidth;
this.bandwidthPackageId = builder.bandwidthPackageId;
this.bandwidthPackageType = builder.bandwidthPackageType;
this.bizType = builder.bizType;
this.businessStatus = builder.businessStatus;
this.chargeType = builder.chargeType;
this.deletionProtection = builder.deletionProtection;
this.description = builder.description;
this.eipBandwidth = builder.eipBandwidth;
this.expiredTime = builder.expiredTime;
this.HDMonitorStatus = builder.HDMonitorStatus;
this.hasReservationData = builder.hasReservationData;
this.ISP = builder.ISP;
this.instanceId = builder.instanceId;
this.instanceRegionId = builder.instanceRegionId;
this.instanceType = builder.instanceType;
this.internetChargeType = builder.internetChargeType;
this.ipAddress = builder.ipAddress;
this.mode = builder.mode;
this.name = builder.name;
this.netmode = builder.netmode;
this.operationLocks = builder.operationLocks;
this.privateIpAddress = builder.privateIpAddress;
this.publicIpAddressPoolId = builder.publicIpAddressPoolId;
this.regionId = builder.regionId;
this.reservationActiveTime = builder.reservationActiveTime;
this.reservationBandwidth = builder.reservationBandwidth;
this.reservationInternetChargeType = builder.reservationInternetChargeType;
this.reservationOrderType = builder.reservationOrderType;
this.resourceGroupId = builder.resourceGroupId;
this.secondLimited = builder.secondLimited;
this.securityProtectionTypes = builder.securityProtectionTypes;
this.segmentInstanceId = builder.segmentInstanceId;
this.serviceID = builder.serviceID;
this.serviceManaged = builder.serviceManaged;
this.status = builder.status;
this.tags = builder.tags;
this.vpcId = builder.vpcId;
this.zone = builder.zone;
}
public static Builder builder() {
return new Builder();
}
public static EipAddress create() {
return builder().build();
}
/**
* @return allocationId
*/
public String getAllocationId() {
return this.allocationId;
}
/**
* @return allocationTime
*/
public String getAllocationTime() {
return this.allocationTime;
}
/**
* @return bandwidth
*/
public String getBandwidth() {
return this.bandwidth;
}
/**
* @return bandwidthPackageBandwidth
*/
public String getBandwidthPackageBandwidth() {
return this.bandwidthPackageBandwidth;
}
/**
* @return bandwidthPackageId
*/
public String getBandwidthPackageId() {
return this.bandwidthPackageId;
}
/**
* @return bandwidthPackageType
*/
public String getBandwidthPackageType() {
return this.bandwidthPackageType;
}
/**
* @return bizType
*/
public String getBizType() {
return this.bizType;
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return chargeType
*/
public String getChargeType() {
return this.chargeType;
}
/**
* @return deletionProtection
*/
public Boolean getDeletionProtection() {
return this.deletionProtection;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return eipBandwidth
*/
public String getEipBandwidth() {
return this.eipBandwidth;
}
/**
* @return expiredTime
*/
public String getExpiredTime() {
return this.expiredTime;
}
/**
* @return HDMonitorStatus
*/
public String getHDMonitorStatus() {
return this.HDMonitorStatus;
}
/**
* @return hasReservationData
*/
public String getHasReservationData() {
return this.hasReservationData;
}
/**
* @return ISP
*/
public String getISP() {
return this.ISP;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceRegionId
*/
public String getInstanceRegionId() {
return this.instanceRegionId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return mode
*/
public String getMode() {
return this.mode;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return netmode
*/
public String getNetmode() {
return this.netmode;
}
/**
* @return operationLocks
*/
public OperationLocks getOperationLocks() {
return this.operationLocks;
}
/**
* @return privateIpAddress
*/
public String getPrivateIpAddress() {
return this.privateIpAddress;
}
/**
* @return publicIpAddressPoolId
*/
public String getPublicIpAddressPoolId() {
return this.publicIpAddressPoolId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return reservationActiveTime
*/
public String getReservationActiveTime() {
return this.reservationActiveTime;
}
/**
* @return reservationBandwidth
*/
public String getReservationBandwidth() {
return this.reservationBandwidth;
}
/**
* @return reservationInternetChargeType
*/
public String getReservationInternetChargeType() {
return this.reservationInternetChargeType;
}
/**
* @return reservationOrderType
*/
public String getReservationOrderType() {
return this.reservationOrderType;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return secondLimited
*/
public Boolean getSecondLimited() {
return this.secondLimited;
}
/**
* @return securityProtectionTypes
*/
public SecurityProtectionTypes getSecurityProtectionTypes() {
return this.securityProtectionTypes;
}
/**
* @return segmentInstanceId
*/
public String getSegmentInstanceId() {
return this.segmentInstanceId;
}
/**
* @return serviceID
*/
public Long getServiceID() {
return this.serviceID;
}
/**
* @return serviceManaged
*/
public Integer getServiceManaged() {
return this.serviceManaged;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return zone
*/
public String getZone() {
return this.zone;
}
public static final class Builder {
private String allocationId;
private String allocationTime;
private String bandwidth;
private String bandwidthPackageBandwidth;
private String bandwidthPackageId;
private String bandwidthPackageType;
private String bizType;
private String businessStatus;
private String chargeType;
private Boolean deletionProtection;
private String description;
private String eipBandwidth;
private String expiredTime;
private String HDMonitorStatus;
private String hasReservationData;
private String ISP;
private String instanceId;
private String instanceRegionId;
private String instanceType;
private String internetChargeType;
private String ipAddress;
private String mode;
private String name;
private String netmode;
private OperationLocks operationLocks;
private String privateIpAddress;
private String publicIpAddressPoolId;
private String regionId;
private String reservationActiveTime;
private String reservationBandwidth;
private String reservationInternetChargeType;
private String reservationOrderType;
private String resourceGroupId;
private Boolean secondLimited;
private SecurityProtectionTypes securityProtectionTypes;
private String segmentInstanceId;
private Long serviceID;
private Integer serviceManaged;
private String status;
private Tags tags;
private String vpcId;
private String zone;
private Builder() {
}
private Builder(EipAddress model) {
this.allocationId = model.allocationId;
this.allocationTime = model.allocationTime;
this.bandwidth = model.bandwidth;
this.bandwidthPackageBandwidth = model.bandwidthPackageBandwidth;
this.bandwidthPackageId = model.bandwidthPackageId;
this.bandwidthPackageType = model.bandwidthPackageType;
this.bizType = model.bizType;
this.businessStatus = model.businessStatus;
this.chargeType = model.chargeType;
this.deletionProtection = model.deletionProtection;
this.description = model.description;
this.eipBandwidth = model.eipBandwidth;
this.expiredTime = model.expiredTime;
this.HDMonitorStatus = model.HDMonitorStatus;
this.hasReservationData = model.hasReservationData;
this.ISP = model.ISP;
this.instanceId = model.instanceId;
this.instanceRegionId = model.instanceRegionId;
this.instanceType = model.instanceType;
this.internetChargeType = model.internetChargeType;
this.ipAddress = model.ipAddress;
this.mode = model.mode;
this.name = model.name;
this.netmode = model.netmode;
this.operationLocks = model.operationLocks;
this.privateIpAddress = model.privateIpAddress;
this.publicIpAddressPoolId = model.publicIpAddressPoolId;
this.regionId = model.regionId;
this.reservationActiveTime = model.reservationActiveTime;
this.reservationBandwidth = model.reservationBandwidth;
this.reservationInternetChargeType = model.reservationInternetChargeType;
this.reservationOrderType = model.reservationOrderType;
this.resourceGroupId = model.resourceGroupId;
this.secondLimited = model.secondLimited;
this.securityProtectionTypes = model.securityProtectionTypes;
this.segmentInstanceId = model.segmentInstanceId;
this.serviceID = model.serviceID;
this.serviceManaged = model.serviceManaged;
this.status = model.status;
this.tags = model.tags;
this.vpcId = model.vpcId;
this.zone = model.zone;
}
/**
* <p>The ID of the EIP.</p>
*
* <strong>example:</strong>
* <p>eip-2zeerraiwb7ujcdvf****</p>
*/
public Builder allocationId(String allocationId) {
this.allocationId = allocationId;
return this;
}
/**
* <p>The time when the EIP was created. The time follows the ISO 8601 standard in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2021-04-23T01:37:38Z</p>
*/
public Builder allocationTime(String allocationTime) {
this.allocationTime = allocationTime;
return this;
}
/**
* <p>The maximum bandwidth of the EIP. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder bandwidth(String bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The maximum bandwidth of the Internet Shared Bandwidth instance with which the EIP is associated. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder bandwidthPackageBandwidth(String bandwidthPackageBandwidth) {
this.bandwidthPackageBandwidth = bandwidthPackageBandwidth;
return this;
}
/**
* <p>The ID of the Internet Shared Bandwidth instance.</p>
*
* <strong>example:</strong>
* <p>cbwp-bp1ego3i4j07ccdvf****</p>
*/
public Builder bandwidthPackageId(String bandwidthPackageId) {
this.bandwidthPackageId = bandwidthPackageId;
return this;
}
/**
* <p>The type of the bandwidth. Only <strong>CommonBandwidthPackage</strong> may be returned, which indicates Internet Shared Bandwidth.</p>
*
* <strong>example:</strong>
* <p>CommonBandwidthPackage</p>
*/
public Builder bandwidthPackageType(String bandwidthPackageType) {
this.bandwidthPackageType = bandwidthPackageType;
return this;
}
/**
* <p>The service type. Valid values:</p>
* <ul>
* <li><strong>CloudBox</strong> Only cloud box users can select this type.</li>
* <li><strong>Default</strong> (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>CloudBox</p>
*/
public Builder bizType(String bizType) {
this.bizType = bizType;
return this;
}
/**
* <p>The service status of the EIP. Valid values:</p>
* <ul>
* <li><strong>Normal</strong></li>
* <li><strong>OperationLock</strong></li>
* <li><strong>Unactivated</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.businessStatus = businessStatus;
return this;
}
/**
* <p>The billing method of the EIP. Valid values:</p>
* <ul>
* <li><strong>PostPaid</strong>: pay-as-you-go.</li>
* <li><strong>PrePaid</strong>: subscription.</li>
* </ul>
*
* <strong>example:</strong>
* <p>PostPaid</p>
*/
public Builder chargeType(String chargeType) {
this.chargeType = chargeType;
return this;
}
/**
* <p>Indicates whether deletion protection is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder deletionProtection(Boolean deletionProtection) {
this.deletionProtection = deletionProtection;
return this;
}
/**
* <p>The description of the EIP.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The maximum bandwidth of the EIP when it is not associated with an Internet Shared Bandwidth instance. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>101</p>
*/
public Builder eipBandwidth(String eipBandwidth) {
this.eipBandwidth = eipBandwidth;
return this;
}
/**
* <p>The time when the EIP expires. The time follows the ISO 8601 standard in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2021-05-23T02:00:00Z</p>
*/
public Builder expiredTime(String expiredTime) {
this.expiredTime = expiredTime;
return this;
}
/**
* <p>Indicates whether fine-grained monitoring is enabled for the EIP. Valid values:</p>
* <ul>
* <li><strong>false</strong></li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder HDMonitorStatus(String HDMonitorStatus) {
this.HDMonitorStatus = HDMonitorStatus;
return this;
}
/**
* <p>Indicates whether renewal data is included. Valid values:</p>
* <ul>
* <li><strong>false</strong></li>
* <li><strong>true</strong> A value of <strong>true</strong> is returned only when <strong>IncludeReservationData</strong> is set to <strong>true</strong> and some orders have not taken effect.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder hasReservationData(String hasReservationData) {
this.hasReservationData = hasReservationData;
return this;
}
/**
* <p>The line type. Valid values:</p>
* <ul>
* <li><strong>BGP</strong>: BGP (Multi-ISP). The BGP (Multi-ISP) line is supported in all regions.</li>
* <li><strong>BGP_PRO</strong>: BGP (Multi-ISP) Pro lines. BGP (Multi-ISP) Pro line is supported only in the China (Hong Kong), Singapore, Japan (Tokyo), Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok) regions.</li>
* </ul>
* <p>For more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see the <a href="https://help.aliyun.com/document_detail/32321.html">Line types</a> section of the "What is EIP?" topic.</p>
* <p>If you are allowed to use single-ISP bandwidth, one of the following values may be returned:</p>
* <ul>
* <li><strong>ChinaTelecom</strong></li>
* <li><strong>ChinaUnicom</strong></li>
* <li><strong>ChinaMobile</strong></li>
* <li><strong>ChinaTelecom_L2</strong></li>
* <li><strong>ChinaUnicom_L2</strong></li>
* <li><strong>ChinaMobile_L2</strong></li>
* </ul>
* <p>If your services are deployed in China East 1 Finance, <strong>BGP_FinanceCloud</strong> is returned.</p>
*
* <strong>example:</strong>
* <p>BGP</p>
*/
public Builder ISP(String ISP) {
this.ISP = ISP;
return this;
}
/**
* <p>The ID of the associated instance.</p>
*
* <strong>example:</strong>
* <p>i-bp15zckdt37cdvf****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The region ID of the associated instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder instanceRegionId(String instanceRegionId) {
this.instanceRegionId = instanceRegionId;
return this;
}
/**
* <p>The type of the associated instance. Valid values:</p>
* <ul>
* <li><strong>EcsInstance</strong>: an ECS instance in a VPC.</li>
* <li><strong>SlbInstance</strong>: a CLB instance in a VPC.</li>
* <li><strong>Nat</strong>: a NAT gateway.</li>
* <li><strong>HaVip</strong>: an HAVIP.</li>
* <li><strong>NetworkInterface</strong>: a secondary ENI.</li>
* <li><strong>IpAddress</strong>: an IP address.</li>
* </ul>
*
* <strong>example:</strong>
* <p>EcsInstance</p>
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* <p>The metering method of the EIP. Valid values:</p>
* <ul>
* <li><strong>PayByBandwidth</strong></li>
* <li><strong>PayByTraffic</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>PayByBandwidth</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.internetChargeType = internetChargeType;
return this;
}
/**
* <p>The EIP.</p>
*
* <strong>example:</strong>
* <p>47.75.XX.XX</p>
*/
public Builder ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* <p>The association mode. Valid values:</p>
* <ul>
* <li><strong>NAT</strong>: NAT mode</li>
* <li><strong>MULTI_BINDED</strong>: multi-EIP-to-ENI mode</li>
* <li><strong>BINDED</strong>: cut-through mode</li>
* </ul>
*
* <strong>example:</strong>
* <p>NAT</p>
*/
public Builder mode(String mode) {
this.mode = mode;
return this;
}
/**
* <p>The name of the EIP.</p>
*
* <strong>example:</strong>
* <p>EIP-01</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The network type. Only <strong>public</strong> may be returned.</p>
*
* <strong>example:</strong>
* <p>public</p>
*/
public Builder netmode(String netmode) {
this.netmode = netmode;
return this;
}
/**
* <p>The details about the locked EIP.</p>
*/
public Builder operationLocks(OperationLocks operationLocks) {
this.operationLocks = operationLocks;
return this;
}
/**
* <p>The private IP address of the secondary ENI with which the EIP is associated.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder privateIpAddress(String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
return this;
}
/**
* <p>The ID of the IP address pool to which the EIP belongs.</p>
*
* <strong>example:</strong>
* <p>pippool-2vc0kxcedhquybdsz****</p>
*/
public Builder publicIpAddressPoolId(String publicIpAddressPoolId) {
this.publicIpAddressPoolId = publicIpAddressPoolId;
return this;
}
/**
* <p>The region ID of the EIP.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The time when the renewal took effect. The time follows the ISO 8601 standard in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2021-05-23T16:00:00Z</p>
*/
public Builder reservationActiveTime(String reservationActiveTime) {
this.reservationActiveTime = reservationActiveTime;
return this;
}
/**
* <p>The maximum bandwidth after the renewal takes effect. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder reservationBandwidth(String reservationBandwidth) {
this.reservationBandwidth = reservationBandwidth;
return this;
}
/**
* <p>The metering method that is used after the renewal takes effect. Valid values:</p>
* <ul>
* <li><strong>PayByBandwidth</strong></li>
* <li><strong>PayByTraffic</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>PayByBandwidth</p>
*/
public Builder reservationInternetChargeType(String reservationInternetChargeType) {
this.reservationInternetChargeType = reservationInternetChargeType;
return this;
}
/**
* <p>The type of the renewal order. Valid values:</p>
* <ul>
* <li><strong>RENEWCHANGE</strong>: renewal with an upgrade or a downgrade.</li>
* <li><strong>TEMP_UPGRADE</strong>: temporary upgrade.</li>
* <li><strong>UPGRADE</strong>: upgrade.</li>
* </ul>
*
* <strong>example:</strong>
* <p>RENEWCHANGE</p>
*/
public Builder reservationOrderType(String reservationOrderType) {
this.reservationOrderType = reservationOrderType;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazcdxs****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>Indicates whether level-2 throttling is configured. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder secondLimited(Boolean secondLimited) {
this.secondLimited = secondLimited;
return this;
}
/**
* <p>The edition of Anti-DDoS.</p>
* <ul>
* <li>If an empty value is returned, it indicates that Anti-DDoS Origin Basic is used.</li>
* <li>If <strong>AntiDDoS_Enhanced</strong> is returned, it indicates that Anti-DDoS Pro/Premium is used.</li>
* </ul>
*/
public Builder securityProtectionTypes(SecurityProtectionTypes securityProtectionTypes) {
this.securityProtectionTypes = securityProtectionTypes;
return this;
}
/**
* <p>The ID of the contiguous EIP group.</p>
* <p>This value is returned only when you query contiguous EIPs.</p>
*
* <strong>example:</strong>
* <p>eipsg-t4nr90yik5oy38xd****</p>
*/
public Builder segmentInstanceId(String segmentInstanceId) {
this.segmentInstanceId = segmentInstanceId;
return this;
}
/**
* <p>The ID of the service provider to which the managed instance belongs.</p>
* <blockquote>
* <p>This is only valid when the ServiceManaged parameter is set to True.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>197*************</p>
*/
public Builder serviceID(Long serviceID) {
this.serviceID = serviceID;
return this;
}
/**
* <p>Indicates whether the instance is managed. Valid values:</p>
* <ul>
* <li><strong>1</strong>: yes</li>
* <li><strong>0</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder serviceManaged(Integer serviceManaged) {
this.serviceManaged = serviceManaged;
return this;
}
/**
* <p>The status of the EIP. Valid values:</p>
* <ul>
* <li><strong>Associating</strong></li>
* <li><strong>Unassociating</strong></li>
* <li><strong>InUse</strong></li>
* <li><strong>Available</strong></li>
* <li><strong>Releasing</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The tags of the EIP.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the VPC in which an IPv4 gateway is created and that is deployed in the same region as the EIP.</p>
* <p>When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations.</p>
* <blockquote>
* <p> This parameter is returned if the value of <strong>InstanceType</strong> is <strong>IpAddress</strong>. In this case, the EIP is associated with an IP address.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vpc-bp15zckdt37pq72zv****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* <p>The zone of the EIP.</p>
* <p>This parameter is returned only when the service type is CloudBox.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-a</p>
*/
public Builder zone(String zone) {
this.zone = zone;
return this;
}
public EipAddress build() {
return new EipAddress(this);
}
}
}
/**
*
* {@link DescribeEipAddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipAddressesResponseBody</p>
*/
public static class EipAddresses extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EipAddress")
private java.util.List<EipAddress> eipAddress;
private EipAddresses(Builder builder) {
this.eipAddress = builder.eipAddress;
}
public static Builder builder() {
return new Builder();
}
public static EipAddresses create() {
return builder().build();
}
/**
* @return eipAddress
*/
public java.util.List<EipAddress> getEipAddress() {
return this.eipAddress;
}
public static final class Builder {
private java.util.List<EipAddress> eipAddress;
private Builder() {
}
private Builder(EipAddresses model) {
this.eipAddress = model.eipAddress;
}
/**
* EipAddress.
*/
public Builder eipAddress(java.util.List<EipAddress> eipAddress) {
this.eipAddress = eipAddress;
return this;
}
public EipAddresses build() {
return new EipAddresses(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipGatewayInfoRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipGatewayInfoRequest} extends {@link RequestModel}
*
* <p>DescribeEipGatewayInfoRequest</p>
*/
public class DescribeEipGatewayInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeEipGatewayInfoRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEipGatewayInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeEipGatewayInfoRequest, Builder> {
private String instanceId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeEipGatewayInfoRequest request) {
super(request);
this.instanceId = request.instanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the secondary ENI that is associated with the EIP.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eni-bp1d66qjxb3qoin3****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region to which the EIP that you want to query belongs. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-zhangjiakou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeEipGatewayInfoRequest build() {
return new DescribeEipGatewayInfoRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipGatewayInfoResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipGatewayInfoResponse} extends {@link TeaModel}
*
* <p>DescribeEipGatewayInfoResponse</p>
*/
public class DescribeEipGatewayInfoResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeEipGatewayInfoResponseBody body;
private DescribeEipGatewayInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeEipGatewayInfoResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeEipGatewayInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeEipGatewayInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeEipGatewayInfoResponseBody body);
@Override
DescribeEipGatewayInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeEipGatewayInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeEipGatewayInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeEipGatewayInfoResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeEipGatewayInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeEipGatewayInfoResponse build() {
return new DescribeEipGatewayInfoResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipGatewayInfoResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipGatewayInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipGatewayInfoResponseBody</p>
*/
public class DescribeEipGatewayInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("EipInfos")
private EipInfos eipInfos;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeEipGatewayInfoResponseBody(Builder builder) {
this.code = builder.code;
this.eipInfos = builder.eipInfos;
this.message = builder.message;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEipGatewayInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return eipInfos
*/
public EipInfos getEipInfos() {
return this.eipInfos;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String code;
private EipInfos eipInfos;
private String message;
private String requestId;
private Builder() {
}
private Builder(DescribeEipGatewayInfoResponseBody model) {
this.code = model.code;
this.eipInfos = model.eipInfos;
this.message = model.message;
this.requestId = model.requestId;
}
/**
* <p>The status code of the operation.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The detailed information about the EIP.</p>
*/
public Builder eipInfos(EipInfos eipInfos) {
this.eipInfos = eipInfos;
return this;
}
/**
* <p>The result of the operation.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>C0FD0EED-F90D-4479-803D-DD62335357E5</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeEipGatewayInfoResponseBody build() {
return new DescribeEipGatewayInfoResponseBody(this);
}
}
/**
*
* {@link DescribeEipGatewayInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipGatewayInfoResponseBody</p>
*/
public static class EipInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ip")
private String ip;
@com.aliyun.core.annotation.NameInMap("IpGw")
private String ipGw;
@com.aliyun.core.annotation.NameInMap("IpMask")
private String ipMask;
private EipInfo(Builder builder) {
this.ip = builder.ip;
this.ipGw = builder.ipGw;
this.ipMask = builder.ipMask;
}
public static Builder builder() {
return new Builder();
}
public static EipInfo create() {
return builder().build();
}
/**
* @return ip
*/
public String getIp() {
return this.ip;
}
/**
* @return ipGw
*/
public String getIpGw() {
return this.ipGw;
}
/**
* @return ipMask
*/
public String getIpMask() {
return this.ipMask;
}
public static final class Builder {
private String ip;
private String ipGw;
private String ipMask;
private Builder() {
}
private Builder(EipInfo model) {
this.ip = model.ip;
this.ipGw = model.ipGw;
this.ipMask = model.ipMask;
}
/**
* <p>The IP address of the EIP.</p>
*
* <strong>example:</strong>
* <p>47.XX.XX.236</p>
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* <p>The IP address of the gateway that is associated with the EIP.</p>
*
* <strong>example:</strong>
* <p>47.XX.XX.1</p>
*/
public Builder ipGw(String ipGw) {
this.ipGw = ipGw;
return this;
}
/**
* <p>The subnet mask of the EIP.</p>
*
* <strong>example:</strong>
* <p>255.255.255.0</p>
*/
public Builder ipMask(String ipMask) {
this.ipMask = ipMask;
return this;
}
public EipInfo build() {
return new EipInfo(this);
}
}
}
/**
*
* {@link DescribeEipGatewayInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipGatewayInfoResponseBody</p>
*/
public static class EipInfos extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EipInfo")
private java.util.List<EipInfo> eipInfo;
private EipInfos(Builder builder) {
this.eipInfo = builder.eipInfo;
}
public static Builder builder() {
return new Builder();
}
public static EipInfos create() {
return builder().build();
}
/**
* @return eipInfo
*/
public java.util.List<EipInfo> getEipInfo() {
return this.eipInfo;
}
public static final class Builder {
private java.util.List<EipInfo> eipInfo;
private Builder() {
}
private Builder(EipInfos model) {
this.eipInfo = model.eipInfo;
}
/**
* EipInfo.
*/
public Builder eipInfo(java.util.List<EipInfo> eipInfo) {
this.eipInfo = eipInfo;
return this;
}
public EipInfos build() {
return new EipInfos(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipMonitorDataRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipMonitorDataRequest} extends {@link RequestModel}
*
* <p>DescribeEipMonitorDataRequest</p>
*/
public class DescribeEipMonitorDataRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllocationId")
@com.aliyun.core.annotation.Validation(required = true)
private String allocationId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
@com.aliyun.core.annotation.Validation(required = true)
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Period")
private Integer period;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
@com.aliyun.core.annotation.Validation(required = true)
private String startTime;
private DescribeEipMonitorDataRequest(Builder builder) {
super(builder);
this.allocationId = builder.allocationId;
this.endTime = builder.endTime;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.period = builder.period;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEipMonitorDataRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return allocationId
*/
public String getAllocationId() {
return this.allocationId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return period
*/
public Integer getPeriod() {
return this.period;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeEipMonitorDataRequest, Builder> {
private String allocationId;
private String endTime;
private String ownerAccount;
private Long ownerId;
private Integer period;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String startTime;
private Builder() {
super();
}
private Builder(DescribeEipMonitorDataRequest request) {
super(request);
this.allocationId = request.allocationId;
this.endTime = request.endTime;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.period = request.period;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.startTime = request.startTime;
}
/**
* <p>The ID of the EIP.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eip-2zeerraiwb7uj6idcfv****</p>
*/
public Builder allocationId(String allocationId) {
this.putQueryParameter("AllocationId", allocationId);
this.allocationId = allocationId;
return this;
}
/**
* <p>The end of the time range to query. The time must be in UTC. Specify the time in the ISO 8601 standard in the <code>YYYY-MM-DDThh:mm:ssZ</code> format. For example, <code>2013-01-10T12:00:00Z</code> specifies 20:00:00 (UTC+8) on January 10, 2013.</p>
* <p>If the value of seconds (ss) is not 00, the end time is automatically rounded up to the next minute.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2020-01-05T03:05:10Z</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The duration of each monitoring data entry. Unit: seconds. Valid values: <strong>60</strong> (default), <strong>300</strong>, <strong>900</strong>, and <strong>3600</strong>.</p>
* <ul>
* <li>If the value of <strong>(EndTime</strong> - <strong>StartTime</strong>)/<strong>Period</strong> is greater than 200, a maximum of 200 monitoring data entries are returned at a time.</li>
* <li>If the value of (<strong>EndTime</strong> - <strong>StartTime</strong>)/<strong>Period</strong> is less than or equal to 200, only the monitoring data collected between the start time and end time is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder period(Integer period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* <p>The ID of the region to which the EIP belongs. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The beginning of the time range to query. The time must be in UTC. Specify the time in the ISO 8601 standard in <code>YYYY-MM-DDThh:mm:ssZ</code> format. For example, <code>2013-01-10T12:00:00Z</code> specifies 20:00:00 (UTC+8) on January 10, 2013.</p>
* <p>If the value of seconds (ss) is not 00, the start time is automatically rounded up to the next minute.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2020-01-05T01:05:05Z</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeEipMonitorDataRequest build() {
return new DescribeEipMonitorDataRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipMonitorDataResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipMonitorDataResponse} extends {@link TeaModel}
*
* <p>DescribeEipMonitorDataResponse</p>
*/
public class DescribeEipMonitorDataResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeEipMonitorDataResponseBody body;
private DescribeEipMonitorDataResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeEipMonitorDataResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeEipMonitorDataResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeEipMonitorDataResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeEipMonitorDataResponseBody body);
@Override
DescribeEipMonitorDataResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeEipMonitorDataResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeEipMonitorDataResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeEipMonitorDataResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeEipMonitorDataResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeEipMonitorDataResponse build() {
return new DescribeEipMonitorDataResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipMonitorDataResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipMonitorDataResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipMonitorDataResponseBody</p>
*/
public class DescribeEipMonitorDataResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EipMonitorDatas")
private EipMonitorDatas eipMonitorDatas;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeEipMonitorDataResponseBody(Builder builder) {
this.eipMonitorDatas = builder.eipMonitorDatas;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEipMonitorDataResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return eipMonitorDatas
*/
public EipMonitorDatas getEipMonitorDatas() {
return this.eipMonitorDatas;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private EipMonitorDatas eipMonitorDatas;
private String requestId;
private Builder() {
}
private Builder(DescribeEipMonitorDataResponseBody model) {
this.eipMonitorDatas = model.eipMonitorDatas;
this.requestId = model.requestId;
}
/**
* <p>The detailed information about the monitoring data of the EIP.</p>
*/
public Builder eipMonitorDatas(EipMonitorDatas eipMonitorDatas) {
this.eipMonitorDatas = eipMonitorDatas;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>C8B26B44-0189-443E-9816-D951F59623A9</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeEipMonitorDataResponseBody build() {
return new DescribeEipMonitorDataResponseBody(this);
}
}
/**
*
* {@link DescribeEipMonitorDataResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipMonitorDataResponseBody</p>
*/
public static class EipMonitorData extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EipBandwidth")
private Integer eipBandwidth;
@com.aliyun.core.annotation.NameInMap("EipFlow")
private Long eipFlow;
@com.aliyun.core.annotation.NameInMap("EipPackets")
private Integer eipPackets;
@com.aliyun.core.annotation.NameInMap("EipRX")
private Long eipRX;
@com.aliyun.core.annotation.NameInMap("EipTX")
private Long eipTX;
@com.aliyun.core.annotation.NameInMap("TimeStamp")
private String timeStamp;
private EipMonitorData(Builder builder) {
this.eipBandwidth = builder.eipBandwidth;
this.eipFlow = builder.eipFlow;
this.eipPackets = builder.eipPackets;
this.eipRX = builder.eipRX;
this.eipTX = builder.eipTX;
this.timeStamp = builder.timeStamp;
}
public static Builder builder() {
return new Builder();
}
public static EipMonitorData create() {
return builder().build();
}
/**
* @return eipBandwidth
*/
public Integer getEipBandwidth() {
return this.eipBandwidth;
}
/**
* @return eipFlow
*/
public Long getEipFlow() {
return this.eipFlow;
}
/**
* @return eipPackets
*/
public Integer getEipPackets() {
return this.eipPackets;
}
/**
* @return eipRX
*/
public Long getEipRX() {
return this.eipRX;
}
/**
* @return eipTX
*/
public Long getEipTX() {
return this.eipTX;
}
/**
* @return timeStamp
*/
public String getTimeStamp() {
return this.timeStamp;
}
public static final class Builder {
private Integer eipBandwidth;
private Long eipFlow;
private Integer eipPackets;
private Long eipRX;
private Long eipTX;
private String timeStamp;
private Builder() {
}
private Builder(EipMonitorData model) {
this.eipBandwidth = model.eipBandwidth;
this.eipFlow = model.eipFlow;
this.eipPackets = model.eipPackets;
this.eipRX = model.eipRX;
this.eipTX = model.eipTX;
this.timeStamp = model.timeStamp;
}
/**
* EipBandwidth.
*/
public Builder eipBandwidth(Integer eipBandwidth) {
this.eipBandwidth = eipBandwidth;
return this;
}
/**
* <p>The sum of inbound and outbound traffic.</p>
*
* <strong>example:</strong>
* <p>465</p>
*/
public Builder eipFlow(Long eipFlow) {
this.eipFlow = eipFlow;
return this;
}
/**
* <p>The number of packets.</p>
*
* <strong>example:</strong>
* <p>3434</p>
*/
public Builder eipPackets(Integer eipPackets) {
this.eipPackets = eipPackets;
return this;
}
/**
* <p>The inbound traffic. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>122</p>
*/
public Builder eipRX(Long eipRX) {
this.eipRX = eipRX;
return this;
}
/**
* <p>The outbound traffic. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>343</p>
*/
public Builder eipTX(Long eipTX) {
this.eipTX = eipTX;
return this;
}
/**
* <p>The timestamp of the monitoring data. Specify the time in the ISO8601 standard. Example: <code>2020-01-21T09:50:23Z</code>.</p>
*
* <strong>example:</strong>
* <p>2020-01-21T09:50:23Z</p>
*/
public Builder timeStamp(String timeStamp) {
this.timeStamp = timeStamp;
return this;
}
public EipMonitorData build() {
return new EipMonitorData(this);
}
}
}
/**
*
* {@link DescribeEipMonitorDataResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipMonitorDataResponseBody</p>
*/
public static class EipMonitorDatas extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EipMonitorData")
private java.util.List<EipMonitorData> eipMonitorData;
private EipMonitorDatas(Builder builder) {
this.eipMonitorData = builder.eipMonitorData;
}
public static Builder builder() {
return new Builder();
}
public static EipMonitorDatas create() {
return builder().build();
}
/**
* @return eipMonitorData
*/
public java.util.List<EipMonitorData> getEipMonitorData() {
return this.eipMonitorData;
}
public static final class Builder {
private java.util.List<EipMonitorData> eipMonitorData;
private Builder() {
}
private Builder(EipMonitorDatas model) {
this.eipMonitorData = model.eipMonitorData;
}
/**
* EipMonitorData.
*/
public Builder eipMonitorData(java.util.List<EipMonitorData> eipMonitorData) {
this.eipMonitorData = eipMonitorData;
return this;
}
public EipMonitorDatas build() {
return new EipMonitorDatas(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipSegmentRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipSegmentRequest} extends {@link RequestModel}
*
* <p>DescribeEipSegmentRequest</p>
*/
public class DescribeEipSegmentRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SegmentInstanceId")
private String segmentInstanceId;
private DescribeEipSegmentRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.segmentInstanceId = builder.segmentInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEipSegmentRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return segmentInstanceId
*/
public String getSegmentInstanceId() {
return this.segmentInstanceId;
}
public static final class Builder extends Request.Builder<DescribeEipSegmentRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String segmentInstanceId;
private Builder() {
super();
}
private Builder(DescribeEipSegmentRequest request) {
super(request);
this.clientToken = request.clientToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.segmentInstanceId = request.segmentInstanceId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-001sdfg</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the region to which the contiguous EIP group belongs. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the contiguous EIP group that you want to query.</p>
*
* <strong>example:</strong>
* <p>eipsg-2zett8ba055tbsxme****</p>
*/
public Builder segmentInstanceId(String segmentInstanceId) {
this.putQueryParameter("SegmentInstanceId", segmentInstanceId);
this.segmentInstanceId = segmentInstanceId;
return this;
}
@Override
public DescribeEipSegmentRequest build() {
return new DescribeEipSegmentRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipSegmentResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipSegmentResponse} extends {@link TeaModel}
*
* <p>DescribeEipSegmentResponse</p>
*/
public class DescribeEipSegmentResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeEipSegmentResponseBody body;
private DescribeEipSegmentResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeEipSegmentResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeEipSegmentResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeEipSegmentResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeEipSegmentResponseBody body);
@Override
DescribeEipSegmentResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeEipSegmentResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeEipSegmentResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeEipSegmentResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeEipSegmentResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeEipSegmentResponse build() {
return new DescribeEipSegmentResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEipSegmentResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeEipSegmentResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipSegmentResponseBody</p>
*/
public class DescribeEipSegmentResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EipSegments")
private EipSegments eipSegments;
@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 DescribeEipSegmentResponseBody(Builder builder) {
this.eipSegments = builder.eipSegments;
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 DescribeEipSegmentResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return eipSegments
*/
public EipSegments getEipSegments() {
return this.eipSegments;
}
/**
* @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 EipSegments eipSegments;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeEipSegmentResponseBody model) {
this.eipSegments = model.eipSegments;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The details of the contiguous EIP group.</p>
*/
public Builder eipSegments(EipSegments eipSegments) {
this.eipSegments = eipSegments;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F7A6301A-64BA-41EC-8284-8F4838C15D1F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeEipSegmentResponseBody build() {
return new DescribeEipSegmentResponseBody(this);
}
}
/**
*
* {@link DescribeEipSegmentResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipSegmentResponseBody</p>
*/
public static class EipSegment extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Descritpion")
private String descritpion;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("IpCount")
private String ipCount;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Segment")
private String segment;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Zone")
private String zone;
private EipSegment(Builder builder) {
this.creationTime = builder.creationTime;
this.descritpion = builder.descritpion;
this.instanceId = builder.instanceId;
this.ipCount = builder.ipCount;
this.name = builder.name;
this.regionId = builder.regionId;
this.segment = builder.segment;
this.status = builder.status;
this.zone = builder.zone;
}
public static Builder builder() {
return new Builder();
}
public static EipSegment create() {
return builder().build();
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return descritpion
*/
public String getDescritpion() {
return this.descritpion;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return ipCount
*/
public String getIpCount() {
return this.ipCount;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return segment
*/
public String getSegment() {
return this.segment;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return zone
*/
public String getZone() {
return this.zone;
}
public static final class Builder {
private String creationTime;
private String descritpion;
private String instanceId;
private String ipCount;
private String name;
private String regionId;
private String segment;
private String status;
private String zone;
private Builder() {
}
private Builder(EipSegment model) {
this.creationTime = model.creationTime;
this.descritpion = model.descritpion;
this.instanceId = model.instanceId;
this.ipCount = model.ipCount;
this.name = model.name;
this.regionId = model.regionId;
this.segment = model.segment;
this.status = model.status;
this.zone = model.zone;
}
/**
* <p>The time when the contiguous EIP group was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2020-03-06T12:30:07Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the contiguous EIP group.</p>
*
* <strong>example:</strong>
* <p>MyEipSegment</p>
*/
public Builder descritpion(String descritpion) {
this.descritpion = descritpion;
return this;
}
/**
* <p>The ID of the contiguous EIP group.</p>
*
* <strong>example:</strong>
* <p>eipsg-2zett8ba055tbsxme****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The number of EIPs in the contiguous EIP group.</p>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder ipCount(String ipCount) {
this.ipCount = ipCount;
return this;
}
/**
* <p>The name of the contiguous EIP group.</p>
*
* <strong>example:</strong>
* <p>MyEipSegment</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the region to which the contiguous EIP group belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The CIDR block and mask of the contiguous EIP group.</p>
*
* <strong>example:</strong>
* <p>161.xx.xx.32/28</p>
*/
public Builder segment(String segment) {
this.segment = segment;
return this;
}
/**
* <p>The status of the contiguous EIP group. Valid values:</p>
* <ul>
* <li><strong>Allocating</strong></li>
* <li><strong>Allocated</strong></li>
* <li><strong>Releasing</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Allocated</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The zone of the contiguous EIP group.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-a</p>
*/
public Builder zone(String zone) {
this.zone = zone;
return this;
}
public EipSegment build() {
return new EipSegment(this);
}
}
}
/**
*
* {@link DescribeEipSegmentResponseBody} extends {@link TeaModel}
*
* <p>DescribeEipSegmentResponseBody</p>
*/
public static class EipSegments extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EipSegment")
private java.util.List<EipSegment> eipSegment;
private EipSegments(Builder builder) {
this.eipSegment = builder.eipSegment;
}
public static Builder builder() {
return new Builder();
}
public static EipSegments create() {
return builder().build();
}
/**
* @return eipSegment
*/
public java.util.List<EipSegment> getEipSegment() {
return this.eipSegment;
}
public static final class Builder {
private java.util.List<EipSegment> eipSegment;
private Builder() {
}
private Builder(EipSegments model) {
this.eipSegment = model.eipSegment;
}
/**
* EipSegment.
*/
public Builder eipSegment(java.util.List<EipSegment> eipSegment) {
this.eipSegment = eipSegment;
return this;
}
public EipSegments build() {
return new EipSegments(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeExpressConnectTrafficQosQueueRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeExpressConnectTrafficQosQueueRequest} extends {@link RequestModel}
*
* <p>DescribeExpressConnectTrafficQosQueueRequest</p>
*/
public class DescribeExpressConnectTrafficQosQueueRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QosId")
private String qosId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QueueIdList")
private java.util.List<String> queueIdList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QueueNameList")
private java.util.List<String> queueNameList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
private DescribeExpressConnectTrafficQosQueueRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.qosId = builder.qosId;
this.queueIdList = builder.queueIdList;
this.queueNameList = builder.queueNameList;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeExpressConnectTrafficQosQueueRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return qosId
*/
public String getQosId() {
return this.qosId;
}
/**
* @return queueIdList
*/
public java.util.List<String> getQueueIdList() {
return this.queueIdList;
}
/**
* @return queueNameList
*/
public java.util.List<String> getQueueNameList() {
return this.queueNameList;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public static final class Builder extends Request.Builder<DescribeExpressConnectTrafficQosQueueRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String qosId;
private java.util.List<String> queueIdList;
private java.util.List<String> queueNameList;
private String regionId;
private String resourceOwnerAccount;
private Builder() {
super();
}
private Builder(DescribeExpressConnectTrafficQosQueueRequest request) {
super(request);
this.clientToken = request.clientToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.qosId = request.qosId;
this.queueIdList = request.queueIdList;
this.queueNameList = request.queueNameList;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe63****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the QoS policy.</p>
*
* <strong>example:</strong>
* <p>qos-2giu0a6vd5x0mv4700</p>
*/
public Builder qosId(String qosId) {
this.putQueryParameter("QosId", qosId);
this.qosId = qosId;
return this;
}
/**
* <p>The IDs of the QoS queues.</p>
*/
public Builder queueIdList(java.util.List<String> queueIdList) {
this.putQueryParameter("QueueIdList", queueIdList);
this.queueIdList = queueIdList;
return this;
}
/**
* <p>The names of the QoS queues.</p>
*/
public Builder queueNameList(java.util.List<String> queueNameList) {
this.putQueryParameter("QueueNameList", queueNameList);
this.queueNameList = queueNameList;
return this;
}
/**
* <p>The region ID of the QoS policy.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
@Override
public DescribeExpressConnectTrafficQosQueueRequest build() {
return new DescribeExpressConnectTrafficQosQueueRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeExpressConnectTrafficQosQueueResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeExpressConnectTrafficQosQueueResponse} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosQueueResponse</p>
*/
public class DescribeExpressConnectTrafficQosQueueResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeExpressConnectTrafficQosQueueResponseBody body;
private DescribeExpressConnectTrafficQosQueueResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeExpressConnectTrafficQosQueueResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeExpressConnectTrafficQosQueueResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeExpressConnectTrafficQosQueueResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeExpressConnectTrafficQosQueueResponseBody body);
@Override
DescribeExpressConnectTrafficQosQueueResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeExpressConnectTrafficQosQueueResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeExpressConnectTrafficQosQueueResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeExpressConnectTrafficQosQueueResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeExpressConnectTrafficQosQueueResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeExpressConnectTrafficQosQueueResponse build() {
return new DescribeExpressConnectTrafficQosQueueResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeExpressConnectTrafficQosQueueResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeExpressConnectTrafficQosQueueResponseBody} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosQueueResponseBody</p>
*/
public class DescribeExpressConnectTrafficQosQueueResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("QueueList")
private java.util.List<QueueList> queueList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeExpressConnectTrafficQosQueueResponseBody(Builder builder) {
this.queueList = builder.queueList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeExpressConnectTrafficQosQueueResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return queueList
*/
public java.util.List<QueueList> getQueueList() {
return this.queueList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<QueueList> queueList;
private String requestId;
private Builder() {
}
private Builder(DescribeExpressConnectTrafficQosQueueResponseBody model) {
this.queueList = model.queueList;
this.requestId = model.requestId;
}
/**
* <p>The information about the QoS queues.</p>
*/
public Builder queueList(java.util.List<QueueList> queueList) {
this.queueList = queueList;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>606998F0-B94D-48FE-8316-ACA81BB230DA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeExpressConnectTrafficQosQueueResponseBody build() {
return new DescribeExpressConnectTrafficQosQueueResponseBody(this);
}
}
/**
*
* {@link DescribeExpressConnectTrafficQosQueueResponseBody} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosQueueResponseBody</p>
*/
public static class RuleList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstCidr")
private String dstCidr;
@com.aliyun.core.annotation.NameInMap("DstIPv6Cidr")
private String dstIPv6Cidr;
@com.aliyun.core.annotation.NameInMap("DstPortRange")
private String dstPortRange;
@com.aliyun.core.annotation.NameInMap("MatchDscp")
private Integer matchDscp;
@com.aliyun.core.annotation.NameInMap("Priority")
private Integer priority;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("QosId")
private String qosId;
@com.aliyun.core.annotation.NameInMap("QueueId")
private String queueId;
@com.aliyun.core.annotation.NameInMap("RemarkingDscp")
private Integer remarkingDscp;
@com.aliyun.core.annotation.NameInMap("RuleDescription")
private String ruleDescription;
@com.aliyun.core.annotation.NameInMap("RuleId")
private String ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("SrcCidr")
private String srcCidr;
@com.aliyun.core.annotation.NameInMap("SrcIPv6Cidr")
private String srcIPv6Cidr;
@com.aliyun.core.annotation.NameInMap("SrcPortRange")
private String srcPortRange;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private RuleList(Builder builder) {
this.dstCidr = builder.dstCidr;
this.dstIPv6Cidr = builder.dstIPv6Cidr;
this.dstPortRange = builder.dstPortRange;
this.matchDscp = builder.matchDscp;
this.priority = builder.priority;
this.protocol = builder.protocol;
this.qosId = builder.qosId;
this.queueId = builder.queueId;
this.remarkingDscp = builder.remarkingDscp;
this.ruleDescription = builder.ruleDescription;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.srcCidr = builder.srcCidr;
this.srcIPv6Cidr = builder.srcIPv6Cidr;
this.srcPortRange = builder.srcPortRange;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static RuleList create() {
return builder().build();
}
/**
* @return dstCidr
*/
public String getDstCidr() {
return this.dstCidr;
}
/**
* @return dstIPv6Cidr
*/
public String getDstIPv6Cidr() {
return this.dstIPv6Cidr;
}
/**
* @return dstPortRange
*/
public String getDstPortRange() {
return this.dstPortRange;
}
/**
* @return matchDscp
*/
public Integer getMatchDscp() {
return this.matchDscp;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return qosId
*/
public String getQosId() {
return this.qosId;
}
/**
* @return queueId
*/
public String getQueueId() {
return this.queueId;
}
/**
* @return remarkingDscp
*/
public Integer getRemarkingDscp() {
return this.remarkingDscp;
}
/**
* @return ruleDescription
*/
public String getRuleDescription() {
return this.ruleDescription;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return srcCidr
*/
public String getSrcCidr() {
return this.srcCidr;
}
/**
* @return srcIPv6Cidr
*/
public String getSrcIPv6Cidr() {
return this.srcIPv6Cidr;
}
/**
* @return srcPortRange
*/
public String getSrcPortRange() {
return this.srcPortRange;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String dstCidr;
private String dstIPv6Cidr;
private String dstPortRange;
private Integer matchDscp;
private Integer priority;
private String protocol;
private String qosId;
private String queueId;
private Integer remarkingDscp;
private String ruleDescription;
private String ruleId;
private String ruleName;
private String srcCidr;
private String srcIPv6Cidr;
private String srcPortRange;
private String status;
private Builder() {
}
private Builder(RuleList model) {
this.dstCidr = model.dstCidr;
this.dstIPv6Cidr = model.dstIPv6Cidr;
this.dstPortRange = model.dstPortRange;
this.matchDscp = model.matchDscp;
this.priority = model.priority;
this.protocol = model.protocol;
this.qosId = model.qosId;
this.queueId = model.queueId;
this.remarkingDscp = model.remarkingDscp;
this.ruleDescription = model.ruleDescription;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.srcCidr = model.srcCidr;
this.srcIPv6Cidr = model.srcIPv6Cidr;
this.srcPortRange = model.srcPortRange;
this.status = model.status;
}
/**
* <p>The destination IPv4 CIDR block that matches the QoS rule traffic.</p>
* <blockquote>
* <p>If the parameter is unavailable, specify <strong>SrcIPv6Cidr</strong> or <strong>DstIPv6Cidr</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1.1.1.0/24</p>
*/
public Builder dstCidr(String dstCidr) {
this.dstCidr = dstCidr;
return this;
}
/**
* <p>The destination IPv6 CIDR block that matches the QoS rule traffic.</p>
* <blockquote>
* <p>If the parameter is unavailable, specify <strong>SrcCidr</strong> or <strong>DstCidr</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2001:0db8:1234:5678::/64</p>
*/
public Builder dstIPv6Cidr(String dstIPv6Cidr) {
this.dstIPv6Cidr = dstIPv6Cidr;
return this;
}
/**
* <p>The range of destination ports that match the QoS rule traffic. Valid values: <strong>0</strong> to <strong>65535</strong>. If the traffic does not match, the value is -1. You can specify only one port. The start port number must be the same as the end port number. Different protocols correspond to different ports. Valid values:</p>
* <ul>
* <li><strong>ALL</strong> (uneditable): -1/-1.</li>
* <li><strong>ICMP(IPv4)</strong> (uneditable): -1/-1.</li>
* <li><strong>ICMPv6(IPv6)</strong> (uneditable): -1/-1.</li>
* <li><strong>TCP</strong> (editable): -1/-1.</li>
* <li><strong>UDP</strong> (editable): -1/-1.</li>
* <li><strong>GRE</strong> (uneditable): -1/-1.</li>
* <li><strong>SSH</strong> (uneditable): 22/22.</li>
* <li><strong>Telnet</strong> (uneditable): 23/23.</li>
* <li><strong>HTTP</strong> (uneditable): 80/80.</li>
* <li><strong>HTTPS</strong> (uneditable): 443/443.</li>
* <li><strong>MS SQL</strong> (uneditable): 1443/1443.</li>
* <li><strong>Oracle</strong> (uneditable): 1521/1521.</li>
* <li><strong>MySql</strong> (uneditable): 3306/3306.</li>
* <li><strong>RDP</strong> (uneditable): 3389/3389.</li>
* <li><strong>PostgreSQL</strong> (uneditable): 5432/5432.</li>
* <li><strong>Redis</strong> (uneditable): 6379/6379.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1/-1</p>
*/
public Builder dstPortRange(String dstPortRange) {
this.dstPortRange = dstPortRange;
return this;
}
/**
* <p>The DSCP value that matches the QoS rule traffic. Valid values: <strong>0</strong> to <strong>63</strong>. If no value is matched, the value is -1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder matchDscp(Integer matchDscp) {
this.matchDscp = matchDscp;
return this;
}
/**
* <p>The priority of the QoS rule. Valid values: <strong>1</strong> to <strong>9000</strong>. A larger value indicates a higher priority. The priority of each QoS rule must be unique in the same QoS policy.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* <p>The protocol of the QoS rule. Valid values:</p>
* <ul>
* <li><strong>ALL</strong></li>
* <li><strong>ICMP(IPv4)</strong></li>
* <li><strong>ICMPv6(IPv6)</strong></li>
* <li><strong>TCP</strong></li>
* <li><strong>UDP</strong></li>
* <li><strong>GRE</strong></li>
* <li><strong>SSH</strong></li>
* <li><strong>Telnet</strong></li>
* <li><strong>HTTP</strong></li>
* <li><strong>HTTPS</strong></li>
* <li><strong>MS SQL</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>MySql</strong></li>
* <li><strong>RDP</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>Redis</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ALL</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The ID of the QoS policy.</p>
*
* <strong>example:</strong>
* <p>qos-91xz9f8zd7yj8xwknz</p>
*/
public Builder qosId(String qosId) {
this.qosId = qosId;
return this;
}
/**
* <p>The ID of the QoS queue.</p>
*
* <strong>example:</strong>
* <p>qos-queue-iugg0l9x27f2nocouj</p>
*/
public Builder queueId(String queueId) {
this.queueId = queueId;
return this;
}
/**
* <p>The new DSCP value. Valid values: <strong>0</strong> to <strong>63</strong>. If you do not change the value, the value is -1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder remarkingDscp(Integer remarkingDscp) {
this.remarkingDscp = remarkingDscp;
return this;
}
/**
* <p>The description of the QoS rule.</p>
* <p>The name must be <strong>0</strong> to <strong>256</strong> characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>qos-rule-test</p>
*/
public Builder ruleDescription(String ruleDescription) {
this.ruleDescription = ruleDescription;
return this;
}
/**
* <p>The ID of the QoS rule.</p>
*
* <strong>example:</strong>
* <p>qos-rule-iugg0l9x27f2nocouj</p>
*/
public Builder ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the QoS rule.</p>
* <p>The name must be <strong>0</strong> to <strong>128</strong> characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>qos-rule-test</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The source IPv4 CIDR block that matches the QoS rule traffic.</p>
* <blockquote>
* <p>If the parameter is unavailable, specify <strong>SrcIPv6Cidr</strong> or <strong>DstIPv6Cidr</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1.1.1.0/24</p>
*/
public Builder srcCidr(String srcCidr) {
this.srcCidr = srcCidr;
return this;
}
/**
* <p>The source IPv6 CIDR block that matches the QoS rule traffic.</p>
* <blockquote>
* <p>If the parameter is unavailable, specify <strong>SrcCidr</strong> or <strong>DstCidr</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2001:0db8:1234:5678::/64</p>
*/
public Builder srcIPv6Cidr(String srcIPv6Cidr) {
this.srcIPv6Cidr = srcIPv6Cidr;
return this;
}
/**
* <p>The range of source ports that match the QoS rule traffic. Valid values: <strong>0</strong> to <strong>65535</strong>. If the traffic does not match, the value is -1. You can specify only one port. The start port number must be the same as the end port number.</p>
*
* <strong>example:</strong>
* <p>-1/-1</p>
*/
public Builder srcPortRange(String srcPortRange) {
this.srcPortRange = srcPortRange;
return this;
}
/**
* <p>The status of the QoS rule. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: The QoS queue is available.</li>
* <li><strong>Configuring</strong>: The QoS queue is being configured.</li>
* <li><strong>Deleting</strong>: The QoS queue is being deleted.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public RuleList build() {
return new RuleList(this);
}
}
}
/**
*
* {@link DescribeExpressConnectTrafficQosQueueResponseBody} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosQueueResponseBody</p>
*/
public static class QueueList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BandwidthPercent")
private String bandwidthPercent;
@com.aliyun.core.annotation.NameInMap("QosId")
private String qosId;
@com.aliyun.core.annotation.NameInMap("QueueDescription")
private String queueDescription;
@com.aliyun.core.annotation.NameInMap("QueueId")
private String queueId;
@com.aliyun.core.annotation.NameInMap("QueueName")
private String queueName;
@com.aliyun.core.annotation.NameInMap("QueueType")
private String queueType;
@com.aliyun.core.annotation.NameInMap("RuleList")
private java.util.List<RuleList> ruleList;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private QueueList(Builder builder) {
this.bandwidthPercent = builder.bandwidthPercent;
this.qosId = builder.qosId;
this.queueDescription = builder.queueDescription;
this.queueId = builder.queueId;
this.queueName = builder.queueName;
this.queueType = builder.queueType;
this.ruleList = builder.ruleList;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static QueueList create() {
return builder().build();
}
/**
* @return bandwidthPercent
*/
public String getBandwidthPercent() {
return this.bandwidthPercent;
}
/**
* @return qosId
*/
public String getQosId() {
return this.qosId;
}
/**
* @return queueDescription
*/
public String getQueueDescription() {
return this.queueDescription;
}
/**
* @return queueId
*/
public String getQueueId() {
return this.queueId;
}
/**
* @return queueName
*/
public String getQueueName() {
return this.queueName;
}
/**
* @return queueType
*/
public String getQueueType() {
return this.queueType;
}
/**
* @return ruleList
*/
public java.util.List<RuleList> getRuleList() {
return this.ruleList;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String bandwidthPercent;
private String qosId;
private String queueDescription;
private String queueId;
private String queueName;
private String queueType;
private java.util.List<RuleList> ruleList;
private String status;
private Builder() {
}
private Builder(QueueList model) {
this.bandwidthPercent = model.bandwidthPercent;
this.qosId = model.qosId;
this.queueDescription = model.queueDescription;
this.queueId = model.queueId;
this.queueName = model.queueName;
this.queueType = model.queueType;
this.ruleList = model.ruleList;
this.status = model.status;
}
/**
* <p>The percentage of bandwidth allocated to a QoS queue.</p>
* <ul>
* <li>If QueueType is set to <strong>Medium</strong>, this parameter is returned. Valid values: <strong>1</strong> to <strong>100</strong>.</li>
* <li>If QueueType is set to <strong>Default</strong>, a value of - is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder bandwidthPercent(String bandwidthPercent) {
this.bandwidthPercent = bandwidthPercent;
return this;
}
/**
* <p>The ID of the QoS policy.</p>
*
* <strong>example:</strong>
* <p>qos-ncfgzxg40zks5n0qze</p>
*/
public Builder qosId(String qosId) {
this.qosId = qosId;
return this;
}
/**
* <p>The description of the QoS queue.</p>
* <p>The name must be <strong>0</strong> to <strong>256</strong> characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>qos-queue-test</p>
*/
public Builder queueDescription(String queueDescription) {
this.queueDescription = queueDescription;
return this;
}
/**
* <p>The ID of the QoS queue.</p>
*
* <strong>example:</strong>
* <p>qos-queue-9nyx2u7n71s2rcy4n5</p>
*/
public Builder queueId(String queueId) {
this.queueId = queueId;
return this;
}
/**
* <p>The name of the QoS queue.</p>
* <p>The name must be <strong>0</strong> to <strong>128</strong> characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>qos-queue-test</p>
*/
public Builder queueName(String queueName) {
this.queueName = queueName;
return this;
}
/**
* <p>The priority of the QoS queue. Valid values:</p>
* <ul>
* <li><strong>High</strong></li>
* <li><strong>Medium</strong></li>
* <li><strong>Default</strong></li>
* </ul>
* <blockquote>
* <p> You cannot create a QoS queue of the default priority.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>High</p>
*/
public Builder queueType(String queueType) {
this.queueType = queueType;
return this;
}
/**
* <p>The information about the QoS rules.</p>
*/
public Builder ruleList(java.util.List<RuleList> ruleList) {
this.ruleList = ruleList;
return this;
}
/**
* <p>The state of the QoS queue. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: The QoS queue is available.</li>
* <li><strong>Configuring</strong>: The QoS queue is being configured.</li>
* <li><strong>Deleting</strong>: The QoS queue is being deleted.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public QueueList build() {
return new QueueList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeExpressConnectTrafficQosRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeExpressConnectTrafficQosRequest} extends {@link RequestModel}
*
* <p>DescribeExpressConnectTrafficQosRequest</p>
*/
public class DescribeExpressConnectTrafficQosRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QosIdList")
private java.util.List<String> qosIdList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QosNameList")
private java.util.List<String> qosNameList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
private DescribeExpressConnectTrafficQosRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.qosIdList = builder.qosIdList;
this.qosNameList = builder.qosNameList;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static DescribeExpressConnectTrafficQosRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return qosIdList
*/
public java.util.List<String> getQosIdList() {
return this.qosIdList;
}
/**
* @return qosNameList
*/
public java.util.List<String> getQosNameList() {
return this.qosNameList;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
public static final class Builder extends Request.Builder<DescribeExpressConnectTrafficQosRequest, Builder> {
private String clientToken;
private Integer maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private java.util.List<String> qosIdList;
private java.util.List<String> qosNameList;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private java.util.List<Tags> tags;
private Builder() {
super();
}
private Builder(DescribeExpressConnectTrafficQosRequest request) {
super(request);
this.clientToken = request.clientToken;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.qosIdList = request.qosIdList;
this.qosNameList = request.qosNameList;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.tags = request.tags;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p>If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-0016e04115b</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The maximum number of entries to return. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* <p>The pagination token that is used in the next request to retrieve a new page of results.</p>
* <ul>
* <li>If no value is returned for NetToken, you do not need to specify this parameter.</li>
* <li>If a value is returned for NextToken, you must specify the token that is obtained from the previous query as the value of <strong>NextToken</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The IDs of QoS policies.</p>
*/
public Builder qosIdList(java.util.List<String> qosIdList) {
this.putQueryParameter("QosIdList", qosIdList);
this.qosIdList = qosIdList;
return this;
}
/**
* <p>The names of QoS policies.</p>
*/
public Builder qosNameList(java.util.List<String> qosNameList) {
this.putQueryParameter("QosNameList", qosNameList);
this.qosNameList = qosNameList;
return this;
}
/**
* <p>The ID of the region in which the QoS policy is created.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazfdgdg****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* <p>The tags of the resource.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
@Override
public DescribeExpressConnectTrafficQosRequest build() {
return new DescribeExpressConnectTrafficQosRequest(this);
}
}
/**
*
* {@link DescribeExpressConnectTrafficQosRequest} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosRequest</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. You must enter at least one tag key. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>A tag key can be at most 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag values of the resources. You can specify up to 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeExpressConnectTrafficQosResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeExpressConnectTrafficQosResponse} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosResponse</p>
*/
public class DescribeExpressConnectTrafficQosResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeExpressConnectTrafficQosResponseBody body;
private DescribeExpressConnectTrafficQosResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeExpressConnectTrafficQosResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeExpressConnectTrafficQosResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeExpressConnectTrafficQosResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeExpressConnectTrafficQosResponseBody body);
@Override
DescribeExpressConnectTrafficQosResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeExpressConnectTrafficQosResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeExpressConnectTrafficQosResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeExpressConnectTrafficQosResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeExpressConnectTrafficQosResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeExpressConnectTrafficQosResponse build() {
return new DescribeExpressConnectTrafficQosResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeExpressConnectTrafficQosResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeExpressConnectTrafficQosResponseBody} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosResponseBody</p>
*/
public class DescribeExpressConnectTrafficQosResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private String count;
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("QosList")
private java.util.List<QosList> qosList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeExpressConnectTrafficQosResponseBody(Builder builder) {
this.count = builder.count;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.qosList = builder.qosList;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeExpressConnectTrafficQosResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return count
*/
public String getCount() {
return this.count;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return qosList
*/
public java.util.List<QosList> getQosList() {
return this.qosList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private String count;
private Integer maxResults;
private String nextToken;
private java.util.List<QosList> qosList;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeExpressConnectTrafficQosResponseBody model) {
this.count = model.count;
this.maxResults = model.maxResults;
this.nextToken = model.nextToken;
this.qosList = model.qosList;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(String count) {
this.count = count;
return this;
}
/**
* <p>The number of entries per page. Valid values: <strong>1 to 100</strong>. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxResults(Integer maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* <p>A pagination token. It can be used in the next request to retrieve a new page of results.</p>
* <ul>
* <li>If <strong>NextToken</strong> is empty, no next page exists.</li>
* <li>If a value is returned for <strong>NextToken</strong>, the value can be used in the next request to retrieve a new page of results.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The information about QoS policies.</p>
*/
public Builder qosList(java.util.List<QosList> qosList) {
this.qosList = qosList;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>4CF20CC7-D1FC-425B-A15B-DF7C8E2131A7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of returned entries.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeExpressConnectTrafficQosResponseBody build() {
return new DescribeExpressConnectTrafficQosResponseBody(this);
}
}
/**
*
* {@link DescribeExpressConnectTrafficQosResponseBody} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosResponseBody</p>
*/
public static class AssociatedInstanceList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceProgressing")
private Integer instanceProgressing;
@com.aliyun.core.annotation.NameInMap("InstanceStatus")
private String instanceStatus;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
private AssociatedInstanceList(Builder builder) {
this.instanceId = builder.instanceId;
this.instanceProgressing = builder.instanceProgressing;
this.instanceStatus = builder.instanceStatus;
this.instanceType = builder.instanceType;
}
public static Builder builder() {
return new Builder();
}
public static AssociatedInstanceList create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceProgressing
*/
public Integer getInstanceProgressing() {
return this.instanceProgressing;
}
/**
* @return instanceStatus
*/
public String getInstanceStatus() {
return this.instanceStatus;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
public static final class Builder {
private String instanceId;
private Integer instanceProgressing;
private String instanceStatus;
private String instanceType;
private Builder() {
}
private Builder(AssociatedInstanceList model) {
this.instanceId = model.instanceId;
this.instanceProgressing = model.instanceProgressing;
this.instanceStatus = model.instanceStatus;
this.instanceType = model.instanceType;
}
/**
* <p>The ID of the instance to which the QoS policy is associated.</p>
*
* <strong>example:</strong>
* <p>pc-bp159zj8zujwy3p07j83e</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The configuration progress of the instance to which the QoS policy is associated. Valid values: <strong>0</strong> to <strong>100</strong>.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder instanceProgressing(Integer instanceProgressing) {
this.instanceProgressing = instanceProgressing;
return this;
}
/**
* <p>The state of the instance to which the QoS policy is associated. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: The instance is available.</li>
* <li><strong>Configuring</strong>: The instance is being configured.</li>
* <li><strong>Deleting</strong>: The instance is being deleted.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder instanceStatus(String instanceStatus) {
this.instanceStatus = instanceStatus;
return this;
}
/**
* <p>The type of the instance to which the QoS policy is associated. Only <strong>PHYSICALCONNECTION</strong> is returned.</p>
*
* <strong>example:</strong>
* <p>PHYSICALCONNECTION</p>
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
public AssociatedInstanceList build() {
return new AssociatedInstanceList(this);
}
}
}
/**
*
* {@link DescribeExpressConnectTrafficQosResponseBody} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosResponseBody</p>
*/
public static class QueueList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BandwidthPercent")
private String bandwidthPercent;
@com.aliyun.core.annotation.NameInMap("QosId")
private String qosId;
@com.aliyun.core.annotation.NameInMap("QueueDescription")
private String queueDescription;
@com.aliyun.core.annotation.NameInMap("QueueId")
private String queueId;
@com.aliyun.core.annotation.NameInMap("QueueName")
private String queueName;
@com.aliyun.core.annotation.NameInMap("QueueType")
private String queueType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private QueueList(Builder builder) {
this.bandwidthPercent = builder.bandwidthPercent;
this.qosId = builder.qosId;
this.queueDescription = builder.queueDescription;
this.queueId = builder.queueId;
this.queueName = builder.queueName;
this.queueType = builder.queueType;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static QueueList create() {
return builder().build();
}
/**
* @return bandwidthPercent
*/
public String getBandwidthPercent() {
return this.bandwidthPercent;
}
/**
* @return qosId
*/
public String getQosId() {
return this.qosId;
}
/**
* @return queueDescription
*/
public String getQueueDescription() {
return this.queueDescription;
}
/**
* @return queueId
*/
public String getQueueId() {
return this.queueId;
}
/**
* @return queueName
*/
public String getQueueName() {
return this.queueName;
}
/**
* @return queueType
*/
public String getQueueType() {
return this.queueType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String bandwidthPercent;
private String qosId;
private String queueDescription;
private String queueId;
private String queueName;
private String queueType;
private String status;
private Builder() {
}
private Builder(QueueList model) {
this.bandwidthPercent = model.bandwidthPercent;
this.qosId = model.qosId;
this.queueDescription = model.queueDescription;
this.queueId = model.queueId;
this.queueName = model.queueName;
this.queueType = model.queueType;
this.status = model.status;
}
/**
* <p>The percentage of bandwidth allocated to a QoS queue.</p>
* <ul>
* <li>If QueueType is set to <strong>Medium</strong>, this parameter is required. Valid values: <strong>1</strong> to <strong>100</strong>.</li>
* <li>If QueueType is set to <strong>Default</strong>, a value of - is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder bandwidthPercent(String bandwidthPercent) {
this.bandwidthPercent = bandwidthPercent;
return this;
}
/**
* <p>The ID of the QoS policy.</p>
*
* <strong>example:</strong>
* <p>qos-pksbqfmotl5hzqmhf8</p>
*/
public Builder qosId(String qosId) {
this.qosId = qosId;
return this;
}
/**
* <p>The description of the QoS queue.</p>
* <p>The description can be up to <strong>256</strong> characters in length. It cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>qos-queue-test</p>
*/
public Builder queueDescription(String queueDescription) {
this.queueDescription = queueDescription;
return this;
}
/**
* <p>The ID of the QoS queue.</p>
*
* <strong>example:</strong>
* <p>qos-queue-9nyx2u7n71s2rcy4n5</p>
*/
public Builder queueId(String queueId) {
this.queueId = queueId;
return this;
}
/**
* <p>The name of the QoS queue.</p>
* <p>The name can be up to <strong>128</strong> characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>qos-queue-test</p>
*/
public Builder queueName(String queueName) {
this.queueName = queueName;
return this;
}
/**
* <p>The type of the QoS queue. Valid values:</p>
* <ul>
* <li><strong>High</strong>: high-priority queue.</li>
* <li><strong>Medium</strong>: standard queue.</li>
* <li><strong>Default</strong>: default queue.</li>
* </ul>
* <blockquote>
* <p>You cannot create a default queue.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>High</p>
*/
public Builder queueType(String queueType) {
this.queueType = queueType;
return this;
}
/**
* <p>The state of the QoS queue. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: The QoS queue is available.</li>
* <li><strong>Configuring</strong>: The QoS queue is being configured.</li>
* <li><strong>Deleting</strong>: The QoS queue is being deleted.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public QueueList build() {
return new QueueList(this);
}
}
}
/**
*
* {@link DescribeExpressConnectTrafficQosResponseBody} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeExpressConnectTrafficQosResponseBody} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosResponseBody</p>
*/
public static class QosList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociatedInstanceList")
private java.util.List<AssociatedInstanceList> associatedInstanceList;
@com.aliyun.core.annotation.NameInMap("Progressing")
private Integer progressing;
@com.aliyun.core.annotation.NameInMap("QosDescription")
private String qosDescription;
@com.aliyun.core.annotation.NameInMap("QosId")
private String qosId;
@com.aliyun.core.annotation.NameInMap("QosName")
private String qosName;
@com.aliyun.core.annotation.NameInMap("QueueList")
private java.util.List<QueueList> queueList;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
private QosList(Builder builder) {
this.associatedInstanceList = builder.associatedInstanceList;
this.progressing = builder.progressing;
this.qosDescription = builder.qosDescription;
this.qosId = builder.qosId;
this.qosName = builder.qosName;
this.queueList = builder.queueList;
this.resourceGroupId = builder.resourceGroupId;
this.status = builder.status;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static QosList create() {
return builder().build();
}
/**
* @return associatedInstanceList
*/
public java.util.List<AssociatedInstanceList> getAssociatedInstanceList() {
return this.associatedInstanceList;
}
/**
* @return progressing
*/
public Integer getProgressing() {
return this.progressing;
}
/**
* @return qosDescription
*/
public String getQosDescription() {
return this.qosDescription;
}
/**
* @return qosId
*/
public String getQosId() {
return this.qosId;
}
/**
* @return qosName
*/
public String getQosName() {
return this.qosName;
}
/**
* @return queueList
*/
public java.util.List<QueueList> getQueueList() {
return this.queueList;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
public static final class Builder {
private java.util.List<AssociatedInstanceList> associatedInstanceList;
private Integer progressing;
private String qosDescription;
private String qosId;
private String qosName;
private java.util.List<QueueList> queueList;
private String resourceGroupId;
private String status;
private java.util.List<Tags> tags;
private Builder() {
}
private Builder(QosList model) {
this.associatedInstanceList = model.associatedInstanceList;
this.progressing = model.progressing;
this.qosDescription = model.qosDescription;
this.qosId = model.qosId;
this.qosName = model.qosName;
this.queueList = model.queueList;
this.resourceGroupId = model.resourceGroupId;
this.status = model.status;
this.tags = model.tags;
}
/**
* <p>The information about the instances to which the QoS policy is associated.</p>
*/
public Builder associatedInstanceList(java.util.List<AssociatedInstanceList> associatedInstanceList) {
this.associatedInstanceList = associatedInstanceList;
return this;
}
/**
* <p>The configuration progress of the QoS policy. Valid values: <strong>0</strong> to <strong>100</strong>.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder progressing(Integer progressing) {
this.progressing = progressing;
return this;
}
/**
* <p>The description of the QoS policy.</p>
* <p>The description can be up to 256 characters in length. It cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>qos-test</p>
*/
public Builder qosDescription(String qosDescription) {
this.qosDescription = qosDescription;
return this;
}
/**
* <p>The ID of the QoS policy.</p>
*
* <strong>example:</strong>
* <p>qos-pksbqfmotl5hzq****</p>
*/
public Builder qosId(String qosId) {
this.qosId = qosId;
return this;
}
/**
* <p>The name of the QoS policy.</p>
* <p>The name can be up to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>qos-test</p>
*/
public Builder qosName(String qosName) {
this.qosName = qosName;
return this;
}
/**
* <p>The information about the QoS queues.</p>
*/
public Builder queueList(java.util.List<QueueList> queueList) {
this.queueList = queueList;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmz7vtyl4f***</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The state of the QoS policy. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: The QoS policy is available.</li>
* <li><strong>Configuring</strong>: The QoS policy is being configured.</li>
* </ul>
* <blockquote>
* <p>If a QoS policy is in the Configuring state, you cannot perform most of the operations to create, update, or delete QoS policies, QoS queues, or QoS rules.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The tag list.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.tags = tags;
return this;
}
public QosList build() {
return new QosList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeExpressConnectTrafficQosRuleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeExpressConnectTrafficQosRuleRequest} extends {@link RequestModel}
*
* <p>DescribeExpressConnectTrafficQosRuleRequest</p>
*/
public class DescribeExpressConnectTrafficQosRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QosId")
private String qosId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QueueId")
private String queueId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleIdList")
private java.util.List<String> ruleIdList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleNameList")
private java.util.List<String> ruleNameList;
private DescribeExpressConnectTrafficQosRuleRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.qosId = builder.qosId;
this.queueId = builder.queueId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.ruleIdList = builder.ruleIdList;
this.ruleNameList = builder.ruleNameList;
}
public static Builder builder() {
return new Builder();
}
public static DescribeExpressConnectTrafficQosRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return qosId
*/
public String getQosId() {
return this.qosId;
}
/**
* @return queueId
*/
public String getQueueId() {
return this.queueId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return ruleIdList
*/
public java.util.List<String> getRuleIdList() {
return this.ruleIdList;
}
/**
* @return ruleNameList
*/
public java.util.List<String> getRuleNameList() {
return this.ruleNameList;
}
public static final class Builder extends Request.Builder<DescribeExpressConnectTrafficQosRuleRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String qosId;
private String queueId;
private String regionId;
private String resourceOwnerAccount;
private java.util.List<String> ruleIdList;
private java.util.List<String> ruleNameList;
private Builder() {
super();
}
private Builder(DescribeExpressConnectTrafficQosRuleRequest request) {
super(request);
this.clientToken = request.clientToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.qosId = request.qosId;
this.queueId = request.queueId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.ruleIdList = request.ruleIdList;
this.ruleNameList = request.ruleNameList;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not set this parameter, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the QoS policy.</p>
*
* <strong>example:</strong>
* <p>qos-2giu0a6vd5x0mv4700</p>
*/
public Builder qosId(String qosId) {
this.putQueryParameter("QosId", qosId);
this.qosId = qosId;
return this;
}
/**
* <p>The ID of the QoS queue.</p>
*
* <strong>example:</strong>
* <p>qos-queue-9nyx2u7n71s2rcy4n5</p>
*/
public Builder queueId(String queueId) {
this.putQueryParameter("QueueId", queueId);
this.queueId = queueId;
return this;
}
/**
* <p>The region ID of the QoS policy.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* <p>The list of QoS rule IDs.</p>
*/
public Builder ruleIdList(java.util.List<String> ruleIdList) {
this.putQueryParameter("RuleIdList", ruleIdList);
this.ruleIdList = ruleIdList;
return this;
}
/**
* <p>The list of QoS rule names.</p>
*/
public Builder ruleNameList(java.util.List<String> ruleNameList) {
this.putQueryParameter("RuleNameList", ruleNameList);
this.ruleNameList = ruleNameList;
return this;
}
@Override
public DescribeExpressConnectTrafficQosRuleRequest build() {
return new DescribeExpressConnectTrafficQosRuleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeExpressConnectTrafficQosRuleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeExpressConnectTrafficQosRuleResponse} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosRuleResponse</p>
*/
public class DescribeExpressConnectTrafficQosRuleResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeExpressConnectTrafficQosRuleResponseBody body;
private DescribeExpressConnectTrafficQosRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeExpressConnectTrafficQosRuleResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeExpressConnectTrafficQosRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeExpressConnectTrafficQosRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeExpressConnectTrafficQosRuleResponseBody body);
@Override
DescribeExpressConnectTrafficQosRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeExpressConnectTrafficQosRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeExpressConnectTrafficQosRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeExpressConnectTrafficQosRuleResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeExpressConnectTrafficQosRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeExpressConnectTrafficQosRuleResponse build() {
return new DescribeExpressConnectTrafficQosRuleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeExpressConnectTrafficQosRuleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeExpressConnectTrafficQosRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosRuleResponseBody</p>
*/
public class DescribeExpressConnectTrafficQosRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RuleList")
private java.util.List<RuleList> ruleList;
private DescribeExpressConnectTrafficQosRuleResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.ruleList = builder.ruleList;
}
public static Builder builder() {
return new Builder();
}
public static DescribeExpressConnectTrafficQosRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return ruleList
*/
public java.util.List<RuleList> getRuleList() {
return this.ruleList;
}
public static final class Builder {
private String requestId;
private java.util.List<RuleList> ruleList;
private Builder() {
}
private Builder(DescribeExpressConnectTrafficQosRuleResponseBody model) {
this.requestId = model.requestId;
this.ruleList = model.ruleList;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9C7FA9D6-72E0-48A9-A9C3-2DA8569CD5EB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The list of QoS rules.</p>
*/
public Builder ruleList(java.util.List<RuleList> ruleList) {
this.ruleList = ruleList;
return this;
}
public DescribeExpressConnectTrafficQosRuleResponseBody build() {
return new DescribeExpressConnectTrafficQosRuleResponseBody(this);
}
}
/**
*
* {@link DescribeExpressConnectTrafficQosRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeExpressConnectTrafficQosRuleResponseBody</p>
*/
public static class RuleList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstCidr")
private String dstCidr;
@com.aliyun.core.annotation.NameInMap("DstIPv6Cidr")
private String dstIPv6Cidr;
@com.aliyun.core.annotation.NameInMap("DstPortRange")
private String dstPortRange;
@com.aliyun.core.annotation.NameInMap("MatchDscp")
private Integer matchDscp;
@com.aliyun.core.annotation.NameInMap("Priority")
private Integer priority;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("QosId")
private String qosId;
@com.aliyun.core.annotation.NameInMap("QueueId")
private String queueId;
@com.aliyun.core.annotation.NameInMap("RemarkingDscp")
private Integer remarkingDscp;
@com.aliyun.core.annotation.NameInMap("RuleDescription")
private String ruleDescription;
@com.aliyun.core.annotation.NameInMap("RuleId")
private String ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("SrcCidr")
private String srcCidr;
@com.aliyun.core.annotation.NameInMap("SrcIPv6Cidr")
private String srcIPv6Cidr;
@com.aliyun.core.annotation.NameInMap("SrcPortRange")
private String srcPortRange;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private RuleList(Builder builder) {
this.dstCidr = builder.dstCidr;
this.dstIPv6Cidr = builder.dstIPv6Cidr;
this.dstPortRange = builder.dstPortRange;
this.matchDscp = builder.matchDscp;
this.priority = builder.priority;
this.protocol = builder.protocol;
this.qosId = builder.qosId;
this.queueId = builder.queueId;
this.remarkingDscp = builder.remarkingDscp;
this.ruleDescription = builder.ruleDescription;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.srcCidr = builder.srcCidr;
this.srcIPv6Cidr = builder.srcIPv6Cidr;
this.srcPortRange = builder.srcPortRange;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static RuleList create() {
return builder().build();
}
/**
* @return dstCidr
*/
public String getDstCidr() {
return this.dstCidr;
}
/**
* @return dstIPv6Cidr
*/
public String getDstIPv6Cidr() {
return this.dstIPv6Cidr;
}
/**
* @return dstPortRange
*/
public String getDstPortRange() {
return this.dstPortRange;
}
/**
* @return matchDscp
*/
public Integer getMatchDscp() {
return this.matchDscp;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return qosId
*/
public String getQosId() {
return this.qosId;
}
/**
* @return queueId
*/
public String getQueueId() {
return this.queueId;
}
/**
* @return remarkingDscp
*/
public Integer getRemarkingDscp() {
return this.remarkingDscp;
}
/**
* @return ruleDescription
*/
public String getRuleDescription() {
return this.ruleDescription;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return srcCidr
*/
public String getSrcCidr() {
return this.srcCidr;
}
/**
* @return srcIPv6Cidr
*/
public String getSrcIPv6Cidr() {
return this.srcIPv6Cidr;
}
/**
* @return srcPortRange
*/
public String getSrcPortRange() {
return this.srcPortRange;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String dstCidr;
private String dstIPv6Cidr;
private String dstPortRange;
private Integer matchDscp;
private Integer priority;
private String protocol;
private String qosId;
private String queueId;
private Integer remarkingDscp;
private String ruleDescription;
private String ruleId;
private String ruleName;
private String srcCidr;
private String srcIPv6Cidr;
private String srcPortRange;
private String status;
private Builder() {
}
private Builder(RuleList model) {
this.dstCidr = model.dstCidr;
this.dstIPv6Cidr = model.dstIPv6Cidr;
this.dstPortRange = model.dstPortRange;
this.matchDscp = model.matchDscp;
this.priority = model.priority;
this.protocol = model.protocol;
this.qosId = model.qosId;
this.queueId = model.queueId;
this.remarkingDscp = model.remarkingDscp;
this.ruleDescription = model.ruleDescription;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.srcCidr = model.srcCidr;
this.srcIPv6Cidr = model.srcIPv6Cidr;
this.srcPortRange = model.srcPortRange;
this.status = model.status;
}
/**
* <p>The destination IPv4 CIDR block that matches the QoS rule traffic.</p>
* <blockquote>
* <p>When this parameter is unavailable, specify <strong>SrcIPv6Cidr</strong> or <strong>DstIPv6Cidr</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1.1.1.0/24</p>
*/
public Builder dstCidr(String dstCidr) {
this.dstCidr = dstCidr;
return this;
}
/**
* <p>The destination IPv6 CIDR block that matches the QoS rule traffic.</p>
* <blockquote>
* <p>When this parameter is unavailable, specify <strong>SrcCidr</strong> or <strong>DstCidr</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2001:0db8:1234:5678::/64</p>
*/
public Builder dstIPv6Cidr(String dstIPv6Cidr) {
this.dstIPv6Cidr = dstIPv6Cidr;
return this;
}
/**
* <p>The range of destination ports that match the QoS rule traffic. Valid values: <strong>0</strong> to <strong>65535</strong>. If the traffic does not match, the value is -1. You can specify only one port. The start port number must be the same as the end port number. Different protocols correspond to different ports. Valid values:</p>
* <ul>
* <li><strong>ALL</strong> (uneditable): -1/-1.</li>
* <li><strong>ICMP(IPv4)</strong> (uneditable): -1/-1.</li>
* <li><strong>ICMPv6(IPv6)</strong> (uneditable): -1/-1.</li>
* <li><strong>TCP</strong> (editable): -1/-1.</li>
* <li><strong>UDP</strong> (editable): -1/-1.</li>
* <li><strong>GRE</strong> (uneditable): -1/-1.</li>
* <li><strong>SSH</strong> (uneditable): 22/22.</li>
* <li><strong>Telnet</strong> (uneditable): 23/23.</li>
* <li><strong>HTTP</strong> (uneditable): 80/80.</li>
* <li><strong>HTTPS</strong> (uneditable): 443/443.</li>
* <li><strong>MS SQL</strong> (uneditable): 1443/1443.</li>
* <li><strong>Oracle</strong> (uneditable): 1521/1521.</li>
* <li><strong>MySql</strong> (uneditable): 3306/3306.</li>
* <li><strong>RDP</strong> (uneditable): 3389/3389.</li>
* <li><strong>PostgreSQL</strong> (uneditable): 5432/5432.</li>
* <li><strong>Redis</strong> (uneditable): 6379/6379.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1/-1</p>
*/
public Builder dstPortRange(String dstPortRange) {
this.dstPortRange = dstPortRange;
return this;
}
/**
* <p>The DSCP value that matches the QoS rule traffic. Valid values: <strong>0</strong> to <strong>63</strong>. If no value is matched, the value is -1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder matchDscp(Integer matchDscp) {
this.matchDscp = matchDscp;
return this;
}
/**
* <p>The priority of the QoS rule. Valid values: <strong>1</strong> to <strong>9000</strong>. A larger value indicates a higher priority. The priority of each QoS rule must be unique in the same QoS policy.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* <p>The protocol of the QoS rule. Valid values:</p>
* <ul>
* <li><strong>ALL</strong></li>
* <li><strong>ICMP(IPv4)</strong></li>
* <li><strong>ICMPv6(IPv6)</strong></li>
* <li><strong>TCP</strong></li>
* <li><strong>UDP</strong></li>
* <li><strong>GRE</strong></li>
* <li><strong>SSH</strong></li>
* <li><strong>Telnet</strong></li>
* <li><strong>HTTP</strong></li>
* <li><strong>HTTPS</strong></li>
* <li><strong>MS SQL</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>MySql</strong></li>
* <li><strong>RDP</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>Redis</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ALL</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The ID of the QoS policy.</p>
*
* <strong>example:</strong>
* <p>qos-pksbqfmotl5hzqmhf8</p>
*/
public Builder qosId(String qosId) {
this.qosId = qosId;
return this;
}
/**
* <p>The ID of the QoS queue.</p>
*
* <strong>example:</strong>
* <p>qos-queue-9nyx2u7n71s2rcy4n5</p>
*/
public Builder queueId(String queueId) {
this.queueId = queueId;
return this;
}
/**
* <p>The new DSCP value. Valid values: <strong>0</strong> to <strong>63</strong>. If you do not change the value, set the value to -1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder remarkingDscp(Integer remarkingDscp) {
this.remarkingDscp = remarkingDscp;
return this;
}
/**
* <p>The description of the QoS rule.</p>
* <p>The description must be 0 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>qos-rule-test</p>
*/
public Builder ruleDescription(String ruleDescription) {
this.ruleDescription = ruleDescription;
return this;
}
/**
* <p>The ID of the QoS rule.</p>
*
* <strong>example:</strong>
* <p>qos-rule-iugg0l9x27f2nocouj</p>
*/
public Builder ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the QoS rule.</p>
* <p>The name must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>qos-rule-test</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The source IPv4 CIDR block that matches the QoS rule traffic.</p>
* <blockquote>
* <p>When this parameter is unavailable, specify <strong>SrcIPv6Cidr</strong> or <strong>DstIPv6Cidr</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1.1.1.0/24</p>
*/
public Builder srcCidr(String srcCidr) {
this.srcCidr = srcCidr;
return this;
}
/**
* <p>The source IPv6 CIDR block that matches the QoS rule traffic.</p>
* <blockquote>
* <p>When this parameter is unavailable, specify <strong>SrcCidr</strong> or <strong>DstCidr</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2001:0db8:1234:5678::/64</p>
*/
public Builder srcIPv6Cidr(String srcIPv6Cidr) {
this.srcIPv6Cidr = srcIPv6Cidr;
return this;
}
/**
* <p>The range of source ports that match the QoS rule traffic. Valid values: <strong>0</strong> to <strong>65535</strong>. If the traffic does not match, the value is -1. You can specify only one port. The start port number must be the same as the end port number.</p>
*
* <strong>example:</strong>
* <p>-1/-1</p>
*/
public Builder srcPortRange(String srcPortRange) {
this.srcPortRange = srcPortRange;
return this;
}
/**
* <p>The status of the QoS rule. Valid values:</p>
* <ul>
* <li><strong>Normal</strong></li>
* <li><strong>Configuring</strong></li>
* <li><strong>Deleting</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public RuleList build() {
return new RuleList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeFailoverTestJobRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeFailoverTestJobRequest} extends {@link RequestModel}
*
* <p>DescribeFailoverTestJobRequest</p>
*/
public class DescribeFailoverTestJobRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JobId")
@com.aliyun.core.annotation.Validation(required = true)
private String jobId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
private DescribeFailoverTestJobRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.jobId = builder.jobId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeFailoverTestJobRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public static final class Builder extends Request.Builder<DescribeFailoverTestJobRequest, Builder> {
private String clientToken;
private String jobId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Builder() {
super();
}
private Builder(DescribeFailoverTestJobRequest request) {
super(request);
this.clientToken = request.clientToken;
this.jobId = request.jobId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p>If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the failover test.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ftj-xxxxxxxxx</p>
*/
public Builder jobId(String jobId) {
this.putQueryParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the failover test.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
@Override
public DescribeFailoverTestJobRequest build() {
return new DescribeFailoverTestJobRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeFailoverTestJobResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeFailoverTestJobResponse} extends {@link TeaModel}
*
* <p>DescribeFailoverTestJobResponse</p>
*/
public class DescribeFailoverTestJobResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeFailoverTestJobResponseBody body;
private DescribeFailoverTestJobResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeFailoverTestJobResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeFailoverTestJobResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeFailoverTestJobResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeFailoverTestJobResponseBody body);
@Override
DescribeFailoverTestJobResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeFailoverTestJobResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeFailoverTestJobResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeFailoverTestJobResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeFailoverTestJobResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeFailoverTestJobResponse build() {
return new DescribeFailoverTestJobResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeFailoverTestJobResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeFailoverTestJobResponseBody} extends {@link TeaModel}
*
* <p>DescribeFailoverTestJobResponseBody</p>
*/
public class DescribeFailoverTestJobResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FailoverTestJobModel")
private FailoverTestJobModel failoverTestJobModel;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeFailoverTestJobResponseBody(Builder builder) {
this.failoverTestJobModel = builder.failoverTestJobModel;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeFailoverTestJobResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return failoverTestJobModel
*/
public FailoverTestJobModel getFailoverTestJobModel() {
return this.failoverTestJobModel;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private FailoverTestJobModel failoverTestJobModel;
private String requestId;
private Builder() {
}
private Builder(DescribeFailoverTestJobResponseBody model) {
this.failoverTestJobModel = model.failoverTestJobModel;
this.requestId = model.requestId;
}
/**
* <p>The failover test.</p>
*/
public Builder failoverTestJobModel(FailoverTestJobModel failoverTestJobModel) {
this.failoverTestJobModel = failoverTestJobModel;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>C44F62BE-9CE7-4277-B117-69243F3988BF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeFailoverTestJobResponseBody build() {
return new DescribeFailoverTestJobResponseBody(this);
}
}
/**
*
* {@link DescribeFailoverTestJobResponseBody} extends {@link TeaModel}
*
* <p>DescribeFailoverTestJobResponseBody</p>
*/
public static class FailoverTestJobModel extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("JobDuration")
private String jobDuration;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("JobType")
private String jobType;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ResourceId")
private java.util.List<String> resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StopTime")
private String stopTime;
private FailoverTestJobModel(Builder builder) {
this.description = builder.description;
this.jobDuration = builder.jobDuration;
this.jobId = builder.jobId;
this.jobType = builder.jobType;
this.name = builder.name;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.startTime = builder.startTime;
this.status = builder.status;
this.stopTime = builder.stopTime;
}
public static Builder builder() {
return new Builder();
}
public static FailoverTestJobModel create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return jobDuration
*/
public String getJobDuration() {
return this.jobDuration;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return jobType
*/
public String getJobType() {
return this.jobType;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return resourceId
*/
public java.util.List<String> getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return stopTime
*/
public String getStopTime() {
return this.stopTime;
}
public static final class Builder {
private String description;
private String jobDuration;
private String jobId;
private String jobType;
private String name;
private java.util.List<String> resourceId;
private String resourceType;
private String startTime;
private String status;
private String stopTime;
private Builder() {
}
private Builder(FailoverTestJobModel model) {
this.description = model.description;
this.jobDuration = model.jobDuration;
this.jobId = model.jobId;
this.jobType = model.jobType;
this.name = model.name;
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.startTime = model.startTime;
this.status = model.status;
this.stopTime = model.stopTime;
}
/**
* <p>The description of the failover test.</p>
* <p>The description must be 0 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The duration of the failover test. Unit: minutes. Valid values: <strong>1 to 4320</strong>.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder jobDuration(String jobDuration) {
this.jobDuration = jobDuration;
return this;
}
/**
* <p>The ID of the failover test.</p>
*
* <strong>example:</strong>
* <p>ftj-xxxxxxxxx</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>Indicates whether the failover test is performed immediately. Valid values:</p>
* <ul>
* <li><strong>StartNow</strong></li>
* <li><strong>StartLater</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>StartNow</p>
*/
public Builder jobType(String jobType) {
this.jobType = jobType;
return this;
}
/**
* <p>The name of the failover test.</p>
* <p>The name must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The IDs of failover test resources.</p>
*/
public Builder resourceId(java.util.List<String> resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of failover test resource. Only <strong>PHYSICALCONNECTION</strong> is returned.</p>
*
* <strong>example:</strong>
* <p>PHYSICALCONNECTION</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The start time of the failover test. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2023-11-21T14:00:00Z</p>
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The status of the failover test. Valid values:</p>
* <ul>
* <li><strong>Init</strong></li>
* <li><strong>Starting</strong></li>
* <li><strong>Testing</strong></li>
* <li><strong>Stopping</strong></li>
* <li><strong>Stopped</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Init</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The end time of the failover test. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2023-11-21T15:00:00Z</p>
*/
public Builder stopTime(String stopTime) {
this.stopTime = stopTime;
return this;
}
public FailoverTestJobModel build() {
return new FailoverTestJobModel(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeFailoverTestJobsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeFailoverTestJobsRequest} extends {@link RequestModel}
*
* <p>DescribeFailoverTestJobsRequest</p>
*/
public class DescribeFailoverTestJobsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Filter")
private java.util.List<Filter> filter;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
private DescribeFailoverTestJobsRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.filter = builder.filter;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeFailoverTestJobsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return filter
*/
public java.util.List<Filter> getFilter() {
return this.filter;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public static final class Builder extends Request.Builder<DescribeFailoverTestJobsRequest, Builder> {
private String clientToken;
private java.util.List<Filter> filter;
private Integer maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Builder() {
super();
}
private Builder(DescribeFailoverTestJobsRequest request) {
super(request);
this.clientToken = request.clientToken;
this.filter = request.filter;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p>If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The filter information.</p>
*/
public Builder filter(java.util.List<Filter> filter) {
this.putQueryParameter("Filter", filter);
this.filter = filter;
return this;
}
/**
* <p>The number of entries per page. Valid values: <strong>1 to 100</strong>. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* <p>The token that is used for the next query. Valid values:</p>
* <ul>
* <li>If the value of <strong>NextToken</strong> is not returned, it indicates that no next query is to be sent.</li>
* <li>If a value of <strong>NextToken</strong> is returned, the value is the token that is used for the subsequent query.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region where you want to perform the failover test.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
@Override
public DescribeFailoverTestJobsRequest build() {
return new DescribeFailoverTestJobsRequest(this);
}
}
/**
*
* {@link DescribeFailoverTestJobsRequest} extends {@link TeaModel}
*
* <p>DescribeFailoverTestJobsRequest</p>
*/
public static class Filter extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private java.util.List<String> value;
private Filter(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Filter create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public java.util.List<String> getValue() {
return this.value;
}
public static final class Builder {
private String key;
private java.util.List<String> value;
private Builder() {
}
private Builder(Filter model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The filter key. Valid values:</p>
* <ul>
* <li><strong>JobId</strong></li>
* <li><strong>JobName</strong></li>
* <li><strong>JobStatus</strong></li>
* <li><strong>ResourceId</strong></li>
* <li><strong>ResourceName</strong></li>
* <li><strong>ResourceType</strong></li>
* </ul>
* <blockquote>
* <p>You can specify at most five different filter keys. If you specify ResourceId or ResourceName, you must also specify ResourceType. The logical operator among the filter keys is AND. Results that meet all specified filter keys are returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>JobId</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of the filter key.</p>
* <blockquote>
* <p>You can specify at most five filter values for each filter key. The logical operator among filter values is OR. If a filter value is matched, the filter key is considered matched.</p>
* </blockquote>
*/
public Builder value(java.util.List<String> value) {
this.value = value;
return this;
}
public Filter build() {
return new Filter(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeFailoverTestJobsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeFailoverTestJobsResponse} extends {@link TeaModel}
*
* <p>DescribeFailoverTestJobsResponse</p>
*/
public class DescribeFailoverTestJobsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeFailoverTestJobsResponseBody body;
private DescribeFailoverTestJobsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeFailoverTestJobsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeFailoverTestJobsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeFailoverTestJobsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeFailoverTestJobsResponseBody body);
@Override
DescribeFailoverTestJobsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeFailoverTestJobsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeFailoverTestJobsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeFailoverTestJobsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeFailoverTestJobsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeFailoverTestJobsResponse build() {
return new DescribeFailoverTestJobsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeFailoverTestJobsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeFailoverTestJobsResponseBody} extends {@link TeaModel}
*
* <p>DescribeFailoverTestJobsResponseBody</p>
*/
public class DescribeFailoverTestJobsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("FailoverTestJobList")
private java.util.List<FailoverTestJobList> failoverTestJobList;
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeFailoverTestJobsResponseBody(Builder builder) {
this.count = builder.count;
this.failoverTestJobList = builder.failoverTestJobList;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeFailoverTestJobsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return failoverTestJobList
*/
public java.util.List<FailoverTestJobList> getFailoverTestJobList() {
return this.failoverTestJobList;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private java.util.List<FailoverTestJobList> failoverTestJobList;
private Integer maxResults;
private String nextToken;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeFailoverTestJobsResponseBody model) {
this.count = model.count;
this.failoverTestJobList = model.failoverTestJobList;
this.maxResults = model.maxResults;
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries on the current page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The list of failover tests.</p>
*/
public Builder failoverTestJobList(java.util.List<FailoverTestJobList> failoverTestJobList) {
this.failoverTestJobList = failoverTestJobList;
return this;
}
/**
* <p>The number of entries per page. Valid values: <strong>1 to 100</strong>. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxResults(Integer maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* <p>A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:</p>
* <ul>
* <li>If no value is returned for <strong>NextToken</strong>, no next queries are sent.</li>
* <li>If a value is returned for <strong>NextToken</strong>, the value is used to retrieve a new page of results.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of entries returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeFailoverTestJobsResponseBody build() {
return new DescribeFailoverTestJobsResponseBody(this);
}
}
/**
*
* {@link DescribeFailoverTestJobsResponseBody} extends {@link TeaModel}
*
* <p>DescribeFailoverTestJobsResponseBody</p>
*/
public static class FailoverTestJobList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("JobDuration")
private String jobDuration;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("JobType")
private String jobType;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ResourceId")
private java.util.List<String> resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StopTime")
private String stopTime;
private FailoverTestJobList(Builder builder) {
this.description = builder.description;
this.jobDuration = builder.jobDuration;
this.jobId = builder.jobId;
this.jobType = builder.jobType;
this.name = builder.name;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.startTime = builder.startTime;
this.status = builder.status;
this.stopTime = builder.stopTime;
}
public static Builder builder() {
return new Builder();
}
public static FailoverTestJobList create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return jobDuration
*/
public String getJobDuration() {
return this.jobDuration;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return jobType
*/
public String getJobType() {
return this.jobType;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return resourceId
*/
public java.util.List<String> getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return stopTime
*/
public String getStopTime() {
return this.stopTime;
}
public static final class Builder {
private String description;
private String jobDuration;
private String jobId;
private String jobType;
private String name;
private java.util.List<String> resourceId;
private String resourceType;
private String startTime;
private String status;
private String stopTime;
private Builder() {
}
private Builder(FailoverTestJobList model) {
this.description = model.description;
this.jobDuration = model.jobDuration;
this.jobId = model.jobId;
this.jobType = model.jobType;
this.name = model.name;
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.startTime = model.startTime;
this.status = model.status;
this.stopTime = model.stopTime;
}
/**
* <p>The description of the failover test.</p>
* <p>The description must be 0 to 256 characters in length and cannot start with **http:// <strong>or</strong> https://**.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The duration of the failover test. Unit: minutes. Valid values: <strong>1 to 4320</strong>.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder jobDuration(String jobDuration) {
this.jobDuration = jobDuration;
return this;
}
/**
* <p>The ID of the failover test.</p>
*
* <strong>example:</strong>
* <p>ftj-xxxxxxxxx</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>Indicates whether the failover test is performed immediately. Valid values:</p>
* <ul>
* <li><strong>StartNow</strong></li>
* <li><strong>StartLater</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>StartNow</p>
*/
public Builder jobType(String jobType) {
this.jobType = jobType;
return this;
}
/**
* <p>The name of the failover test.</p>
* <p>The name must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The IDs of the failover test resources.</p>
*/
public Builder resourceId(java.util.List<String> resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of the failover test resource. Only <strong>PHYSICALCONNECTION</strong> is returned.</p>
*
* <strong>example:</strong>
* <p>PHYSICALCONNECTION</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The beginning of the fault drill task. The time must be in UTC. Specify the time in the ISO 8601 standard in <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2023-11-21T14:00:00Z</p>
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The status of the failover test. Valid values:</p>
* <ul>
* <li><strong>Init</strong></li>
* <li><strong>Starting</strong></li>
* <li><strong>Testing</strong></li>
* <li><strong>Stopping</strong></li>
* <li><strong>Stopped</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Init</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The end of the fault drill task. The time must be in UTC. Specify the time in the ISO 8601 standard in <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2023-11-21T15:00:00Z</p>
*/
public Builder stopTime(String stopTime) {
this.stopTime = stopTime;
return this;
}
public FailoverTestJobList build() {
return new FailoverTestJobList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeFlowLogsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeFlowLogsRequest} extends {@link RequestModel}
*
* <p>DescribeFlowLogsRequest</p>
*/
public class DescribeFlowLogsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FlowLogId")
private String flowLogId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FlowLogName")
private String flowLogName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LogStoreName")
private String logStoreName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProjectName")
private String projectName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficType")
private String trafficType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private DescribeFlowLogsRequest(Builder builder) {
super(builder);
this.description = builder.description;
this.flowLogId = builder.flowLogId;
this.flowLogName = builder.flowLogName;
this.logStoreName = builder.logStoreName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.projectName = builder.projectName;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceId = builder.resourceId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.resourceType = builder.resourceType;
this.status = builder.status;
this.tags = builder.tags;
this.trafficType = builder.trafficType;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeFlowLogsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return flowLogId
*/
public String getFlowLogId() {
return this.flowLogId;
}
/**
* @return flowLogName
*/
public String getFlowLogName() {
return this.flowLogName;
}
/**
* @return logStoreName
*/
public String getLogStoreName() {
return this.logStoreName;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return projectName
*/
public String getProjectName() {
return this.projectName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
/**
* @return trafficType
*/
public String getTrafficType() {
return this.trafficType;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<DescribeFlowLogsRequest, Builder> {
private String description;
private String flowLogId;
private String flowLogName;
private String logStoreName;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String projectName;
private String regionId;
private String resourceGroupId;
private String resourceId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String resourceType;
private String status;
private java.util.List<Tags> tags;
private String trafficType;
private String vpcId;
private Builder() {
super();
}
private Builder(DescribeFlowLogsRequest request) {
super(request);
this.description = request.description;
this.flowLogId = request.flowLogId;
this.flowLogName = request.flowLogName;
this.logStoreName = request.logStoreName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.projectName = request.projectName;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceId = request.resourceId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.resourceType = request.resourceType;
this.status = request.status;
this.tags = request.tags;
this.trafficType = request.trafficType;
this.vpcId = request.vpcId;
}
/**
* <p>The description of the flow log.</p>
* <p>The description must be 1 to 256 characters long and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>This is my Flowlog.</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The ID of the flow log.</p>
*
* <strong>example:</strong>
* <p>fl-bp1f6qqhsrc2c12ta****</p>
*/
public Builder flowLogId(String flowLogId) {
this.putQueryParameter("FlowLogId", flowLogId);
this.flowLogId = flowLogId;
return this;
}
/**
* <p>The name of the flow log.</p>
* <p>The name must be 1 to 128 characters long and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>myFlowlog</p>
*/
public Builder flowLogName(String flowLogName) {
this.putQueryParameter("FlowLogName", flowLogName);
this.flowLogName = flowLogName;
return this;
}
/**
* <p>The Logstore that stores the captured traffic.</p>
*
* <strong>example:</strong>
* <p>FlowLogStore</p>
*/
public Builder logStoreName(String logStoreName) {
this.putQueryParameter("LogStoreName", logStoreName);
this.logStoreName = logStoreName;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number, with a default value of <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of items per page in a paginated query, with a maximum value of <strong>50</strong> and a default value of <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The Project that manages the captured traffic.</p>
*
* <strong>example:</strong>
* <p>FlowLogProject</p>
*/
public Builder projectName(String projectName) {
this.putQueryParameter("ProjectName", projectName);
this.projectName = projectName;
return this;
}
/**
* <p>The region ID of the flow log.</p>
* <p>You can obtain the region ID by calling the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> interface.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID of the flow log.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The resource ID of the traffic to capture.</p>
*
* <strong>example:</strong>
* <p>eni-askldfas****</p>
*/
public Builder resourceId(String resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The resource type of the traffic to capture. Values:</p>
* <ul>
* <li><strong>NetworkInterface</strong>: Elastic Network Interface (ENI).</li>
* <li><strong>VSwitch</strong>: All ENIs within a VSwitch.</li>
* <li><strong>VPC</strong>: All ENIs within a VPC.</li>
* </ul>
*
* <strong>example:</strong>
* <p>NetworkInterface</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The status of the flow log. Values:</p>
* <ul>
* <li><strong>Active</strong>: The flow log is in an active state.</li>
* <li><strong>Activating</strong>: The flow log is being created.</li>
* <li><strong>Inactive</strong>: The flow log is in an inactive state.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Active</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* <p>The list of tags.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The type of traffic to collect. Values:</p>
* <ul>
* <li><strong>All</strong>: All traffic.</li>
* <li><strong>Allow</strong>: Traffic allowed by access control.</li>
* <li><strong>Drop</strong>: Traffic denied by access control.</li>
* </ul>
*
* <strong>example:</strong>
* <p>All</p>
*/
public Builder trafficType(String trafficType) {
this.putQueryParameter("TrafficType", trafficType);
this.trafficType = trafficType;
return this;
}
/**
* <p>The ID of the VPC for which you want to view the flow log.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1nwd16gvo1wgs****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public DescribeFlowLogsRequest build() {
return new DescribeFlowLogsRequest(this);
}
}
/**
*
* {@link DescribeFlowLogsRequest} extends {@link TeaModel}
*
* <p>DescribeFlowLogsRequest</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of the tag. Up to 20 tag keys are supported. If you need to pass this value, it cannot be an empty string.</p>
* <p>A tag key can have up to 128 characters and cannot start with <code>aliyun</code> or <code>acs:</code>. It also cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of the tag. Up to 20 tag values are supported. If you need to pass this value, it can be an empty string.</p>
* <p>A tag value can have up to 128 characters and cannot start with <code>aliyun</code> or <code>acs:</code>. It also cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeFlowLogsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeFlowLogsResponse} extends {@link TeaModel}
*
* <p>DescribeFlowLogsResponse</p>
*/
public class DescribeFlowLogsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeFlowLogsResponseBody body;
private DescribeFlowLogsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeFlowLogsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeFlowLogsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeFlowLogsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeFlowLogsResponseBody body);
@Override
DescribeFlowLogsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeFlowLogsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeFlowLogsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeFlowLogsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeFlowLogsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeFlowLogsResponse build() {
return new DescribeFlowLogsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeFlowLogsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeFlowLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeFlowLogsResponseBody</p>
*/
public class DescribeFlowLogsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FlowLogs")
private FlowLogs flowLogs;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private String success;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private String totalCount;
private DescribeFlowLogsResponseBody(Builder builder) {
this.flowLogs = builder.flowLogs;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.success = builder.success;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeFlowLogsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return flowLogs
*/
public FlowLogs getFlowLogs() {
return this.flowLogs;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public String getSuccess() {
return this.success;
}
/**
* @return totalCount
*/
public String getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private FlowLogs flowLogs;
private String pageNumber;
private String pageSize;
private String requestId;
private String success;
private String totalCount;
private Builder() {
}
private Builder(DescribeFlowLogsResponseBody model) {
this.flowLogs = model.flowLogs;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.success = model.success;
this.totalCount = model.totalCount;
}
/**
* <p>List of flow logs.</p>
*/
public Builder flowLogs(FlowLogs flowLogs) {
this.flowLogs = flowLogs;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of items per page in a paginated query.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the call was successful. Values:</p>
* <ul>
* <li><strong>true</strong>: The call was successful.</li>
* <li><strong>false</strong>: The call failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(String success) {
this.success = success;
return this;
}
/**
* <p>The number of entries in the queried flow log list.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(String totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeFlowLogsResponseBody build() {
return new DescribeFlowLogsResponseBody(this);
}
}
/**
*
* {@link DescribeFlowLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeFlowLogsResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>Tag key.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>Tag value.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeFlowLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeFlowLogsResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeFlowLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeFlowLogsResponseBody</p>
*/
public static class TrafficPath extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TrafficPathList")
private java.util.List<String> trafficPathList;
private TrafficPath(Builder builder) {
this.trafficPathList = builder.trafficPathList;
}
public static Builder builder() {
return new Builder();
}
public static TrafficPath create() {
return builder().build();
}
/**
* @return trafficPathList
*/
public java.util.List<String> getTrafficPathList() {
return this.trafficPathList;
}
public static final class Builder {
private java.util.List<String> trafficPathList;
private Builder() {
}
private Builder(TrafficPath model) {
this.trafficPathList = model.trafficPathList;
}
/**
* TrafficPathList.
*/
public Builder trafficPathList(java.util.List<String> trafficPathList) {
this.trafficPathList = trafficPathList;
return this;
}
public TrafficPath build() {
return new TrafficPath(this);
}
}
}
/**
*
* {@link DescribeFlowLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeFlowLogsResponseBody</p>
*/
public static class FlowLog extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AggregationInterval")
private Integer aggregationInterval;
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("FlowLogDeliverErrorMessage")
private String flowLogDeliverErrorMessage;
@com.aliyun.core.annotation.NameInMap("FlowLogDeliverStatus")
private String flowLogDeliverStatus;
@com.aliyun.core.annotation.NameInMap("FlowLogId")
private String flowLogId;
@com.aliyun.core.annotation.NameInMap("FlowLogName")
private String flowLogName;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("LogStoreName")
private String logStoreName;
@com.aliyun.core.annotation.NameInMap("ProjectName")
private String projectName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("ServiceType")
private String serviceType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("TrafficPath")
private TrafficPath trafficPath;
@com.aliyun.core.annotation.NameInMap("TrafficType")
private String trafficType;
private FlowLog(Builder builder) {
this.aggregationInterval = builder.aggregationInterval;
this.businessStatus = builder.businessStatus;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.flowLogDeliverErrorMessage = builder.flowLogDeliverErrorMessage;
this.flowLogDeliverStatus = builder.flowLogDeliverStatus;
this.flowLogId = builder.flowLogId;
this.flowLogName = builder.flowLogName;
this.ipVersion = builder.ipVersion;
this.logStoreName = builder.logStoreName;
this.projectName = builder.projectName;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.serviceType = builder.serviceType;
this.status = builder.status;
this.tags = builder.tags;
this.trafficPath = builder.trafficPath;
this.trafficType = builder.trafficType;
}
public static Builder builder() {
return new Builder();
}
public static FlowLog create() {
return builder().build();
}
/**
* @return aggregationInterval
*/
public Integer getAggregationInterval() {
return this.aggregationInterval;
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return flowLogDeliverErrorMessage
*/
public String getFlowLogDeliverErrorMessage() {
return this.flowLogDeliverErrorMessage;
}
/**
* @return flowLogDeliverStatus
*/
public String getFlowLogDeliverStatus() {
return this.flowLogDeliverStatus;
}
/**
* @return flowLogId
*/
public String getFlowLogId() {
return this.flowLogId;
}
/**
* @return flowLogName
*/
public String getFlowLogName() {
return this.flowLogName;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return logStoreName
*/
public String getLogStoreName() {
return this.logStoreName;
}
/**
* @return projectName
*/
public String getProjectName() {
return this.projectName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return serviceType
*/
public String getServiceType() {
return this.serviceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return trafficPath
*/
public TrafficPath getTrafficPath() {
return this.trafficPath;
}
/**
* @return trafficType
*/
public String getTrafficType() {
return this.trafficType;
}
public static final class Builder {
private Integer aggregationInterval;
private String businessStatus;
private String creationTime;
private String description;
private String flowLogDeliverErrorMessage;
private String flowLogDeliverStatus;
private String flowLogId;
private String flowLogName;
private String ipVersion;
private String logStoreName;
private String projectName;
private String regionId;
private String resourceGroupId;
private String resourceId;
private String resourceType;
private String serviceType;
private String status;
private Tags tags;
private TrafficPath trafficPath;
private String trafficType;
private Builder() {
}
private Builder(FlowLog model) {
this.aggregationInterval = model.aggregationInterval;
this.businessStatus = model.businessStatus;
this.creationTime = model.creationTime;
this.description = model.description;
this.flowLogDeliverErrorMessage = model.flowLogDeliverErrorMessage;
this.flowLogDeliverStatus = model.flowLogDeliverStatus;
this.flowLogId = model.flowLogId;
this.flowLogName = model.flowLogName;
this.ipVersion = model.ipVersion;
this.logStoreName = model.logStoreName;
this.projectName = model.projectName;
this.regionId = model.regionId;
this.resourceGroupId = model.resourceGroupId;
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.serviceType = model.serviceType;
this.status = model.status;
this.tags = model.tags;
this.trafficPath = model.trafficPath;
this.trafficType = model.trafficType;
}
/**
* <p>The sampling interval of the flow log. Unit: minutes.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder aggregationInterval(Integer aggregationInterval) {
this.aggregationInterval = aggregationInterval;
return this;
}
/**
* <p>The business status. Values:</p>
* <ul>
* <li><strong>Normal</strong>: Normal status.</li>
* <li><strong>FinancialLocked</strong>: Locked due to unpaid bills.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.businessStatus = businessStatus;
return this;
}
/**
* <p>The creation time of the flow log.</p>
*
* <strong>example:</strong>
* <p>2022-01-21T03:08:50Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the flow log.</p>
*
* <strong>example:</strong>
* <p>Description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>When log delivery fails, you can troubleshoot based on the error messages. Possible error messages include:</p>
* <ul>
* <li><strong>UnavaliableTarget</strong>: The Logstore of the Log Service SLS is unavailable and cannot receive logs. It is recommended to check if the corresponding Logstore actually exists and is accessible. </li>
* <li><strong>ProjectNotExist</strong>: The Project of the Log Service SLS does not exist. It is suggested to delete the original flow log and create a new one pointing to an existing Project. </li>
* <li><strong>UnknownError</strong>: An internal error has occurred. Please try again later.</li>
* </ul>
*
* <strong>example:</strong>
* <p>UnavaliableTarget</p>
*/
public Builder flowLogDeliverErrorMessage(String flowLogDeliverErrorMessage) {
this.flowLogDeliverErrorMessage = flowLogDeliverErrorMessage;
return this;
}
/**
* <p>The delivery status of the flow log, with values:</p>
* <ul>
* <li><strong>SUCCESS</strong>: Delivery succeeded. </li>
* <li><strong>FAILED</strong>: Delivery failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FAILED</p>
*/
public Builder flowLogDeliverStatus(String flowLogDeliverStatus) {
this.flowLogDeliverStatus = flowLogDeliverStatus;
return this;
}
/**
* <p>The ID of the flow log.</p>
*
* <strong>example:</strong>
* <p>fl-bp1f6qqhsrc2c12ta****</p>
*/
public Builder flowLogId(String flowLogId) {
this.flowLogId = flowLogId;
return this;
}
/**
* <p>The name of the flow log.</p>
*
* <strong>example:</strong>
* <p>myFlowlog</p>
*/
public Builder flowLogName(String flowLogName) {
this.flowLogName = flowLogName;
return this;
}
/**
* <p>The type of IP address for collecting flow log traffic.</p>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The Logstore where the captured traffic is stored.</p>
*
* <strong>example:</strong>
* <p>FlowLogStore</p>
*/
public Builder logStoreName(String logStoreName) {
this.logStoreName = logStoreName;
return this;
}
/**
* <p>The Project that manages the captured traffic.</p>
*
* <strong>example:</strong>
* <p>FlowLogProject</p>
*/
public Builder projectName(String projectName) {
this.projectName = projectName;
return this;
}
/**
* <p>The region ID to which the flow log belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the flow log belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The resource ID of the traffic captured by the flow log.</p>
*
* <strong>example:</strong>
* <p>eni-askldfas****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The resource type of the traffic captured by the flow log:</p>
* <ul>
* <li><strong>NetworkInterface</strong>: Elastic network interface.</li>
* <li><strong>VSwitch</strong>: All elastic network interfaces within a VSwitch.</li>
* <li><strong>VPC</strong>: All elastic network interfaces within a VPC.</li>
* </ul>
*
* <strong>example:</strong>
* <p>NetworkInterface</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The hosting type of the cloud service.</p>
* <ul>
* <li>It can be empty, indicating that the flow log was created by the user. </li>
* <li>When not empty, the only supported value is: <strong>sls</strong>, indicating that the flow log was created through the Log Service console.<blockquote>
* <p>Flow log instances created through the Log Service console can be displayed in the VPC list, but they cannot be modified, started, stopped, or deleted within the VPC. If you need to perform these operations on the flow log, you can log in to the <a href="https://sls.console.aliyun.com">Log Service console</a> to modify, start, stop, or delete it.</p>
* </blockquote>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>sls</p>
*/
public Builder serviceType(String serviceType) {
this.serviceType = serviceType;
return this;
}
/**
* <p>The status of the flow log. Values:</p>
* <ul>
* <li><p><strong>Active</strong>: The flow log is in an active state.</p>
* </li>
* <li><p><strong>Activating</strong>: The flow log is being created.</p>
* </li>
* <li><p><strong>Inactive</strong>: The flow log is in an inactive state.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>Active</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>List of tags</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The path of the captured traffic. Values:</p>
* <ul>
* <li><strong>all</strong>: Indicates full collection.</li>
* <li><strong>internetGateway</strong>: Indicates public network traffic collection.</li>
* </ul>
*/
public Builder trafficPath(TrafficPath trafficPath) {
this.trafficPath = trafficPath;
return this;
}
/**
* <p>The type of traffic captured by the flow log. Values:</p>
* <ul>
* <li><strong>All</strong>: All traffic.</li>
* <li><strong>Allow</strong>: Traffic allowed by access control.</li>
* <li><strong>Drop</strong>: Traffic denied by access control.</li>
* </ul>
*
* <strong>example:</strong>
* <p>All</p>
*/
public Builder trafficType(String trafficType) {
this.trafficType = trafficType;
return this;
}
public FlowLog build() {
return new FlowLog(this);
}
}
}
/**
*
* {@link DescribeFlowLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeFlowLogsResponseBody</p>
*/
public static class FlowLogs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FlowLog")
private java.util.List<FlowLog> flowLog;
private FlowLogs(Builder builder) {
this.flowLog = builder.flowLog;
}
public static Builder builder() {
return new Builder();
}
public static FlowLogs create() {
return builder().build();
}
/**
* @return flowLog
*/
public java.util.List<FlowLog> getFlowLog() {
return this.flowLog;
}
public static final class Builder {
private java.util.List<FlowLog> flowLog;
private Builder() {
}
private Builder(FlowLogs model) {
this.flowLog = model.flowLog;
}
/**
* FlowLog.
*/
public Builder flowLog(java.util.List<FlowLog> flowLog) {
this.flowLog = flowLog;
return this;
}
public FlowLogs build() {
return new FlowLogs(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeForwardTableEntriesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeForwardTableEntriesRequest} extends {@link RequestModel}
*
* <p>DescribeForwardTableEntriesRequest</p>
*/
public class DescribeForwardTableEntriesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ExternalIp")
private String externalIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ExternalPort")
private String externalPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ForwardEntryId")
private String forwardEntryId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ForwardEntryName")
private String forwardEntryName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ForwardTableId")
private String forwardTableId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InternalIp")
private String internalIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InternalPort")
private String internalPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpProtocol")
private String ipProtocol;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
private String natGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeForwardTableEntriesRequest(Builder builder) {
super(builder);
this.externalIp = builder.externalIp;
this.externalPort = builder.externalPort;
this.forwardEntryId = builder.forwardEntryId;
this.forwardEntryName = builder.forwardEntryName;
this.forwardTableId = builder.forwardTableId;
this.internalIp = builder.internalIp;
this.internalPort = builder.internalPort;
this.ipProtocol = builder.ipProtocol;
this.natGatewayId = builder.natGatewayId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeForwardTableEntriesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return externalIp
*/
public String getExternalIp() {
return this.externalIp;
}
/**
* @return externalPort
*/
public String getExternalPort() {
return this.externalPort;
}
/**
* @return forwardEntryId
*/
public String getForwardEntryId() {
return this.forwardEntryId;
}
/**
* @return forwardEntryName
*/
public String getForwardEntryName() {
return this.forwardEntryName;
}
/**
* @return forwardTableId
*/
public String getForwardTableId() {
return this.forwardTableId;
}
/**
* @return internalIp
*/
public String getInternalIp() {
return this.internalIp;
}
/**
* @return internalPort
*/
public String getInternalPort() {
return this.internalPort;
}
/**
* @return ipProtocol
*/
public String getIpProtocol() {
return this.ipProtocol;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeForwardTableEntriesRequest, Builder> {
private String externalIp;
private String externalPort;
private String forwardEntryId;
private String forwardEntryName;
private String forwardTableId;
private String internalIp;
private String internalPort;
private String ipProtocol;
private String natGatewayId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeForwardTableEntriesRequest request) {
super(request);
this.externalIp = request.externalIp;
this.externalPort = request.externalPort;
this.forwardEntryId = request.forwardEntryId;
this.forwardEntryName = request.forwardEntryName;
this.forwardTableId = request.forwardTableId;
this.internalIp = request.internalIp;
this.internalPort = request.internalPort;
this.ipProtocol = request.ipProtocol;
this.natGatewayId = request.natGatewayId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <ul>
* <li>The elastic IP addresses (EIPs) that can be accessed over the Internet when you query DNAT entries of Internet NAT gateways.</li>
* <li>The NAT IP addresses that can be accessed by external networks when you query DNAT entries of Virtual Private Cloud (VPC) NAT gateways.</li>
* </ul>
*
* <strong>example:</strong>
* <p>116.28.XX.XX</p>
*/
public Builder externalIp(String externalIp) {
this.putQueryParameter("ExternalIp", externalIp);
this.externalIp = externalIp;
return this;
}
/**
* <ul>
* <li><p>The external port or port range that is used for port forwarding when you query DNAT entries of Internet NAT gateways.</p>
* <ul>
* <li>Valid values: <strong>1</strong> to <strong>65535</strong>.</li>
* <li>If you want to query a port range, separate the first port and last port with a forward slash (/), such as <code>10/20</code>.</li>
* <li>If you set <strong>ExternalPort</strong> to a port range, you must also set <strong>InternalPort</strong> to a port range, and the number of ports specified by these parameters must be the same. For example, if you set <strong>ExternalPort</strong> to <code>10/20</code>, you can set <strong>InternalPort</strong> to <code>80/90</code>.</li>
* </ul>
* </li>
* <li><p>The port that is used when the NAT IP address can be accessed by external networks when you query DNAT entries of VPC NAT gateways. Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder externalPort(String externalPort) {
this.putQueryParameter("ExternalPort", externalPort);
this.externalPort = externalPort;
return this;
}
/**
* <p>The ID of the DNAT entry.</p>
*
* <strong>example:</strong>
* <p>fwd-8vbn3bc8roygjp0gy****</p>
*/
public Builder forwardEntryId(String forwardEntryId) {
this.putQueryParameter("ForwardEntryId", forwardEntryId);
this.forwardEntryId = forwardEntryId;
return this;
}
/**
* <p>The name of the DNAT entry.</p>
* <p>The name must be 2 to 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.</p>
*
* <strong>example:</strong>
* <p>ForwardEntry-1</p>
*/
public Builder forwardEntryName(String forwardEntryName) {
this.putQueryParameter("ForwardEntryName", forwardEntryName);
this.forwardEntryName = forwardEntryName;
return this;
}
/**
* <p>The ID of the DNAT table.</p>
* <p>**</p>
* <p><strong>Description</strong> You must specify at least one of <strong>ForwardTableId</strong> and <strong>NatGatewayId</strong>.</p>
*
* <strong>example:</strong>
* <p>ftb-bp1mbjubq34hlcqpa****</p>
*/
public Builder forwardTableId(String forwardTableId) {
this.putQueryParameter("ForwardTableId", forwardTableId);
this.forwardTableId = forwardTableId;
return this;
}
/**
* <p>The private IP address.</p>
* <ul>
* <li>The private IP address of the ECS instance that uses DNAT entries to communicate with the Internet when you query DNAT entries of Internet NAT gateways.</li>
* <li>The private IP address that uses DNAT entries for communication when you query DNAT entries of VPC NAT gateways.</li>
* </ul>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder internalIp(String internalIp) {
this.putQueryParameter("InternalIp", internalIp);
this.internalIp = internalIp;
return this;
}
/**
* <ul>
* <li>The internal port or port range that is used for port forwarding when you query DNAT entries of Internet NAT gateways. Valid values: <strong>1</strong> to <strong>65535</strong>.</li>
* <li>The port of the destination ECS instance to be mapped when you query DNAT entries of VPC NAT gateways. Valid values: <strong>1</strong> to <strong>65535</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder internalPort(String internalPort) {
this.putQueryParameter("InternalPort", internalPort);
this.internalPort = internalPort;
return this;
}
/**
* <p>The protocol. Valid values:</p>
* <ul>
* <li><strong>TCP</strong></li>
* <li><strong>UDP</strong></li>
* <li><strong>Any</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder ipProtocol(String ipProtocol) {
this.putQueryParameter("IpProtocol", ipProtocol);
this.ipProtocol = ipProtocol;
return this;
}
/**
* <p>The ID of the NAT gateway.</p>
* <p>**</p>
* <p><strong>Description</strong> You must specify at least one of <strong>ForwardTableId</strong> and <strong>NatGatewayId</strong>.</p>
*
* <strong>example:</strong>
* <p>ngw-bp1uewa15k4iy5770****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.putQueryParameter("NatGatewayId", natGatewayId);
this.natGatewayId = natGatewayId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the region where you want to create the NAT gateway.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeForwardTableEntriesRequest build() {
return new DescribeForwardTableEntriesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeForwardTableEntriesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeForwardTableEntriesResponse} extends {@link TeaModel}
*
* <p>DescribeForwardTableEntriesResponse</p>
*/
public class DescribeForwardTableEntriesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeForwardTableEntriesResponseBody body;
private DescribeForwardTableEntriesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeForwardTableEntriesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeForwardTableEntriesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeForwardTableEntriesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeForwardTableEntriesResponseBody body);
@Override
DescribeForwardTableEntriesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeForwardTableEntriesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeForwardTableEntriesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeForwardTableEntriesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeForwardTableEntriesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeForwardTableEntriesResponse build() {
return new DescribeForwardTableEntriesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeForwardTableEntriesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeForwardTableEntriesResponseBody} extends {@link TeaModel}
*
* <p>DescribeForwardTableEntriesResponseBody</p>
*/
public class DescribeForwardTableEntriesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ForwardTableEntries")
private ForwardTableEntries forwardTableEntries;
@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 DescribeForwardTableEntriesResponseBody(Builder builder) {
this.forwardTableEntries = builder.forwardTableEntries;
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 DescribeForwardTableEntriesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return forwardTableEntries
*/
public ForwardTableEntries getForwardTableEntries() {
return this.forwardTableEntries;
}
/**
* @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 ForwardTableEntries forwardTableEntries;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeForwardTableEntriesResponseBody model) {
this.forwardTableEntries = model.forwardTableEntries;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The details of DNAT entries.</p>
*/
public Builder forwardTableEntries(ForwardTableEntries forwardTableEntries) {
this.forwardTableEntries = forwardTableEntries;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A6C4A8B1-7561-4509-949C-20DEB40D71E6</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of entries returned.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeForwardTableEntriesResponseBody build() {
return new DescribeForwardTableEntriesResponseBody(this);
}
}
/**
*
* {@link DescribeForwardTableEntriesResponseBody} extends {@link TeaModel}
*
* <p>DescribeForwardTableEntriesResponseBody</p>
*/
public static class ForwardTableEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ExternalIp")
private String externalIp;
@com.aliyun.core.annotation.NameInMap("ExternalPort")
private String externalPort;
@com.aliyun.core.annotation.NameInMap("ForwardEntryId")
private String forwardEntryId;
@com.aliyun.core.annotation.NameInMap("ForwardEntryName")
private String forwardEntryName;
@com.aliyun.core.annotation.NameInMap("ForwardTableId")
private String forwardTableId;
@com.aliyun.core.annotation.NameInMap("InternalIp")
private String internalIp;
@com.aliyun.core.annotation.NameInMap("InternalPort")
private String internalPort;
@com.aliyun.core.annotation.NameInMap("IpProtocol")
private String ipProtocol;
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
private String natGatewayId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private ForwardTableEntry(Builder builder) {
this.externalIp = builder.externalIp;
this.externalPort = builder.externalPort;
this.forwardEntryId = builder.forwardEntryId;
this.forwardEntryName = builder.forwardEntryName;
this.forwardTableId = builder.forwardTableId;
this.internalIp = builder.internalIp;
this.internalPort = builder.internalPort;
this.ipProtocol = builder.ipProtocol;
this.natGatewayId = builder.natGatewayId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static ForwardTableEntry create() {
return builder().build();
}
/**
* @return externalIp
*/
public String getExternalIp() {
return this.externalIp;
}
/**
* @return externalPort
*/
public String getExternalPort() {
return this.externalPort;
}
/**
* @return forwardEntryId
*/
public String getForwardEntryId() {
return this.forwardEntryId;
}
/**
* @return forwardEntryName
*/
public String getForwardEntryName() {
return this.forwardEntryName;
}
/**
* @return forwardTableId
*/
public String getForwardTableId() {
return this.forwardTableId;
}
/**
* @return internalIp
*/
public String getInternalIp() {
return this.internalIp;
}
/**
* @return internalPort
*/
public String getInternalPort() {
return this.internalPort;
}
/**
* @return ipProtocol
*/
public String getIpProtocol() {
return this.ipProtocol;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String externalIp;
private String externalPort;
private String forwardEntryId;
private String forwardEntryName;
private String forwardTableId;
private String internalIp;
private String internalPort;
private String ipProtocol;
private String natGatewayId;
private String status;
private Builder() {
}
private Builder(ForwardTableEntry model) {
this.externalIp = model.externalIp;
this.externalPort = model.externalPort;
this.forwardEntryId = model.forwardEntryId;
this.forwardEntryName = model.forwardEntryName;
this.forwardTableId = model.forwardTableId;
this.internalIp = model.internalIp;
this.internalPort = model.internalPort;
this.ipProtocol = model.ipProtocol;
this.natGatewayId = model.natGatewayId;
this.status = model.status;
}
/**
* <ul>
* <li>The EIPs that can be accessed over the Internet when you query DNAT entries of Internet NAT gateways.</li>
* <li>The NAT IP addresses that can be accessed by external networks when you query DNAT entries of VPC NAT gateways.</li>
* </ul>
*
* <strong>example:</strong>
* <p>139.79.XX.XX</p>
*/
public Builder externalIp(String externalIp) {
this.externalIp = externalIp;
return this;
}
/**
* <ul>
* <li>The external port or port range that is used for port forwarding when you query DNAT entries of Internet NAT gateways.</li>
* <li>The port that is used when the NAT IP address can be accessed by external networks when you query DNAT entries of VPC NAT gateways.</li>
* </ul>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder externalPort(String externalPort) {
this.externalPort = externalPort;
return this;
}
/**
* <p>The ID of the DNAT entry.</p>
*
* <strong>example:</strong>
* <p>fwd-119smw5tk****</p>
*/
public Builder forwardEntryId(String forwardEntryId) {
this.forwardEntryId = forwardEntryId;
return this;
}
/**
* <p>The name of the DNAT entry.</p>
*
* <strong>example:</strong>
* <p>ForwardEntry-1</p>
*/
public Builder forwardEntryName(String forwardEntryName) {
this.forwardEntryName = forwardEntryName;
return this;
}
/**
* <p>The ID of the DNAT table to which the DNAT entry belongs.</p>
*
* <strong>example:</strong>
* <p>ftb-11tc6xgmv****</p>
*/
public Builder forwardTableId(String forwardTableId) {
this.forwardTableId = forwardTableId;
return this;
}
/**
* <p>The private IP address.</p>
* <ul>
* <li>The private IP address of the ECS instance that uses DNAT entries to communicate with the Internet when you query DNAT entries of Internet NAT gateways.</li>
* <li>The private IP address that uses DNAT entries when you query DNAT entries of VPC NAT gateways.</li>
* </ul>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder internalIp(String internalIp) {
this.internalIp = internalIp;
return this;
}
/**
* <ul>
* <li>The internal port or port range that is used for port forwarding when you query DNAT entries of Internet NAT gateways.</li>
* <li>The destination ECS instance port to be mapped when you query DNAT entries of VPC NAT gateways.</li>
* </ul>
*
* <strong>example:</strong>
* <p>25</p>
*/
public Builder internalPort(String internalPort) {
this.internalPort = internalPort;
return this;
}
/**
* <p>The protocol. Valid values:</p>
* <ul>
* <li><strong>TCP</strong></li>
* <li><strong>UDP</strong></li>
* <li><strong>Any</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder ipProtocol(String ipProtocol) {
this.ipProtocol = ipProtocol;
return this;
}
/**
* <p>The ID of the NAT gateway to which the DNAT entry belongs.</p>
*
* <strong>example:</strong>
* <p>ngw-bp1uewa15k4iy5770****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>The status of the DNAT entry. Valid values:</p>
* <ul>
* <li><strong>Pending</strong></li>
* <li><strong>Available</strong></li>
* <li><strong>Deleting</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public ForwardTableEntry build() {
return new ForwardTableEntry(this);
}
}
}
/**
*
* {@link DescribeForwardTableEntriesResponseBody} extends {@link TeaModel}
*
* <p>DescribeForwardTableEntriesResponseBody</p>
*/
public static class ForwardTableEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ForwardTableEntry")
private java.util.List<ForwardTableEntry> forwardTableEntry;
private ForwardTableEntries(Builder builder) {
this.forwardTableEntry = builder.forwardTableEntry;
}
public static Builder builder() {
return new Builder();
}
public static ForwardTableEntries create() {
return builder().build();
}
/**
* @return forwardTableEntry
*/
public java.util.List<ForwardTableEntry> getForwardTableEntry() {
return this.forwardTableEntry;
}
public static final class Builder {
private java.util.List<ForwardTableEntry> forwardTableEntry;
private Builder() {
}
private Builder(ForwardTableEntries model) {
this.forwardTableEntry = model.forwardTableEntry;
}
/**
* ForwardTableEntry.
*/
public Builder forwardTableEntry(java.util.List<ForwardTableEntry> forwardTableEntry) {
this.forwardTableEntry = forwardTableEntry;
return this;
}
public ForwardTableEntries build() {
return new ForwardTableEntries(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeGlobalAccelerationInstancesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeGlobalAccelerationInstancesRequest} extends {@link RequestModel}
*
* <p>DescribeGlobalAccelerationInstancesRequest</p>
*/
public class DescribeGlobalAccelerationInstancesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BandwidthType")
private String bandwidthType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GlobalAccelerationInstanceId")
private String globalAccelerationInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IncludeReservationData")
private Boolean includeReservationData;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServerId")
private String serverId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceLocation")
private String serviceLocation;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DescribeGlobalAccelerationInstancesRequest(Builder builder) {
super(builder);
this.bandwidthType = builder.bandwidthType;
this.globalAccelerationInstanceId = builder.globalAccelerationInstanceId;
this.includeReservationData = builder.includeReservationData;
this.ipAddress = builder.ipAddress;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.serverId = builder.serverId;
this.serviceLocation = builder.serviceLocation;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeGlobalAccelerationInstancesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bandwidthType
*/
public String getBandwidthType() {
return this.bandwidthType;
}
/**
* @return globalAccelerationInstanceId
*/
public String getGlobalAccelerationInstanceId() {
return this.globalAccelerationInstanceId;
}
/**
* @return includeReservationData
*/
public Boolean getIncludeReservationData() {
return this.includeReservationData;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return serverId
*/
public String getServerId() {
return this.serverId;
}
/**
* @return serviceLocation
*/
public String getServiceLocation() {
return this.serviceLocation;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeGlobalAccelerationInstancesRequest, Builder> {
private String bandwidthType;
private String globalAccelerationInstanceId;
private Boolean includeReservationData;
private String ipAddress;
private String name;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String serverId;
private String serviceLocation;
private String status;
private Builder() {
super();
}
private Builder(DescribeGlobalAccelerationInstancesRequest request) {
super(request);
this.bandwidthType = request.bandwidthType;
this.globalAccelerationInstanceId = request.globalAccelerationInstanceId;
this.includeReservationData = request.includeReservationData;
this.ipAddress = request.ipAddress;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.serverId = request.serverId;
this.serviceLocation = request.serviceLocation;
this.status = request.status;
}
/**
* <p>The bandwidth type of the GA instance. Valid values:</p>
* <ul>
* <li><strong>Sharing</strong></li>
* <li><strong>Exclusive</strong> (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>Exclusive</p>
*/
public Builder bandwidthType(String bandwidthType) {
this.putQueryParameter("BandwidthType", bandwidthType);
this.bandwidthType = bandwidthType;
return this;
}
/**
* <p>The ID of the GA instance.</p>
*
* <strong>example:</strong>
* <p>ga-234sljmxaz****</p>
*/
public Builder globalAccelerationInstanceId(String globalAccelerationInstanceId) {
this.putQueryParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId);
this.globalAccelerationInstanceId = globalAccelerationInstanceId;
return this;
}
/**
* <p>Specifies whether to return information about pending orders. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default)</li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder includeReservationData(Boolean includeReservationData) {
this.putQueryParameter("IncludeReservationData", includeReservationData);
this.includeReservationData = includeReservationData;
return this;
}
/**
* <p>The public IP address of the GA instance.</p>
*
* <strong>example:</strong>
* <p>12.xx.xx.78</p>
*/
public Builder ipAddress(String ipAddress) {
this.putQueryParameter("IpAddress", ipAddress);
this.ipAddress = ipAddress;
return this;
}
/**
* <p>The name of the GA instance.</p>
*
* <strong>example:</strong>
* <p>GA-1</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Maximum value: <strong>100</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the GA instance. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the backend service instance.</p>
*
* <strong>example:</strong>
* <p>i-sxjblddejj9x****</p>
*/
public Builder serverId(String serverId) {
this.putQueryParameter("ServerId", serverId);
this.serverId = serverId;
return this;
}
/**
* <p>The region of the backend service. Valid values:</p>
* <ul>
* <li><strong>china-mainland</strong></li>
* <li><strong>north-america</strong></li>
* <li><strong>asia-pacific</strong></li>
* <li><strong>europe</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>china-mainland</p>
*/
public Builder serviceLocation(String serviceLocation) {
this.putQueryParameter("ServiceLocation", serviceLocation);
this.serviceLocation = serviceLocation;
return this;
}
/**
* <p>The status of the GA instance. Valid values:</p>
* <ul>
* <li><strong>Available</strong></li>
* <li><strong>Inuse</strong></li>
* <li><strong>Associating</strong></li>
* <li><strong>Unassociating</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeGlobalAccelerationInstancesRequest build() {
return new DescribeGlobalAccelerationInstancesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeGlobalAccelerationInstancesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeGlobalAccelerationInstancesResponse} extends {@link TeaModel}
*
* <p>DescribeGlobalAccelerationInstancesResponse</p>
*/
public class DescribeGlobalAccelerationInstancesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeGlobalAccelerationInstancesResponseBody body;
private DescribeGlobalAccelerationInstancesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeGlobalAccelerationInstancesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeGlobalAccelerationInstancesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeGlobalAccelerationInstancesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeGlobalAccelerationInstancesResponseBody body);
@Override
DescribeGlobalAccelerationInstancesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeGlobalAccelerationInstancesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeGlobalAccelerationInstancesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeGlobalAccelerationInstancesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeGlobalAccelerationInstancesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeGlobalAccelerationInstancesResponse build() {
return new DescribeGlobalAccelerationInstancesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeGlobalAccelerationInstancesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeGlobalAccelerationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeGlobalAccelerationInstancesResponseBody</p>
*/
public class DescribeGlobalAccelerationInstancesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GlobalAccelerationInstances")
private GlobalAccelerationInstances globalAccelerationInstances;
@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 DescribeGlobalAccelerationInstancesResponseBody(Builder builder) {
this.globalAccelerationInstances = builder.globalAccelerationInstances;
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 DescribeGlobalAccelerationInstancesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return globalAccelerationInstances
*/
public GlobalAccelerationInstances getGlobalAccelerationInstances() {
return this.globalAccelerationInstances;
}
/**
* @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 GlobalAccelerationInstances globalAccelerationInstances;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeGlobalAccelerationInstancesResponseBody model) {
this.globalAccelerationInstances = model.globalAccelerationInstances;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The details of the GA instances.</p>
*/
public Builder globalAccelerationInstances(GlobalAccelerationInstances globalAccelerationInstances) {
this.globalAccelerationInstances = globalAccelerationInstances;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>6B4EE38D-C75B-4E1F-844E-863A94430676</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeGlobalAccelerationInstancesResponseBody build() {
return new DescribeGlobalAccelerationInstancesResponseBody(this);
}
}
/**
*
* {@link DescribeGlobalAccelerationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeGlobalAccelerationInstancesResponseBody</p>
*/
public static class BackendServer extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ServerId")
private String serverId;
@com.aliyun.core.annotation.NameInMap("ServerIpAddress")
private String serverIpAddress;
@com.aliyun.core.annotation.NameInMap("ServerType")
private String serverType;
private BackendServer(Builder builder) {
this.regionId = builder.regionId;
this.serverId = builder.serverId;
this.serverIpAddress = builder.serverIpAddress;
this.serverType = builder.serverType;
}
public static Builder builder() {
return new Builder();
}
public static BackendServer create() {
return builder().build();
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return serverId
*/
public String getServerId() {
return this.serverId;
}
/**
* @return serverIpAddress
*/
public String getServerIpAddress() {
return this.serverIpAddress;
}
/**
* @return serverType
*/
public String getServerType() {
return this.serverType;
}
public static final class Builder {
private String regionId;
private String serverId;
private String serverIpAddress;
private String serverType;
private Builder() {
}
private Builder(BackendServer model) {
this.regionId = model.regionId;
this.serverId = model.serverId;
this.serverIpAddress = model.serverIpAddress;
this.serverType = model.serverType;
}
/**
* <p>The region where the backend servers are deployed.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the backend server.</p>
*
* <strong>example:</strong>
* <p>i-2zeg83zvn5d4ed4y****</p>
*/
public Builder serverId(String serverId) {
this.serverId = serverId;
return this;
}
/**
* <p>The IP address of the backend server.</p>
*
* <strong>example:</strong>
* <p>172.xx.xx.109</p>
*/
public Builder serverIpAddress(String serverIpAddress) {
this.serverIpAddress = serverIpAddress;
return this;
}
/**
* <p>The type of the backend server.</p>
* <ul>
* <li><strong>EcsInstance</strong>: Elastic Compute Service (ECS) instance</li>
* <li><strong>SlbInstance</strong>: Server Load Balancer (SLB) instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>EcsInstance</p>
*/
public Builder serverType(String serverType) {
this.serverType = serverType;
return this;
}
public BackendServer build() {
return new BackendServer(this);
}
}
}
/**
*
* {@link DescribeGlobalAccelerationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeGlobalAccelerationInstancesResponseBody</p>
*/
public static class BackendServers extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackendServer")
private java.util.List<BackendServer> backendServer;
private BackendServers(Builder builder) {
this.backendServer = builder.backendServer;
}
public static Builder builder() {
return new Builder();
}
public static BackendServers create() {
return builder().build();
}
/**
* @return backendServer
*/
public java.util.List<BackendServer> getBackendServer() {
return this.backendServer;
}
public static final class Builder {
private java.util.List<BackendServer> backendServer;
private Builder() {
}
private Builder(BackendServers model) {
this.backendServer = model.backendServer;
}
/**
* BackendServer.
*/
public Builder backendServer(java.util.List<BackendServer> backendServer) {
this.backendServer = backendServer;
return this;
}
public BackendServers build() {
return new BackendServers(this);
}
}
}
/**
*
* {@link DescribeGlobalAccelerationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeGlobalAccelerationInstancesResponseBody</p>
*/
public static class PublicIpAddress extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllocationId")
private String allocationId;
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
private PublicIpAddress(Builder builder) {
this.allocationId = builder.allocationId;
this.ipAddress = builder.ipAddress;
}
public static Builder builder() {
return new Builder();
}
public static PublicIpAddress create() {
return builder().build();
}
/**
* @return allocationId
*/
public String getAllocationId() {
return this.allocationId;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
public static final class Builder {
private String allocationId;
private String ipAddress;
private Builder() {
}
private Builder(PublicIpAddress model) {
this.allocationId = model.allocationId;
this.ipAddress = model.ipAddress;
}
/**
* <p>The ID of the public IP address of the GA instance.</p>
*
* <strong>example:</strong>
* <p>eip-bp19yqraac4w3y0jd****</p>
*/
public Builder allocationId(String allocationId) {
this.allocationId = allocationId;
return this;
}
/**
* <p>The public IP address of the GA instance.</p>
*
* <strong>example:</strong>
* <p>12.xx.xx.78</p>
*/
public Builder ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
public PublicIpAddress build() {
return new PublicIpAddress(this);
}
}
}
/**
*
* {@link DescribeGlobalAccelerationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeGlobalAccelerationInstancesResponseBody</p>
*/
public static class PublicIpAddresses extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PublicIpAddress")
private java.util.List<PublicIpAddress> publicIpAddress;
private PublicIpAddresses(Builder builder) {
this.publicIpAddress = builder.publicIpAddress;
}
public static Builder builder() {
return new Builder();
}
public static PublicIpAddresses create() {
return builder().build();
}
/**
* @return publicIpAddress
*/
public java.util.List<PublicIpAddress> getPublicIpAddress() {
return this.publicIpAddress;
}
public static final class Builder {
private java.util.List<PublicIpAddress> publicIpAddress;
private Builder() {
}
private Builder(PublicIpAddresses model) {
this.publicIpAddress = model.publicIpAddress;
}
/**
* PublicIpAddress.
*/
public Builder publicIpAddress(java.util.List<PublicIpAddress> publicIpAddress) {
this.publicIpAddress = publicIpAddress;
return this;
}
public PublicIpAddresses build() {
return new PublicIpAddresses(this);
}
}
}
/**
*
* {@link DescribeGlobalAccelerationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeGlobalAccelerationInstancesResponseBody</p>
*/
public static class GlobalAccelerationInstance extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccelerationLocation")
private String accelerationLocation;
@com.aliyun.core.annotation.NameInMap("BackendServers")
private BackendServers backendServers;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private String bandwidth;
@com.aliyun.core.annotation.NameInMap("BandwidthType")
private String bandwidthType;
@com.aliyun.core.annotation.NameInMap("ChargeType")
private String chargeType;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ExpiredTime")
private String expiredTime;
@com.aliyun.core.annotation.NameInMap("GlobalAccelerationInstanceId")
private String globalAccelerationInstanceId;
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("PublicIpAddresses")
private PublicIpAddresses publicIpAddresses;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ServiceLocation")
private String serviceLocation;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private GlobalAccelerationInstance(Builder builder) {
this.accelerationLocation = builder.accelerationLocation;
this.backendServers = builder.backendServers;
this.bandwidth = builder.bandwidth;
this.bandwidthType = builder.bandwidthType;
this.chargeType = builder.chargeType;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.expiredTime = builder.expiredTime;
this.globalAccelerationInstanceId = builder.globalAccelerationInstanceId;
this.internetChargeType = builder.internetChargeType;
this.ipAddress = builder.ipAddress;
this.name = builder.name;
this.publicIpAddresses = builder.publicIpAddresses;
this.regionId = builder.regionId;
this.serviceLocation = builder.serviceLocation;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static GlobalAccelerationInstance create() {
return builder().build();
}
/**
* @return accelerationLocation
*/
public String getAccelerationLocation() {
return this.accelerationLocation;
}
/**
* @return backendServers
*/
public BackendServers getBackendServers() {
return this.backendServers;
}
/**
* @return bandwidth
*/
public String getBandwidth() {
return this.bandwidth;
}
/**
* @return bandwidthType
*/
public String getBandwidthType() {
return this.bandwidthType;
}
/**
* @return chargeType
*/
public String getChargeType() {
return this.chargeType;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return expiredTime
*/
public String getExpiredTime() {
return this.expiredTime;
}
/**
* @return globalAccelerationInstanceId
*/
public String getGlobalAccelerationInstanceId() {
return this.globalAccelerationInstanceId;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return publicIpAddresses
*/
public PublicIpAddresses getPublicIpAddresses() {
return this.publicIpAddresses;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return serviceLocation
*/
public String getServiceLocation() {
return this.serviceLocation;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String accelerationLocation;
private BackendServers backendServers;
private String bandwidth;
private String bandwidthType;
private String chargeType;
private String creationTime;
private String description;
private String expiredTime;
private String globalAccelerationInstanceId;
private String internetChargeType;
private String ipAddress;
private String name;
private PublicIpAddresses publicIpAddresses;
private String regionId;
private String serviceLocation;
private String status;
private Builder() {
}
private Builder(GlobalAccelerationInstance model) {
this.accelerationLocation = model.accelerationLocation;
this.backendServers = model.backendServers;
this.bandwidth = model.bandwidth;
this.bandwidthType = model.bandwidthType;
this.chargeType = model.chargeType;
this.creationTime = model.creationTime;
this.description = model.description;
this.expiredTime = model.expiredTime;
this.globalAccelerationInstanceId = model.globalAccelerationInstanceId;
this.internetChargeType = model.internetChargeType;
this.ipAddress = model.ipAddress;
this.name = model.name;
this.publicIpAddresses = model.publicIpAddresses;
this.regionId = model.regionId;
this.serviceLocation = model.serviceLocation;
this.status = model.status;
}
/**
* <p>The acceleration area of the GA instance.</p>
*
* <strong>example:</strong>
* <p>china-mainland</p>
*/
public Builder accelerationLocation(String accelerationLocation) {
this.accelerationLocation = accelerationLocation;
return this;
}
/**
* <p>The details about the backend servers of the GA instance.</p>
*/
public Builder backendServers(BackendServers backendServers) {
this.backendServers = backendServers;
return this;
}
/**
* <p>The maximum bandwidth of the GA instance.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder bandwidth(String bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The bandwidth type of the GA instance.</p>
* <ul>
* <li><strong>Sharing</strong></li>
* <li><strong>Exclusive</strong> (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>Exclusive</p>
*/
public Builder bandwidthType(String bandwidthType) {
this.bandwidthType = bandwidthType;
return this;
}
/**
* <p>The billing method of the GA instance.</p>
*
* <strong>example:</strong>
* <p>PrePaid</p>
*/
public Builder chargeType(String chargeType) {
this.chargeType = chargeType;
return this;
}
/**
* <p>The time when the GA instance was created. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2018-07-05T03:39:31Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the GA instance.</p>
*
* <strong>example:</strong>
* <p>apiDescription</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The time when the instance expires.</p>
*
* <strong>example:</strong>
* <p>2018-08-05T16:00Z</p>
*/
public Builder expiredTime(String expiredTime) {
this.expiredTime = expiredTime;
return this;
}
/**
* <p>The ID of the GA instance.</p>
*
* <strong>example:</strong>
* <p>ga-bp1x99kj7kl1ziw5x****</p>
*/
public Builder globalAccelerationInstanceId(String globalAccelerationInstanceId) {
this.globalAccelerationInstanceId = globalAccelerationInstanceId;
return this;
}
/**
* <p>The billing method of the GA instance.</p>
*
* <strong>example:</strong>
* <p>PayByBandwidth</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.internetChargeType = internetChargeType;
return this;
}
/**
* <p>The public IP address of the dedicated GA instance.</p>
*
* <strong>example:</strong>
* <p>47.xx.xx.99</p>
*/
public Builder ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* <p>The name of the GA instance.</p>
*
* <strong>example:</strong>
* <p>instanceName</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The public IP address.</p>
*/
public Builder publicIpAddresses(PublicIpAddresses publicIpAddresses) {
this.publicIpAddresses = publicIpAddresses;
return this;
}
/**
* <p>The region ID of the GA instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The service area of the GA instance.</p>
*
* <strong>example:</strong>
* <p>china-mainland</p>
*/
public Builder serviceLocation(String serviceLocation) {
this.serviceLocation = serviceLocation;
return this;
}
/**
* <p>The status of the GA instance.</p>
* <ul>
* <li><strong>Available</strong></li>
* <li><strong>Inuse</strong></li>
* <li><strong>Associating</strong></li>
* <li><strong>Unassociating</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>InUse</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public GlobalAccelerationInstance build() {
return new GlobalAccelerationInstance(this);
}
}
}
/**
*
* {@link DescribeGlobalAccelerationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeGlobalAccelerationInstancesResponseBody</p>
*/
public static class GlobalAccelerationInstances extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GlobalAccelerationInstance")
private java.util.List<GlobalAccelerationInstance> globalAccelerationInstance;
private GlobalAccelerationInstances(Builder builder) {
this.globalAccelerationInstance = builder.globalAccelerationInstance;
}
public static Builder builder() {
return new Builder();
}
public static GlobalAccelerationInstances create() {
return builder().build();
}
/**
* @return globalAccelerationInstance
*/
public java.util.List<GlobalAccelerationInstance> getGlobalAccelerationInstance() {
return this.globalAccelerationInstance;
}
public static final class Builder {
private java.util.List<GlobalAccelerationInstance> globalAccelerationInstance;
private Builder() {
}
private Builder(GlobalAccelerationInstances model) {
this.globalAccelerationInstance = model.globalAccelerationInstance;
}
/**
* GlobalAccelerationInstance.
*/
public Builder globalAccelerationInstance(java.util.List<GlobalAccelerationInstance> globalAccelerationInstance) {
this.globalAccelerationInstance = globalAccelerationInstance;
return this;
}
public GlobalAccelerationInstances build() {
return new GlobalAccelerationInstances(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeGrantRulesToCenRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeGrantRulesToCenRequest} extends {@link RequestModel}
*
* <p>DescribeGrantRulesToCenRequest</p>
*/
public class DescribeGrantRulesToCenRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceType")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeGrantRulesToCenRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeGrantRulesToCenRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeGrantRulesToCenRequest, Builder> {
private String clientToken;
private String instanceId;
private String instanceType;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeGrantRulesToCenRequest request) {
super(request);
this.clientToken = request.clientToken;
this.instanceId = request.instanceId;
this.instanceType = request.instanceType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among all requests. ClientToken can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, <strong>ClientToken</strong> is set to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> for each API request may be different.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the network instance that you want to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp18sth14qii3pnvc****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The type of the network instance. Valid values:</p>
* <ul>
* <li><strong>VPC</strong></li>
* <li><strong>VBR</strong></li>
* <li><strong>CCN</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder instanceType(String instanceType) {
this.putQueryParameter("InstanceType", instanceType);
this.instanceType = instanceType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the network instance that you want to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the network instance belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4p****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeGrantRulesToCenRequest build() {
return new DescribeGrantRulesToCenRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeGrantRulesToCenResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeGrantRulesToCenResponse} extends {@link TeaModel}
*
* <p>DescribeGrantRulesToCenResponse</p>
*/
public class DescribeGrantRulesToCenResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeGrantRulesToCenResponseBody body;
private DescribeGrantRulesToCenResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeGrantRulesToCenResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeGrantRulesToCenResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeGrantRulesToCenResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeGrantRulesToCenResponseBody body);
@Override
DescribeGrantRulesToCenResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeGrantRulesToCenResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeGrantRulesToCenResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeGrantRulesToCenResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeGrantRulesToCenResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeGrantRulesToCenResponse build() {
return new DescribeGrantRulesToCenResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeGrantRulesToCenResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeGrantRulesToCenResponseBody} extends {@link TeaModel}
*
* <p>DescribeGrantRulesToCenResponseBody</p>
*/
public class DescribeGrantRulesToCenResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CenGrantRules")
private CenGrantRules cenGrantRules;
@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 DescribeGrantRulesToCenResponseBody(Builder builder) {
this.cenGrantRules = builder.cenGrantRules;
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 DescribeGrantRulesToCenResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cenGrantRules
*/
public CenGrantRules getCenGrantRules() {
return this.cenGrantRules;
}
/**
* @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 CenGrantRules cenGrantRules;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeGrantRulesToCenResponseBody model) {
this.cenGrantRules = model.cenGrantRules;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The information about the authorization.</p>
*/
public Builder cenGrantRules(CenGrantRules cenGrantRules) {
this.cenGrantRules = cenGrantRules;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>F5BB78C8-5F41-464F-B9FF-5E0A7198BA26</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeGrantRulesToCenResponseBody build() {
return new DescribeGrantRulesToCenResponseBody(this);
}
}
/**
*
* {@link DescribeGrantRulesToCenResponseBody} extends {@link TeaModel}
*
* <p>DescribeGrantRulesToCenResponseBody</p>
*/
public static class CbnGrantRule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CenInstanceId")
private String cenInstanceId;
@com.aliyun.core.annotation.NameInMap("CenOwnerId")
private Long cenOwnerId;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
private CbnGrantRule(Builder builder) {
this.cenInstanceId = builder.cenInstanceId;
this.cenOwnerId = builder.cenOwnerId;
this.creationTime = builder.creationTime;
}
public static Builder builder() {
return new Builder();
}
public static CbnGrantRule create() {
return builder().build();
}
/**
* @return cenInstanceId
*/
public String getCenInstanceId() {
return this.cenInstanceId;
}
/**
* @return cenOwnerId
*/
public Long getCenOwnerId() {
return this.cenOwnerId;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
public static final class Builder {
private String cenInstanceId;
private Long cenOwnerId;
private String creationTime;
private Builder() {
}
private Builder(CbnGrantRule model) {
this.cenInstanceId = model.cenInstanceId;
this.cenOwnerId = model.cenOwnerId;
this.creationTime = model.creationTime;
}
/**
* <p>The ID of the authorized CEN instance.</p>
*
* <strong>example:</strong>
* <p>cen-9gsm1q2yh1prpt****</p>
*/
public Builder cenInstanceId(String cenInstanceId) {
this.cenInstanceId = cenInstanceId;
return this;
}
/**
* <p>The UID of the Alibaba Cloud account to which the authorized CEN instance belongs.</p>
*
* <strong>example:</strong>
* <p>132193271328****</p>
*/
public Builder cenOwnerId(Long cenOwnerId) {
this.cenOwnerId = cenOwnerId;
return this;
}
/**
* <p>The time when the instance was created.</p>
*
* <strong>example:</strong>
* <p>2019-11-15T09:26:36Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
public CbnGrantRule build() {
return new CbnGrantRule(this);
}
}
}
/**
*
* {@link DescribeGrantRulesToCenResponseBody} extends {@link TeaModel}
*
* <p>DescribeGrantRulesToCenResponseBody</p>
*/
public static class CenGrantRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CbnGrantRule")
private java.util.List<CbnGrantRule> cbnGrantRule;
private CenGrantRules(Builder builder) {
this.cbnGrantRule = builder.cbnGrantRule;
}
public static Builder builder() {
return new Builder();
}
public static CenGrantRules create() {
return builder().build();
}
/**
* @return cbnGrantRule
*/
public java.util.List<CbnGrantRule> getCbnGrantRule() {
return this.cbnGrantRule;
}
public static final class Builder {
private java.util.List<CbnGrantRule> cbnGrantRule;
private Builder() {
}
private Builder(CenGrantRules model) {
this.cbnGrantRule = model.cbnGrantRule;
}
/**
* CbnGrantRule.
*/
public Builder cbnGrantRule(java.util.List<CbnGrantRule> cbnGrantRule) {
this.cbnGrantRule = cbnGrantRule;
return this;
}
public CenGrantRules build() {
return new CenGrantRules(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeHaVipsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeHaVipsRequest} extends {@link RequestModel}
*
* <p>DescribeHaVipsRequest</p>
*/
public class DescribeHaVipsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Filter")
private java.util.List<Filter> filter;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
private DescribeHaVipsRequest(Builder builder) {
super(builder);
this.filter = builder.filter;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static DescribeHaVipsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return filter
*/
public java.util.List<Filter> getFilter() {
return this.filter;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
public static final class Builder extends Request.Builder<DescribeHaVipsRequest, Builder> {
private java.util.List<Filter> filter;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tags> tags;
private Builder() {
super();
}
private Builder(DescribeHaVipsRequest request) {
super(request);
this.filter = request.filter;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tags = request.tags;
}
/**
* <p>The details of the filter condition.</p>
*/
public Builder filter(java.util.List<Filter> filter) {
this.putQueryParameter("Filter", filter);
this.filter = filter;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the returned page. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the HaVip.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the HaVip belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The tag list.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
@Override
public DescribeHaVipsRequest build() {
return new DescribeHaVipsRequest(this);
}
}
/**
*
* {@link DescribeHaVipsRequest} extends {@link TeaModel}
*
* <p>DescribeHaVipsRequest</p>
*/
public static class Filter extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private java.util.List<String> value;
private Filter(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Filter create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public java.util.List<String> getValue() {
return this.value;
}
public static final class Builder {
private String key;
private java.util.List<String> value;
private Builder() {
}
private Builder(Filter model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The filter keys. You can specify at most five filter keys. Valid values of <strong>N</strong>: <strong>1 to 5</strong>. The following filter keys are supported:</p>
* <ul>
* <li><strong>VpcId</strong>: virtual private cloud (VPC) ID</li>
* <li><strong>VSwitchId</strong>: vSwitch ID</li>
* <li><strong>Status</strong>: HaVip status</li>
* <li><strong>HaVipId</strong>: HaVip ID</li>
* <li><strong>HaVipAddress</strong>: HaVip IP address</li>
* </ul>
* <p>You can specify multiple values for each filter key. The logical operator among multiple values is OR. If one value is matched, the filter key is matched.</p>
* <p>The logical operator among multiple filter keys is AND. HaVips can be queried only if all filter keys are matched.</p>
*
* <strong>example:</strong>
* <p>HaVipId</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of the filter key. Valid values of <strong>N</strong>: <strong>1 to 5</strong>.</p>
*
* <strong>example:</strong>
* <p>havip-bp19o63nequs01i8d****</p>
*/
public Builder value(java.util.List<String> value) {
this.value = value;
return this;
}
public Filter build() {
return new Filter(this);
}
}
}
/**
*
* {@link DescribeHaVipsRequest} extends {@link TeaModel}
*
* <p>DescribeHaVipsRequest</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeHaVipsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeHaVipsResponse} extends {@link TeaModel}
*
* <p>DescribeHaVipsResponse</p>
*/
public class DescribeHaVipsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeHaVipsResponseBody body;
private DescribeHaVipsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeHaVipsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeHaVipsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeHaVipsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeHaVipsResponseBody body);
@Override
DescribeHaVipsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeHaVipsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeHaVipsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeHaVipsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeHaVipsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeHaVipsResponse build() {
return new DescribeHaVipsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeHaVipsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeHaVipsResponseBody} extends {@link TeaModel}
*
* <p>DescribeHaVipsResponseBody</p>
*/
public class DescribeHaVipsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HaVips")
private HaVips haVips;
@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 DescribeHaVipsResponseBody(Builder builder) {
this.haVips = builder.haVips;
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 DescribeHaVipsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return haVips
*/
public HaVips getHaVips() {
return this.haVips;
}
/**
* @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 HaVips haVips;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeHaVipsResponseBody model) {
this.haVips = model.haVips;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The details about the HaVip.</p>
*/
public Builder haVips(HaVips haVips) {
this.haVips = haVips;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>33E480C5-B46F-4CA5-B6FD-D77C746E86AB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeHaVipsResponseBody build() {
return new DescribeHaVipsResponseBody(this);
}
}
/**
*
* {@link DescribeHaVipsResponseBody} extends {@link TeaModel}
*
* <p>DescribeHaVipsResponseBody</p>
*/
public static class AssociatedEipAddresses extends TeaModel {
@com.aliyun.core.annotation.NameInMap("associatedEipAddresse")
private java.util.List<String> associatedEipAddresse;
private AssociatedEipAddresses(Builder builder) {
this.associatedEipAddresse = builder.associatedEipAddresse;
}
public static Builder builder() {
return new Builder();
}
public static AssociatedEipAddresses create() {
return builder().build();
}
/**
* @return associatedEipAddresse
*/
public java.util.List<String> getAssociatedEipAddresse() {
return this.associatedEipAddresse;
}
public static final class Builder {
private java.util.List<String> associatedEipAddresse;
private Builder() {
}
private Builder(AssociatedEipAddresses model) {
this.associatedEipAddresse = model.associatedEipAddresse;
}
/**
* associatedEipAddresse.
*/
public Builder associatedEipAddresse(java.util.List<String> associatedEipAddresse) {
this.associatedEipAddresse = associatedEipAddresse;
return this;
}
public AssociatedEipAddresses build() {
return new AssociatedEipAddresses(this);
}
}
}
/**
*
* {@link DescribeHaVipsResponseBody} extends {@link TeaModel}
*
* <p>DescribeHaVipsResponseBody</p>
*/
public static class AssociatedInstances extends TeaModel {
@com.aliyun.core.annotation.NameInMap("associatedInstance")
private java.util.List<String> associatedInstance;
private AssociatedInstances(Builder builder) {
this.associatedInstance = builder.associatedInstance;
}
public static Builder builder() {
return new Builder();
}
public static AssociatedInstances create() {
return builder().build();
}
/**
* @return associatedInstance
*/
public java.util.List<String> getAssociatedInstance() {
return this.associatedInstance;
}
public static final class Builder {
private java.util.List<String> associatedInstance;
private Builder() {
}
private Builder(AssociatedInstances model) {
this.associatedInstance = model.associatedInstance;
}
/**
* associatedInstance.
*/
public Builder associatedInstance(java.util.List<String> associatedInstance) {
this.associatedInstance = associatedInstance;
return this;
}
public AssociatedInstances build() {
return new AssociatedInstances(this);
}
}
}
/**
*
* {@link DescribeHaVipsResponseBody} extends {@link TeaModel}
*
* <p>DescribeHaVipsResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N added to the resource.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N added to the resource.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeHaVipsResponseBody} extends {@link TeaModel}
*
* <p>DescribeHaVipsResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeHaVipsResponseBody} extends {@link TeaModel}
*
* <p>DescribeHaVipsResponseBody</p>
*/
public static class HaVip extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociatedEipAddresses")
private AssociatedEipAddresses associatedEipAddresses;
@com.aliyun.core.annotation.NameInMap("AssociatedInstanceType")
private String associatedInstanceType;
@com.aliyun.core.annotation.NameInMap("AssociatedInstances")
private AssociatedInstances associatedInstances;
@com.aliyun.core.annotation.NameInMap("ChargeType")
private String chargeType;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("HaVipId")
private String haVipId;
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
@com.aliyun.core.annotation.NameInMap("MasterInstanceId")
private String masterInstanceId;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private HaVip(Builder builder) {
this.associatedEipAddresses = builder.associatedEipAddresses;
this.associatedInstanceType = builder.associatedInstanceType;
this.associatedInstances = builder.associatedInstances;
this.chargeType = builder.chargeType;
this.createTime = builder.createTime;
this.description = builder.description;
this.haVipId = builder.haVipId;
this.ipAddress = builder.ipAddress;
this.masterInstanceId = builder.masterInstanceId;
this.name = builder.name;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.status = builder.status;
this.tags = builder.tags;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static HaVip create() {
return builder().build();
}
/**
* @return associatedEipAddresses
*/
public AssociatedEipAddresses getAssociatedEipAddresses() {
return this.associatedEipAddresses;
}
/**
* @return associatedInstanceType
*/
public String getAssociatedInstanceType() {
return this.associatedInstanceType;
}
/**
* @return associatedInstances
*/
public AssociatedInstances getAssociatedInstances() {
return this.associatedInstances;
}
/**
* @return chargeType
*/
public String getChargeType() {
return this.chargeType;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return haVipId
*/
public String getHaVipId() {
return this.haVipId;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return masterInstanceId
*/
public String getMasterInstanceId() {
return this.masterInstanceId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private AssociatedEipAddresses associatedEipAddresses;
private String associatedInstanceType;
private AssociatedInstances associatedInstances;
private String chargeType;
private String createTime;
private String description;
private String haVipId;
private String ipAddress;
private String masterInstanceId;
private String name;
private String regionId;
private String resourceGroupId;
private String status;
private Tags tags;
private String vSwitchId;
private String vpcId;
private Builder() {
}
private Builder(HaVip model) {
this.associatedEipAddresses = model.associatedEipAddresses;
this.associatedInstanceType = model.associatedInstanceType;
this.associatedInstances = model.associatedInstances;
this.chargeType = model.chargeType;
this.createTime = model.createTime;
this.description = model.description;
this.haVipId = model.haVipId;
this.ipAddress = model.ipAddress;
this.masterInstanceId = model.masterInstanceId;
this.name = model.name;
this.regionId = model.regionId;
this.resourceGroupId = model.resourceGroupId;
this.status = model.status;
this.tags = model.tags;
this.vSwitchId = model.vSwitchId;
this.vpcId = model.vpcId;
}
/**
* <p>The list of EIPs associated with the HaVip.</p>
*/
public Builder associatedEipAddresses(AssociatedEipAddresses associatedEipAddresses) {
this.associatedEipAddresses = associatedEipAddresses;
return this;
}
/**
* <p>The type of the instance with which the HaVip is associated. Valid values:</p>
* <ul>
* <li><strong>EcsInstance</strong>: Elastic Compute Service (ECS) instance</li>
* <li><strong>NetworkInterface</strong>: elastic network interface (ENI)</li>
* </ul>
*
* <strong>example:</strong>
* <p>EcsInstance</p>
*/
public Builder associatedInstanceType(String associatedInstanceType) {
this.associatedInstanceType = associatedInstanceType;
return this;
}
/**
* <p>The information about the instance associated with the HaVip.</p>
*/
public Builder associatedInstances(AssociatedInstances associatedInstances) {
this.associatedInstances = associatedInstances;
return this;
}
/**
* <p>The parameter is invalid. No value is returned.</p>
*
* <strong>example:</strong>
* <p>none</p>
*/
public Builder chargeType(String chargeType) {
this.chargeType = chargeType;
return this;
}
/**
* <p>The time when the HaVip was created.</p>
*
* <strong>example:</strong>
* <p>2021-07-03T14:25:26Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The description of the HaVip.</p>
*
* <strong>example:</strong>
* <p>My HaVip</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the HaVip.</p>
*
* <strong>example:</strong>
* <p>havip-bp149uyvut73dpld****</p>
*/
public Builder haVipId(String haVipId) {
this.haVipId = haVipId;
return this;
}
/**
* <p>The private IP address of the HaVip.</p>
*
* <strong>example:</strong>
* <p>192.168.24.5</p>
*/
public Builder ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* <p>The ID of the active instance that is associated with the HaVip.</p>
*
* <strong>example:</strong>
* <p>i-bp145q7glnuzdvz****</p>
*/
public Builder masterInstanceId(String masterInstanceId) {
this.masterInstanceId = masterInstanceId;
return this;
}
/**
* <p>The name of the HaVip.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the region to which the HaVip belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the HaVip belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The status of the HaVip. Valid values:</p>
* <ul>
* <li><strong>Creating</strong>: The server group is being created.</li>
* <li><strong>Available</strong>: The FULLNAT entry is available.</li>
* <li><strong>Deleting</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The tag list.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the vSwitch to which the HaVip belongs.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1pkt1fba8e824ez****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the VPC to which the HaVip belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1kcm36tevkpms97****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public HaVip build() {
return new HaVip(this);
}
}
}
/**
*
* {@link DescribeHaVipsResponseBody} extends {@link TeaModel}
*
* <p>DescribeHaVipsResponseBody</p>
*/
public static class HaVips extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HaVip")
private java.util.List<HaVip> haVip;
private HaVips(Builder builder) {
this.haVip = builder.haVip;
}
public static Builder builder() {
return new Builder();
}
public static HaVips create() {
return builder().build();
}
/**
* @return haVip
*/
public java.util.List<HaVip> getHaVip() {
return this.haVip;
}
public static final class Builder {
private java.util.List<HaVip> haVip;
private Builder() {
}
private Builder(HaVips model) {
this.haVip = model.haVip;
}
/**
* HaVip.
*/
public Builder haVip(java.util.List<HaVip> haVip) {
this.haVip = haVip;
return this;
}
public HaVips build() {
return new HaVips(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeHighDefinitionMonitorLogAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeHighDefinitionMonitorLogAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeHighDefinitionMonitorLogAttributeRequest</p>
*/
public class DescribeHighDefinitionMonitorLogAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeHighDefinitionMonitorLogAttributeRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeHighDefinitionMonitorLogAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeHighDefinitionMonitorLogAttributeRequest, Builder> {
private String instanceId;
private String instanceType;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeHighDefinitionMonitorLogAttributeRequest request) {
super(request);
this.instanceId = request.instanceId;
this.instanceType = request.instanceType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the instance whose fine-grained monitoring configurations you want to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eip-wz9fi6qboho9fwgx7****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The type of the instance. Set the value to <strong>EIP</strong>.</p>
*
* <strong>example:</strong>
* <p>EIP</p>
*/
public Builder instanceType(String instanceType) {
this.putQueryParameter("InstanceType", instanceType);
this.instanceType = instanceType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the instance.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeHighDefinitionMonitorLogAttributeRequest build() {
return new DescribeHighDefinitionMonitorLogAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeHighDefinitionMonitorLogAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeHighDefinitionMonitorLogAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeHighDefinitionMonitorLogAttributeResponse</p>
*/
public class DescribeHighDefinitionMonitorLogAttributeResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeHighDefinitionMonitorLogAttributeResponseBody body;
private DescribeHighDefinitionMonitorLogAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeHighDefinitionMonitorLogAttributeResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeHighDefinitionMonitorLogAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeHighDefinitionMonitorLogAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeHighDefinitionMonitorLogAttributeResponseBody body);
@Override
DescribeHighDefinitionMonitorLogAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeHighDefinitionMonitorLogAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeHighDefinitionMonitorLogAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeHighDefinitionMonitorLogAttributeResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeHighDefinitionMonitorLogAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeHighDefinitionMonitorLogAttributeResponse build() {
return new DescribeHighDefinitionMonitorLogAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeHighDefinitionMonitorLogAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeHighDefinitionMonitorLogAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeHighDefinitionMonitorLogAttributeResponseBody</p>
*/
public class DescribeHighDefinitionMonitorLogAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.NameInMap("LogProject")
private String logProject;
@com.aliyun.core.annotation.NameInMap("LogStore")
private String logStore;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private String success;
private DescribeHighDefinitionMonitorLogAttributeResponseBody(Builder builder) {
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
this.logProject = builder.logProject;
this.logStore = builder.logStore;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static DescribeHighDefinitionMonitorLogAttributeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return logProject
*/
public String getLogProject() {
return this.logProject;
}
/**
* @return logStore
*/
public String getLogStore() {
return this.logStore;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public String getSuccess() {
return this.success;
}
public static final class Builder {
private String instanceId;
private String instanceType;
private String logProject;
private String logStore;
private String requestId;
private String success;
private Builder() {
}
private Builder(DescribeHighDefinitionMonitorLogAttributeResponseBody model) {
this.instanceId = model.instanceId;
this.instanceType = model.instanceType;
this.logProject = model.logProject;
this.logStore = model.logStore;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The ID of the instance whose fine-grained monitoring configurations you want to query.</p>
*
* <strong>example:</strong>
* <p>eip-wz9fi6qboho9fwgx7****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The type of instance for which you want to query fine-grained monitoring. Only <strong>EIP</strong> may be returned.</p>
*
* <strong>example:</strong>
* <p>EIP</p>
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* <p>The name of the project.</p>
*
* <strong>example:</strong>
* <p>hdmonitor-cn-shenzhen-1658206966225390</p>
*/
public Builder logProject(String logProject) {
this.logProject = logProject;
return this;
}
/**
* <p>The name of the Logstore.</p>
*
* <strong>example:</strong>
* <p>hdmonitor</p>
*/
public Builder logStore(String logStore) {
this.logStore = logStore;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B457</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the operation is performed. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(String success) {
this.success = success;
return this;
}
public DescribeHighDefinitionMonitorLogAttributeResponseBody build() {
return new DescribeHighDefinitionMonitorLogAttributeResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorAclListAttributesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorAclListAttributesRequest} extends {@link RequestModel}
*
* <p>DescribeIPv6TranslatorAclListAttributesRequest</p>
*/
public class DescribeIPv6TranslatorAclListAttributesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AclId")
@com.aliyun.core.annotation.Validation(required = true)
private String aclId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeIPv6TranslatorAclListAttributesRequest(Builder builder) {
super(builder);
this.aclId = builder.aclId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIPv6TranslatorAclListAttributesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeIPv6TranslatorAclListAttributesRequest, Builder> {
private String aclId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeIPv6TranslatorAclListAttributesRequest request) {
super(request);
this.aclId = request.aclId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ACL ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ipv6transacl-bp1de2****</p>
*/
public Builder aclId(String aclId) {
this.putQueryParameter("AclId", aclId);
this.aclId = aclId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region of the ACL.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeIPv6TranslatorAclListAttributesRequest build() {
return new DescribeIPv6TranslatorAclListAttributesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorAclListAttributesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorAclListAttributesResponse} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorAclListAttributesResponse</p>
*/
public class DescribeIPv6TranslatorAclListAttributesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeIPv6TranslatorAclListAttributesResponseBody body;
private DescribeIPv6TranslatorAclListAttributesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeIPv6TranslatorAclListAttributesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeIPv6TranslatorAclListAttributesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeIPv6TranslatorAclListAttributesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeIPv6TranslatorAclListAttributesResponseBody body);
@Override
DescribeIPv6TranslatorAclListAttributesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeIPv6TranslatorAclListAttributesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeIPv6TranslatorAclListAttributesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeIPv6TranslatorAclListAttributesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeIPv6TranslatorAclListAttributesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeIPv6TranslatorAclListAttributesResponse build() {
return new DescribeIPv6TranslatorAclListAttributesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorAclListAttributesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorAclListAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorAclListAttributesResponseBody</p>
*/
public class DescribeIPv6TranslatorAclListAttributesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclEntries")
private AclEntries aclEntries;
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.NameInMap("AclName")
private String aclName;
@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 DescribeIPv6TranslatorAclListAttributesResponseBody(Builder builder) {
this.aclEntries = builder.aclEntries;
this.aclId = builder.aclId;
this.aclName = builder.aclName;
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 DescribeIPv6TranslatorAclListAttributesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aclEntries
*/
public AclEntries getAclEntries() {
return this.aclEntries;
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclName
*/
public String getAclName() {
return this.aclName;
}
/**
* @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 AclEntries aclEntries;
private String aclId;
private String aclName;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeIPv6TranslatorAclListAttributesResponseBody model) {
this.aclEntries = model.aclEntries;
this.aclId = model.aclId;
this.aclName = model.aclName;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The ACLs.</p>
*/
public Builder aclEntries(AclEntries aclEntries) {
this.aclEntries = aclEntries;
return this;
}
/**
* <p>The ACL ID.</p>
*
* <strong>example:</strong>
* <p>ipv6transacl-bp1de2****</p>
*/
public Builder aclId(String aclId) {
this.aclId = aclId;
return this;
}
/**
* <p>The name of the ACL.</p>
*
* <strong>example:</strong>
* <p>acl1</p>
*/
public Builder aclName(String aclName) {
this.aclName = aclName;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeIPv6TranslatorAclListAttributesResponseBody build() {
return new DescribeIPv6TranslatorAclListAttributesResponseBody(this);
}
}
/**
*
* {@link DescribeIPv6TranslatorAclListAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorAclListAttributesResponseBody</p>
*/
public static class AclEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclEntryComment")
private String aclEntryComment;
@com.aliyun.core.annotation.NameInMap("AclEntryId")
private String aclEntryId;
@com.aliyun.core.annotation.NameInMap("AclEntryIp")
private String aclEntryIp;
private AclEntry(Builder builder) {
this.aclEntryComment = builder.aclEntryComment;
this.aclEntryId = builder.aclEntryId;
this.aclEntryIp = builder.aclEntryIp;
}
public static Builder builder() {
return new Builder();
}
public static AclEntry create() {
return builder().build();
}
/**
* @return aclEntryComment
*/
public String getAclEntryComment() {
return this.aclEntryComment;
}
/**
* @return aclEntryId
*/
public String getAclEntryId() {
return this.aclEntryId;
}
/**
* @return aclEntryIp
*/
public String getAclEntryIp() {
return this.aclEntryIp;
}
public static final class Builder {
private String aclEntryComment;
private String aclEntryId;
private String aclEntryIp;
private Builder() {
}
private Builder(AclEntry model) {
this.aclEntryComment = model.aclEntryComment;
this.aclEntryId = model.aclEntryId;
this.aclEntryIp = model.aclEntryIp;
}
/**
* <p>The remarks of the ACL entry.</p>
*
* <strong>example:</strong>
* <p>client IP</p>
*/
public Builder aclEntryComment(String aclEntryComment) {
this.aclEntryComment = aclEntryComment;
return this;
}
/**
* <p>The ID of the ACL entry.</p>
*
* <strong>example:</strong>
* <p>ipv6transaclentry-bp105jrs****</p>
*/
public Builder aclEntryId(String aclEntryId) {
this.aclEntryId = aclEntryId;
return this;
}
/**
* <p>The IP address specified in the ACL entry.</p>
*
* <strong>example:</strong>
* <p>12ab:0:0:XXXX::0102/128</p>
*/
public Builder aclEntryIp(String aclEntryIp) {
this.aclEntryIp = aclEntryIp;
return this;
}
public AclEntry build() {
return new AclEntry(this);
}
}
}
/**
*
* {@link DescribeIPv6TranslatorAclListAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorAclListAttributesResponseBody</p>
*/
public static class AclEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclEntry")
private java.util.List<AclEntry> aclEntry;
private AclEntries(Builder builder) {
this.aclEntry = builder.aclEntry;
}
public static Builder builder() {
return new Builder();
}
public static AclEntries create() {
return builder().build();
}
/**
* @return aclEntry
*/
public java.util.List<AclEntry> getAclEntry() {
return this.aclEntry;
}
public static final class Builder {
private java.util.List<AclEntry> aclEntry;
private Builder() {
}
private Builder(AclEntries model) {
this.aclEntry = model.aclEntry;
}
/**
* AclEntry.
*/
public Builder aclEntry(java.util.List<AclEntry> aclEntry) {
this.aclEntry = aclEntry;
return this;
}
public AclEntries build() {
return new AclEntries(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorAclListsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorAclListsRequest} extends {@link RequestModel}
*
* <p>DescribeIPv6TranslatorAclListsRequest</p>
*/
public class DescribeIPv6TranslatorAclListsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AclName")
private String aclName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeIPv6TranslatorAclListsRequest(Builder builder) {
super(builder);
this.aclId = builder.aclId;
this.aclName = builder.aclName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIPv6TranslatorAclListsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclName
*/
public String getAclName() {
return this.aclName;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeIPv6TranslatorAclListsRequest, Builder> {
private String aclId;
private String aclName;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeIPv6TranslatorAclListsRequest request) {
super(request);
this.aclId = request.aclId;
this.aclName = request.aclName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the ACL.</p>
*
* <strong>example:</strong>
* <p>ipv6transacl-bp1de2****</p>
*/
public Builder aclId(String aclId) {
this.putQueryParameter("AclId", aclId);
this.aclId = aclId;
return this;
}
/**
* <p>The name of the ACL.</p>
*
* <strong>example:</strong>
* <p>acl1</p>
*/
public Builder aclName(String aclName) {
this.putQueryParameter("AclName", aclName);
this.aclName = aclName;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region of the ACL.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeIPv6TranslatorAclListsRequest build() {
return new DescribeIPv6TranslatorAclListsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorAclListsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorAclListsResponse} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorAclListsResponse</p>
*/
public class DescribeIPv6TranslatorAclListsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeIPv6TranslatorAclListsResponseBody body;
private DescribeIPv6TranslatorAclListsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeIPv6TranslatorAclListsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeIPv6TranslatorAclListsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeIPv6TranslatorAclListsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeIPv6TranslatorAclListsResponseBody body);
@Override
DescribeIPv6TranslatorAclListsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeIPv6TranslatorAclListsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeIPv6TranslatorAclListsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeIPv6TranslatorAclListsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeIPv6TranslatorAclListsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeIPv6TranslatorAclListsResponse build() {
return new DescribeIPv6TranslatorAclListsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorAclListsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorAclListsResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorAclListsResponseBody</p>
*/
public class DescribeIPv6TranslatorAclListsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorAcls")
private Ipv6TranslatorAcls ipv6TranslatorAcls;
@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 DescribeIPv6TranslatorAclListsResponseBody(Builder builder) {
this.ipv6TranslatorAcls = builder.ipv6TranslatorAcls;
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 DescribeIPv6TranslatorAclListsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv6TranslatorAcls
*/
public Ipv6TranslatorAcls getIpv6TranslatorAcls() {
return this.ipv6TranslatorAcls;
}
/**
* @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 Ipv6TranslatorAcls ipv6TranslatorAcls;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeIPv6TranslatorAclListsResponseBody model) {
this.ipv6TranslatorAcls = model.ipv6TranslatorAcls;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The list of network ACLs.</p>
*/
public Builder ipv6TranslatorAcls(Ipv6TranslatorAcls ipv6TranslatorAcls) {
this.ipv6TranslatorAcls = ipv6TranslatorAcls;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeIPv6TranslatorAclListsResponseBody build() {
return new DescribeIPv6TranslatorAclListsResponseBody(this);
}
}
/**
*
* {@link DescribeIPv6TranslatorAclListsResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorAclListsResponseBody</p>
*/
public static class IPv6TranslatorAcl extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.NameInMap("AclName")
private String aclName;
private IPv6TranslatorAcl(Builder builder) {
this.aclId = builder.aclId;
this.aclName = builder.aclName;
}
public static Builder builder() {
return new Builder();
}
public static IPv6TranslatorAcl create() {
return builder().build();
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclName
*/
public String getAclName() {
return this.aclName;
}
public static final class Builder {
private String aclId;
private String aclName;
private Builder() {
}
private Builder(IPv6TranslatorAcl model) {
this.aclId = model.aclId;
this.aclName = model.aclName;
}
/**
* <p>The ACL ID.</p>
*
* <strong>example:</strong>
* <p>ipv6transacl-bp1de2****</p>
*/
public Builder aclId(String aclId) {
this.aclId = aclId;
return this;
}
/**
* <p>The ACL name.</p>
*
* <strong>example:</strong>
* <p>acl1</p>
*/
public Builder aclName(String aclName) {
this.aclName = aclName;
return this;
}
public IPv6TranslatorAcl build() {
return new IPv6TranslatorAcl(this);
}
}
}
/**
*
* {@link DescribeIPv6TranslatorAclListsResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorAclListsResponseBody</p>
*/
public static class Ipv6TranslatorAcls extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IPv6TranslatorAcl")
private java.util.List<IPv6TranslatorAcl> iPv6TranslatorAcl;
private Ipv6TranslatorAcls(Builder builder) {
this.iPv6TranslatorAcl = builder.iPv6TranslatorAcl;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6TranslatorAcls create() {
return builder().build();
}
/**
* @return iPv6TranslatorAcl
*/
public java.util.List<IPv6TranslatorAcl> getIPv6TranslatorAcl() {
return this.iPv6TranslatorAcl;
}
public static final class Builder {
private java.util.List<IPv6TranslatorAcl> iPv6TranslatorAcl;
private Builder() {
}
private Builder(Ipv6TranslatorAcls model) {
this.iPv6TranslatorAcl = model.iPv6TranslatorAcl;
}
/**
* IPv6TranslatorAcl.
*/
public Builder iPv6TranslatorAcl(java.util.List<IPv6TranslatorAcl> iPv6TranslatorAcl) {
this.iPv6TranslatorAcl = iPv6TranslatorAcl;
return this;
}
public Ipv6TranslatorAcls build() {
return new Ipv6TranslatorAcls(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorEntriesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorEntriesRequest} extends {@link RequestModel}
*
* <p>DescribeIPv6TranslatorEntriesRequest</p>
*/
public class DescribeIPv6TranslatorEntriesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AclStatus")
private String aclStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AclType")
private String aclType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllocateIpv6Addr")
private String allocateIpv6Addr;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllocateIpv6Port")
private Integer allocateIpv6Port;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackendIpv4Addr")
private String backendIpv4Addr;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackendIpv4Port")
private Integer backendIpv4Port;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EntryName")
private String entryName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorEntryId")
private String ipv6TranslatorEntryId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorId")
private String ipv6TranslatorId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TransProtocol")
private String transProtocol;
private DescribeIPv6TranslatorEntriesRequest(Builder builder) {
super(builder);
this.aclId = builder.aclId;
this.aclStatus = builder.aclStatus;
this.aclType = builder.aclType;
this.allocateIpv6Addr = builder.allocateIpv6Addr;
this.allocateIpv6Port = builder.allocateIpv6Port;
this.backendIpv4Addr = builder.backendIpv4Addr;
this.backendIpv4Port = builder.backendIpv4Port;
this.clientToken = builder.clientToken;
this.entryName = builder.entryName;
this.ipv6TranslatorEntryId = builder.ipv6TranslatorEntryId;
this.ipv6TranslatorId = builder.ipv6TranslatorId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.transProtocol = builder.transProtocol;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIPv6TranslatorEntriesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclStatus
*/
public String getAclStatus() {
return this.aclStatus;
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return allocateIpv6Addr
*/
public String getAllocateIpv6Addr() {
return this.allocateIpv6Addr;
}
/**
* @return allocateIpv6Port
*/
public Integer getAllocateIpv6Port() {
return this.allocateIpv6Port;
}
/**
* @return backendIpv4Addr
*/
public String getBackendIpv4Addr() {
return this.backendIpv4Addr;
}
/**
* @return backendIpv4Port
*/
public Integer getBackendIpv4Port() {
return this.backendIpv4Port;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return entryName
*/
public String getEntryName() {
return this.entryName;
}
/**
* @return ipv6TranslatorEntryId
*/
public String getIpv6TranslatorEntryId() {
return this.ipv6TranslatorEntryId;
}
/**
* @return ipv6TranslatorId
*/
public String getIpv6TranslatorId() {
return this.ipv6TranslatorId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return transProtocol
*/
public String getTransProtocol() {
return this.transProtocol;
}
public static final class Builder extends Request.Builder<DescribeIPv6TranslatorEntriesRequest, Builder> {
private String aclId;
private String aclStatus;
private String aclType;
private String allocateIpv6Addr;
private Integer allocateIpv6Port;
private String backendIpv4Addr;
private Integer backendIpv4Port;
private String clientToken;
private String entryName;
private String ipv6TranslatorEntryId;
private String ipv6TranslatorId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String transProtocol;
private Builder() {
super();
}
private Builder(DescribeIPv6TranslatorEntriesRequest request) {
super(request);
this.aclId = request.aclId;
this.aclStatus = request.aclStatus;
this.aclType = request.aclType;
this.allocateIpv6Addr = request.allocateIpv6Addr;
this.allocateIpv6Port = request.allocateIpv6Port;
this.backendIpv4Addr = request.backendIpv4Addr;
this.backendIpv4Port = request.backendIpv4Port;
this.clientToken = request.clientToken;
this.entryName = request.entryName;
this.ipv6TranslatorEntryId = request.ipv6TranslatorEntryId;
this.ipv6TranslatorId = request.ipv6TranslatorId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.transProtocol = request.transProtocol;
}
/**
* <p>The ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>ipv6transacl-bp1de2****</p>
*/
public Builder aclId(String aclId) {
this.putQueryParameter("AclId", aclId);
this.aclId = aclId;
return this;
}
/**
* <p>Specifies whether to enable access control lists (ACLs). Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder aclStatus(String aclStatus) {
this.putQueryParameter("AclStatus", aclStatus);
this.aclStatus = aclStatus;
return this;
}
/**
* <p>The ACL type. Valid values:</p>
* <ul>
* <li><strong>white</strong>: a whitelist. IPv6 addresses in the ACL are allowed to access backend services.</li>
* <li><strong>black</strong>: a blacklist. IPv6 addresses in the ACL are not allowed to access backend services.</li>
* </ul>
*
* <strong>example:</strong>
* <p>white</p>
*/
public Builder aclType(String aclType) {
this.putQueryParameter("AclType", aclType);
this.aclType = aclType;
return this;
}
/**
* <p>The IPv6 address allocated to the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>2400:3200:1600::XX</p>
*/
public Builder allocateIpv6Addr(String allocateIpv6Addr) {
this.putQueryParameter("AllocateIpv6Addr", allocateIpv6Addr);
this.allocateIpv6Addr = allocateIpv6Addr;
return this;
}
/**
* <p>The port used by the IPv6 address allocated to the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder allocateIpv6Port(Integer allocateIpv6Port) {
this.putQueryParameter("AllocateIpv6Port", allocateIpv6Port);
this.allocateIpv6Port = allocateIpv6Port;
return this;
}
/**
* <p>The public IPv4 address that needs to provide IPv6 services.</p>
*
* <strong>example:</strong>
* <p>47.99.XX.XX</p>
*/
public Builder backendIpv4Addr(String backendIpv4Addr) {
this.putQueryParameter("BackendIpv4Addr", backendIpv4Addr);
this.backendIpv4Addr = backendIpv4Addr;
return this;
}
/**
* <p>The port used by the public IPv4 address that needs to provide IPv6 services.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder backendIpv4Port(Integer backendIpv4Port) {
this.putQueryParameter("BackendIpv4Port", backendIpv4Port);
this.backendIpv4Port = backendIpv4Port;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The name of the IPv6 mapping entry.</p>
*
* <strong>example:</strong>
* <p>entryname</p>
*/
public Builder entryName(String entryName) {
this.putQueryParameter("EntryName", entryName);
this.entryName = entryName;
return this;
}
/**
* <p>The ID of the IPv6 mapping entry.</p>
* <blockquote>
* <p>If <strong>Ipv6TranslatorId</strong> and <strong>Ipv6TranslatorEntryId</strong> are empty, information about all IPv6 mapping entries is returned. If only <strong>Ipv6TranslatorEntryId</strong> is empty, information about the IPv6 mapping entries of the current IPv6 Translation Service instance is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ipv6transentry-bp1g8bhrde****</p>
*/
public Builder ipv6TranslatorEntryId(String ipv6TranslatorEntryId) {
this.putQueryParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId);
this.ipv6TranslatorEntryId = ipv6TranslatorEntryId;
return this;
}
/**
* <p>The ID of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>ipv6trans-bp1858ysxx****</p>
*/
public Builder ipv6TranslatorId(String ipv6TranslatorId) {
this.putQueryParameter("Ipv6TranslatorId", ipv6TranslatorId);
this.ipv6TranslatorId = ipv6TranslatorId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the page to return. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region of the IPv6 Translation Service instance. You can call the <strong>DescribeRegions</strong> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The protocol used by the data to be forwarded.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder transProtocol(String transProtocol) {
this.putQueryParameter("TransProtocol", transProtocol);
this.transProtocol = transProtocol;
return this;
}
@Override
public DescribeIPv6TranslatorEntriesRequest build() {
return new DescribeIPv6TranslatorEntriesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorEntriesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorEntriesResponse} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorEntriesResponse</p>
*/
public class DescribeIPv6TranslatorEntriesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeIPv6TranslatorEntriesResponseBody body;
private DescribeIPv6TranslatorEntriesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeIPv6TranslatorEntriesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeIPv6TranslatorEntriesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeIPv6TranslatorEntriesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeIPv6TranslatorEntriesResponseBody body);
@Override
DescribeIPv6TranslatorEntriesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeIPv6TranslatorEntriesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeIPv6TranslatorEntriesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeIPv6TranslatorEntriesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeIPv6TranslatorEntriesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeIPv6TranslatorEntriesResponse build() {
return new DescribeIPv6TranslatorEntriesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorEntriesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorEntriesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorEntriesResponseBody</p>
*/
public class DescribeIPv6TranslatorEntriesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorEntries")
private Ipv6TranslatorEntries ipv6TranslatorEntries;
@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 DescribeIPv6TranslatorEntriesResponseBody(Builder builder) {
this.ipv6TranslatorEntries = builder.ipv6TranslatorEntries;
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 DescribeIPv6TranslatorEntriesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv6TranslatorEntries
*/
public Ipv6TranslatorEntries getIpv6TranslatorEntries() {
return this.ipv6TranslatorEntries;
}
/**
* @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 Ipv6TranslatorEntries ipv6TranslatorEntries;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeIPv6TranslatorEntriesResponseBody model) {
this.ipv6TranslatorEntries = model.ipv6TranslatorEntries;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The IPv6 mapping entries that are queried.</p>
*/
public Builder ipv6TranslatorEntries(Ipv6TranslatorEntries ipv6TranslatorEntries) {
this.ipv6TranslatorEntries = ipv6TranslatorEntries;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeIPv6TranslatorEntriesResponseBody build() {
return new DescribeIPv6TranslatorEntriesResponseBody(this);
}
}
/**
*
* {@link DescribeIPv6TranslatorEntriesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorEntriesResponseBody</p>
*/
public static class Ipv6TranslatorEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.NameInMap("AclStatus")
private String aclStatus;
@com.aliyun.core.annotation.NameInMap("AclType")
private String aclType;
@com.aliyun.core.annotation.NameInMap("AllocateIpv6Addr")
private String allocateIpv6Addr;
@com.aliyun.core.annotation.NameInMap("AllocateIpv6Port")
private Integer allocateIpv6Port;
@com.aliyun.core.annotation.NameInMap("BackendIpv4Addr")
private String backendIpv4Addr;
@com.aliyun.core.annotation.NameInMap("BackendIpv4Port")
private String backendIpv4Port;
@com.aliyun.core.annotation.NameInMap("EntryBandwidth")
private String entryBandwidth;
@com.aliyun.core.annotation.NameInMap("EntryDescription")
private String entryDescription;
@com.aliyun.core.annotation.NameInMap("EntryName")
private String entryName;
@com.aliyun.core.annotation.NameInMap("EntryStatus")
private String entryStatus;
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorEntryId")
private String ipv6TranslatorEntryId;
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorId")
private String ipv6TranslatorId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("TransProtocol")
private String transProtocol;
private Ipv6TranslatorEntry(Builder builder) {
this.aclId = builder.aclId;
this.aclStatus = builder.aclStatus;
this.aclType = builder.aclType;
this.allocateIpv6Addr = builder.allocateIpv6Addr;
this.allocateIpv6Port = builder.allocateIpv6Port;
this.backendIpv4Addr = builder.backendIpv4Addr;
this.backendIpv4Port = builder.backendIpv4Port;
this.entryBandwidth = builder.entryBandwidth;
this.entryDescription = builder.entryDescription;
this.entryName = builder.entryName;
this.entryStatus = builder.entryStatus;
this.ipv6TranslatorEntryId = builder.ipv6TranslatorEntryId;
this.ipv6TranslatorId = builder.ipv6TranslatorId;
this.regionId = builder.regionId;
this.transProtocol = builder.transProtocol;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6TranslatorEntry create() {
return builder().build();
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclStatus
*/
public String getAclStatus() {
return this.aclStatus;
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return allocateIpv6Addr
*/
public String getAllocateIpv6Addr() {
return this.allocateIpv6Addr;
}
/**
* @return allocateIpv6Port
*/
public Integer getAllocateIpv6Port() {
return this.allocateIpv6Port;
}
/**
* @return backendIpv4Addr
*/
public String getBackendIpv4Addr() {
return this.backendIpv4Addr;
}
/**
* @return backendIpv4Port
*/
public String getBackendIpv4Port() {
return this.backendIpv4Port;
}
/**
* @return entryBandwidth
*/
public String getEntryBandwidth() {
return this.entryBandwidth;
}
/**
* @return entryDescription
*/
public String getEntryDescription() {
return this.entryDescription;
}
/**
* @return entryName
*/
public String getEntryName() {
return this.entryName;
}
/**
* @return entryStatus
*/
public String getEntryStatus() {
return this.entryStatus;
}
/**
* @return ipv6TranslatorEntryId
*/
public String getIpv6TranslatorEntryId() {
return this.ipv6TranslatorEntryId;
}
/**
* @return ipv6TranslatorId
*/
public String getIpv6TranslatorId() {
return this.ipv6TranslatorId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return transProtocol
*/
public String getTransProtocol() {
return this.transProtocol;
}
public static final class Builder {
private String aclId;
private String aclStatus;
private String aclType;
private String allocateIpv6Addr;
private Integer allocateIpv6Port;
private String backendIpv4Addr;
private String backendIpv4Port;
private String entryBandwidth;
private String entryDescription;
private String entryName;
private String entryStatus;
private String ipv6TranslatorEntryId;
private String ipv6TranslatorId;
private String regionId;
private String transProtocol;
private Builder() {
}
private Builder(Ipv6TranslatorEntry model) {
this.aclId = model.aclId;
this.aclStatus = model.aclStatus;
this.aclType = model.aclType;
this.allocateIpv6Addr = model.allocateIpv6Addr;
this.allocateIpv6Port = model.allocateIpv6Port;
this.backendIpv4Addr = model.backendIpv4Addr;
this.backendIpv4Port = model.backendIpv4Port;
this.entryBandwidth = model.entryBandwidth;
this.entryDescription = model.entryDescription;
this.entryName = model.entryName;
this.entryStatus = model.entryStatus;
this.ipv6TranslatorEntryId = model.ipv6TranslatorEntryId;
this.ipv6TranslatorId = model.ipv6TranslatorId;
this.regionId = model.regionId;
this.transProtocol = model.transProtocol;
}
/**
* <p>The ID of the associated ACL.</p>
*
* <strong>example:</strong>
* <p>ipv6transacl-bp1de2****</p>
*/
public Builder aclId(String aclId) {
this.aclId = aclId;
return this;
}
/**
* <p>Indicates whether ACLs are enabled.</p>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder aclStatus(String aclStatus) {
this.aclStatus = aclStatus;
return this;
}
/**
* <p>The ACL type.</p>
* <ul>
* <li><strong>white</strong>: a whitelist. IPv6 addresses in the ACL are allowed to access backend services.</li>
* <li><strong>black</strong>: a blacklist. IPv6 addresses in the ACL are not allowed to access backend services.</li>
* </ul>
*
* <strong>example:</strong>
* <p>white</p>
*/
public Builder aclType(String aclType) {
this.aclType = aclType;
return this;
}
/**
* <p>The IPv6 address allocated to the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>2400:3200:1600::XX</p>
*/
public Builder allocateIpv6Addr(String allocateIpv6Addr) {
this.allocateIpv6Addr = allocateIpv6Addr;
return this;
}
/**
* <p>The port used by the IPv6 address allocated to the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder allocateIpv6Port(Integer allocateIpv6Port) {
this.allocateIpv6Port = allocateIpv6Port;
return this;
}
/**
* <p>The public IP address of the backend IPv4 server.</p>
*
* <strong>example:</strong>
* <p>47.99.XX.XX</p>
*/
public Builder backendIpv4Addr(String backendIpv4Addr) {
this.backendIpv4Addr = backendIpv4Addr;
return this;
}
/**
* <p>The public IPv4 port used by the IPv4 server that needs to provide IPv6 access.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder backendIpv4Port(String backendIpv4Port) {
this.backendIpv4Port = backendIpv4Port;
return this;
}
/**
* <p>The bandwidth specified in the IPv6 mapping entry.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder entryBandwidth(String entryBandwidth) {
this.entryBandwidth = entryBandwidth;
return this;
}
/**
* <p>The description of the IPv6 mapping entry.</p>
*
* <strong>example:</strong>
* <p>description</p>
*/
public Builder entryDescription(String entryDescription) {
this.entryDescription = entryDescription;
return this;
}
/**
* <p>The name of the IPv6 mapping entry.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder entryName(String entryName) {
this.entryName = entryName;
return this;
}
/**
* <p>The status of the IPv6 mapping entry.</p>
*
* <strong>example:</strong>
* <p>active</p>
*/
public Builder entryStatus(String entryStatus) {
this.entryStatus = entryStatus;
return this;
}
/**
* <p>The ID of the IPv6 mapping entry.</p>
*
* <strong>example:</strong>
* <p>ipv6transentry-bp1g8bhrde****</p>
*/
public Builder ipv6TranslatorEntryId(String ipv6TranslatorEntryId) {
this.ipv6TranslatorEntryId = ipv6TranslatorEntryId;
return this;
}
/**
* <p>The ID of the IPv6 Translation Service instance to which the IPv6 mapping entry belongs.</p>
*
* <strong>example:</strong>
* <p>ipv6trans-bp1858ys****</p>
*/
public Builder ipv6TranslatorId(String ipv6TranslatorId) {
this.ipv6TranslatorId = ipv6TranslatorId;
return this;
}
/**
* <p>The region of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The protocol.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder transProtocol(String transProtocol) {
this.transProtocol = transProtocol;
return this;
}
public Ipv6TranslatorEntry build() {
return new Ipv6TranslatorEntry(this);
}
}
}
/**
*
* {@link DescribeIPv6TranslatorEntriesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorEntriesResponseBody</p>
*/
public static class Ipv6TranslatorEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorEntry")
private java.util.List<Ipv6TranslatorEntry> ipv6TranslatorEntry;
private Ipv6TranslatorEntries(Builder builder) {
this.ipv6TranslatorEntry = builder.ipv6TranslatorEntry;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6TranslatorEntries create() {
return builder().build();
}
/**
* @return ipv6TranslatorEntry
*/
public java.util.List<Ipv6TranslatorEntry> getIpv6TranslatorEntry() {
return this.ipv6TranslatorEntry;
}
public static final class Builder {
private java.util.List<Ipv6TranslatorEntry> ipv6TranslatorEntry;
private Builder() {
}
private Builder(Ipv6TranslatorEntries model) {
this.ipv6TranslatorEntry = model.ipv6TranslatorEntry;
}
/**
* Ipv6TranslatorEntry.
*/
public Builder ipv6TranslatorEntry(java.util.List<Ipv6TranslatorEntry> ipv6TranslatorEntry) {
this.ipv6TranslatorEntry = ipv6TranslatorEntry;
return this;
}
public Ipv6TranslatorEntries build() {
return new Ipv6TranslatorEntries(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorsRequest} extends {@link RequestModel}
*
* <p>DescribeIPv6TranslatorsRequest</p>
*/
public class DescribeIPv6TranslatorsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllocateIpv4Addr")
private String allocateIpv4Addr;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllocateIpv6Addr")
private String allocateIpv6Addr;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorId")
private String ipv6TranslatorId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Spec")
private String spec;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DescribeIPv6TranslatorsRequest(Builder builder) {
super(builder);
this.allocateIpv4Addr = builder.allocateIpv4Addr;
this.allocateIpv6Addr = builder.allocateIpv6Addr;
this.businessStatus = builder.businessStatus;
this.ipv6TranslatorId = builder.ipv6TranslatorId;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.payType = builder.payType;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.spec = builder.spec;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIPv6TranslatorsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return allocateIpv4Addr
*/
public String getAllocateIpv4Addr() {
return this.allocateIpv4Addr;
}
/**
* @return allocateIpv6Addr
*/
public String getAllocateIpv6Addr() {
return this.allocateIpv6Addr;
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return ipv6TranslatorId
*/
public String getIpv6TranslatorId() {
return this.ipv6TranslatorId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return spec
*/
public String getSpec() {
return this.spec;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeIPv6TranslatorsRequest, Builder> {
private String allocateIpv4Addr;
private String allocateIpv6Addr;
private String businessStatus;
private String ipv6TranslatorId;
private String name;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String payType;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String spec;
private String status;
private Builder() {
super();
}
private Builder(DescribeIPv6TranslatorsRequest request) {
super(request);
this.allocateIpv4Addr = request.allocateIpv4Addr;
this.allocateIpv6Addr = request.allocateIpv6Addr;
this.businessStatus = request.businessStatus;
this.ipv6TranslatorId = request.ipv6TranslatorId;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.payType = request.payType;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.spec = request.spec;
this.status = request.status;
}
/**
* <p>The IPv4 address allocated to the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>47.99.XX.XX</p>
*/
public Builder allocateIpv4Addr(String allocateIpv4Addr) {
this.putQueryParameter("AllocateIpv4Addr", allocateIpv4Addr);
this.allocateIpv4Addr = allocateIpv4Addr;
return this;
}
/**
* <p>The IPv6 address allocated to the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>2400:3200:1600::XXXX</p>
*/
public Builder allocateIpv6Addr(String allocateIpv6Addr) {
this.putQueryParameter("AllocateIpv6Addr", allocateIpv6Addr);
this.allocateIpv6Addr = allocateIpv6Addr;
return this;
}
/**
* <p>The business status of the IPv6 Translation Service instance. Valid values:</p>
* <ul>
* <li><strong>Normal</strong></li>
* <li><strong>FinancialLocked</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.putQueryParameter("BusinessStatus", businessStatus);
this.businessStatus = businessStatus;
return this;
}
/**
* <p>The ID of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>ipv6trans-bp1858ys****</p>
*/
public Builder ipv6TranslatorId(String ipv6TranslatorId) {
this.putQueryParameter("Ipv6TranslatorId", ipv6TranslatorId);
this.ipv6TranslatorId = ipv6TranslatorId;
return this;
}
/**
* <p>The name of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>ipv6_1</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The billing method of the IPv6 Translation Service instance. Valid values:</p>
* <ul>
* <li><strong>Prepay</strong>: subscription</li>
* <li><strong>Postpay</strong>: pay-as-you-go</li>
* </ul>
*
* <strong>example:</strong>
* <p>Prepay</p>
*/
public Builder payType(String payType) {
this.putQueryParameter("PayType", payType);
this.payType = payType;
return this;
}
/**
* <p>The region of the IPv6 Translation Service instance. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The specification of the IPv6 Translation Service instance. Set the value to <strong>small</strong>.</p>
*
* <strong>example:</strong>
* <p>small</p>
*/
public Builder spec(String spec) {
this.putQueryParameter("Spec", spec);
this.spec = spec;
return this;
}
/**
* <p>The status of the IPv6 Translation Service instance. Valid values:</p>
* <ul>
* <li><strong>init</strong></li>
* <li><strong>provisioning</strong></li>
* <li><strong>active</strong></li>
* <li><strong>updating</strong></li>
* <li><strong>upgrading</strong></li>
* <li><strong>deleting</strong></li>
* <li><strong>deleted</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>active</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeIPv6TranslatorsRequest build() {
return new DescribeIPv6TranslatorsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorsResponse} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorsResponse</p>
*/
public class DescribeIPv6TranslatorsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeIPv6TranslatorsResponseBody body;
private DescribeIPv6TranslatorsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeIPv6TranslatorsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeIPv6TranslatorsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeIPv6TranslatorsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeIPv6TranslatorsResponseBody body);
@Override
DescribeIPv6TranslatorsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeIPv6TranslatorsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeIPv6TranslatorsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeIPv6TranslatorsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeIPv6TranslatorsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeIPv6TranslatorsResponse build() {
return new DescribeIPv6TranslatorsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIPv6TranslatorsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIPv6TranslatorsResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorsResponseBody</p>
*/
public class DescribeIPv6TranslatorsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6Translators")
private Ipv6Translators ipv6Translators;
@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 DescribeIPv6TranslatorsResponseBody(Builder builder) {
this.ipv6Translators = builder.ipv6Translators;
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 DescribeIPv6TranslatorsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv6Translators
*/
public Ipv6Translators getIpv6Translators() {
return this.ipv6Translators;
}
/**
* @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 Ipv6Translators ipv6Translators;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeIPv6TranslatorsResponseBody model) {
this.ipv6Translators = model.ipv6Translators;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The list of IPv6 Translation Service instances.</p>
*/
public Builder ipv6Translators(Ipv6Translators ipv6Translators) {
this.ipv6Translators = ipv6Translators;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of returned entries.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeIPv6TranslatorsResponseBody build() {
return new DescribeIPv6TranslatorsResponseBody(this);
}
}
/**
*
* {@link DescribeIPv6TranslatorsResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorsResponseBody</p>
*/
public static class Ipv6TranslatorEntryIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorEntryId")
private java.util.List<String> ipv6TranslatorEntryId;
private Ipv6TranslatorEntryIds(Builder builder) {
this.ipv6TranslatorEntryId = builder.ipv6TranslatorEntryId;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6TranslatorEntryIds create() {
return builder().build();
}
/**
* @return ipv6TranslatorEntryId
*/
public java.util.List<String> getIpv6TranslatorEntryId() {
return this.ipv6TranslatorEntryId;
}
public static final class Builder {
private java.util.List<String> ipv6TranslatorEntryId;
private Builder() {
}
private Builder(Ipv6TranslatorEntryIds model) {
this.ipv6TranslatorEntryId = model.ipv6TranslatorEntryId;
}
/**
* Ipv6TranslatorEntryId.
*/
public Builder ipv6TranslatorEntryId(java.util.List<String> ipv6TranslatorEntryId) {
this.ipv6TranslatorEntryId = ipv6TranslatorEntryId;
return this;
}
public Ipv6TranslatorEntryIds build() {
return new Ipv6TranslatorEntryIds(this);
}
}
}
/**
*
* {@link DescribeIPv6TranslatorsResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorsResponseBody</p>
*/
public static class Ipv6Translator extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllocateIpv4Addr")
private String allocateIpv4Addr;
@com.aliyun.core.annotation.NameInMap("AllocateIpv6Addr")
private String allocateIpv6Addr;
@com.aliyun.core.annotation.NameInMap("AvailableBandwidth")
private String availableBandwidth;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Integer bandwidth;
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorEntryIds")
private Ipv6TranslatorEntryIds ipv6TranslatorEntryIds;
@com.aliyun.core.annotation.NameInMap("Ipv6TranslatorId")
private String ipv6TranslatorId;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Spec")
private String spec;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Ipv6Translator(Builder builder) {
this.allocateIpv4Addr = builder.allocateIpv4Addr;
this.allocateIpv6Addr = builder.allocateIpv6Addr;
this.availableBandwidth = builder.availableBandwidth;
this.bandwidth = builder.bandwidth;
this.businessStatus = builder.businessStatus;
this.createTime = builder.createTime;
this.description = builder.description;
this.endTime = builder.endTime;
this.ipv6TranslatorEntryIds = builder.ipv6TranslatorEntryIds;
this.ipv6TranslatorId = builder.ipv6TranslatorId;
this.name = builder.name;
this.payType = builder.payType;
this.regionId = builder.regionId;
this.spec = builder.spec;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6Translator create() {
return builder().build();
}
/**
* @return allocateIpv4Addr
*/
public String getAllocateIpv4Addr() {
return this.allocateIpv4Addr;
}
/**
* @return allocateIpv6Addr
*/
public String getAllocateIpv6Addr() {
return this.allocateIpv6Addr;
}
/**
* @return availableBandwidth
*/
public String getAvailableBandwidth() {
return this.availableBandwidth;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return ipv6TranslatorEntryIds
*/
public Ipv6TranslatorEntryIds getIpv6TranslatorEntryIds() {
return this.ipv6TranslatorEntryIds;
}
/**
* @return ipv6TranslatorId
*/
public String getIpv6TranslatorId() {
return this.ipv6TranslatorId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return spec
*/
public String getSpec() {
return this.spec;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String allocateIpv4Addr;
private String allocateIpv6Addr;
private String availableBandwidth;
private Integer bandwidth;
private String businessStatus;
private Long createTime;
private String description;
private Long endTime;
private Ipv6TranslatorEntryIds ipv6TranslatorEntryIds;
private String ipv6TranslatorId;
private String name;
private String payType;
private String regionId;
private String spec;
private String status;
private Builder() {
}
private Builder(Ipv6Translator model) {
this.allocateIpv4Addr = model.allocateIpv4Addr;
this.allocateIpv6Addr = model.allocateIpv6Addr;
this.availableBandwidth = model.availableBandwidth;
this.bandwidth = model.bandwidth;
this.businessStatus = model.businessStatus;
this.createTime = model.createTime;
this.description = model.description;
this.endTime = model.endTime;
this.ipv6TranslatorEntryIds = model.ipv6TranslatorEntryIds;
this.ipv6TranslatorId = model.ipv6TranslatorId;
this.name = model.name;
this.payType = model.payType;
this.regionId = model.regionId;
this.spec = model.spec;
this.status = model.status;
}
/**
* <p>The IPv4 address allocated to the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>47.99.XX.XX</p>
*/
public Builder allocateIpv4Addr(String allocateIpv4Addr) {
this.allocateIpv4Addr = allocateIpv4Addr;
return this;
}
/**
* <p>The IPv6 address allocated to the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>2400:3200:1600::XXXX</p>
*/
public Builder allocateIpv6Addr(String allocateIpv6Addr) {
this.allocateIpv6Addr = allocateIpv6Addr;
return this;
}
/**
* <p>The bandwidth of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder availableBandwidth(String availableBandwidth) {
this.availableBandwidth = availableBandwidth;
return this;
}
/**
* <p>The bandwidth of the IPv6 Translation Service instance. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The business status of the IPv6 Translation Service instance. Valid values:</p>
* <ul>
* <li><strong>Normal</strong></li>
* <li><strong>FinancialLocked</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.businessStatus = businessStatus;
return this;
}
/**
* <p>The timestamp when the IPv6 Translation Service instance was created.</p>
*
* <strong>example:</strong>
* <p>1537151540000</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The description of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>descriptionforinstance</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The timestamp when IPv6 Translation Service instance expires.</p>
*
* <strong>example:</strong>
* <p>1539792000000</p>
*/
public Builder endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The IDs of IPv6 mapping entries of the IPv6 Translation Service instance.</p>
*/
public Builder ipv6TranslatorEntryIds(Ipv6TranslatorEntryIds ipv6TranslatorEntryIds) {
this.ipv6TranslatorEntryIds = ipv6TranslatorEntryIds;
return this;
}
/**
* <p>The ID of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>ipv6trans-bp1858ys*****</p>
*/
public Builder ipv6TranslatorId(String ipv6TranslatorId) {
this.ipv6TranslatorId = ipv6TranslatorId;
return this;
}
/**
* <p>The name of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The billing method of the IPv6 Translation Service instance.</p>
* <ul>
* <li><strong>Prepay</strong>: subscription</li>
* <li><strong>Postpay</strong>: pay-as-you-go</li>
* </ul>
*
* <strong>example:</strong>
* <p>Prepay</p>
*/
public Builder payType(String payType) {
this.payType = payType;
return this;
}
/**
* <p>The region of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The specification of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>small</p>
*/
public Builder spec(String spec) {
this.spec = spec;
return this;
}
/**
* <p>The status of the IPv6 Translation Service instance.</p>
*
* <strong>example:</strong>
* <p>active</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Ipv6Translator build() {
return new Ipv6Translator(this);
}
}
}
/**
*
* {@link DescribeIPv6TranslatorsResponseBody} extends {@link TeaModel}
*
* <p>DescribeIPv6TranslatorsResponseBody</p>
*/
public static class Ipv6Translators extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6Translator")
private java.util.List<Ipv6Translator> ipv6Translator;
private Ipv6Translators(Builder builder) {
this.ipv6Translator = builder.ipv6Translator;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6Translators create() {
return builder().build();
}
/**
* @return ipv6Translator
*/
public java.util.List<Ipv6Translator> getIpv6Translator() {
return this.ipv6Translator;
}
public static final class Builder {
private java.util.List<Ipv6Translator> ipv6Translator;
private Builder() {
}
private Builder(Ipv6Translators model) {
this.ipv6Translator = model.ipv6Translator;
}
/**
* Ipv6Translator.
*/
public Builder ipv6Translator(java.util.List<Ipv6Translator> ipv6Translator) {
this.ipv6Translator = ipv6Translator;
return this;
}
public Ipv6Translators build() {
return new Ipv6Translators(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6AddressesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6AddressesRequest} extends {@link RequestModel}
*
* <p>DescribeIpv6AddressesRequest</p>
*/
public class DescribeIpv6AddressesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AddressType")
private String addressType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssociatedInstanceId")
private String associatedInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssociatedInstanceType")
private String associatedInstanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IncludeReservationData")
private Boolean includeReservationData;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6Address")
private String ipv6Address;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6AddressId")
private String ipv6AddressId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6InternetBandwidthId")
private String ipv6InternetBandwidthId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceManaged")
private Boolean serviceManaged;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private DescribeIpv6AddressesRequest(Builder builder) {
super(builder);
this.addressType = builder.addressType;
this.associatedInstanceId = builder.associatedInstanceId;
this.associatedInstanceType = builder.associatedInstanceType;
this.includeReservationData = builder.includeReservationData;
this.ipv6Address = builder.ipv6Address;
this.ipv6AddressId = builder.ipv6AddressId;
this.ipv6InternetBandwidthId = builder.ipv6InternetBandwidthId;
this.name = builder.name;
this.networkType = builder.networkType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.serviceManaged = builder.serviceManaged;
this.tag = builder.tag;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIpv6AddressesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return addressType
*/
public String getAddressType() {
return this.addressType;
}
/**
* @return associatedInstanceId
*/
public String getAssociatedInstanceId() {
return this.associatedInstanceId;
}
/**
* @return associatedInstanceType
*/
public String getAssociatedInstanceType() {
return this.associatedInstanceType;
}
/**
* @return includeReservationData
*/
public Boolean getIncludeReservationData() {
return this.includeReservationData;
}
/**
* @return ipv6Address
*/
public String getIpv6Address() {
return this.ipv6Address;
}
/**
* @return ipv6AddressId
*/
public String getIpv6AddressId() {
return this.ipv6AddressId;
}
/**
* @return ipv6InternetBandwidthId
*/
public String getIpv6InternetBandwidthId() {
return this.ipv6InternetBandwidthId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return serviceManaged
*/
public Boolean getServiceManaged() {
return this.serviceManaged;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<DescribeIpv6AddressesRequest, Builder> {
private String addressType;
private String associatedInstanceId;
private String associatedInstanceType;
private Boolean includeReservationData;
private String ipv6Address;
private String ipv6AddressId;
private String ipv6InternetBandwidthId;
private String name;
private String networkType;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Boolean serviceManaged;
private java.util.List<Tag> tag;
private String vSwitchId;
private String vpcId;
private Builder() {
super();
}
private Builder(DescribeIpv6AddressesRequest request) {
super(request);
this.addressType = request.addressType;
this.associatedInstanceId = request.associatedInstanceId;
this.associatedInstanceType = request.associatedInstanceType;
this.includeReservationData = request.includeReservationData;
this.ipv6Address = request.ipv6Address;
this.ipv6AddressId = request.ipv6AddressId;
this.ipv6InternetBandwidthId = request.ipv6InternetBandwidthId;
this.name = request.name;
this.networkType = request.networkType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.serviceManaged = request.serviceManaged;
this.tag = request.tag;
this.vSwitchId = request.vSwitchId;
this.vpcId = request.vpcId;
}
/**
* <p>The type of IP address. Valid values:</p>
* <ul>
* <li><p>IPv6Address (default): indicates an IPv6 instance used to query a single IPv6 address.</p>
* </li>
* <li><p>IPv6Prefix: indicates an IPv6 instance used to query prefix CIDR blocks.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv6Address</p>
*/
public Builder addressType(String addressType) {
this.putQueryParameter("AddressType", addressType);
this.addressType = addressType;
return this;
}
/**
* <p>The ID of the instance that is assigned the IPv6 address.</p>
*
* <strong>example:</strong>
* <p>i-2ze72wuqj4y3jl4f****</p>
*/
public Builder associatedInstanceId(String associatedInstanceId) {
this.putQueryParameter("AssociatedInstanceId", associatedInstanceId);
this.associatedInstanceId = associatedInstanceId;
return this;
}
/**
* <p>The type of instance associated with the IPv6 address. Valid values:</p>
* <ul>
* <li><strong>EcsInstance</strong>: Elastic Compute Service (ECS) instance in a virtual private cloud (VPC)</li>
* <li><strong>NetworkInterface</strong>: secondary elastic network interface (ENI)</li>
* </ul>
*
* <strong>example:</strong>
* <p>EcsInstance</p>
*/
public Builder associatedInstanceType(String associatedInstanceType) {
this.putQueryParameter("AssociatedInstanceType", associatedInstanceType);
this.associatedInstanceType = associatedInstanceType;
return this;
}
/**
* <p>Specifies whether to return information about pending orders. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default)</li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder includeReservationData(Boolean includeReservationData) {
this.putQueryParameter("IncludeReservationData", includeReservationData);
this.includeReservationData = includeReservationData;
return this;
}
/**
* <p>The IPv6 address that you want to query.</p>
*
* <strong>example:</strong>
* <p>2408:XXXX:153:3921:851c:c435:7b12:1c5f</p>
*/
public Builder ipv6Address(String ipv6Address) {
this.putQueryParameter("Ipv6Address", ipv6Address);
this.ipv6Address = ipv6Address;
return this;
}
/**
* <p>The ID of the IPv6 address that you want to query. You can enter at most 20 IPv6 address IDs in each API request. Separate IPv6 address IDs with commas (,).</p>
*
* <strong>example:</strong>
* <p>ipv6-2zen5j4axcp5l5qyy****</p>
*/
public Builder ipv6AddressId(String ipv6AddressId) {
this.putQueryParameter("Ipv6AddressId", ipv6AddressId);
this.ipv6AddressId = ipv6AddressId;
return this;
}
/**
* <p>The ID of the Internet bandwidth that you purchased for the IPv6 address.</p>
*
* <strong>example:</strong>
* <p>ipv6bw-uf6hcyzu65v98v3du****</p>
*/
public Builder ipv6InternetBandwidthId(String ipv6InternetBandwidthId) {
this.putQueryParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId);
this.ipv6InternetBandwidthId = ipv6InternetBandwidthId;
return this;
}
/**
* <p>The name of the IPv6 address that you want to query.</p>
* <p>The name must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The type of communication supported by the IPv6 address. Valid values:</p>
* <ul>
* <li><strong>Private</strong></li>
* <li><strong>Public</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Private</p>
*/
public Builder networkType(String networkType) {
this.putQueryParameter("NetworkType", networkType);
this.networkType = networkType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the region in which you want to query IPv6 addresses. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-huhehaote</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the IPv6 gateway belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>Indicates whether the instance is managed. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <p>If you do not specify this parameter, all instances are queried.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder serviceManaged(Boolean serviceManaged) {
this.putQueryParameter("ServiceManaged", serviceManaged);
this.serviceManaged = serviceManaged;
return this;
}
/**
* <p>The tag list.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The ID of the vSwitch to which the IPv6 address belongs.</p>
*
* <strong>example:</strong>
* <p>vsw-25navfgbue4g****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the VPC to which the IPv6 address belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-bp15zckdt37pq72zv****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public DescribeIpv6AddressesRequest build() {
return new DescribeIpv6AddressesRequest(this);
}
}
/**
*
* {@link DescribeIpv6AddressesRequest} extends {@link TeaModel}
*
* <p>DescribeIpv6AddressesRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with aliyun or acs:, and cannot contain http:// or https://.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N.</p>
* <p>The tag value can be up to 128 characters in length. It can be an empty string. It cannot start with aliyun or acs:, and cannot contain http:// or https://.</p>
* <p>Each tag key corresponds to one tag value. You can specify at most 20 tag values at a time.</p>
*
* <strong>example:</strong>
* <p>yunke</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6AddressesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6AddressesResponse} extends {@link TeaModel}
*
* <p>DescribeIpv6AddressesResponse</p>
*/
public class DescribeIpv6AddressesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeIpv6AddressesResponseBody body;
private DescribeIpv6AddressesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeIpv6AddressesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeIpv6AddressesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeIpv6AddressesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeIpv6AddressesResponseBody body);
@Override
DescribeIpv6AddressesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeIpv6AddressesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeIpv6AddressesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeIpv6AddressesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeIpv6AddressesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeIpv6AddressesResponse build() {
return new DescribeIpv6AddressesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6AddressesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6AddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6AddressesResponseBody</p>
*/
public class DescribeIpv6AddressesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6Addresses")
private Ipv6Addresses ipv6Addresses;
@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 DescribeIpv6AddressesResponseBody(Builder builder) {
this.ipv6Addresses = builder.ipv6Addresses;
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 DescribeIpv6AddressesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv6Addresses
*/
public Ipv6Addresses getIpv6Addresses() {
return this.ipv6Addresses;
}
/**
* @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 Ipv6Addresses ipv6Addresses;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeIpv6AddressesResponseBody model) {
this.ipv6Addresses = model.ipv6Addresses;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The details of the IPv6 address.</p>
*/
public Builder ipv6Addresses(Ipv6Addresses ipv6Addresses) {
this.ipv6Addresses = ipv6Addresses;
return this;
}
/**
* <p>The page number of the returned page. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>AA4486A8-B6AE-469E-AB09-820EF8ECFA2B</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of returned entries.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeIpv6AddressesResponseBody build() {
return new DescribeIpv6AddressesResponseBody(this);
}
}
/**
*
* {@link DescribeIpv6AddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6AddressesResponseBody</p>
*/
public static class Ipv6InternetBandwidth extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Integer bandwidth;
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.NameInMap("HasReservationData")
private Boolean hasReservationData;
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.NameInMap("Ipv6InternetBandwidthId")
private String ipv6InternetBandwidthId;
@com.aliyun.core.annotation.NameInMap("ReservationActiveTime")
private String reservationActiveTime;
@com.aliyun.core.annotation.NameInMap("ReservationBandwidth")
private Long reservationBandwidth;
@com.aliyun.core.annotation.NameInMap("ReservationInternetChargeType")
private String reservationInternetChargeType;
@com.aliyun.core.annotation.NameInMap("ReservationOrderType")
private String reservationOrderType;
private Ipv6InternetBandwidth(Builder builder) {
this.bandwidth = builder.bandwidth;
this.businessStatus = builder.businessStatus;
this.hasReservationData = builder.hasReservationData;
this.instanceChargeType = builder.instanceChargeType;
this.internetChargeType = builder.internetChargeType;
this.ipv6InternetBandwidthId = builder.ipv6InternetBandwidthId;
this.reservationActiveTime = builder.reservationActiveTime;
this.reservationBandwidth = builder.reservationBandwidth;
this.reservationInternetChargeType = builder.reservationInternetChargeType;
this.reservationOrderType = builder.reservationOrderType;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6InternetBandwidth create() {
return builder().build();
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return hasReservationData
*/
public Boolean getHasReservationData() {
return this.hasReservationData;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return ipv6InternetBandwidthId
*/
public String getIpv6InternetBandwidthId() {
return this.ipv6InternetBandwidthId;
}
/**
* @return reservationActiveTime
*/
public String getReservationActiveTime() {
return this.reservationActiveTime;
}
/**
* @return reservationBandwidth
*/
public Long getReservationBandwidth() {
return this.reservationBandwidth;
}
/**
* @return reservationInternetChargeType
*/
public String getReservationInternetChargeType() {
return this.reservationInternetChargeType;
}
/**
* @return reservationOrderType
*/
public String getReservationOrderType() {
return this.reservationOrderType;
}
public static final class Builder {
private Integer bandwidth;
private String businessStatus;
private Boolean hasReservationData;
private String instanceChargeType;
private String internetChargeType;
private String ipv6InternetBandwidthId;
private String reservationActiveTime;
private Long reservationBandwidth;
private String reservationInternetChargeType;
private String reservationOrderType;
private Builder() {
}
private Builder(Ipv6InternetBandwidth model) {
this.bandwidth = model.bandwidth;
this.businessStatus = model.businessStatus;
this.hasReservationData = model.hasReservationData;
this.instanceChargeType = model.instanceChargeType;
this.internetChargeType = model.internetChargeType;
this.ipv6InternetBandwidthId = model.ipv6InternetBandwidthId;
this.reservationActiveTime = model.reservationActiveTime;
this.reservationBandwidth = model.reservationBandwidth;
this.reservationInternetChargeType = model.reservationInternetChargeType;
this.reservationOrderType = model.reservationOrderType;
}
/**
* <p>The dedicated Internet bandwidth of the IPv6 address. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The status of the Internet bandwidth of the IPv6 address. Valid values:</p>
* <ul>
* <li><strong>Normal</strong></li>
* <li><strong>FinancialLocked</strong></li>
* <li><strong>SecurityLocked</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.businessStatus = businessStatus;
return this;
}
/**
* <p>Indicates whether renewal data is included. Valid values:</p>
* <ul>
* <li><strong>false</strong></li>
* <li><strong>true</strong> <strong>true</strong> is returned only when <strong>IncludeReservationData</strong> is set to <strong>true</strong> and some orders have not taken effect.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder hasReservationData(Boolean hasReservationData) {
this.hasReservationData = hasReservationData;
return this;
}
/**
* <p>The billing method of the Internet bandwidth of the IPv6 address. Valid values:</p>
* <p>Only <strong>PostPaid</strong> may be returned, which indicates the pay-as-you-go billing method.</p>
*
* <strong>example:</strong>
* <p>PostPaid</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The billing method of the Internet bandwidth of the IPv6 address. Valid values:</p>
* <ul>
* <li><strong>PayByTraffic</strong></li>
* <li><strong>PayByBandwidth</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>PayByTraffic</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.internetChargeType = internetChargeType;
return this;
}
/**
* <p>The Internet bandwidth ID of the IPv6 address.</p>
*
* <strong>example:</strong>
* <p>ipv6bw-hp3b35oq1fj50kbv****</p>
*/
public Builder ipv6InternetBandwidthId(String ipv6InternetBandwidthId) {
this.ipv6InternetBandwidthId = ipv6InternetBandwidthId;
return this;
}
/**
* <p>The time when the renewal takes effect. The time is displayed in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2021-05-23T16:00:00Z</p>
*/
public Builder reservationActiveTime(String reservationActiveTime) {
this.reservationActiveTime = reservationActiveTime;
return this;
}
/**
* <p>The maximum bandwidth after the renewal takes effect. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder reservationBandwidth(Long reservationBandwidth) {
this.reservationBandwidth = reservationBandwidth;
return this;
}
/**
* <p>The metering method that is used after the renewal takes effect.</p>
* <ul>
* <li><strong>PayByTraffic</strong></li>
* <li><strong>PayByBandwidth</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>PayByTraffic</p>
*/
public Builder reservationInternetChargeType(String reservationInternetChargeType) {
this.reservationInternetChargeType = reservationInternetChargeType;
return this;
}
/**
* <p>The type of the renewal order. Only <strong>RENEW</strong> may be returned, which indicates that the order is placed for service renewal.</p>
*
* <strong>example:</strong>
* <p>RENEW</p>
*/
public Builder reservationOrderType(String reservationOrderType) {
this.reservationOrderType = reservationOrderType;
return this;
}
public Ipv6InternetBandwidth build() {
return new Ipv6InternetBandwidth(this);
}
}
}
/**
*
* {@link DescribeIpv6AddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6AddressesResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
* <p>The tag value can be up to 128 characters in length. It can be an empty string. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
* <p>Each tag key corresponds to one tag value. You can specify at most 20 tag values at a time.</p>
*
* <strong>example:</strong>
* <p>yunke</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeIpv6AddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6AddressesResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeIpv6AddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6AddressesResponseBody</p>
*/
public static class Ipv6Address extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AddressType")
private String addressType;
@com.aliyun.core.annotation.NameInMap("AllocationTime")
private String allocationTime;
@com.aliyun.core.annotation.NameInMap("AssociatedInstanceId")
private String associatedInstanceId;
@com.aliyun.core.annotation.NameInMap("AssociatedInstanceType")
private String associatedInstanceType;
@com.aliyun.core.annotation.NameInMap("Ipv6Address")
private String ipv6Address;
@com.aliyun.core.annotation.NameInMap("Ipv6AddressDescription")
private String ipv6AddressDescription;
@com.aliyun.core.annotation.NameInMap("Ipv6AddressId")
private String ipv6AddressId;
@com.aliyun.core.annotation.NameInMap("Ipv6AddressName")
private String ipv6AddressName;
@com.aliyun.core.annotation.NameInMap("Ipv6GatewayId")
private String ipv6GatewayId;
@com.aliyun.core.annotation.NameInMap("Ipv6InternetBandwidth")
private Ipv6InternetBandwidth ipv6InternetBandwidth;
@com.aliyun.core.annotation.NameInMap("Ipv6Isp")
private String ipv6Isp;
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@com.aliyun.core.annotation.NameInMap("RealBandwidth")
private Integer realBandwidth;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("ServiceManaged")
private Integer serviceManaged;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private Ipv6Address(Builder builder) {
this.addressType = builder.addressType;
this.allocationTime = builder.allocationTime;
this.associatedInstanceId = builder.associatedInstanceId;
this.associatedInstanceType = builder.associatedInstanceType;
this.ipv6Address = builder.ipv6Address;
this.ipv6AddressDescription = builder.ipv6AddressDescription;
this.ipv6AddressId = builder.ipv6AddressId;
this.ipv6AddressName = builder.ipv6AddressName;
this.ipv6GatewayId = builder.ipv6GatewayId;
this.ipv6InternetBandwidth = builder.ipv6InternetBandwidth;
this.ipv6Isp = builder.ipv6Isp;
this.networkType = builder.networkType;
this.realBandwidth = builder.realBandwidth;
this.resourceGroupId = builder.resourceGroupId;
this.serviceManaged = builder.serviceManaged;
this.status = builder.status;
this.tags = builder.tags;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6Address create() {
return builder().build();
}
/**
* @return addressType
*/
public String getAddressType() {
return this.addressType;
}
/**
* @return allocationTime
*/
public String getAllocationTime() {
return this.allocationTime;
}
/**
* @return associatedInstanceId
*/
public String getAssociatedInstanceId() {
return this.associatedInstanceId;
}
/**
* @return associatedInstanceType
*/
public String getAssociatedInstanceType() {
return this.associatedInstanceType;
}
/**
* @return ipv6Address
*/
public String getIpv6Address() {
return this.ipv6Address;
}
/**
* @return ipv6AddressDescription
*/
public String getIpv6AddressDescription() {
return this.ipv6AddressDescription;
}
/**
* @return ipv6AddressId
*/
public String getIpv6AddressId() {
return this.ipv6AddressId;
}
/**
* @return ipv6AddressName
*/
public String getIpv6AddressName() {
return this.ipv6AddressName;
}
/**
* @return ipv6GatewayId
*/
public String getIpv6GatewayId() {
return this.ipv6GatewayId;
}
/**
* @return ipv6InternetBandwidth
*/
public Ipv6InternetBandwidth getIpv6InternetBandwidth() {
return this.ipv6InternetBandwidth;
}
/**
* @return ipv6Isp
*/
public String getIpv6Isp() {
return this.ipv6Isp;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return realBandwidth
*/
public Integer getRealBandwidth() {
return this.realBandwidth;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return serviceManaged
*/
public Integer getServiceManaged() {
return this.serviceManaged;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String addressType;
private String allocationTime;
private String associatedInstanceId;
private String associatedInstanceType;
private String ipv6Address;
private String ipv6AddressDescription;
private String ipv6AddressId;
private String ipv6AddressName;
private String ipv6GatewayId;
private Ipv6InternetBandwidth ipv6InternetBandwidth;
private String ipv6Isp;
private String networkType;
private Integer realBandwidth;
private String resourceGroupId;
private Integer serviceManaged;
private String status;
private Tags tags;
private String vSwitchId;
private String vpcId;
private Builder() {
}
private Builder(Ipv6Address model) {
this.addressType = model.addressType;
this.allocationTime = model.allocationTime;
this.associatedInstanceId = model.associatedInstanceId;
this.associatedInstanceType = model.associatedInstanceType;
this.ipv6Address = model.ipv6Address;
this.ipv6AddressDescription = model.ipv6AddressDescription;
this.ipv6AddressId = model.ipv6AddressId;
this.ipv6AddressName = model.ipv6AddressName;
this.ipv6GatewayId = model.ipv6GatewayId;
this.ipv6InternetBandwidth = model.ipv6InternetBandwidth;
this.ipv6Isp = model.ipv6Isp;
this.networkType = model.networkType;
this.realBandwidth = model.realBandwidth;
this.resourceGroupId = model.resourceGroupId;
this.serviceManaged = model.serviceManaged;
this.status = model.status;
this.tags = model.tags;
this.vSwitchId = model.vSwitchId;
this.vpcId = model.vpcId;
}
/**
* <p>The type of IPv6 address. Valid values:</p>
* <ul>
* <li>IPv6Address (default): indicates a single IPv6 IP.</li>
* <li>IPv6Prefix: indicates IPv6 CIDR.</li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv6Address</p>
*/
public Builder addressType(String addressType) {
this.addressType = addressType;
return this;
}
/**
* <p>The time when the IPv6 address was created.</p>
*
* <strong>example:</strong>
* <p>2020-12-20T14:56:09Z</p>
*/
public Builder allocationTime(String allocationTime) {
this.allocationTime = allocationTime;
return this;
}
/**
* <p>The ID of the instance associated with the IPv6 address.</p>
*
* <strong>example:</strong>
* <p>i-2ze72wuqj4y3jl4f****</p>
*/
public Builder associatedInstanceId(String associatedInstanceId) {
this.associatedInstanceId = associatedInstanceId;
return this;
}
/**
* <p>The type of instance associated with the IPv6 address.</p>
*
* <strong>example:</strong>
* <p>EcsInstance</p>
*/
public Builder associatedInstanceType(String associatedInstanceType) {
this.associatedInstanceType = associatedInstanceType;
return this;
}
/**
* <p>The IPv6 address.</p>
*
* <strong>example:</strong>
* <p>2408:XXXX:153:3921:851c:c435:7b12:1c5f</p>
*/
public Builder ipv6Address(String ipv6Address) {
this.ipv6Address = ipv6Address;
return this;
}
/**
* <p>The description of the IPv6 address.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder ipv6AddressDescription(String ipv6AddressDescription) {
this.ipv6AddressDescription = ipv6AddressDescription;
return this;
}
/**
* <p>The ID of the IPv6 address.</p>
*
* <strong>example:</strong>
* <p>ipv6-2zen5j4axcp5l5qyy****</p>
*/
public Builder ipv6AddressId(String ipv6AddressId) {
this.ipv6AddressId = ipv6AddressId;
return this;
}
/**
* <p>The name of the IPv6 address.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder ipv6AddressName(String ipv6AddressName) {
this.ipv6AddressName = ipv6AddressName;
return this;
}
/**
* <p>The ID of the IPv6 gateway to which the IPv6 address belongs.</p>
*
* <strong>example:</strong>
* <p>ipv6gw-2zewg0l66s73b4k2q****</p>
*/
public Builder ipv6GatewayId(String ipv6GatewayId) {
this.ipv6GatewayId = ipv6GatewayId;
return this;
}
/**
* <p>The Internet bandwidth of the IPv6 address.</p>
*/
public Builder ipv6InternetBandwidth(Ipv6InternetBandwidth ipv6InternetBandwidth) {
this.ipv6InternetBandwidth = ipv6InternetBandwidth;
return this;
}
/**
* <p>The ISP of the IPv6 address. Valid values:</p>
* <ul>
* <li><strong>BGP</strong> (default)</li>
* <li><strong>ChinaMobile</strong></li>
* <li><strong>ChinaUnicom</strong></li>
* <li><strong>ChinaTelecom</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>BGP</p>
*/
public Builder ipv6Isp(String ipv6Isp) {
this.ipv6Isp = ipv6Isp;
return this;
}
/**
* <p>The type of connection supported by the IPv6 address. Valid values:</p>
* <ul>
* <li><strong>Private</strong></li>
* <li><strong>Public</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Private</p>
*/
public Builder networkType(String networkType) {
this.networkType = networkType;
return this;
}
/**
* <p>The peak bandwidth of the IPv6 address.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder realBandwidth(Integer realBandwidth) {
this.realBandwidth = realBandwidth;
return this;
}
/**
* <p>The ID of the resource group to which the IPv6 gateway belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>Indicates whether the instance is managed. Valid values:</p>
* <ul>
* <li><strong>1</strong>: yes</li>
* <li><strong>0</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder serviceManaged(Integer serviceManaged) {
this.serviceManaged = serviceManaged;
return this;
}
/**
* <p>The status of the IPv6 address.</p>
* <ul>
* <li><strong>Pending</strong></li>
* <li><strong>Available</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The tag list.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the vSwitch to which the IPv6 address belongs.</p>
*
* <strong>example:</strong>
* <p>vsw-25navfgbue4g****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the VPC to which the IPv6 address belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-bp15zckdt37pq72zv****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public Ipv6Address build() {
return new Ipv6Address(this);
}
}
}
/**
*
* {@link DescribeIpv6AddressesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6AddressesResponseBody</p>
*/
public static class Ipv6Addresses extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6Address")
private java.util.List<Ipv6Address> ipv6Address;
private Ipv6Addresses(Builder builder) {
this.ipv6Address = builder.ipv6Address;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6Addresses create() {
return builder().build();
}
/**
* @return ipv6Address
*/
public java.util.List<Ipv6Address> getIpv6Address() {
return this.ipv6Address;
}
public static final class Builder {
private java.util.List<Ipv6Address> ipv6Address;
private Builder() {
}
private Builder(Ipv6Addresses model) {
this.ipv6Address = model.ipv6Address;
}
/**
* <p>The IPv6 address.</p>
*
* <strong>example:</strong>
* <p>2408:XXXX:153:3921:851c:c435:7b12:1c5f</p>
*/
public Builder ipv6Address(java.util.List<Ipv6Address> ipv6Address) {
this.ipv6Address = ipv6Address;
return this;
}
public Ipv6Addresses build() {
return new Ipv6Addresses(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6EgressOnlyRulesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6EgressOnlyRulesRequest} extends {@link RequestModel}
*
* <p>DescribeIpv6EgressOnlyRulesRequest</p>
*/
public class DescribeIpv6EgressOnlyRulesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6EgressOnlyRuleId")
private String ipv6EgressOnlyRuleId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6GatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String ipv6GatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeIpv6EgressOnlyRulesRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
this.ipv6EgressOnlyRuleId = builder.ipv6EgressOnlyRuleId;
this.ipv6GatewayId = builder.ipv6GatewayId;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIpv6EgressOnlyRulesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return ipv6EgressOnlyRuleId
*/
public String getIpv6EgressOnlyRuleId() {
return this.ipv6EgressOnlyRuleId;
}
/**
* @return ipv6GatewayId
*/
public String getIpv6GatewayId() {
return this.ipv6GatewayId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeIpv6EgressOnlyRulesRequest, Builder> {
private String instanceId;
private String instanceType;
private String ipv6EgressOnlyRuleId;
private String ipv6GatewayId;
private String name;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeIpv6EgressOnlyRulesRequest request) {
super(request);
this.instanceId = request.instanceId;
this.instanceType = request.instanceType;
this.ipv6EgressOnlyRuleId = request.ipv6EgressOnlyRuleId;
this.ipv6GatewayId = request.ipv6GatewayId;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the instance that is associated with the IPv6 address to which the egress-only rule is applied.</p>
*
* <strong>example:</strong>
* <p>ipv6gw-bp1rhhs9zjlxukc5e****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The type of the instance to which you want to apply the egress-only rule. Valid values:</p>
* <ul>
* <li>IPv6Address (default)</li>
* <li>IPv6Prefix</li>
* </ul>
*
* <strong>example:</strong>
* <p>Ipv6Address</p>
*/
public Builder instanceType(String instanceType) {
this.putQueryParameter("InstanceType", instanceType);
this.instanceType = instanceType;
return this;
}
/**
* <p>The ID of the egress-only rule that you want to query.</p>
*
* <strong>example:</strong>
* <p>ipv6py-bp1rr7fq1md8pbb3k****</p>
*/
public Builder ipv6EgressOnlyRuleId(String ipv6EgressOnlyRuleId) {
this.putQueryParameter("Ipv6EgressOnlyRuleId", ipv6EgressOnlyRuleId);
this.ipv6EgressOnlyRuleId = ipv6EgressOnlyRuleId;
return this;
}
/**
* <p>The ID of the IPv6 gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ipv6gw-bp1rhhs9zjlxukc5e****</p>
*/
public Builder ipv6GatewayId(String ipv6GatewayId) {
this.putQueryParameter("Ipv6GatewayId", ipv6GatewayId);
this.ipv6GatewayId = ipv6GatewayId;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>rulename</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the region where the IPv6 gateway is deployed. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-huhehaote</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeIpv6EgressOnlyRulesRequest build() {
return new DescribeIpv6EgressOnlyRulesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6EgressOnlyRulesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6EgressOnlyRulesResponse} extends {@link TeaModel}
*
* <p>DescribeIpv6EgressOnlyRulesResponse</p>
*/
public class DescribeIpv6EgressOnlyRulesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeIpv6EgressOnlyRulesResponseBody body;
private DescribeIpv6EgressOnlyRulesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeIpv6EgressOnlyRulesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeIpv6EgressOnlyRulesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeIpv6EgressOnlyRulesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeIpv6EgressOnlyRulesResponseBody body);
@Override
DescribeIpv6EgressOnlyRulesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeIpv6EgressOnlyRulesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeIpv6EgressOnlyRulesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeIpv6EgressOnlyRulesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeIpv6EgressOnlyRulesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeIpv6EgressOnlyRulesResponse build() {
return new DescribeIpv6EgressOnlyRulesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6EgressOnlyRulesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6EgressOnlyRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6EgressOnlyRulesResponseBody</p>
*/
public class DescribeIpv6EgressOnlyRulesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6EgressOnlyRules")
private Ipv6EgressOnlyRules ipv6EgressOnlyRules;
@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 DescribeIpv6EgressOnlyRulesResponseBody(Builder builder) {
this.ipv6EgressOnlyRules = builder.ipv6EgressOnlyRules;
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 DescribeIpv6EgressOnlyRulesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv6EgressOnlyRules
*/
public Ipv6EgressOnlyRules getIpv6EgressOnlyRules() {
return this.ipv6EgressOnlyRules;
}
/**
* @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 Ipv6EgressOnlyRules ipv6EgressOnlyRules;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeIpv6EgressOnlyRulesResponseBody model) {
this.ipv6EgressOnlyRules = model.ipv6EgressOnlyRules;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The details about the egress-only rules.</p>
*/
public Builder ipv6EgressOnlyRules(Ipv6EgressOnlyRules ipv6EgressOnlyRules) {
this.ipv6EgressOnlyRules = ipv6EgressOnlyRules;
return this;
}
/**
* <p>The number of the returned page. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>E16671B7-DEA6-48E0-8E9C-41913DAD44DD</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeIpv6EgressOnlyRulesResponseBody build() {
return new DescribeIpv6EgressOnlyRulesResponseBody(this);
}
}
/**
*
* {@link DescribeIpv6EgressOnlyRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6EgressOnlyRulesResponseBody</p>
*/
public static class Ipv6EgressOnlyRule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.NameInMap("Ipv6EgressOnlyRuleId")
private String ipv6EgressOnlyRuleId;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Ipv6EgressOnlyRule(Builder builder) {
this.description = builder.description;
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
this.ipv6EgressOnlyRuleId = builder.ipv6EgressOnlyRuleId;
this.name = builder.name;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6EgressOnlyRule create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return ipv6EgressOnlyRuleId
*/
public String getIpv6EgressOnlyRuleId() {
return this.ipv6EgressOnlyRuleId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String description;
private String instanceId;
private String instanceType;
private String ipv6EgressOnlyRuleId;
private String name;
private String status;
private Builder() {
}
private Builder(Ipv6EgressOnlyRule model) {
this.description = model.description;
this.instanceId = model.instanceId;
this.instanceType = model.instanceType;
this.ipv6EgressOnlyRuleId = model.ipv6EgressOnlyRuleId;
this.name = model.name;
this.status = model.status;
}
/**
* <p>The description of the egress-only rule.</p>
*
* <strong>example:</strong>
* <p>ruledescription</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the instance to which the egress-only rule applies.</p>
*
* <strong>example:</strong>
* <p>ipv6gw-bp1rhhs9zjlxukc5e****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The type of the instance to which the egress-only rule applies.</p>
*
* <strong>example:</strong>
* <p>Ipv6Address</p>
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* <p>The ID of the egress-only rule.</p>
*
* <strong>example:</strong>
* <p>ipv6py-bp1rr7fq1md8pbb3k****</p>
*/
public Builder ipv6EgressOnlyRuleId(String ipv6EgressOnlyRuleId) {
this.ipv6EgressOnlyRuleId = ipv6EgressOnlyRuleId;
return this;
}
/**
* <p>The name of the egress-only rule.</p>
*
* <strong>example:</strong>
* <p>rulename</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The status of the egress-only rule.</p>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Ipv6EgressOnlyRule build() {
return new Ipv6EgressOnlyRule(this);
}
}
}
/**
*
* {@link DescribeIpv6EgressOnlyRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6EgressOnlyRulesResponseBody</p>
*/
public static class Ipv6EgressOnlyRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6EgressOnlyRule")
private java.util.List<Ipv6EgressOnlyRule> ipv6EgressOnlyRule;
private Ipv6EgressOnlyRules(Builder builder) {
this.ipv6EgressOnlyRule = builder.ipv6EgressOnlyRule;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6EgressOnlyRules create() {
return builder().build();
}
/**
* @return ipv6EgressOnlyRule
*/
public java.util.List<Ipv6EgressOnlyRule> getIpv6EgressOnlyRule() {
return this.ipv6EgressOnlyRule;
}
public static final class Builder {
private java.util.List<Ipv6EgressOnlyRule> ipv6EgressOnlyRule;
private Builder() {
}
private Builder(Ipv6EgressOnlyRules model) {
this.ipv6EgressOnlyRule = model.ipv6EgressOnlyRule;
}
/**
* Ipv6EgressOnlyRule.
*/
public Builder ipv6EgressOnlyRule(java.util.List<Ipv6EgressOnlyRule> ipv6EgressOnlyRule) {
this.ipv6EgressOnlyRule = ipv6EgressOnlyRule;
return this;
}
public Ipv6EgressOnlyRules build() {
return new Ipv6EgressOnlyRules(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6GatewayAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6GatewayAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeIpv6GatewayAttributeRequest</p>
*/
public class DescribeIpv6GatewayAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6GatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String ipv6GatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeIpv6GatewayAttributeRequest(Builder builder) {
super(builder);
this.ipv6GatewayId = builder.ipv6GatewayId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIpv6GatewayAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv6GatewayId
*/
public String getIpv6GatewayId() {
return this.ipv6GatewayId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeIpv6GatewayAttributeRequest, Builder> {
private String ipv6GatewayId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeIpv6GatewayAttributeRequest request) {
super(request);
this.ipv6GatewayId = request.ipv6GatewayId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the IPv6 gateway that you want to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ipv6gw-hp3y0l3ln89j8cdvf****</p>
*/
public Builder ipv6GatewayId(String ipv6GatewayId) {
this.putQueryParameter("Ipv6GatewayId", ipv6GatewayId);
this.ipv6GatewayId = ipv6GatewayId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the region where the IPv6 gateway is deployed. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-huhehaote</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeIpv6GatewayAttributeRequest build() {
return new DescribeIpv6GatewayAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6GatewayAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6GatewayAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewayAttributeResponse</p>
*/
public class DescribeIpv6GatewayAttributeResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeIpv6GatewayAttributeResponseBody body;
private DescribeIpv6GatewayAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeIpv6GatewayAttributeResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeIpv6GatewayAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeIpv6GatewayAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeIpv6GatewayAttributeResponseBody body);
@Override
DescribeIpv6GatewayAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeIpv6GatewayAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeIpv6GatewayAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeIpv6GatewayAttributeResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeIpv6GatewayAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeIpv6GatewayAttributeResponse build() {
return new DescribeIpv6GatewayAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6GatewayAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6GatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewayAttributeResponseBody</p>
*/
public class DescribeIpv6GatewayAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ExpiredTime")
private String expiredTime;
@com.aliyun.core.annotation.NameInMap("GatewayRouteTableId")
private String gatewayRouteTableId;
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.NameInMap("Ipv6GatewayId")
private String ipv6GatewayId;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private DescribeIpv6GatewayAttributeResponseBody(Builder builder) {
this.businessStatus = builder.businessStatus;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.expiredTime = builder.expiredTime;
this.gatewayRouteTableId = builder.gatewayRouteTableId;
this.instanceChargeType = builder.instanceChargeType;
this.ipv6GatewayId = builder.ipv6GatewayId;
this.name = builder.name;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.status = builder.status;
this.tags = builder.tags;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIpv6GatewayAttributeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return expiredTime
*/
public String getExpiredTime() {
return this.expiredTime;
}
/**
* @return gatewayRouteTableId
*/
public String getGatewayRouteTableId() {
return this.gatewayRouteTableId;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return ipv6GatewayId
*/
public String getIpv6GatewayId() {
return this.ipv6GatewayId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String businessStatus;
private String creationTime;
private String description;
private String expiredTime;
private String gatewayRouteTableId;
private String instanceChargeType;
private String ipv6GatewayId;
private String name;
private Long ownerId;
private String regionId;
private String requestId;
private String resourceGroupId;
private String status;
private Tags tags;
private String vpcId;
private Builder() {
}
private Builder(DescribeIpv6GatewayAttributeResponseBody model) {
this.businessStatus = model.businessStatus;
this.creationTime = model.creationTime;
this.description = model.description;
this.expiredTime = model.expiredTime;
this.gatewayRouteTableId = model.gatewayRouteTableId;
this.instanceChargeType = model.instanceChargeType;
this.ipv6GatewayId = model.ipv6GatewayId;
this.name = model.name;
this.ownerId = model.ownerId;
this.regionId = model.regionId;
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.status = model.status;
this.tags = model.tags;
this.vpcId = model.vpcId;
}
/**
* <p>The status of the IPv6 gateway. Valid values:</p>
* <ul>
* <li><strong>Normal</strong></li>
* <li><strong>FinancialLocked</strong></li>
* <li><strong>SecurityLocked</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.businessStatus = businessStatus;
return this;
}
/**
* <p>The time when the IPv6 gateway was created.</p>
*
* <strong>example:</strong>
* <p>2018-12-05T09:21:35Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the IPv6 gateway.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The time when the IPv6 gateway expires.</p>
*
* <strong>example:</strong>
* <p>2019-1-05T09:21:35Z</p>
*/
public Builder expiredTime(String expiredTime) {
this.expiredTime = expiredTime;
return this;
}
/**
* <p>The ID of the gateway route table associated with the IPv6 gateway.</p>
* <blockquote>
* <p> This parameter is available only when the IPv6 gateway is associated with a gateway route table.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vtb-5ts0ohchwkp3dydt2****</p>
*/
public Builder gatewayRouteTableId(String gatewayRouteTableId) {
this.gatewayRouteTableId = gatewayRouteTableId;
return this;
}
/**
* <p>The metering method of the IPv6 gateway.</p>
*
* <strong>example:</strong>
* <p>PostPaid</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The ID of the IPv6 gateway.</p>
*
* <strong>example:</strong>
* <p>ipv6gw-hp3y0l3ln89j8cdvf****</p>
*/
public Builder ipv6GatewayId(String ipv6GatewayId) {
this.ipv6GatewayId = ipv6GatewayId;
return this;
}
/**
* <p>The name of the IPv6 gateway.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the IPv6 gateway belongs.</p>
* <blockquote>
* <p> This value is of the Long type. In some languages, the precision may be lost. Use this value with caution.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2546073170691****</p>
*/
public Builder ownerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the region where the IPv6 gateway is deployed.</p>
*
* <strong>example:</strong>
* <p>cn-huhehaote</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph6aiy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The status of the IPv6 gateway. Valid values:</p>
* <ul>
* <li><strong>Pending</strong></li>
* <li><strong>Available</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The information about the tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) to which the IPv6 gateway belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-123sedrfswd23****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public DescribeIpv6GatewayAttributeResponseBody build() {
return new DescribeIpv6GatewayAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeIpv6GatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewayAttributeResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It must start with a letter and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length. It must start with a letter and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeIpv6GatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewayAttributeResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6GatewaysRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6GatewaysRequest} extends {@link RequestModel}
*
* <p>DescribeIpv6GatewaysRequest</p>
*/
public class DescribeIpv6GatewaysRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6GatewayId")
private String ipv6GatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private DescribeIpv6GatewaysRequest(Builder builder) {
super(builder);
this.ipv6GatewayId = builder.ipv6GatewayId;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tags = builder.tags;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIpv6GatewaysRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv6GatewayId
*/
public String getIpv6GatewayId() {
return this.ipv6GatewayId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<DescribeIpv6GatewaysRequest, Builder> {
private String ipv6GatewayId;
private String name;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tags> tags;
private String vpcId;
private Builder() {
super();
}
private Builder(DescribeIpv6GatewaysRequest request) {
super(request);
this.ipv6GatewayId = request.ipv6GatewayId;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tags = request.tags;
this.vpcId = request.vpcId;
}
/**
* <p>The ID of the IPv6 gateway.</p>
*
* <strong>example:</strong>
* <p>ipv6gw-hp3rwmtmfhgis****</p>
*/
public Builder ipv6GatewayId(String ipv6GatewayId) {
this.putQueryParameter("Ipv6GatewayId", ipv6GatewayId);
this.ipv6GatewayId = ipv6GatewayId;
return this;
}
/**
* <p>The name of the IPv6 gateway.</p>
* <p>The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>ipv6GW</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the region in which the IPv6 gateway is deployed. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the region ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-huhehaote</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the IPv6 gateway belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The information about the tags.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) to which the IPv6 gateway belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-123sedrfswd23****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public DescribeIpv6GatewaysRequest build() {
return new DescribeIpv6GatewaysRequest(this);
}
}
/**
*
* {@link DescribeIpv6GatewaysRequest} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewaysRequest</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag keys of the resources. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag values of the resources. You can specify up to 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6GatewaysResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6GatewaysResponse} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewaysResponse</p>
*/
public class DescribeIpv6GatewaysResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeIpv6GatewaysResponseBody body;
private DescribeIpv6GatewaysResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeIpv6GatewaysResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeIpv6GatewaysResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeIpv6GatewaysResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeIpv6GatewaysResponseBody body);
@Override
DescribeIpv6GatewaysResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeIpv6GatewaysResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeIpv6GatewaysResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeIpv6GatewaysResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeIpv6GatewaysResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeIpv6GatewaysResponse build() {
return new DescribeIpv6GatewaysResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeIpv6GatewaysResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeIpv6GatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewaysResponseBody</p>
*/
public class DescribeIpv6GatewaysResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6Gateways")
private Ipv6Gateways ipv6Gateways;
@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 DescribeIpv6GatewaysResponseBody(Builder builder) {
this.ipv6Gateways = builder.ipv6Gateways;
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 DescribeIpv6GatewaysResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv6Gateways
*/
public Ipv6Gateways getIpv6Gateways() {
return this.ipv6Gateways;
}
/**
* @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 Ipv6Gateways ipv6Gateways;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeIpv6GatewaysResponseBody model) {
this.ipv6Gateways = model.ipv6Gateways;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The information about the IPv6 gateway.</p>
*/
public Builder ipv6Gateways(Ipv6Gateways ipv6Gateways) {
this.ipv6Gateways = ipv6Gateways;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>E3A06196-3E7C-490D-8F39-CB4B5A0CE8AD</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeIpv6GatewaysResponseBody build() {
return new DescribeIpv6GatewaysResponseBody(this);
}
}
/**
*
* {@link DescribeIpv6GatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewaysResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeIpv6GatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewaysResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeIpv6GatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewaysResponseBody</p>
*/
public static class Ipv6Gateway extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ExpiredTime")
private String expiredTime;
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.NameInMap("Ipv6GatewayId")
private String ipv6GatewayId;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private Ipv6Gateway(Builder builder) {
this.businessStatus = builder.businessStatus;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.expiredTime = builder.expiredTime;
this.instanceChargeType = builder.instanceChargeType;
this.ipv6GatewayId = builder.ipv6GatewayId;
this.name = builder.name;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.status = builder.status;
this.tags = builder.tags;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6Gateway create() {
return builder().build();
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return expiredTime
*/
public String getExpiredTime() {
return this.expiredTime;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return ipv6GatewayId
*/
public String getIpv6GatewayId() {
return this.ipv6GatewayId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String businessStatus;
private String creationTime;
private String description;
private String expiredTime;
private String instanceChargeType;
private String ipv6GatewayId;
private String name;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String status;
private Tags tags;
private String vpcId;
private Builder() {
}
private Builder(Ipv6Gateway model) {
this.businessStatus = model.businessStatus;
this.creationTime = model.creationTime;
this.description = model.description;
this.expiredTime = model.expiredTime;
this.instanceChargeType = model.instanceChargeType;
this.ipv6GatewayId = model.ipv6GatewayId;
this.name = model.name;
this.ownerId = model.ownerId;
this.regionId = model.regionId;
this.resourceGroupId = model.resourceGroupId;
this.status = model.status;
this.tags = model.tags;
this.vpcId = model.vpcId;
}
/**
* <p>The status of the IPv6 gateway. Valid values:</p>
* <ul>
* <li><strong>Normal</strong></li>
* <li><strong>FinancialLocked</strong></li>
* <li><strong>SecurityLocked</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.businessStatus = businessStatus;
return this;
}
/**
* <p>The time when the IPv6 gateway was created.</p>
*
* <strong>example:</strong>
* <p>2020-12-20T14:51:23Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the IPv6 gateway.</p>
*
* <strong>example:</strong>
* <p>descriptionforIPv6GW</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The time when the IPv6 gateway expires.</p>
*
* <strong>example:</strong>
* <p>2021-12-20T14:51:23Z</p>
*/
public Builder expiredTime(String expiredTime) {
this.expiredTime = expiredTime;
return this;
}
/**
* <p>The billing method of the IPv6 gateway.</p>
* <p>Only <strong>PostPaid</strong> may be returned, which indicates that the IPv6 gateway uses the pay-as-you-go billing method.</p>
*
* <strong>example:</strong>
* <p>PostPaid</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The ID of the IPv6 gateway.</p>
*
* <strong>example:</strong>
* <p>ipv6gw-hp3rwmtmfhgisipv6gw-hp3rwmtmfhgis****</p>
*/
public Builder ipv6GatewayId(String ipv6GatewayId) {
this.ipv6GatewayId = ipv6GatewayId;
return this;
}
/**
* <p>The name of the IPv6 gateway.</p>
*
* <strong>example:</strong>
* <p>ipv6GW</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the region in which the IPv6 gateway is deployed.</p>
*
* <strong>example:</strong>
* <p>cn-huhehaote</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The status of the IPv6 gateway. Valid values:</p>
* <ul>
* <li><strong>Pending</strong></li>
* <li><strong>Available</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The information about the tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the VPC to which the IPv6 gateway belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-123sedrfswd23****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public Ipv6Gateway build() {
return new Ipv6Gateway(this);
}
}
}
/**
*
* {@link DescribeIpv6GatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeIpv6GatewaysResponseBody</p>
*/
public static class Ipv6Gateways extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6Gateway")
private java.util.List<Ipv6Gateway> ipv6Gateway;
private Ipv6Gateways(Builder builder) {
this.ipv6Gateway = builder.ipv6Gateway;
}
public static Builder builder() {
return new Builder();
}
public static Ipv6Gateways create() {
return builder().build();
}
/**
* @return ipv6Gateway
*/
public java.util.List<Ipv6Gateway> getIpv6Gateway() {
return this.ipv6Gateway;
}
public static final class Builder {
private java.util.List<Ipv6Gateway> ipv6Gateway;
private Builder() {
}
private Builder(Ipv6Gateways model) {
this.ipv6Gateway = model.ipv6Gateway;
}
/**
* Ipv6Gateway.
*/
public Builder ipv6Gateway(java.util.List<Ipv6Gateway> ipv6Gateway) {
this.ipv6Gateway = ipv6Gateway;
return this;
}
public Ipv6Gateways build() {
return new Ipv6Gateways(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNatGatewayAssociateNetworkInterfacesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNatGatewayAssociateNetworkInterfacesRequest} extends {@link RequestModel}
*
* <p>DescribeNatGatewayAssociateNetworkInterfacesRequest</p>
*/
public class DescribeNatGatewayAssociateNetworkInterfacesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Filter")
private java.util.List<Filter> filter;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String natGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private DescribeNatGatewayAssociateNetworkInterfacesRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.filter = builder.filter;
this.maxResults = builder.maxResults;
this.natGatewayId = builder.natGatewayId;
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNatGatewayAssociateNetworkInterfacesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return filter
*/
public java.util.List<Filter> getFilter() {
return this.filter;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<DescribeNatGatewayAssociateNetworkInterfacesRequest, Builder> {
private String clientToken;
private java.util.List<Filter> filter;
private Integer maxResults;
private String natGatewayId;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(DescribeNatGatewayAssociateNetworkInterfacesRequest request) {
super(request);
this.clientToken = request.clientToken;
this.filter = request.filter;
this.maxResults = request.maxResults;
this.natGatewayId = request.natGatewayId;
this.nextToken = request.nextToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
}
/**
* ClientToken.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* Filter.
*/
public Builder filter(java.util.List<Filter> filter) {
this.putQueryParameter("Filter", filter);
this.filter = filter;
return this;
}
/**
* MaxResults.
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ngw-bp1uewa15k4iy5770****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.putQueryParameter("NatGatewayId", natGatewayId);
this.natGatewayId = natGatewayId;
return this;
}
/**
* NextToken.
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceGroupId.
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeNatGatewayAssociateNetworkInterfacesRequest build() {
return new DescribeNatGatewayAssociateNetworkInterfacesRequest(this);
}
}
/**
*
* {@link DescribeNatGatewayAssociateNetworkInterfacesRequest} extends {@link TeaModel}
*
* <p>DescribeNatGatewayAssociateNetworkInterfacesRequest</p>
*/
public static class Filter extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Filter(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Filter create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Filter model) {
this.key = model.key;
this.value = model.value;
}
/**
* Key.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* Value.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Filter build() {
return new Filter(this);
}
}
}
/**
*
* {@link DescribeNatGatewayAssociateNetworkInterfacesRequest} extends {@link TeaModel}
*
* <p>DescribeNatGatewayAssociateNetworkInterfacesRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* Key.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* Value.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNatGatewayAssociateNetworkInterfacesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNatGatewayAssociateNetworkInterfacesResponse} extends {@link TeaModel}
*
* <p>DescribeNatGatewayAssociateNetworkInterfacesResponse</p>
*/
public class DescribeNatGatewayAssociateNetworkInterfacesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeNatGatewayAssociateNetworkInterfacesResponseBody body;
private DescribeNatGatewayAssociateNetworkInterfacesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeNatGatewayAssociateNetworkInterfacesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeNatGatewayAssociateNetworkInterfacesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeNatGatewayAssociateNetworkInterfacesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeNatGatewayAssociateNetworkInterfacesResponseBody body);
@Override
DescribeNatGatewayAssociateNetworkInterfacesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeNatGatewayAssociateNetworkInterfacesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeNatGatewayAssociateNetworkInterfacesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeNatGatewayAssociateNetworkInterfacesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeNatGatewayAssociateNetworkInterfacesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeNatGatewayAssociateNetworkInterfacesResponse build() {
return new DescribeNatGatewayAssociateNetworkInterfacesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNatGatewayAssociateNetworkInterfacesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNatGatewayAssociateNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewayAssociateNetworkInterfacesResponseBody</p>
*/
public class DescribeNatGatewayAssociateNetworkInterfacesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociateNetworkInterfaces")
private AssociateNetworkInterfaces associateNetworkInterfaces;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
private String natGatewayId;
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeNatGatewayAssociateNetworkInterfacesResponseBody(Builder builder) {
this.associateNetworkInterfaces = builder.associateNetworkInterfaces;
this.count = builder.count;
this.maxResults = builder.maxResults;
this.natGatewayId = builder.natGatewayId;
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNatGatewayAssociateNetworkInterfacesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return associateNetworkInterfaces
*/
public AssociateNetworkInterfaces getAssociateNetworkInterfaces() {
return this.associateNetworkInterfaces;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private AssociateNetworkInterfaces associateNetworkInterfaces;
private Integer count;
private Integer maxResults;
private String natGatewayId;
private String nextToken;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeNatGatewayAssociateNetworkInterfacesResponseBody model) {
this.associateNetworkInterfaces = model.associateNetworkInterfaces;
this.count = model.count;
this.maxResults = model.maxResults;
this.natGatewayId = model.natGatewayId;
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* AssociateNetworkInterfaces.
*/
public Builder associateNetworkInterfaces(AssociateNetworkInterfaces associateNetworkInterfaces) {
this.associateNetworkInterfaces = associateNetworkInterfaces;
return this;
}
/**
* Count.
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* MaxResults.
*/
public Builder maxResults(Integer maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* NatGatewayId.
*/
public Builder natGatewayId(String natGatewayId) {
this.natGatewayId = natGatewayId;
return this;
}
/**
* NextToken.
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* TotalCount.
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeNatGatewayAssociateNetworkInterfacesResponseBody build() {
return new DescribeNatGatewayAssociateNetworkInterfacesResponseBody(this);
}
}
/**
*
* {@link DescribeNatGatewayAssociateNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewayAssociateNetworkInterfacesResponseBody</p>
*/
public static class IPv4Set extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IPv4Address")
private String iPv4Address;
@com.aliyun.core.annotation.NameInMap("Primary")
private Boolean primary;
private IPv4Set(Builder builder) {
this.iPv4Address = builder.iPv4Address;
this.primary = builder.primary;
}
public static Builder builder() {
return new Builder();
}
public static IPv4Set create() {
return builder().build();
}
/**
* @return iPv4Address
*/
public String getIPv4Address() {
return this.iPv4Address;
}
/**
* @return primary
*/
public Boolean getPrimary() {
return this.primary;
}
public static final class Builder {
private String iPv4Address;
private Boolean primary;
private Builder() {
}
private Builder(IPv4Set model) {
this.iPv4Address = model.iPv4Address;
this.primary = model.primary;
}
/**
* IPv4Address.
*/
public Builder iPv4Address(String iPv4Address) {
this.iPv4Address = iPv4Address;
return this;
}
/**
* Primary.
*/
public Builder primary(Boolean primary) {
this.primary = primary;
return this;
}
public IPv4Set build() {
return new IPv4Set(this);
}
}
}
/**
*
* {@link DescribeNatGatewayAssociateNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewayAssociateNetworkInterfacesResponseBody</p>
*/
public static class IPv4Sets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IPv4Set")
private java.util.List<IPv4Set> iPv4Set;
private IPv4Sets(Builder builder) {
this.iPv4Set = builder.iPv4Set;
}
public static Builder builder() {
return new Builder();
}
public static IPv4Sets create() {
return builder().build();
}
/**
* @return iPv4Set
*/
public java.util.List<IPv4Set> getIPv4Set() {
return this.iPv4Set;
}
public static final class Builder {
private java.util.List<IPv4Set> iPv4Set;
private Builder() {
}
private Builder(IPv4Sets model) {
this.iPv4Set = model.iPv4Set;
}
/**
* IPv4Set.
*/
public Builder iPv4Set(java.util.List<IPv4Set> iPv4Set) {
this.iPv4Set = iPv4Set;
return this;
}
public IPv4Sets build() {
return new IPv4Sets(this);
}
}
}
/**
*
* {@link DescribeNatGatewayAssociateNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewayAssociateNetworkInterfacesResponseBody</p>
*/
public static class AssociateNetworkInterface extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IPv4Sets")
private IPv4Sets iPv4Sets;
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceId")
private String networkInterfaceId;
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private String resourceOwnerId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("ResourceVpcId")
private String resourceVpcId;
@com.aliyun.core.annotation.NameInMap("TunnelIndex")
private String tunnelIndex;
private AssociateNetworkInterface(Builder builder) {
this.iPv4Sets = builder.iPv4Sets;
this.networkInterfaceId = builder.networkInterfaceId;
this.resourceId = builder.resourceId;
this.resourceOwnerId = builder.resourceOwnerId;
this.resourceType = builder.resourceType;
this.resourceVpcId = builder.resourceVpcId;
this.tunnelIndex = builder.tunnelIndex;
}
public static Builder builder() {
return new Builder();
}
public static AssociateNetworkInterface create() {
return builder().build();
}
/**
* @return iPv4Sets
*/
public IPv4Sets getIPv4Sets() {
return this.iPv4Sets;
}
/**
* @return networkInterfaceId
*/
public String getNetworkInterfaceId() {
return this.networkInterfaceId;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceOwnerId
*/
public String getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return resourceVpcId
*/
public String getResourceVpcId() {
return this.resourceVpcId;
}
/**
* @return tunnelIndex
*/
public String getTunnelIndex() {
return this.tunnelIndex;
}
public static final class Builder {
private IPv4Sets iPv4Sets;
private String networkInterfaceId;
private String resourceId;
private String resourceOwnerId;
private String resourceType;
private String resourceVpcId;
private String tunnelIndex;
private Builder() {
}
private Builder(AssociateNetworkInterface model) {
this.iPv4Sets = model.iPv4Sets;
this.networkInterfaceId = model.networkInterfaceId;
this.resourceId = model.resourceId;
this.resourceOwnerId = model.resourceOwnerId;
this.resourceType = model.resourceType;
this.resourceVpcId = model.resourceVpcId;
this.tunnelIndex = model.tunnelIndex;
}
/**
* IPv4Sets.
*/
public Builder iPv4Sets(IPv4Sets iPv4Sets) {
this.iPv4Sets = iPv4Sets;
return this;
}
/**
* NetworkInterfaceId.
*/
public Builder networkInterfaceId(String networkInterfaceId) {
this.networkInterfaceId = networkInterfaceId;
return this;
}
/**
* ResourceId.
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(String resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* ResourceType.
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* ResourceVpcId.
*/
public Builder resourceVpcId(String resourceVpcId) {
this.resourceVpcId = resourceVpcId;
return this;
}
/**
* TunnelIndex.
*/
public Builder tunnelIndex(String tunnelIndex) {
this.tunnelIndex = tunnelIndex;
return this;
}
public AssociateNetworkInterface build() {
return new AssociateNetworkInterface(this);
}
}
}
/**
*
* {@link DescribeNatGatewayAssociateNetworkInterfacesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewayAssociateNetworkInterfacesResponseBody</p>
*/
public static class AssociateNetworkInterfaces extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociateNetworkInterface")
private java.util.List<AssociateNetworkInterface> associateNetworkInterface;
private AssociateNetworkInterfaces(Builder builder) {
this.associateNetworkInterface = builder.associateNetworkInterface;
}
public static Builder builder() {
return new Builder();
}
public static AssociateNetworkInterfaces create() {
return builder().build();
}
/**
* @return associateNetworkInterface
*/
public java.util.List<AssociateNetworkInterface> getAssociateNetworkInterface() {
return this.associateNetworkInterface;
}
public static final class Builder {
private java.util.List<AssociateNetworkInterface> associateNetworkInterface;
private Builder() {
}
private Builder(AssociateNetworkInterfaces model) {
this.associateNetworkInterface = model.associateNetworkInterface;
}
/**
* AssociateNetworkInterface.
*/
public Builder associateNetworkInterface(java.util.List<AssociateNetworkInterface> associateNetworkInterface) {
this.associateNetworkInterface = associateNetworkInterface;
return this;
}
public AssociateNetworkInterfaces build() {
return new AssociateNetworkInterfaces(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNatGatewaysRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNatGatewaysRequest} extends {@link RequestModel}
*
* <p>DescribeNatGatewaysRequest</p>
*/
public class DescribeNatGatewaysRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
private String natGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatType")
private String natType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Spec")
private String spec;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private DescribeNatGatewaysRequest(Builder builder) {
super(builder);
this.dryRun = builder.dryRun;
this.instanceChargeType = builder.instanceChargeType;
this.name = builder.name;
this.natGatewayId = builder.natGatewayId;
this.natType = builder.natType;
this.networkType = builder.networkType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.spec = builder.spec;
this.status = builder.status;
this.tag = builder.tag;
this.vpcId = builder.vpcId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNatGatewaysRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return natType
*/
public String getNatType() {
return this.natType;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return spec
*/
public String getSpec() {
return this.spec;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder extends Request.Builder<DescribeNatGatewaysRequest, Builder> {
private Boolean dryRun;
private String instanceChargeType;
private String name;
private String natGatewayId;
private String natType;
private String networkType;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String spec;
private String status;
private java.util.List<Tag> tag;
private String vpcId;
private String zoneId;
private Builder() {
super();
}
private Builder(DescribeNatGatewaysRequest request) {
super(request);
this.dryRun = request.dryRun;
this.instanceChargeType = request.instanceChargeType;
this.name = request.name;
this.natGatewayId = request.natGatewayId;
this.natType = request.natType;
this.networkType = request.networkType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.spec = request.spec;
this.status = request.status;
this.tag = request.tag;
this.vpcId = request.vpcId;
this.zoneId = request.zoneId;
}
/**
* <p>Specifies whether to perform a dry run. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs a dry run. The system prechecks whether your AccessKey pair is valid, whether the RAM user is authorized, and whether the required parameters are specified. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The billing method of the NAT gateway. Set the value to <strong>PostPaid</strong>, which specifies the pay-as-you-go billing method.</p>
*
* <strong>example:</strong>
* <p>PostPaid</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.putQueryParameter("InstanceChargeType", instanceChargeType);
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The name of the NAT gateway. </p>
* <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>. </p>
* <p>If this parameter is not set, the system automatically assigns a name to the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The ID of the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>ngw-bp1uewa15k4iy5770****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.putQueryParameter("NatGatewayId", natGatewayId);
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>The type of NAT gateway. Set the value to <strong>Enhanced</strong> (enhanced NAT gateway).</p>
*
* <strong>example:</strong>
* <p>Enhanced</p>
*/
public Builder natType(String natType) {
this.putQueryParameter("NatType", natType);
this.natType = natType;
return this;
}
/**
* <p>The type of the NAT gateway. Valid values:</p>
* <ul>
* <li><strong>internet</strong>: an Internet NAT gateway</li>
* <li><strong>intranet</strong>: a VPC NAT gateway</li>
* </ul>
*
* <strong>example:</strong>
* <p>internet</p>
*/
public Builder networkType(String networkType) {
this.putQueryParameter("NetworkType", networkType);
this.networkType = networkType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the NAT gateways that you want to query.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the NAT gateway belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The size of the NAT gateway. Ignore this parameter.</p>
*
* <strong>example:</strong>
* <p>Invalid parameter.</p>
*/
public Builder spec(String spec) {
this.putQueryParameter("Spec", spec);
this.spec = spec;
return this;
}
/**
* <p>The status of the NAT gateway. Valid values:</p>
* <ul>
* <li><strong>Creating</strong>: After you send a request to create a NAT gateway, the system creates the NAT gateway in the background. The NAT gateway remains in the <strong>Creating</strong> state until the operation is completed.</li>
* <li><strong>Available</strong>: The NAT gateway remains in a stable state after the NAT gateway is created.</li>
* <li><strong>Modifying</strong>: After you send a request to modify a NAT gateway, the system modifies the NAT gateway in the background. The NAT gateway remains in the <strong>Modifying</strong> state until the operation is completed.</li>
* <li><strong>Deleting</strong>: After you send a request to delete a NAT gateway, the system deletes the NAT gateway in the background. The NAT gateway remains in the <strong>Deleting</strong> state until the operation is completed.</li>
* <li><strong>Converting</strong>: After you send a request to upgrade a standard NAT gateway to an enhanced NAT gateway, the system upgrades the NAT gateway in the background. The NAT gateway remains in the <strong>Converting</strong> state until the operation is completed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The ID of the VPC to which the NAT gateway belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-bp15zckdt37pq72z****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
/**
* <p>The ID of the zone to which the NAT gateway belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
@Override
public DescribeNatGatewaysRequest build() {
return new DescribeNatGatewaysRequest(this);
}
}
/**
*
* {@link DescribeNatGatewaysRequest} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag keys of the NAT gateway. You can specify up to 20 tag keys.</p>
* <p>Each tag key cannot exceed 64 characters in length, and cannot start with <code>aliyun</code> or <code>acs:</code>. It cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>KeyTest</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag values of the NAT gateway. You can specify up to 20 tag values.</p>
* <p>The tag value cannot exceed 128 characters in length, and cannot start with <code>aliyun</code> or <code>acs:</code>. The value cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>valueTest</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNatGatewaysResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNatGatewaysResponse} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponse</p>
*/
public class DescribeNatGatewaysResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeNatGatewaysResponseBody body;
private DescribeNatGatewaysResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeNatGatewaysResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeNatGatewaysResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeNatGatewaysResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeNatGatewaysResponseBody body);
@Override
DescribeNatGatewaysResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeNatGatewaysResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeNatGatewaysResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeNatGatewaysResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeNatGatewaysResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeNatGatewaysResponse build() {
return new DescribeNatGatewaysResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNatGatewaysResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public class DescribeNatGatewaysResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NatGateways")
private NatGateways natGateways;
@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 DescribeNatGatewaysResponseBody(Builder builder) {
this.natGateways = builder.natGateways;
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 DescribeNatGatewaysResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return natGateways
*/
public NatGateways getNatGateways() {
return this.natGateways;
}
/**
* @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 NatGateways natGateways;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeNatGatewaysResponseBody model) {
this.natGateways = model.natGateways;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The details about the NAT gateway.</p>
*/
public Builder natGateways(NatGateways natGateways) {
this.natGateways = natGateways;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>4EC47282-1B74-4534-BD0E-403F3EE64CAF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of NAT gateway entries that are returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeNatGatewaysResponseBody build() {
return new DescribeNatGatewaysResponseBody(this);
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class AccessMode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ModeValue")
private String modeValue;
@com.aliyun.core.annotation.NameInMap("TunnelType")
private String tunnelType;
private AccessMode(Builder builder) {
this.modeValue = builder.modeValue;
this.tunnelType = builder.tunnelType;
}
public static Builder builder() {
return new Builder();
}
public static AccessMode create() {
return builder().build();
}
/**
* @return modeValue
*/
public String getModeValue() {
return this.modeValue;
}
/**
* @return tunnelType
*/
public String getTunnelType() {
return this.tunnelType;
}
public static final class Builder {
private String modeValue;
private String tunnelType;
private Builder() {
}
private Builder(AccessMode model) {
this.modeValue = model.modeValue;
this.tunnelType = model.tunnelType;
}
/**
* ModeValue.
*/
public Builder modeValue(String modeValue) {
this.modeValue = modeValue;
return this;
}
/**
* TunnelType.
*/
public Builder tunnelType(String tunnelType) {
this.tunnelType = tunnelType;
return this;
}
public AccessMode build() {
return new AccessMode(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class ForwardTableIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ForwardTableId")
private java.util.List<String> forwardTableId;
private ForwardTableIds(Builder builder) {
this.forwardTableId = builder.forwardTableId;
}
public static Builder builder() {
return new Builder();
}
public static ForwardTableIds create() {
return builder().build();
}
/**
* @return forwardTableId
*/
public java.util.List<String> getForwardTableId() {
return this.forwardTableId;
}
public static final class Builder {
private java.util.List<String> forwardTableId;
private Builder() {
}
private Builder(ForwardTableIds model) {
this.forwardTableId = model.forwardTableId;
}
/**
* ForwardTableId.
*/
public Builder forwardTableId(java.util.List<String> forwardTableId) {
this.forwardTableId = forwardTableId;
return this;
}
public ForwardTableIds build() {
return new ForwardTableIds(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class FullNatTableIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FullNatTableId")
private java.util.List<String> fullNatTableId;
private FullNatTableIds(Builder builder) {
this.fullNatTableId = builder.fullNatTableId;
}
public static Builder builder() {
return new Builder();
}
public static FullNatTableIds create() {
return builder().build();
}
/**
* @return fullNatTableId
*/
public java.util.List<String> getFullNatTableId() {
return this.fullNatTableId;
}
public static final class Builder {
private java.util.List<String> fullNatTableId;
private Builder() {
}
private Builder(FullNatTableIds model) {
this.fullNatTableId = model.fullNatTableId;
}
/**
* FullNatTableId.
*/
public Builder fullNatTableId(java.util.List<String> fullNatTableId) {
this.fullNatTableId = fullNatTableId;
return this;
}
public FullNatTableIds build() {
return new FullNatTableIds(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class IpList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllocationId")
private String allocationId;
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
@com.aliyun.core.annotation.NameInMap("PrivateIpAddress")
private String privateIpAddress;
@com.aliyun.core.annotation.NameInMap("SnatEntryEnabled")
private Boolean snatEntryEnabled;
@com.aliyun.core.annotation.NameInMap("UsingStatus")
private String usingStatus;
private IpList(Builder builder) {
this.allocationId = builder.allocationId;
this.ipAddress = builder.ipAddress;
this.privateIpAddress = builder.privateIpAddress;
this.snatEntryEnabled = builder.snatEntryEnabled;
this.usingStatus = builder.usingStatus;
}
public static Builder builder() {
return new Builder();
}
public static IpList create() {
return builder().build();
}
/**
* @return allocationId
*/
public String getAllocationId() {
return this.allocationId;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return privateIpAddress
*/
public String getPrivateIpAddress() {
return this.privateIpAddress;
}
/**
* @return snatEntryEnabled
*/
public Boolean getSnatEntryEnabled() {
return this.snatEntryEnabled;
}
/**
* @return usingStatus
*/
public String getUsingStatus() {
return this.usingStatus;
}
public static final class Builder {
private String allocationId;
private String ipAddress;
private String privateIpAddress;
private Boolean snatEntryEnabled;
private String usingStatus;
private Builder() {
}
private Builder(IpList model) {
this.allocationId = model.allocationId;
this.ipAddress = model.ipAddress;
this.privateIpAddress = model.privateIpAddress;
this.snatEntryEnabled = model.snatEntryEnabled;
this.usingStatus = model.usingStatus;
}
/**
* <p>The ID of the EIP associated with the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>eip-m5egzuvp3dgixen6****</p>
*/
public Builder allocationId(String allocationId) {
this.allocationId = allocationId;
return this;
}
/**
* <p>The IP address of the EIP associated with the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>116.62.XX.XX</p>
*/
public Builder ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* <p>The private IP address of the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder privateIpAddress(String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
return this;
}
/**
* <p>Indicates whether IP addresses that are used in DNAT entries can be specified in SNAT entries. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder snatEntryEnabled(Boolean snatEntryEnabled) {
this.snatEntryEnabled = snatEntryEnabled;
return this;
}
/**
* <p>The association between the EIP and the Internet NAT gateway. Valid values:</p>
* <ul>
* <li><strong>UsedByForwardTable</strong>: The EIP is specified in a DNAT entry.</li>
* <li><strong>UsedBySnatTable</strong>: The EIP is specified in an SNAT entry.</li>
* <li><strong>UsedByForwardSnatTable</strong>: The EIP is specified in both an SNAT entry and a DNAT entry.</li>
* <li><strong>Idle</strong>: The EIP is not specified in a DNAT or SNAT entry.</li>
* </ul>
*
* <strong>example:</strong>
* <p>UsedByForwardTable</p>
*/
public Builder usingStatus(String usingStatus) {
this.usingStatus = usingStatus;
return this;
}
public IpList build() {
return new IpList(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class IpLists extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IpList")
private java.util.List<IpList> ipList;
private IpLists(Builder builder) {
this.ipList = builder.ipList;
}
public static Builder builder() {
return new Builder();
}
public static IpLists create() {
return builder().build();
}
/**
* @return ipList
*/
public java.util.List<IpList> getIpList() {
return this.ipList;
}
public static final class Builder {
private java.util.List<IpList> ipList;
private Builder() {
}
private Builder(IpLists model) {
this.ipList = model.ipList;
}
/**
* IpList.
*/
public Builder ipList(java.util.List<IpList> ipList) {
this.ipList = ipList;
return this;
}
public IpLists build() {
return new IpLists(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class IpPrefixList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IpPrefix")
private String ipPrefix;
private IpPrefixList(Builder builder) {
this.ipPrefix = builder.ipPrefix;
}
public static Builder builder() {
return new Builder();
}
public static IpPrefixList create() {
return builder().build();
}
/**
* @return ipPrefix
*/
public String getIpPrefix() {
return this.ipPrefix;
}
public static final class Builder {
private String ipPrefix;
private Builder() {
}
private Builder(IpPrefixList model) {
this.ipPrefix = model.ipPrefix;
}
/**
* IpPrefix.
*/
public Builder ipPrefix(String ipPrefix) {
this.ipPrefix = ipPrefix;
return this;
}
public IpPrefixList build() {
return new IpPrefixList(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class NatGatewayIpPrefixList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IpPrefixList")
private java.util.List<IpPrefixList> ipPrefixList;
private NatGatewayIpPrefixList(Builder builder) {
this.ipPrefixList = builder.ipPrefixList;
}
public static Builder builder() {
return new Builder();
}
public static NatGatewayIpPrefixList create() {
return builder().build();
}
/**
* @return ipPrefixList
*/
public java.util.List<IpPrefixList> getIpPrefixList() {
return this.ipPrefixList;
}
public static final class Builder {
private java.util.List<IpPrefixList> ipPrefixList;
private Builder() {
}
private Builder(NatGatewayIpPrefixList model) {
this.ipPrefixList = model.ipPrefixList;
}
/**
* IpPrefixList.
*/
public Builder ipPrefixList(java.util.List<IpPrefixList> ipPrefixList) {
this.ipPrefixList = ipPrefixList;
return this;
}
public NatGatewayIpPrefixList build() {
return new NatGatewayIpPrefixList(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class NatGatewayPrivateInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EniInstanceId")
private String eniInstanceId;
@com.aliyun.core.annotation.NameInMap("EniType")
private String eniType;
@com.aliyun.core.annotation.NameInMap("IzNo")
private String izNo;
@com.aliyun.core.annotation.NameInMap("MaxBandwidth")
private Integer maxBandwidth;
@com.aliyun.core.annotation.NameInMap("MaxSessionEstablishRate")
private Integer maxSessionEstablishRate;
@com.aliyun.core.annotation.NameInMap("MaxSessionQuota")
private Integer maxSessionQuota;
@com.aliyun.core.annotation.NameInMap("PrivateIpAddress")
private String privateIpAddress;
@com.aliyun.core.annotation.NameInMap("VswitchId")
private String vswitchId;
private NatGatewayPrivateInfo(Builder builder) {
this.eniInstanceId = builder.eniInstanceId;
this.eniType = builder.eniType;
this.izNo = builder.izNo;
this.maxBandwidth = builder.maxBandwidth;
this.maxSessionEstablishRate = builder.maxSessionEstablishRate;
this.maxSessionQuota = builder.maxSessionQuota;
this.privateIpAddress = builder.privateIpAddress;
this.vswitchId = builder.vswitchId;
}
public static Builder builder() {
return new Builder();
}
public static NatGatewayPrivateInfo create() {
return builder().build();
}
/**
* @return eniInstanceId
*/
public String getEniInstanceId() {
return this.eniInstanceId;
}
/**
* @return eniType
*/
public String getEniType() {
return this.eniType;
}
/**
* @return izNo
*/
public String getIzNo() {
return this.izNo;
}
/**
* @return maxBandwidth
*/
public Integer getMaxBandwidth() {
return this.maxBandwidth;
}
/**
* @return maxSessionEstablishRate
*/
public Integer getMaxSessionEstablishRate() {
return this.maxSessionEstablishRate;
}
/**
* @return maxSessionQuota
*/
public Integer getMaxSessionQuota() {
return this.maxSessionQuota;
}
/**
* @return privateIpAddress
*/
public String getPrivateIpAddress() {
return this.privateIpAddress;
}
/**
* @return vswitchId
*/
public String getVswitchId() {
return this.vswitchId;
}
public static final class Builder {
private String eniInstanceId;
private String eniType;
private String izNo;
private Integer maxBandwidth;
private Integer maxSessionEstablishRate;
private Integer maxSessionQuota;
private String privateIpAddress;
private String vswitchId;
private Builder() {
}
private Builder(NatGatewayPrivateInfo model) {
this.eniInstanceId = model.eniInstanceId;
this.eniType = model.eniType;
this.izNo = model.izNo;
this.maxBandwidth = model.maxBandwidth;
this.maxSessionEstablishRate = model.maxSessionEstablishRate;
this.maxSessionQuota = model.maxSessionQuota;
this.privateIpAddress = model.privateIpAddress;
this.vswitchId = model.vswitchId;
}
/**
* <p>The ID of the elastic network interface (ENI).</p>
*
* <strong>example:</strong>
* <p>eni-m5eg4ozy5st8q3q4****</p>
*/
public Builder eniInstanceId(String eniInstanceId) {
this.eniInstanceId = eniInstanceId;
return this;
}
/**
* <p>The mode in which the ENI is associated with the NAT gateway.</p>
* <ul>
* <li><strong>indirect</strong>: non-cut-through mode</li>
* <li>If an empty value is returned, it indicates that the cut-through mode is used.</li>
* </ul>
*
* <strong>example:</strong>
* <p>indirect</p>
*/
public Builder eniType(String eniType) {
this.eniType = eniType;
return this;
}
/**
* <p>The zone to which the NAT gateway belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder izNo(String izNo) {
this.izNo = izNo;
return this;
}
/**
* <p>The maximum bandwidth. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>5120</p>
*/
public Builder maxBandwidth(Integer maxBandwidth) {
this.maxBandwidth = maxBandwidth;
return this;
}
/**
* <p>The number of new connections to the NAT gateway. Unit: connections per second.</p>
*
* <strong>example:</strong>
* <p>100000</p>
*/
public Builder maxSessionEstablishRate(Integer maxSessionEstablishRate) {
this.maxSessionEstablishRate = maxSessionEstablishRate;
return this;
}
/**
* <p>The number of concurrent connections to the NAT gateway. Unit: connections.</p>
*
* <strong>example:</strong>
* <p>2000000</p>
*/
public Builder maxSessionQuota(Integer maxSessionQuota) {
this.maxSessionQuota = maxSessionQuota;
return this;
}
/**
* <p>The private IP address.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder privateIpAddress(String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
return this;
}
/**
* <p>The ID of the vSwitch to which the NAT gateway belongs.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1s2laxhdf9ayjbo****</p>
*/
public Builder vswitchId(String vswitchId) {
this.vswitchId = vswitchId;
return this;
}
public NatGatewayPrivateInfo build() {
return new NatGatewayPrivateInfo(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class SnatTableIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SnatTableId")
private java.util.List<String> snatTableId;
private SnatTableIds(Builder builder) {
this.snatTableId = builder.snatTableId;
}
public static Builder builder() {
return new Builder();
}
public static SnatTableIds create() {
return builder().build();
}
/**
* @return snatTableId
*/
public java.util.List<String> getSnatTableId() {
return this.snatTableId;
}
public static final class Builder {
private java.util.List<String> snatTableId;
private Builder() {
}
private Builder(SnatTableIds model) {
this.snatTableId = model.snatTableId;
}
/**
* SnatTableId.
*/
public Builder snatTableId(java.util.List<String> snatTableId) {
this.snatTableId = snatTableId;
return this;
}
public SnatTableIds build() {
return new SnatTableIds(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TagKey")
private String tagKey;
@com.aliyun.core.annotation.NameInMap("TagValue")
private String tagValue;
private Tag(Builder builder) {
this.tagKey = builder.tagKey;
this.tagValue = builder.tagValue;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return tagKey
*/
public String getTagKey() {
return this.tagKey;
}
/**
* @return tagValue
*/
public String getTagValue() {
return this.tagValue;
}
public static final class Builder {
private String tagKey;
private String tagValue;
private Builder() {
}
private Builder(Tag model) {
this.tagKey = model.tagKey;
this.tagValue = model.tagValue;
}
/**
* <p>The tag key of the instance.</p>
*
* <strong>example:</strong>
* <p>KeyTest</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value of the instance.</p>
*
* <strong>example:</strong>
* <p>valueTest</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class NatGateway extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessMode")
private AccessMode accessMode;
@com.aliyun.core.annotation.NameInMap("AutoPay")
private Boolean autoPay;
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("DeletionProtection")
private Boolean deletionProtection;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EcsMetricEnabled")
private Boolean ecsMetricEnabled;
@com.aliyun.core.annotation.NameInMap("EipBindMode")
private String eipBindMode;
@com.aliyun.core.annotation.NameInMap("EnableSessionLog")
private String enableSessionLog;
@com.aliyun.core.annotation.NameInMap("ExpiredTime")
private String expiredTime;
@com.aliyun.core.annotation.NameInMap("ForwardTableIds")
private ForwardTableIds forwardTableIds;
@com.aliyun.core.annotation.NameInMap("FullNatTableIds")
private FullNatTableIds fullNatTableIds;
@com.aliyun.core.annotation.NameInMap("IcmpReplyEnabled")
private Boolean icmpReplyEnabled;
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.NameInMap("IpLists")
private IpLists ipLists;
@com.aliyun.core.annotation.NameInMap("IpPrefixList")
private NatGatewayIpPrefixList ipPrefixList;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
private String natGatewayId;
@com.aliyun.core.annotation.NameInMap("NatGatewayPrivateInfo")
private NatGatewayPrivateInfo natGatewayPrivateInfo;
@com.aliyun.core.annotation.NameInMap("NatType")
private String natType;
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@com.aliyun.core.annotation.NameInMap("PrivateLinkEnabled")
private Boolean privateLinkEnabled;
@com.aliyun.core.annotation.NameInMap("PrivateLinkMode")
private String privateLinkMode;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("SecurityProtectionEnabled")
private Boolean securityProtectionEnabled;
@com.aliyun.core.annotation.NameInMap("SnatTableIds")
private SnatTableIds snatTableIds;
@com.aliyun.core.annotation.NameInMap("Spec")
private String spec;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private NatGateway(Builder builder) {
this.accessMode = builder.accessMode;
this.autoPay = builder.autoPay;
this.businessStatus = builder.businessStatus;
this.creationTime = builder.creationTime;
this.deletionProtection = builder.deletionProtection;
this.description = builder.description;
this.ecsMetricEnabled = builder.ecsMetricEnabled;
this.eipBindMode = builder.eipBindMode;
this.enableSessionLog = builder.enableSessionLog;
this.expiredTime = builder.expiredTime;
this.forwardTableIds = builder.forwardTableIds;
this.fullNatTableIds = builder.fullNatTableIds;
this.icmpReplyEnabled = builder.icmpReplyEnabled;
this.instanceChargeType = builder.instanceChargeType;
this.internetChargeType = builder.internetChargeType;
this.ipLists = builder.ipLists;
this.ipPrefixList = builder.ipPrefixList;
this.name = builder.name;
this.natGatewayId = builder.natGatewayId;
this.natGatewayPrivateInfo = builder.natGatewayPrivateInfo;
this.natType = builder.natType;
this.networkType = builder.networkType;
this.privateLinkEnabled = builder.privateLinkEnabled;
this.privateLinkMode = builder.privateLinkMode;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.securityProtectionEnabled = builder.securityProtectionEnabled;
this.snatTableIds = builder.snatTableIds;
this.spec = builder.spec;
this.status = builder.status;
this.tags = builder.tags;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static NatGateway create() {
return builder().build();
}
/**
* @return accessMode
*/
public AccessMode getAccessMode() {
return this.accessMode;
}
/**
* @return autoPay
*/
public Boolean getAutoPay() {
return this.autoPay;
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return deletionProtection
*/
public Boolean getDeletionProtection() {
return this.deletionProtection;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return ecsMetricEnabled
*/
public Boolean getEcsMetricEnabled() {
return this.ecsMetricEnabled;
}
/**
* @return eipBindMode
*/
public String getEipBindMode() {
return this.eipBindMode;
}
/**
* @return enableSessionLog
*/
public String getEnableSessionLog() {
return this.enableSessionLog;
}
/**
* @return expiredTime
*/
public String getExpiredTime() {
return this.expiredTime;
}
/**
* @return forwardTableIds
*/
public ForwardTableIds getForwardTableIds() {
return this.forwardTableIds;
}
/**
* @return fullNatTableIds
*/
public FullNatTableIds getFullNatTableIds() {
return this.fullNatTableIds;
}
/**
* @return icmpReplyEnabled
*/
public Boolean getIcmpReplyEnabled() {
return this.icmpReplyEnabled;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return ipLists
*/
public IpLists getIpLists() {
return this.ipLists;
}
/**
* @return ipPrefixList
*/
public NatGatewayIpPrefixList getIpPrefixList() {
return this.ipPrefixList;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return natGatewayPrivateInfo
*/
public NatGatewayPrivateInfo getNatGatewayPrivateInfo() {
return this.natGatewayPrivateInfo;
}
/**
* @return natType
*/
public String getNatType() {
return this.natType;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return privateLinkEnabled
*/
public Boolean getPrivateLinkEnabled() {
return this.privateLinkEnabled;
}
/**
* @return privateLinkMode
*/
public String getPrivateLinkMode() {
return this.privateLinkMode;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return securityProtectionEnabled
*/
public Boolean getSecurityProtectionEnabled() {
return this.securityProtectionEnabled;
}
/**
* @return snatTableIds
*/
public SnatTableIds getSnatTableIds() {
return this.snatTableIds;
}
/**
* @return spec
*/
public String getSpec() {
return this.spec;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private AccessMode accessMode;
private Boolean autoPay;
private String businessStatus;
private String creationTime;
private Boolean deletionProtection;
private String description;
private Boolean ecsMetricEnabled;
private String eipBindMode;
private String enableSessionLog;
private String expiredTime;
private ForwardTableIds forwardTableIds;
private FullNatTableIds fullNatTableIds;
private Boolean icmpReplyEnabled;
private String instanceChargeType;
private String internetChargeType;
private IpLists ipLists;
private NatGatewayIpPrefixList ipPrefixList;
private String name;
private String natGatewayId;
private NatGatewayPrivateInfo natGatewayPrivateInfo;
private String natType;
private String networkType;
private Boolean privateLinkEnabled;
private String privateLinkMode;
private String regionId;
private String resourceGroupId;
private Boolean securityProtectionEnabled;
private SnatTableIds snatTableIds;
private String spec;
private String status;
private Tags tags;
private String vpcId;
private Builder() {
}
private Builder(NatGateway model) {
this.accessMode = model.accessMode;
this.autoPay = model.autoPay;
this.businessStatus = model.businessStatus;
this.creationTime = model.creationTime;
this.deletionProtection = model.deletionProtection;
this.description = model.description;
this.ecsMetricEnabled = model.ecsMetricEnabled;
this.eipBindMode = model.eipBindMode;
this.enableSessionLog = model.enableSessionLog;
this.expiredTime = model.expiredTime;
this.forwardTableIds = model.forwardTableIds;
this.fullNatTableIds = model.fullNatTableIds;
this.icmpReplyEnabled = model.icmpReplyEnabled;
this.instanceChargeType = model.instanceChargeType;
this.internetChargeType = model.internetChargeType;
this.ipLists = model.ipLists;
this.ipPrefixList = model.ipPrefixList;
this.name = model.name;
this.natGatewayId = model.natGatewayId;
this.natGatewayPrivateInfo = model.natGatewayPrivateInfo;
this.natType = model.natType;
this.networkType = model.networkType;
this.privateLinkEnabled = model.privateLinkEnabled;
this.privateLinkMode = model.privateLinkMode;
this.regionId = model.regionId;
this.resourceGroupId = model.resourceGroupId;
this.securityProtectionEnabled = model.securityProtectionEnabled;
this.snatTableIds = model.snatTableIds;
this.spec = model.spec;
this.status = model.status;
this.tags = model.tags;
this.vpcId = model.vpcId;
}
/**
* AccessMode.
*/
public Builder accessMode(AccessMode accessMode) {
this.accessMode = accessMode;
return this;
}
/**
* <p>Indicates whether automatic payment is enabled. Valid values:</p>
* <ul>
* <li><strong>false</strong>: no</li>
* <li><strong>true</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoPay(Boolean autoPay) {
this.autoPay = autoPay;
return this;
}
/**
* <p>The status of the NAT gateway. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: normal</li>
* <li><strong>FinancialLocked</strong>: locked due to overdue payments</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.businessStatus = businessStatus;
return this;
}
/**
* <p>The time when the NAT gateway was created.</p>
*
* <strong>example:</strong>
* <p>2021-06-08T12:20:20Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>Indicates whether the deletion protection feature is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder deletionProtection(Boolean deletionProtection) {
this.deletionProtection = deletionProtection;
return this;
}
/**
* <p>The description of the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>NAT</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>Indicates whether the traffic monitoring feature is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder ecsMetricEnabled(Boolean ecsMetricEnabled) {
this.ecsMetricEnabled = ecsMetricEnabled;
return this;
}
/**
* <p>The mode in which the NAT gateway is associated with an elastic IP address (EIP). Valid values:</p>
* <ul>
* <li><strong>MULTI_BINDED</strong>: multi-EIP-to-ENI mode</li>
* <li><strong>NAT</strong>: NAT mode, which is compatible with IPv4 addresses.</li>
* </ul>
* <blockquote>
* <p> Note: If you use the NAT mode, the EIP occupies one private IP address on the vSwitch of the NAT gateway. Make sure that the vSwitch has sufficient private IP addresses. Otherwise, the NAT gateway fails to be associated with the EIP. In NAT mode, you can associate a NAT gateway with up to 50 EIPs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>MULTI_BINDED</p>
*/
public Builder eipBindMode(String eipBindMode) {
this.eipBindMode = eipBindMode;
return this;
}
/**
* EnableSessionLog.
*/
public Builder enableSessionLog(String enableSessionLog) {
this.enableSessionLog = enableSessionLog;
return this;
}
/**
* <p>The time when the NAT gateway expires.</p>
*
* <strong>example:</strong>
* <p>2021-08-26T16:00Z</p>
*/
public Builder expiredTime(String expiredTime) {
this.expiredTime = expiredTime;
return this;
}
/**
* <p>The ID of the DNAT table.</p>
*/
public Builder forwardTableIds(ForwardTableIds forwardTableIds) {
this.forwardTableIds = forwardTableIds;
return this;
}
/**
* <p>The ID of the FULLNAT table.</p>
*/
public Builder fullNatTableIds(FullNatTableIds fullNatTableIds) {
this.fullNatTableIds = fullNatTableIds;
return this;
}
/**
* <p>Indicates whether the ICMP non-retrieval feature is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder icmpReplyEnabled(Boolean icmpReplyEnabled) {
this.icmpReplyEnabled = icmpReplyEnabled;
return this;
}
/**
* <p>The billing method of the NAT gateway. The value is set to <strong>PostPaid</strong>, which indicates the pay-as-you-go billing method.</p>
*
* <strong>example:</strong>
* <p>PostPaid</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The metering method of the NAT gateway. Valid values:</p>
* <ul>
* <li><strong>PayBySpec</strong>: pay-by-specification</li>
* <li><strong>PayByLcu</strong>: pay-by-CU</li>
* </ul>
*
* <strong>example:</strong>
* <p>PayByLcu</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.internetChargeType = internetChargeType;
return this;
}
/**
* <p>The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.</p>
*/
public Builder ipLists(IpLists ipLists) {
this.ipLists = ipLists;
return this;
}
/**
* IpPrefixList.
*/
public Builder ipPrefixList(NatGatewayIpPrefixList ipPrefixList) {
this.ipPrefixList = ipPrefixList;
return this;
}
/**
* <p>The name of the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>ngw-bp1047e2d4z7kf2ki****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>The private network information about the enhanced Internet NAT gateway.</p>
* <blockquote>
* <p> If <strong>NatType</strong> is set to <strong>Normal</strong>, all parameters returned in this list are empty.</p>
* </blockquote>
*/
public Builder natGatewayPrivateInfo(NatGatewayPrivateInfo natGatewayPrivateInfo) {
this.natGatewayPrivateInfo = natGatewayPrivateInfo;
return this;
}
/**
* <p>The type of the NAT gateway. The value is set to <strong>Enhanced</strong> (enhanced NAT gateway).</p>
*
* <strong>example:</strong>
* <p>Enhanced</p>
*/
public Builder natType(String natType) {
this.natType = natType;
return this;
}
/**
* <p>The type of NAT gateway. Valid values:</p>
* <ul>
* <li><strong>internet</strong>: an Internet NAT gateway</li>
* <li><strong>intranet</strong>: a VPC NAT gateway</li>
* </ul>
*
* <strong>example:</strong>
* <p>internet</p>
*/
public Builder networkType(String networkType) {
this.networkType = networkType;
return this;
}
/**
* <p>Indicates whether the NAT gateway supports PrivateLink. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder privateLinkEnabled(Boolean privateLinkEnabled) {
this.privateLinkEnabled = privateLinkEnabled;
return this;
}
/**
* <p>The mode that is used by PrivateLink. Valid values:</p>
* <ul>
* <li><strong>FullNat</strong>: the FULLNAT mode</li>
* <li><strong>Geneve</strong>: the GENEVE mode</li>
* </ul>
*
* <strong>example:</strong>
* <p>FullNat</p>
*/
public Builder privateLinkMode(String privateLinkMode) {
this.privateLinkMode = privateLinkMode;
return this;
}
/**
* <p>The ID of the region where the NAT gateway is deployed.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the contiguous EIP group belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>Indicates whether the firewall feature is enabled. Valid values:</p>
* <ul>
* <li><strong>false</strong>: no</li>
* <li><strong>true</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder securityProtectionEnabled(Boolean securityProtectionEnabled) {
this.securityProtectionEnabled = securityProtectionEnabled;
return this;
}
/**
* <p>The ID of the SNAT table of the NAT gateway.</p>
*/
public Builder snatTableIds(SnatTableIds snatTableIds) {
this.snatTableIds = snatTableIds;
return this;
}
/**
* <p>The size of the NAT gateway. An empty value is returned for the parameter.</p>
* <p>If <strong>InternetChargeType</strong> is set to <strong>PayByLcu</strong>, an empty value is returned.</p>
*
* <strong>example:</strong>
* <p>Small</p>
*/
public Builder spec(String spec) {
this.spec = spec;
return this;
}
/**
* <p>The status of the NAT gateway. Valid values:</p>
* <ul>
* <li><strong>Creating</strong>: After you send a request to create a NAT gateway, the system creates the NAT gateway in the background. The NAT gateway remains in the Creating state until the operation is completed.</li>
* <li><strong>Available</strong>: The NAT gateway remains in a stable state after the NAT gateway is created.</li>
* <li><strong>Modifying</strong>: After you send a request to modify a NAT gateway, the system modifies the NAT gateway in the background. The NAT gateway remains in the Modifying state until the operation is completed.</li>
* <li><strong>Deleting</strong>: After you send a request to delete a NAT gateway, the system deletes the NAT gateway in the background. The NAT gateway remains in the Deleting state until the operation is completed.</li>
* <li><strong>Converting</strong>: After you send a request to upgrade a standard NAT gateway to an enhanced NAT gateway, the system upgrades the NAT gateway in the background. The NAT gateway remains in the Converting state until the operation is completed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Creating</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The tags that are added to the resource group.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the VPC where the NAT gateway is deployed.</p>
*
* <strong>example:</strong>
* <p>vpc-bp15zckdt37pq72z****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public NatGateway build() {
return new NatGateway(this);
}
}
}
/**
*
* {@link DescribeNatGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeNatGatewaysResponseBody</p>
*/
public static class NatGateways extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NatGateway")
private java.util.List<NatGateway> natGateway;
private NatGateways(Builder builder) {
this.natGateway = builder.natGateway;
}
public static Builder builder() {
return new Builder();
}
public static NatGateways create() {
return builder().build();
}
/**
* @return natGateway
*/
public java.util.List<NatGateway> getNatGateway() {
return this.natGateway;
}
public static final class Builder {
private java.util.List<NatGateway> natGateway;
private Builder() {
}
private Builder(NatGateways model) {
this.natGateway = model.natGateway;
}
/**
* NatGateway.
*/
public Builder natGateway(java.util.List<NatGateway> natGateway) {
this.natGateway = natGateway;
return this;
}
public NatGateways build() {
return new NatGateways(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNetworkAclAttributesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNetworkAclAttributesRequest} extends {@link RequestModel}
*
* <p>DescribeNetworkAclAttributesRequest</p>
*/
public class DescribeNetworkAclAttributesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkAclId")
@com.aliyun.core.annotation.Validation(required = true)
private String networkAclId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeNetworkAclAttributesRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.networkAclId = builder.networkAclId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNetworkAclAttributesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return networkAclId
*/
public String getNetworkAclId() {
return this.networkAclId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeNetworkAclAttributesRequest, Builder> {
private String clientToken;
private String networkAclId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeNetworkAclAttributesRequest request) {
super(request);
this.clientToken = request.clientToken;
this.networkAclId = request.networkAclId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the network ACL.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>nacl-a2do9e413e0spzasx****</p>
*/
public Builder networkAclId(String networkAclId) {
this.putQueryParameter("NetworkAclId", networkAclId);
this.networkAclId = networkAclId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the network ACL.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeNetworkAclAttributesRequest build() {
return new DescribeNetworkAclAttributesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNetworkAclAttributesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNetworkAclAttributesResponse} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponse</p>
*/
public class DescribeNetworkAclAttributesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeNetworkAclAttributesResponseBody body;
private DescribeNetworkAclAttributesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeNetworkAclAttributesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeNetworkAclAttributesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeNetworkAclAttributesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeNetworkAclAttributesResponseBody body);
@Override
DescribeNetworkAclAttributesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeNetworkAclAttributesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeNetworkAclAttributesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeNetworkAclAttributesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeNetworkAclAttributesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeNetworkAclAttributesResponse build() {
return new DescribeNetworkAclAttributesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNetworkAclAttributesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNetworkAclAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponseBody</p>
*/
public class DescribeNetworkAclAttributesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NetworkAclAttribute")
private NetworkAclAttribute networkAclAttribute;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeNetworkAclAttributesResponseBody(Builder builder) {
this.networkAclAttribute = builder.networkAclAttribute;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNetworkAclAttributesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return networkAclAttribute
*/
public NetworkAclAttribute getNetworkAclAttribute() {
return this.networkAclAttribute;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private NetworkAclAttribute networkAclAttribute;
private String requestId;
private Builder() {
}
private Builder(DescribeNetworkAclAttributesResponseBody model) {
this.networkAclAttribute = model.networkAclAttribute;
this.requestId = model.requestId;
}
/**
* <p>The details of the network ACLs.</p>
*/
public Builder networkAclAttribute(NetworkAclAttribute networkAclAttribute) {
this.networkAclAttribute = networkAclAttribute;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F5905F9C-0161-4E72-9CB1-1F3F3CF6268A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeNetworkAclAttributesResponseBody build() {
return new DescribeNetworkAclAttributesResponseBody(this);
}
}
/**
*
* {@link DescribeNetworkAclAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponseBody</p>
*/
public static class EgressAclEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DestinationCidrIp")
private String destinationCidrIp;
@com.aliyun.core.annotation.NameInMap("EntryType")
private String entryType;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryId")
private String networkAclEntryId;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryName")
private String networkAclEntryName;
@com.aliyun.core.annotation.NameInMap("Policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
private EgressAclEntry(Builder builder) {
this.description = builder.description;
this.destinationCidrIp = builder.destinationCidrIp;
this.entryType = builder.entryType;
this.ipVersion = builder.ipVersion;
this.networkAclEntryId = builder.networkAclEntryId;
this.networkAclEntryName = builder.networkAclEntryName;
this.policy = builder.policy;
this.port = builder.port;
this.protocol = builder.protocol;
}
public static Builder builder() {
return new Builder();
}
public static EgressAclEntry create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return destinationCidrIp
*/
public String getDestinationCidrIp() {
return this.destinationCidrIp;
}
/**
* @return entryType
*/
public String getEntryType() {
return this.entryType;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return networkAclEntryId
*/
public String getNetworkAclEntryId() {
return this.networkAclEntryId;
}
/**
* @return networkAclEntryName
*/
public String getNetworkAclEntryName() {
return this.networkAclEntryName;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
public static final class Builder {
private String description;
private String destinationCidrIp;
private String entryType;
private String ipVersion;
private String networkAclEntryId;
private String networkAclEntryName;
private String policy;
private String port;
private String protocol;
private Builder() {
}
private Builder(EgressAclEntry model) {
this.description = model.description;
this.destinationCidrIp = model.destinationCidrIp;
this.entryType = model.entryType;
this.ipVersion = model.ipVersion;
this.networkAclEntryId = model.networkAclEntryId;
this.networkAclEntryName = model.networkAclEntryName;
this.policy = model.policy;
this.port = model.port;
this.protocol = model.protocol;
}
/**
* <p>The description of the outbound rule.</p>
*
* <strong>example:</strong>
* <p>This is EgressAclEntries.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The destination CIDR block.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder destinationCidrIp(String destinationCidrIp) {
this.destinationCidrIp = destinationCidrIp;
return this;
}
/**
* <p>The type of the inbound rule.</p>
* <ul>
* <li><p><strong>custom</strong></p>
* </li>
* <li><p><strong>system</strong></p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>custom</p>
*/
public Builder entryType(String entryType) {
this.entryType = entryType;
return this;
}
/**
* <p>The IP version. Valid values:</p>
* <ul>
* <li><strong>IPv4</strong></li>
* <li><strong>IPv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The ID of the outbound rule.</p>
*
* <strong>example:</strong>
* <p>nae-a2d447uw4tillxdcv****</p>
*/
public Builder networkAclEntryId(String networkAclEntryId) {
this.networkAclEntryId = networkAclEntryId;
return this;
}
/**
* <p>The name of the outbound rule.</p>
*
* <strong>example:</strong>
* <p>acl-2</p>
*/
public Builder networkAclEntryName(String networkAclEntryName) {
this.networkAclEntryName = networkAclEntryName;
return this;
}
/**
* <p>The action to be performed on network traffic that matches the rule. Valid values:</p>
* <ul>
* <li><strong>accept</strong></li>
* <li><strong>drop</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>accept</p>
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* <p>The destination port range of the outbound traffic.</p>
* <ul>
* <li>If the <strong>protocol</strong> of the outbound rule is set to <strong>all</strong>, <strong>icmp</strong>, or <strong>gre</strong>, the port range is -1/-1, which specified all ports.</li>
* <li>If the <strong>protocol</strong> of the outbound rule is set to <strong>tcp</strong> or <strong>udp</strong>, set the port range in the following format: <strong>1/200</strong> or <strong>80/80</strong>, which specifies port 1 to port 200 or port 80. Valid values for a port: <strong>1</strong> to <strong>65535</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1/-1</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The protocol type. Valid values:</p>
* <ul>
* <li><strong>icmp</strong></li>
* <li><strong>gre</strong></li>
* <li><strong>tcp</strong></li>
* <li><strong>udp</strong></li>
* <li><strong>all</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>all</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
public EgressAclEntry build() {
return new EgressAclEntry(this);
}
}
}
/**
*
* {@link DescribeNetworkAclAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponseBody</p>
*/
public static class EgressAclEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EgressAclEntry")
private java.util.List<EgressAclEntry> egressAclEntry;
private EgressAclEntries(Builder builder) {
this.egressAclEntry = builder.egressAclEntry;
}
public static Builder builder() {
return new Builder();
}
public static EgressAclEntries create() {
return builder().build();
}
/**
* @return egressAclEntry
*/
public java.util.List<EgressAclEntry> getEgressAclEntry() {
return this.egressAclEntry;
}
public static final class Builder {
private java.util.List<EgressAclEntry> egressAclEntry;
private Builder() {
}
private Builder(EgressAclEntries model) {
this.egressAclEntry = model.egressAclEntry;
}
/**
* EgressAclEntry.
*/
public Builder egressAclEntry(java.util.List<EgressAclEntry> egressAclEntry) {
this.egressAclEntry = egressAclEntry;
return this;
}
public EgressAclEntries build() {
return new EgressAclEntries(this);
}
}
}
/**
*
* {@link DescribeNetworkAclAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponseBody</p>
*/
public static class IngressAclEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EntryType")
private String entryType;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryId")
private String networkAclEntryId;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryName")
private String networkAclEntryName;
@com.aliyun.core.annotation.NameInMap("Policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("SourceCidrIp")
private String sourceCidrIp;
private IngressAclEntry(Builder builder) {
this.description = builder.description;
this.entryType = builder.entryType;
this.ipVersion = builder.ipVersion;
this.networkAclEntryId = builder.networkAclEntryId;
this.networkAclEntryName = builder.networkAclEntryName;
this.policy = builder.policy;
this.port = builder.port;
this.protocol = builder.protocol;
this.sourceCidrIp = builder.sourceCidrIp;
}
public static Builder builder() {
return new Builder();
}
public static IngressAclEntry create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return entryType
*/
public String getEntryType() {
return this.entryType;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return networkAclEntryId
*/
public String getNetworkAclEntryId() {
return this.networkAclEntryId;
}
/**
* @return networkAclEntryName
*/
public String getNetworkAclEntryName() {
return this.networkAclEntryName;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return sourceCidrIp
*/
public String getSourceCidrIp() {
return this.sourceCidrIp;
}
public static final class Builder {
private String description;
private String entryType;
private String ipVersion;
private String networkAclEntryId;
private String networkAclEntryName;
private String policy;
private String port;
private String protocol;
private String sourceCidrIp;
private Builder() {
}
private Builder(IngressAclEntry model) {
this.description = model.description;
this.entryType = model.entryType;
this.ipVersion = model.ipVersion;
this.networkAclEntryId = model.networkAclEntryId;
this.networkAclEntryName = model.networkAclEntryName;
this.policy = model.policy;
this.port = model.port;
this.protocol = model.protocol;
this.sourceCidrIp = model.sourceCidrIp;
}
/**
* <p>The description of the inbound rule.</p>
*
* <strong>example:</strong>
* <p>This is IngressAclEntries.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The type of the inbound rule.</p>
* <ul>
* <li><p><strong>custom</strong></p>
* </li>
* <li><p><strong>system</strong></p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>custom</p>
*/
public Builder entryType(String entryType) {
this.entryType = entryType;
return this;
}
/**
* <p>The IP version. Valid values:</p>
* <ul>
* <li><strong>IPv4</strong></li>
* <li><strong>IPv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The ID of the inbound rule.</p>
*
* <strong>example:</strong>
* <p>nae-a2dk86arlydmevfbg****</p>
*/
public Builder networkAclEntryId(String networkAclEntryId) {
this.networkAclEntryId = networkAclEntryId;
return this;
}
/**
* <p>The name of the inbound rule.</p>
*
* <strong>example:</strong>
* <p>acl-3</p>
*/
public Builder networkAclEntryName(String networkAclEntryName) {
this.networkAclEntryName = networkAclEntryName;
return this;
}
/**
* <p>The action to be performed on network traffic that matches the rule. Valid values:</p>
* <ul>
* <li><strong>accept</strong></li>
* <li><strong>drop</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>accept</p>
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* <p>The destination port range of the inbound traffic.</p>
* <ul>
* <li>If the <strong>protocol</strong> of the inbound rule is set to <strong>all</strong>, <strong>icmp</strong>, or <strong>gre</strong>, the port range is -1/-1, which specifies all ports.</li>
* <li>If the <strong>protocol</strong> of the inbound rule is set to <strong>tcp</strong> or <strong>udp</strong>, set the port range in the following format: <strong>1/200</strong> or <strong>80/80</strong>, which specifies port 1 to port 200 or port 80. Valid ports: <strong>1</strong> to <strong>65535</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1/-1</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The protocol type. Valid values:</p>
* <ul>
* <li><strong>icmp</strong></li>
* <li><strong>gre</strong></li>
* <li><strong>tcp</strong></li>
* <li><strong>udp</strong></li>
* <li><strong>all</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>all</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The source CIDR block.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder sourceCidrIp(String sourceCidrIp) {
this.sourceCidrIp = sourceCidrIp;
return this;
}
public IngressAclEntry build() {
return new IngressAclEntry(this);
}
}
}
/**
*
* {@link DescribeNetworkAclAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponseBody</p>
*/
public static class IngressAclEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IngressAclEntry")
private java.util.List<IngressAclEntry> ingressAclEntry;
private IngressAclEntries(Builder builder) {
this.ingressAclEntry = builder.ingressAclEntry;
}
public static Builder builder() {
return new Builder();
}
public static IngressAclEntries create() {
return builder().build();
}
/**
* @return ingressAclEntry
*/
public java.util.List<IngressAclEntry> getIngressAclEntry() {
return this.ingressAclEntry;
}
public static final class Builder {
private java.util.List<IngressAclEntry> ingressAclEntry;
private Builder() {
}
private Builder(IngressAclEntries model) {
this.ingressAclEntry = model.ingressAclEntry;
}
/**
* IngressAclEntry.
*/
public Builder ingressAclEntry(java.util.List<IngressAclEntry> ingressAclEntry) {
this.ingressAclEntry = ingressAclEntry;
return this;
}
public IngressAclEntries build() {
return new IngressAclEntries(this);
}
}
}
/**
*
* {@link DescribeNetworkAclAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponseBody</p>
*/
public static class Resource extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Resource(Builder builder) {
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Resource create() {
return builder().build();
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String resourceId;
private String resourceType;
private String status;
private Builder() {
}
private Builder(Resource model) {
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.status = model.status;
}
/**
* <p>The ID of the associated resource.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1de348lntdwxscd****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of resource with which you want to associate the network ACL. The value is set to <strong>VSwitch</strong>.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The association status of the resource. Valid values:</p>
* <ul>
* <li><strong>BINDED</strong></li>
* <li><strong>BINDING</strong></li>
* <li><strong>UNBINDING</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>BINDED</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Resource build() {
return new Resource(this);
}
}
}
/**
*
* {@link DescribeNetworkAclAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponseBody</p>
*/
public static class Resources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Resource")
private java.util.List<Resource> resource;
private Resources(Builder builder) {
this.resource = builder.resource;
}
public static Builder builder() {
return new Builder();
}
public static Resources create() {
return builder().build();
}
/**
* @return resource
*/
public java.util.List<Resource> getResource() {
return this.resource;
}
public static final class Builder {
private java.util.List<Resource> resource;
private Builder() {
}
private Builder(Resources model) {
this.resource = model.resource;
}
/**
* Resource.
*/
public Builder resource(java.util.List<Resource> resource) {
this.resource = resource;
return this;
}
public Resources build() {
return new Resources(this);
}
}
}
/**
*
* {@link DescribeNetworkAclAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N added to the resource.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N added to the resource.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeNetworkAclAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeNetworkAclAttributesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclAttributesResponseBody</p>
*/
public static class NetworkAclAttribute 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("EgressAclEntries")
private EgressAclEntries egressAclEntries;
@com.aliyun.core.annotation.NameInMap("IngressAclEntries")
private IngressAclEntries ingressAclEntries;
@com.aliyun.core.annotation.NameInMap("NetworkAclId")
private String networkAclId;
@com.aliyun.core.annotation.NameInMap("NetworkAclName")
private String networkAclName;
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Resources")
private Resources resources;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private NetworkAclAttribute(Builder builder) {
this.creationTime = builder.creationTime;
this.description = builder.description;
this.egressAclEntries = builder.egressAclEntries;
this.ingressAclEntries = builder.ingressAclEntries;
this.networkAclId = builder.networkAclId;
this.networkAclName = builder.networkAclName;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resources = builder.resources;
this.status = builder.status;
this.tags = builder.tags;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static NetworkAclAttribute create() {
return builder().build();
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return egressAclEntries
*/
public EgressAclEntries getEgressAclEntries() {
return this.egressAclEntries;
}
/**
* @return ingressAclEntries
*/
public IngressAclEntries getIngressAclEntries() {
return this.ingressAclEntries;
}
/**
* @return networkAclId
*/
public String getNetworkAclId() {
return this.networkAclId;
}
/**
* @return networkAclName
*/
public String getNetworkAclName() {
return this.networkAclName;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resources
*/
public Resources getResources() {
return this.resources;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String creationTime;
private String description;
private EgressAclEntries egressAclEntries;
private IngressAclEntries ingressAclEntries;
private String networkAclId;
private String networkAclName;
private Long ownerId;
private String regionId;
private Resources resources;
private String status;
private Tags tags;
private String vpcId;
private Builder() {
}
private Builder(NetworkAclAttribute model) {
this.creationTime = model.creationTime;
this.description = model.description;
this.egressAclEntries = model.egressAclEntries;
this.ingressAclEntries = model.ingressAclEntries;
this.networkAclId = model.networkAclId;
this.networkAclName = model.networkAclName;
this.ownerId = model.ownerId;
this.regionId = model.regionId;
this.resources = model.resources;
this.status = model.status;
this.tags = model.tags;
this.vpcId = model.vpcId;
}
/**
* <p>The time when the network ACL was created.</p>
*
* <strong>example:</strong>
* <p>2021-12-25 11:33:27</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the network ACL.</p>
*
* <strong>example:</strong>
* <p>This is my NetworkAcl.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The information about the outbound rules of the network ACL.</p>
*/
public Builder egressAclEntries(EgressAclEntries egressAclEntries) {
this.egressAclEntries = egressAclEntries;
return this;
}
/**
* <p>The information about the inbound rules of the network ACL.</p>
*/
public Builder ingressAclEntries(IngressAclEntries ingressAclEntries) {
this.ingressAclEntries = ingressAclEntries;
return this;
}
/**
* <p>The ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>nacl-a2do9e413e0spnhmj****</p>
*/
public Builder networkAclId(String networkAclId) {
this.networkAclId = networkAclId;
return this;
}
/**
* <p>The name of the network ACL.</p>
*
* <strong>example:</strong>
* <p>acl-1</p>
*/
public Builder networkAclName(String networkAclName) {
this.networkAclName = networkAclName;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the network ACL belongs.</p>
*
* <strong>example:</strong>
* <p>253460731706911258</p>
*/
public Builder ownerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The resources that are associated with the network ACL.</p>
*/
public Builder resources(Resources resources) {
this.resources = resources;
return this;
}
/**
* <p>The association status of the resource. Valid values:</p>
* <ul>
* <li><strong>Available</strong></li>
* <li><strong>Modifying</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The information about the tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the VPC to which the network ACL belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-a2d33rfpl72k5defr****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public NetworkAclAttribute build() {
return new NetworkAclAttribute(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNetworkAclsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNetworkAclsRequest} extends {@link RequestModel}
*
* <p>DescribeNetworkAclsRequest</p>
*/
public class DescribeNetworkAclsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkAclId")
private String networkAclId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkAclName")
private String networkAclName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private DescribeNetworkAclsRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.networkAclId = builder.networkAclId;
this.networkAclName = builder.networkAclName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceId = builder.resourceId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.resourceType = builder.resourceType;
this.tags = builder.tags;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNetworkAclsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return networkAclId
*/
public String getNetworkAclId() {
return this.networkAclId;
}
/**
* @return networkAclName
*/
public String getNetworkAclName() {
return this.networkAclName;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<DescribeNetworkAclsRequest, Builder> {
private String clientToken;
private String networkAclId;
private String networkAclName;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String resourceType;
private java.util.List<Tags> tags;
private String vpcId;
private Builder() {
super();
}
private Builder(DescribeNetworkAclsRequest request) {
super(request);
this.clientToken = request.clientToken;
this.networkAclId = request.networkAclId;
this.networkAclName = request.networkAclName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceId = request.resourceId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.resourceType = request.resourceType;
this.tags = request.tags;
this.vpcId = request.vpcId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>nacl-bp1lhl0taikrbgnh****</p>
*/
public Builder networkAclId(String networkAclId) {
this.putQueryParameter("NetworkAclId", networkAclId);
this.networkAclId = networkAclId;
return this;
}
/**
* <p>The name of the network ACL.</p>
* <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>acl-1</p>
*/
public Builder networkAclName(String networkAclName) {
this.putQueryParameter("NetworkAclName", networkAclName);
this.networkAclName = networkAclName;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the network ACL.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the associated instance.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1de348lntdwnhbg****</p>
*/
public Builder resourceId(String resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The type of the associated instance. Set the value to <strong>VSwitch</strong>.</p>
* <p>This parameter is valid only if <strong>ResourceType</strong> and <strong>ResourceId</strong> are both specified.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The tag list.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The ID of the VPC to which the network ACL belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-m5ebpc2xh64mqm27e****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public DescribeNetworkAclsRequest build() {
return new DescribeNetworkAclsRequest(this);
}
}
/**
*
* {@link DescribeNetworkAclsRequest} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsRequest</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNetworkAclsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNetworkAclsResponse} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponse</p>
*/
public class DescribeNetworkAclsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeNetworkAclsResponseBody body;
private DescribeNetworkAclsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeNetworkAclsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeNetworkAclsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeNetworkAclsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeNetworkAclsResponseBody body);
@Override
DescribeNetworkAclsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeNetworkAclsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeNetworkAclsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeNetworkAclsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeNetworkAclsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeNetworkAclsResponse build() {
return new DescribeNetworkAclsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeNetworkAclsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public class DescribeNetworkAclsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NetworkAcls")
private NetworkAcls networkAcls;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private String totalCount;
private DescribeNetworkAclsResponseBody(Builder builder) {
this.networkAcls = builder.networkAcls;
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 DescribeNetworkAclsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return networkAcls
*/
public NetworkAcls getNetworkAcls() {
return this.networkAcls;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public String getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private NetworkAcls networkAcls;
private String pageNumber;
private String pageSize;
private String requestId;
private String totalCount;
private Builder() {
}
private Builder(DescribeNetworkAclsResponseBody model) {
this.networkAcls = model.networkAcls;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The details of the network ACLs.</p>
*/
public Builder networkAcls(NetworkAcls networkAcls) {
this.networkAcls = networkAcls;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(String pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of entries returned.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder totalCount(String totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeNetworkAclsResponseBody build() {
return new DescribeNetworkAclsResponseBody(this);
}
}
/**
*
* {@link DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public static class EgressAclEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DestinationCidrIp")
private String destinationCidrIp;
@com.aliyun.core.annotation.NameInMap("EntryType")
private String entryType;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryId")
private String networkAclEntryId;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryName")
private String networkAclEntryName;
@com.aliyun.core.annotation.NameInMap("Policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
private EgressAclEntry(Builder builder) {
this.description = builder.description;
this.destinationCidrIp = builder.destinationCidrIp;
this.entryType = builder.entryType;
this.ipVersion = builder.ipVersion;
this.networkAclEntryId = builder.networkAclEntryId;
this.networkAclEntryName = builder.networkAclEntryName;
this.policy = builder.policy;
this.port = builder.port;
this.protocol = builder.protocol;
}
public static Builder builder() {
return new Builder();
}
public static EgressAclEntry create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return destinationCidrIp
*/
public String getDestinationCidrIp() {
return this.destinationCidrIp;
}
/**
* @return entryType
*/
public String getEntryType() {
return this.entryType;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return networkAclEntryId
*/
public String getNetworkAclEntryId() {
return this.networkAclEntryId;
}
/**
* @return networkAclEntryName
*/
public String getNetworkAclEntryName() {
return this.networkAclEntryName;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
public static final class Builder {
private String description;
private String destinationCidrIp;
private String entryType;
private String ipVersion;
private String networkAclEntryId;
private String networkAclEntryName;
private String policy;
private String port;
private String protocol;
private Builder() {
}
private Builder(EgressAclEntry model) {
this.description = model.description;
this.destinationCidrIp = model.destinationCidrIp;
this.entryType = model.entryType;
this.ipVersion = model.ipVersion;
this.networkAclEntryId = model.networkAclEntryId;
this.networkAclEntryName = model.networkAclEntryName;
this.policy = model.policy;
this.port = model.port;
this.protocol = model.protocol;
}
/**
* <p>The description of the outbound rule.</p>
*
* <strong>example:</strong>
* <p>This is EgressAclEntries.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The destination CIDR block.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder destinationCidrIp(String destinationCidrIp) {
this.destinationCidrIp = destinationCidrIp;
return this;
}
/**
* <p>The type of the inbound rule.</p>
* <ul>
* <li><p><strong>custom</strong></p>
* </li>
* <li><p><strong>system</strong></p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>custom</p>
*/
public Builder entryType(String entryType) {
this.entryType = entryType;
return this;
}
/**
* <p>The IP version. </p>
* <ul>
* <li><strong>IPv4</strong></li>
* <li><strong>IPv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>IPV4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The ID of the outbound rule.</p>
*
* <strong>example:</strong>
* <p>nae-a2d447uw4tillfvgb****</p>
*/
public Builder networkAclEntryId(String networkAclEntryId) {
this.networkAclEntryId = networkAclEntryId;
return this;
}
/**
* <p>The name of the outbound rule.</p>
*
* <strong>example:</strong>
* <p>acl-2</p>
*/
public Builder networkAclEntryName(String networkAclEntryName) {
this.networkAclEntryName = networkAclEntryName;
return this;
}
/**
* <p>The action to be performed on network traffic that matches the rule. Valid values:</p>
* <ul>
* <li><strong>accept</strong></li>
* <li><strong>drop</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>accept</p>
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* <p>The destination port range of the outbound traffic.</p>
* <ul>
* <li>If the <strong>protocol</strong> of the outbound rule is set to <strong>all</strong>, <strong>icmp</strong>, or <strong>gre</strong>, the port range is -1/-1, which specified all ports.</li>
* <li>If the <strong>protocol</strong> of the outbound rule is set to <strong>tcp</strong> or <strong>udp</strong>, set the port range in the following format: <strong>1/200</strong> or <strong>80/80</strong>, which specifies port 1 to port 200 or port 80. Valid values for a port: <strong>1</strong> to <strong>65535</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1/-1</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The protocol. Valid values:</p>
* <ul>
* <li><strong>icmp</strong></li>
* <li><strong>gre</strong></li>
* <li><strong>tcp</strong></li>
* <li><strong>udp</strong></li>
* <li><strong>all</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>all</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
public EgressAclEntry build() {
return new EgressAclEntry(this);
}
}
}
/**
*
* {@link DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public static class EgressAclEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EgressAclEntry")
private java.util.List<EgressAclEntry> egressAclEntry;
private EgressAclEntries(Builder builder) {
this.egressAclEntry = builder.egressAclEntry;
}
public static Builder builder() {
return new Builder();
}
public static EgressAclEntries create() {
return builder().build();
}
/**
* @return egressAclEntry
*/
public java.util.List<EgressAclEntry> getEgressAclEntry() {
return this.egressAclEntry;
}
public static final class Builder {
private java.util.List<EgressAclEntry> egressAclEntry;
private Builder() {
}
private Builder(EgressAclEntries model) {
this.egressAclEntry = model.egressAclEntry;
}
/**
* EgressAclEntry.
*/
public Builder egressAclEntry(java.util.List<EgressAclEntry> egressAclEntry) {
this.egressAclEntry = egressAclEntry;
return this;
}
public EgressAclEntries build() {
return new EgressAclEntries(this);
}
}
}
/**
*
* {@link DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public static class IngressAclEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EntryType")
private String entryType;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryId")
private String networkAclEntryId;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryName")
private String networkAclEntryName;
@com.aliyun.core.annotation.NameInMap("Policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("SourceCidrIp")
private String sourceCidrIp;
private IngressAclEntry(Builder builder) {
this.description = builder.description;
this.entryType = builder.entryType;
this.ipVersion = builder.ipVersion;
this.networkAclEntryId = builder.networkAclEntryId;
this.networkAclEntryName = builder.networkAclEntryName;
this.policy = builder.policy;
this.port = builder.port;
this.protocol = builder.protocol;
this.sourceCidrIp = builder.sourceCidrIp;
}
public static Builder builder() {
return new Builder();
}
public static IngressAclEntry create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return entryType
*/
public String getEntryType() {
return this.entryType;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return networkAclEntryId
*/
public String getNetworkAclEntryId() {
return this.networkAclEntryId;
}
/**
* @return networkAclEntryName
*/
public String getNetworkAclEntryName() {
return this.networkAclEntryName;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return sourceCidrIp
*/
public String getSourceCidrIp() {
return this.sourceCidrIp;
}
public static final class Builder {
private String description;
private String entryType;
private String ipVersion;
private String networkAclEntryId;
private String networkAclEntryName;
private String policy;
private String port;
private String protocol;
private String sourceCidrIp;
private Builder() {
}
private Builder(IngressAclEntry model) {
this.description = model.description;
this.entryType = model.entryType;
this.ipVersion = model.ipVersion;
this.networkAclEntryId = model.networkAclEntryId;
this.networkAclEntryName = model.networkAclEntryName;
this.policy = model.policy;
this.port = model.port;
this.protocol = model.protocol;
this.sourceCidrIp = model.sourceCidrIp;
}
/**
* <p>The description of the inbound rule.</p>
*
* <strong>example:</strong>
* <p>This is IngressAclEntries.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The type of the inbound rule.</p>
* <ul>
* <li><p><strong>custom</strong></p>
* </li>
* <li><p><strong>system</strong></p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>custom</p>
*/
public Builder entryType(String entryType) {
this.entryType = entryType;
return this;
}
/**
* <p>The IP version. </p>
* <ul>
* <li><strong>IPv4</strong></li>
* <li><strong>IPv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The ID of the inbound rule.</p>
*
* <strong>example:</strong>
* <p>nae-a2dk86arlydmezasw****</p>
*/
public Builder networkAclEntryId(String networkAclEntryId) {
this.networkAclEntryId = networkAclEntryId;
return this;
}
/**
* <p>The name of the inbound rule.</p>
*
* <strong>example:</strong>
* <p>acl-3</p>
*/
public Builder networkAclEntryName(String networkAclEntryName) {
this.networkAclEntryName = networkAclEntryName;
return this;
}
/**
* <p>The action to be performed on network traffic that matches the rule. Valid values:</p>
* <ul>
* <li><strong>accept</strong></li>
* <li><strong>drop</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>accept</p>
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* <p>The destination port range of the inbound traffic.</p>
* <ul>
* <li>If the <strong>protocol</strong> of the inbound rule is set to <strong>all</strong>, <strong>icmp</strong>, or <strong>gre</strong>, the port range is -1/-1, which specifies all ports.</li>
* <li>If the <strong>protocol</strong> of the inbound rule is set to <strong>tcp</strong> or <strong>udp</strong>, set the port range in the following format: <strong>1/200</strong> or <strong>80/80</strong>, which specifies port 1 to port 200 or port 80. Valid ports: <strong>1</strong> to <strong>65535</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1/-1</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The protocol. Valid values:</p>
* <ul>
* <li><strong>icmp</strong></li>
* <li><strong>gre</strong></li>
* <li><strong>tcp</strong></li>
* <li><strong>udp</strong></li>
* <li><strong>all</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>all</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The source CIDR block.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder sourceCidrIp(String sourceCidrIp) {
this.sourceCidrIp = sourceCidrIp;
return this;
}
public IngressAclEntry build() {
return new IngressAclEntry(this);
}
}
}
/**
*
* {@link DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public static class IngressAclEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IngressAclEntry")
private java.util.List<IngressAclEntry> ingressAclEntry;
private IngressAclEntries(Builder builder) {
this.ingressAclEntry = builder.ingressAclEntry;
}
public static Builder builder() {
return new Builder();
}
public static IngressAclEntries create() {
return builder().build();
}
/**
* @return ingressAclEntry
*/
public java.util.List<IngressAclEntry> getIngressAclEntry() {
return this.ingressAclEntry;
}
public static final class Builder {
private java.util.List<IngressAclEntry> ingressAclEntry;
private Builder() {
}
private Builder(IngressAclEntries model) {
this.ingressAclEntry = model.ingressAclEntry;
}
/**
* IngressAclEntry.
*/
public Builder ingressAclEntry(java.util.List<IngressAclEntry> ingressAclEntry) {
this.ingressAclEntry = ingressAclEntry;
return this;
}
public IngressAclEntries build() {
return new IngressAclEntries(this);
}
}
}
/**
*
* {@link DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public static class Resource extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Resource(Builder builder) {
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Resource create() {
return builder().build();
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String resourceId;
private String resourceType;
private String status;
private Builder() {
}
private Builder(Resource model) {
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.status = model.status;
}
/**
* <p>The ID of the associated resource.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1de348lntdwcdf****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of resource with which you want to associate the network ACL.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The association status of the resource. Valid values:</p>
* <ul>
* <li><strong>BINDED</strong></li>
* <li><strong>BINDING</strong></li>
* <li><strong>UNBINDING</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>BINDED</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Resource build() {
return new Resource(this);
}
}
}
/**
*
* {@link DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public static class Resources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Resource")
private java.util.List<Resource> resource;
private Resources(Builder builder) {
this.resource = builder.resource;
}
public static Builder builder() {
return new Builder();
}
public static Resources create() {
return builder().build();
}
/**
* @return resource
*/
public java.util.List<Resource> getResource() {
return this.resource;
}
public static final class Builder {
private java.util.List<Resource> resource;
private Builder() {
}
private Builder(Resources model) {
this.resource = model.resource;
}
/**
* Resource.
*/
public Builder resource(java.util.List<Resource> resource) {
this.resource = resource;
return this;
}
public Resources build() {
return new Resources(this);
}
}
}
/**
*
* {@link DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N added to the resource.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N added to the resource.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public static class NetworkAcl 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("EgressAclEntries")
private EgressAclEntries egressAclEntries;
@com.aliyun.core.annotation.NameInMap("IngressAclEntries")
private IngressAclEntries ingressAclEntries;
@com.aliyun.core.annotation.NameInMap("NetworkAclId")
private String networkAclId;
@com.aliyun.core.annotation.NameInMap("NetworkAclName")
private String networkAclName;
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Resources")
private Resources resources;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private NetworkAcl(Builder builder) {
this.creationTime = builder.creationTime;
this.description = builder.description;
this.egressAclEntries = builder.egressAclEntries;
this.ingressAclEntries = builder.ingressAclEntries;
this.networkAclId = builder.networkAclId;
this.networkAclName = builder.networkAclName;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resources = builder.resources;
this.status = builder.status;
this.tags = builder.tags;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static NetworkAcl create() {
return builder().build();
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return egressAclEntries
*/
public EgressAclEntries getEgressAclEntries() {
return this.egressAclEntries;
}
/**
* @return ingressAclEntries
*/
public IngressAclEntries getIngressAclEntries() {
return this.ingressAclEntries;
}
/**
* @return networkAclId
*/
public String getNetworkAclId() {
return this.networkAclId;
}
/**
* @return networkAclName
*/
public String getNetworkAclName() {
return this.networkAclName;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resources
*/
public Resources getResources() {
return this.resources;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String creationTime;
private String description;
private EgressAclEntries egressAclEntries;
private IngressAclEntries ingressAclEntries;
private String networkAclId;
private String networkAclName;
private Long ownerId;
private String regionId;
private Resources resources;
private String status;
private Tags tags;
private String vpcId;
private Builder() {
}
private Builder(NetworkAcl model) {
this.creationTime = model.creationTime;
this.description = model.description;
this.egressAclEntries = model.egressAclEntries;
this.ingressAclEntries = model.ingressAclEntries;
this.networkAclId = model.networkAclId;
this.networkAclName = model.networkAclName;
this.ownerId = model.ownerId;
this.regionId = model.regionId;
this.resources = model.resources;
this.status = model.status;
this.tags = model.tags;
this.vpcId = model.vpcId;
}
/**
* <p>The time when the network ACL was created.</p>
*
* <strong>example:</strong>
* <p>2021-12-25 11:44:17</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the network ACL.</p>
*
* <strong>example:</strong>
* <p>This is my NetworkAcl.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The outbound rules.</p>
*/
public Builder egressAclEntries(EgressAclEntries egressAclEntries) {
this.egressAclEntries = egressAclEntries;
return this;
}
/**
* <p>The configurations of the inbound rules.</p>
*/
public Builder ingressAclEntries(IngressAclEntries ingressAclEntries) {
this.ingressAclEntries = ingressAclEntries;
return this;
}
/**
* <p>The ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>nacl-a2do9e413e0spxscd****</p>
*/
public Builder networkAclId(String networkAclId) {
this.networkAclId = networkAclId;
return this;
}
/**
* <p>The name of the network ACL.</p>
*
* <strong>example:</strong>
* <p>acl-1</p>
*/
public Builder networkAclName(String networkAclName) {
this.networkAclName = networkAclName;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the network ACL belongs.</p>
*
* <strong>example:</strong>
* <p>253460731706911258</p>
*/
public Builder ownerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The resources that are associated with the network ACL.</p>
*/
public Builder resources(Resources resources) {
this.resources = resources;
return this;
}
/**
* <p>The status of the network ACL. Valid values:</p>
* <ul>
* <li><strong>Available</strong></li>
* <li><strong>Modifying</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The information about the tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the associated VPC.</p>
*
* <strong>example:</strong>
* <p>vpc-m5ebpc2xh64mqm27e****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public NetworkAcl build() {
return new NetworkAcl(this);
}
}
}
/**
*
* {@link DescribeNetworkAclsResponseBody} extends {@link TeaModel}
*
* <p>DescribeNetworkAclsResponseBody</p>
*/
public static class NetworkAcls extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NetworkAcl")
private java.util.List<NetworkAcl> networkAcl;
private NetworkAcls(Builder builder) {
this.networkAcl = builder.networkAcl;
}
public static Builder builder() {
return new Builder();
}
public static NetworkAcls create() {
return builder().build();
}
/**
* @return networkAcl
*/
public java.util.List<NetworkAcl> getNetworkAcl() {
return this.networkAcl;
}
public static final class Builder {
private java.util.List<NetworkAcl> networkAcl;
private Builder() {
}
private Builder(NetworkAcls model) {
this.networkAcl = model.networkAcl;
}
/**
* NetworkAcl.
*/
public Builder networkAcl(java.util.List<NetworkAcl> networkAcl) {
this.networkAcl = networkAcl;
return this;
}
public NetworkAcls build() {
return new NetworkAcls(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribePhysicalConnectionLOARequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribePhysicalConnectionLOARequest} extends {@link RequestModel}
*
* <p>DescribePhysicalConnectionLOARequest</p>
*/
public class DescribePhysicalConnectionLOARequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribePhysicalConnectionLOARequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.instanceId = builder.instanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePhysicalConnectionLOARequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribePhysicalConnectionLOARequest, Builder> {
private String clientToken;
private String instanceId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribePhysicalConnectionLOARequest request) {
super(request);
this.clientToken = request.clientToken;
this.instanceId = request.instanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
* <blockquote>
* <p> If you do not set this parameter, the system automatically uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the Express Connect circuit.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pc-bp1ca4wca27ex****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the Express Connect circuit.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribePhysicalConnectionLOARequest build() {
return new DescribePhysicalConnectionLOARequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribePhysicalConnectionLOAResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribePhysicalConnectionLOAResponse} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionLOAResponse</p>
*/
public class DescribePhysicalConnectionLOAResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribePhysicalConnectionLOAResponseBody body;
private DescribePhysicalConnectionLOAResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribePhysicalConnectionLOAResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribePhysicalConnectionLOAResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribePhysicalConnectionLOAResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribePhysicalConnectionLOAResponseBody body);
@Override
DescribePhysicalConnectionLOAResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribePhysicalConnectionLOAResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribePhysicalConnectionLOAResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribePhysicalConnectionLOAResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribePhysicalConnectionLOAResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribePhysicalConnectionLOAResponse build() {
return new DescribePhysicalConnectionLOAResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribePhysicalConnectionLOAResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribePhysicalConnectionLOAResponseBody} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionLOAResponseBody</p>
*/
public class DescribePhysicalConnectionLOAResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PhysicalConnectionLOAType")
private PhysicalConnectionLOAType physicalConnectionLOAType;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribePhysicalConnectionLOAResponseBody(Builder builder) {
this.physicalConnectionLOAType = builder.physicalConnectionLOAType;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePhysicalConnectionLOAResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return physicalConnectionLOAType
*/
public PhysicalConnectionLOAType getPhysicalConnectionLOAType() {
return this.physicalConnectionLOAType;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PhysicalConnectionLOAType physicalConnectionLOAType;
private String requestId;
private Builder() {
}
private Builder(DescribePhysicalConnectionLOAResponseBody model) {
this.physicalConnectionLOAType = model.physicalConnectionLOAType;
this.requestId = model.requestId;
}
/**
* <p>The LOA information about the Express Connect circuit.</p>
*/
public Builder physicalConnectionLOAType(PhysicalConnectionLOAType physicalConnectionLOAType) {
this.physicalConnectionLOAType = physicalConnectionLOAType;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>318BB676-0A2B-43A0-9AD8-F1D34E93750F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribePhysicalConnectionLOAResponseBody build() {
return new DescribePhysicalConnectionLOAResponseBody(this);
}
}
/**
*
* {@link DescribePhysicalConnectionLOAResponseBody} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionLOAResponseBody</p>
*/
public static class PMInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PMCertificateNo")
private String PMCertificateNo;
@com.aliyun.core.annotation.NameInMap("PMCertificateType")
private String PMCertificateType;
@com.aliyun.core.annotation.NameInMap("PMContactInfo")
private String PMContactInfo;
@com.aliyun.core.annotation.NameInMap("PMGender")
private String PMGender;
@com.aliyun.core.annotation.NameInMap("PMName")
private String PMName;
private PMInfo(Builder builder) {
this.PMCertificateNo = builder.PMCertificateNo;
this.PMCertificateType = builder.PMCertificateType;
this.PMContactInfo = builder.PMContactInfo;
this.PMGender = builder.PMGender;
this.PMName = builder.PMName;
}
public static Builder builder() {
return new Builder();
}
public static PMInfo create() {
return builder().build();
}
/**
* @return PMCertificateNo
*/
public String getPMCertificateNo() {
return this.PMCertificateNo;
}
/**
* @return PMCertificateType
*/
public String getPMCertificateType() {
return this.PMCertificateType;
}
/**
* @return PMContactInfo
*/
public String getPMContactInfo() {
return this.PMContactInfo;
}
/**
* @return PMGender
*/
public String getPMGender() {
return this.PMGender;
}
/**
* @return PMName
*/
public String getPMName() {
return this.PMName;
}
public static final class Builder {
private String PMCertificateNo;
private String PMCertificateType;
private String PMContactInfo;
private String PMGender;
private String PMName;
private Builder() {
}
private Builder(PMInfo model) {
this.PMCertificateNo = model.PMCertificateNo;
this.PMCertificateType = model.PMCertificateType;
this.PMContactInfo = model.PMContactInfo;
this.PMGender = model.PMGender;
this.PMName = model.PMName;
}
/**
* <p>The identity document number of the construction worker.</p>
*
* <strong>example:</strong>
* <p>12345671****</p>
*/
public Builder PMCertificateNo(String PMCertificateNo) {
this.PMCertificateNo = PMCertificateNo;
return this;
}
/**
* <p>The identity document type of the construction worker. Valid values:</p>
* <ul>
* <li><strong>IDCard</strong></li>
* <li><strong>Passport</strong></li>
* <li><strong>Other</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Other</p>
*/
public Builder PMCertificateType(String PMCertificateType) {
this.PMCertificateType = PMCertificateType;
return this;
}
/**
* <p>The phone number of the construction worker.</p>
*
* <strong>example:</strong>
* <p>18910010****</p>
*/
public Builder PMContactInfo(String PMContactInfo) {
this.PMContactInfo = PMContactInfo;
return this;
}
/**
* <p>The gender of the construction worker. Valid values:</p>
* <ul>
* <li><strong>Male</strong></li>
* <li><strong>Female</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Male</p>
*/
public Builder PMGender(String PMGender) {
this.PMGender = PMGender;
return this;
}
/**
* <p>The name of the construction worker.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder PMName(String PMName) {
this.PMName = PMName;
return this;
}
public PMInfo build() {
return new PMInfo(this);
}
}
}
/**
*
* {@link DescribePhysicalConnectionLOAResponseBody} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionLOAResponseBody</p>
*/
public static class PhysicalConnectionLOATypePMInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PMInfo")
private java.util.List<PMInfo> PMInfo;
private PhysicalConnectionLOATypePMInfo(Builder builder) {
this.PMInfo = builder.PMInfo;
}
public static Builder builder() {
return new Builder();
}
public static PhysicalConnectionLOATypePMInfo create() {
return builder().build();
}
/**
* @return PMInfo
*/
public java.util.List<PMInfo> getPMInfo() {
return this.PMInfo;
}
public static final class Builder {
private java.util.List<PMInfo> PMInfo;
private Builder() {
}
private Builder(PhysicalConnectionLOATypePMInfo model) {
this.PMInfo = model.PMInfo;
}
/**
* PMInfo.
*/
public Builder PMInfo(java.util.List<PMInfo> PMInfo) {
this.PMInfo = PMInfo;
return this;
}
public PhysicalConnectionLOATypePMInfo build() {
return new PhysicalConnectionLOATypePMInfo(this);
}
}
}
/**
*
* {@link DescribePhysicalConnectionLOAResponseBody} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionLOAResponseBody</p>
*/
public static class PhysicalConnectionLOAType extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CompanyLocalizedName")
private String companyLocalizedName;
@com.aliyun.core.annotation.NameInMap("CompanyName")
private String companyName;
@com.aliyun.core.annotation.NameInMap("ConstructionTime")
private String constructionTime;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("LineCode")
private String lineCode;
@com.aliyun.core.annotation.NameInMap("LineLabel")
private String lineLabel;
@com.aliyun.core.annotation.NameInMap("LineSPContactInfo")
private String lineSPContactInfo;
@com.aliyun.core.annotation.NameInMap("LineServiceProvider")
private String lineServiceProvider;
@com.aliyun.core.annotation.NameInMap("LineType")
private String lineType;
@com.aliyun.core.annotation.NameInMap("LoaUrl")
private String loaUrl;
@com.aliyun.core.annotation.NameInMap("PMInfo")
private PhysicalConnectionLOATypePMInfo PMInfo;
@com.aliyun.core.annotation.NameInMap("SI")
private String si;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private PhysicalConnectionLOAType(Builder builder) {
this.companyLocalizedName = builder.companyLocalizedName;
this.companyName = builder.companyName;
this.constructionTime = builder.constructionTime;
this.instanceId = builder.instanceId;
this.lineCode = builder.lineCode;
this.lineLabel = builder.lineLabel;
this.lineSPContactInfo = builder.lineSPContactInfo;
this.lineServiceProvider = builder.lineServiceProvider;
this.lineType = builder.lineType;
this.loaUrl = builder.loaUrl;
this.PMInfo = builder.PMInfo;
this.si = builder.si;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static PhysicalConnectionLOAType create() {
return builder().build();
}
/**
* @return companyLocalizedName
*/
public String getCompanyLocalizedName() {
return this.companyLocalizedName;
}
/**
* @return companyName
*/
public String getCompanyName() {
return this.companyName;
}
/**
* @return constructionTime
*/
public String getConstructionTime() {
return this.constructionTime;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return lineCode
*/
public String getLineCode() {
return this.lineCode;
}
/**
* @return lineLabel
*/
public String getLineLabel() {
return this.lineLabel;
}
/**
* @return lineSPContactInfo
*/
public String getLineSPContactInfo() {
return this.lineSPContactInfo;
}
/**
* @return lineServiceProvider
*/
public String getLineServiceProvider() {
return this.lineServiceProvider;
}
/**
* @return lineType
*/
public String getLineType() {
return this.lineType;
}
/**
* @return loaUrl
*/
public String getLoaUrl() {
return this.loaUrl;
}
/**
* @return PMInfo
*/
public PhysicalConnectionLOATypePMInfo getPMInfo() {
return this.PMInfo;
}
/**
* @return si
*/
public String getSi() {
return this.si;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String companyLocalizedName;
private String companyName;
private String constructionTime;
private String instanceId;
private String lineCode;
private String lineLabel;
private String lineSPContactInfo;
private String lineServiceProvider;
private String lineType;
private String loaUrl;
private PhysicalConnectionLOATypePMInfo PMInfo;
private String si;
private String status;
private Builder() {
}
private Builder(PhysicalConnectionLOAType model) {
this.companyLocalizedName = model.companyLocalizedName;
this.companyName = model.companyName;
this.constructionTime = model.constructionTime;
this.instanceId = model.instanceId;
this.lineCode = model.lineCode;
this.lineLabel = model.lineLabel;
this.lineSPContactInfo = model.lineSPContactInfo;
this.lineServiceProvider = model.lineServiceProvider;
this.lineType = model.lineType;
this.loaUrl = model.loaUrl;
this.PMInfo = model.PMInfo;
this.si = model.si;
this.status = model.status;
}
/**
* <p>The name of the construction company.</p>
*
* <strong>example:</strong>
* <p>company</p>
*/
public Builder companyLocalizedName(String companyLocalizedName) {
this.companyLocalizedName = companyLocalizedName;
return this;
}
/**
* <p>The name of the organization that requires the Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>test1234</p>
*/
public Builder companyName(String companyName) {
this.companyName = companyName;
return this;
}
/**
* <p>The time when construction starts.</p>
*
* <strong>example:</strong>
* <p>2019-02-26T08:00:00Z</p>
*/
public Builder constructionTime(String constructionTime) {
this.constructionTime = constructionTime;
return this;
}
/**
* <p>The ID of the Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>pc-bp1ca4wca27****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The circuit code provided by the connectivity provider.</p>
*
* <strong>example:</strong>
* <p>aaa111</p>
*/
public Builder lineCode(String lineCode) {
this.lineCode = lineCode;
return this;
}
/**
* <p>The label of the cable in the data center.</p>
*
* <strong>example:</strong>
* <p>bbb222</p>
*/
public Builder lineLabel(String lineLabel) {
this.lineLabel = lineLabel;
return this;
}
/**
* <p>The contact information about line O&M.</p>
*
* <strong>example:</strong>
* <p>1388888****</p>
*/
public Builder lineSPContactInfo(String lineSPContactInfo) {
this.lineSPContactInfo = lineSPContactInfo;
return this;
}
/**
* <p>The ISP. Valid values:</p>
* <ul>
* <li><strong>China Telecom</strong></li>
* <li><strong>China Unicom</strong></li>
* <li><strong>China Mobile</strong></li>
* <li><strong>Other ISPs in China</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Other ISPs in China</p>
*/
public Builder lineServiceProvider(String lineServiceProvider) {
this.lineServiceProvider = lineServiceProvider;
return this;
}
/**
* <p>The type of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>MSTP</strong></li>
* <li><strong>MPLSVPN</strong></li>
* <li><strong>FIBRE</strong></li>
* <li><strong>Other</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>FIBRE</p>
*/
public Builder lineType(String lineType) {
this.lineType = lineType;
return this;
}
/**
* <p>The download URL of the LOA file.</p>
*
* <strong>example:</strong>
* <p>http://******</p>
*/
public Builder loaUrl(String loaUrl) {
this.loaUrl = loaUrl;
return this;
}
/**
* <p>The information about the construction workers.</p>
*/
public Builder PMInfo(PhysicalConnectionLOATypePMInfo PMInfo) {
this.PMInfo = PMInfo;
return this;
}
/**
* <p>The on-site construction company.</p>
*
* <strong>example:</strong>
* <p>ctcu</p>
*/
public Builder si(String si) {
this.si = si;
return this;
}
/**
* <p>The status of the LOA. Valid values:</p>
* <ul>
* <li><strong>Applying</strong>: The LOA is pending for approval.</li>
* <li><strong>Accept</strong>: The LOA is approved.</li>
* <li><strong>Available</strong>: The LOA is available.</li>
* <li><strong>Rejected</strong>: The LOA is rejected.</li>
* <li><strong>Completing</strong>: The Express Connect circuit is under construction.</li>
* <li><strong>Complete</strong>: The Express Connect circuit is installed.</li>
* <li><strong>Deleted</strong>: The LOA is deleted.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public PhysicalConnectionLOAType build() {
return new PhysicalConnectionLOAType(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribePhysicalConnectionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribePhysicalConnectionsRequest} extends {@link RequestModel}
*
* <p>DescribePhysicalConnectionsRequest</p>
*/
public class DescribePhysicalConnectionsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Filter")
private java.util.List<Filter> filter;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IncludeReservationData")
private Boolean includeReservationData;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
private DescribePhysicalConnectionsRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.filter = builder.filter;
this.includeReservationData = builder.includeReservationData;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static DescribePhysicalConnectionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return filter
*/
public java.util.List<Filter> getFilter() {
return this.filter;
}
/**
* @return includeReservationData
*/
public Boolean getIncludeReservationData() {
return this.includeReservationData;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
public static final class Builder extends Request.Builder<DescribePhysicalConnectionsRequest, Builder> {
private String clientToken;
private java.util.List<Filter> filter;
private Boolean includeReservationData;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tags> tags;
private Builder() {
super();
}
private Builder(DescribePhysicalConnectionsRequest request) {
super(request);
this.clientToken = request.clientToken;
this.filter = request.filter;
this.includeReservationData = request.includeReservationData;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tags = request.tags;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-001</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The filter keys.</p>
*/
public Builder filter(java.util.List<Filter> filter) {
this.putQueryParameter("Filter", filter);
this.filter = filter;
return this;
}
/**
* <p>Specifies whether to return the data about pending orders. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder includeReservationData(Boolean includeReservationData) {
this.putQueryParameter("IncludeReservationData", includeReservationData);
this.includeReservationData = includeReservationData;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Default value: <strong>10</strong>. Valid values: <strong>1</strong> to <strong>50</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the Express Connect circuit.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the Express Connect circuit belongs.</p>
*
* <strong>example:</strong>
* <p>rg-aek2yvwibxrmrkq</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The tag list.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
@Override
public DescribePhysicalConnectionsRequest build() {
return new DescribePhysicalConnectionsRequest(this);
}
}
/**
*
* {@link DescribePhysicalConnectionsRequest} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionsRequest</p>
*/
public static class Filter extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private java.util.List<String> value;
private Filter(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Filter create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public java.util.List<String> getValue() {
return this.value;
}
public static final class Builder {
private String key;
private java.util.List<String> value;
private Builder() {
}
private Builder(Filter model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of the filter. Valid values:</p>
* <ul>
* <li><p><strong>PhysicalConnectionId</strong>: the ID of the Express Connect circuit.</p>
* </li>
* <li><p><strong>AccessPointId</strong>: the ID of the access point.</p>
* </li>
* <li><p><strong>Type</strong>: the type of resource to which the Express Connect circuit is connected. You can set Type only to <strong>VPC</strong>.</p>
* </li>
* <li><p><strong>LineOperator</strong>: the connectivity provider of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>CT</strong>: China Telecom.</li>
* <li><strong>CU</strong>: China Unicom.</li>
* <li><strong>CM</strong>: China Mobile.</li>
* <li><strong>CO</strong>: other connectivity providers in the Chinese mainland.</li>
* <li><strong>Equinix</strong>: Equinix.</li>
* <li><strong>Other</strong>: other connectivity providers outside the Chinese mainland.</li>
* </ul>
* </li>
* <li><p><strong>Spec</strong>: the specification of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>1G and below</strong></li>
* <li><strong>10G</strong></li>
* <li><strong>40G</strong></li>
* <li><strong>100G</strong></li>
* </ul>
* </li>
* </ul>
* <blockquote>
* <p> By default, you cannot set the value to <strong>40G</strong> or <strong>100G</strong>. To use these values, you must first contact your account manager.</p>
* </blockquote>
* <ul>
* <li><p><strong>Status</strong>: the status of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>Initial</strong>: The application is under review.</li>
* <li><strong>Approved</strong>: The application is approved.</li>
* <li><strong>Allocating</strong>: The system is allocating resources.</li>
* <li><strong>Allocated</strong>: The Express Connect circuit is under construction.</li>
* <li><strong>Confirmed</strong>: The Express Connect circuit is pending for user confirmation.</li>
* <li><strong>Enabled</strong>: The Express Connect circuit is enabled.</li>
* <li><strong>Rejected</strong>: The application is rejected.</li>
* <li><strong>Canceled</strong>: The application is canceled.</li>
* <li><strong>Allocation Failed</strong>: The system failed to allocate resources.</li>
* <li><strong>Terminating</strong>: The Express Connect circuit is being disabled.</li>
* <li><strong>Terminated</strong>: The Express Connect circuit is disabled.</li>
* </ul>
* </li>
* <li><p><strong>Name</strong>: the name of the Express Connect circuit.</p>
* </li>
* <li><p><strong>ProductType</strong>: the type of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>VirtualPhysicalConnection</strong>: shared Express Connect circuit</li>
* <li><strong>PhysicalConnection</strong>: dedicated Express Connect circuit.</li>
* </ul>
* </li>
* </ul>
* <p>You can specify at most five filter conditions in each request. The logical relation among the filter conditions is <strong>AND</strong>. Therefore, an Express Connect circuit is returned only when all specified filter conditions are matched.</p>
*
* <strong>example:</strong>
* <p>Name</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The filter values.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder value(java.util.List<String> value) {
this.value = value;
return this;
}
public Filter build() {
return new Filter(this);
}
}
}
/**
*
* {@link DescribePhysicalConnectionsRequest} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionsRequest</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N to add to the resource. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p>
* <p>It can be up to 64 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>It can be up to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribePhysicalConnectionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribePhysicalConnectionsResponse} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionsResponse</p>
*/
public class DescribePhysicalConnectionsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribePhysicalConnectionsResponseBody body;
private DescribePhysicalConnectionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribePhysicalConnectionsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribePhysicalConnectionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribePhysicalConnectionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribePhysicalConnectionsResponseBody body);
@Override
DescribePhysicalConnectionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribePhysicalConnectionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribePhysicalConnectionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribePhysicalConnectionsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribePhysicalConnectionsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribePhysicalConnectionsResponse build() {
return new DescribePhysicalConnectionsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribePhysicalConnectionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribePhysicalConnectionsResponseBody} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionsResponseBody</p>
*/
public class DescribePhysicalConnectionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("PhysicalConnectionSet")
private PhysicalConnectionSet physicalConnectionSet;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribePhysicalConnectionsResponseBody(Builder builder) {
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.physicalConnectionSet = builder.physicalConnectionSet;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribePhysicalConnectionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return physicalConnectionSet
*/
public PhysicalConnectionSet getPhysicalConnectionSet() {
return this.physicalConnectionSet;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer pageNumber;
private Integer pageSize;
private PhysicalConnectionSet physicalConnectionSet;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribePhysicalConnectionsResponseBody model) {
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.physicalConnectionSet = model.physicalConnectionSet;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Default value: <strong>10</strong>. Valid values: <strong>1</strong> to <strong>50</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The list of Express Connect circuits.</p>
*/
public Builder physicalConnectionSet(PhysicalConnectionSet physicalConnectionSet) {
this.physicalConnectionSet = physicalConnectionSet;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0E6D0EC4-7C91-53E2-9F65-64BF713114B0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of returned entries.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribePhysicalConnectionsResponseBody build() {
return new DescribePhysicalConnectionsResponseBody(this);
}
}
/**
*
* {@link DescribePhysicalConnectionsResponseBody} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionsResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N added to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N added to the resource. You can specify up to 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribePhysicalConnectionsResponseBody} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionsResponseBody</p>
*/
public static class PhysicalConnectionTypeTags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("tags")
private java.util.List<Tags> tags;
private PhysicalConnectionTypeTags(Builder builder) {
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static PhysicalConnectionTypeTags create() {
return builder().build();
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
public static final class Builder {
private java.util.List<Tags> tags;
private Builder() {
}
private Builder(PhysicalConnectionTypeTags model) {
this.tags = model.tags;
}
/**
* tags.
*/
public Builder tags(java.util.List<Tags> tags) {
this.tags = tags;
return this;
}
public PhysicalConnectionTypeTags build() {
return new PhysicalConnectionTypeTags(this);
}
}
}
/**
*
* {@link DescribePhysicalConnectionsResponseBody} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionsResponseBody</p>
*/
public static class PhysicalConnectionType extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessPointId")
private String accessPointId;
@com.aliyun.core.annotation.NameInMap("AccessPointType")
private String accessPointType;
@com.aliyun.core.annotation.NameInMap("AdDetailLocation")
private String adDetailLocation;
@com.aliyun.core.annotation.NameInMap("AdLocation")
private String adLocation;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Long bandwidth;
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.NameInMap("ChargeType")
private String chargeType;
@com.aliyun.core.annotation.NameInMap("CircuitCode")
private String circuitCode;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EnabledTime")
private String enabledTime;
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.NameInMap("ExpectSpec")
private String expectSpec;
@com.aliyun.core.annotation.NameInMap("HasReservationData")
private String hasReservationData;
@com.aliyun.core.annotation.NameInMap("LineOperator")
private String lineOperator;
@com.aliyun.core.annotation.NameInMap("LoaStatus")
private String loaStatus;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("OrderMode")
private String orderMode;
@com.aliyun.core.annotation.NameInMap("ParentPhysicalConnectionAliUid")
private Long parentPhysicalConnectionAliUid;
@com.aliyun.core.annotation.NameInMap("ParentPhysicalConnectionId")
private String parentPhysicalConnectionId;
@com.aliyun.core.annotation.NameInMap("PeerLocation")
private String peerLocation;
@com.aliyun.core.annotation.NameInMap("PhysicalConnectionId")
private String physicalConnectionId;
@com.aliyun.core.annotation.NameInMap("PortNumber")
private String portNumber;
@com.aliyun.core.annotation.NameInMap("PortType")
private String portType;
@com.aliyun.core.annotation.NameInMap("ProductType")
private String productType;
@com.aliyun.core.annotation.NameInMap("QosId")
private String qosId;
@com.aliyun.core.annotation.NameInMap("RedundantPhysicalConnectionId")
private String redundantPhysicalConnectionId;
@com.aliyun.core.annotation.NameInMap("ReservationActiveTime")
private String reservationActiveTime;
@com.aliyun.core.annotation.NameInMap("ReservationInternetChargeType")
private String reservationInternetChargeType;
@com.aliyun.core.annotation.NameInMap("ReservationOrderType")
private String reservationOrderType;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Spec")
private String spec;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private PhysicalConnectionTypeTags tags;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("VirtualPhysicalConnectionCount")
private Integer virtualPhysicalConnectionCount;
@com.aliyun.core.annotation.NameInMap("VlanId")
private String vlanId;
@com.aliyun.core.annotation.NameInMap("VpconnStatus")
private String vpconnStatus;
private PhysicalConnectionType(Builder builder) {
this.accessPointId = builder.accessPointId;
this.accessPointType = builder.accessPointType;
this.adDetailLocation = builder.adDetailLocation;
this.adLocation = builder.adLocation;
this.bandwidth = builder.bandwidth;
this.businessStatus = builder.businessStatus;
this.chargeType = builder.chargeType;
this.circuitCode = builder.circuitCode;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.enabledTime = builder.enabledTime;
this.endTime = builder.endTime;
this.expectSpec = builder.expectSpec;
this.hasReservationData = builder.hasReservationData;
this.lineOperator = builder.lineOperator;
this.loaStatus = builder.loaStatus;
this.name = builder.name;
this.orderMode = builder.orderMode;
this.parentPhysicalConnectionAliUid = builder.parentPhysicalConnectionAliUid;
this.parentPhysicalConnectionId = builder.parentPhysicalConnectionId;
this.peerLocation = builder.peerLocation;
this.physicalConnectionId = builder.physicalConnectionId;
this.portNumber = builder.portNumber;
this.portType = builder.portType;
this.productType = builder.productType;
this.qosId = builder.qosId;
this.redundantPhysicalConnectionId = builder.redundantPhysicalConnectionId;
this.reservationActiveTime = builder.reservationActiveTime;
this.reservationInternetChargeType = builder.reservationInternetChargeType;
this.reservationOrderType = builder.reservationOrderType;
this.resourceGroupId = builder.resourceGroupId;
this.spec = builder.spec;
this.status = builder.status;
this.tags = builder.tags;
this.type = builder.type;
this.virtualPhysicalConnectionCount = builder.virtualPhysicalConnectionCount;
this.vlanId = builder.vlanId;
this.vpconnStatus = builder.vpconnStatus;
}
public static Builder builder() {
return new Builder();
}
public static PhysicalConnectionType create() {
return builder().build();
}
/**
* @return accessPointId
*/
public String getAccessPointId() {
return this.accessPointId;
}
/**
* @return accessPointType
*/
public String getAccessPointType() {
return this.accessPointType;
}
/**
* @return adDetailLocation
*/
public String getAdDetailLocation() {
return this.adDetailLocation;
}
/**
* @return adLocation
*/
public String getAdLocation() {
return this.adLocation;
}
/**
* @return bandwidth
*/
public Long getBandwidth() {
return this.bandwidth;
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return chargeType
*/
public String getChargeType() {
return this.chargeType;
}
/**
* @return circuitCode
*/
public String getCircuitCode() {
return this.circuitCode;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return enabledTime
*/
public String getEnabledTime() {
return this.enabledTime;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return expectSpec
*/
public String getExpectSpec() {
return this.expectSpec;
}
/**
* @return hasReservationData
*/
public String getHasReservationData() {
return this.hasReservationData;
}
/**
* @return lineOperator
*/
public String getLineOperator() {
return this.lineOperator;
}
/**
* @return loaStatus
*/
public String getLoaStatus() {
return this.loaStatus;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return orderMode
*/
public String getOrderMode() {
return this.orderMode;
}
/**
* @return parentPhysicalConnectionAliUid
*/
public Long getParentPhysicalConnectionAliUid() {
return this.parentPhysicalConnectionAliUid;
}
/**
* @return parentPhysicalConnectionId
*/
public String getParentPhysicalConnectionId() {
return this.parentPhysicalConnectionId;
}
/**
* @return peerLocation
*/
public String getPeerLocation() {
return this.peerLocation;
}
/**
* @return physicalConnectionId
*/
public String getPhysicalConnectionId() {
return this.physicalConnectionId;
}
/**
* @return portNumber
*/
public String getPortNumber() {
return this.portNumber;
}
/**
* @return portType
*/
public String getPortType() {
return this.portType;
}
/**
* @return productType
*/
public String getProductType() {
return this.productType;
}
/**
* @return qosId
*/
public String getQosId() {
return this.qosId;
}
/**
* @return redundantPhysicalConnectionId
*/
public String getRedundantPhysicalConnectionId() {
return this.redundantPhysicalConnectionId;
}
/**
* @return reservationActiveTime
*/
public String getReservationActiveTime() {
return this.reservationActiveTime;
}
/**
* @return reservationInternetChargeType
*/
public String getReservationInternetChargeType() {
return this.reservationInternetChargeType;
}
/**
* @return reservationOrderType
*/
public String getReservationOrderType() {
return this.reservationOrderType;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return spec
*/
public String getSpec() {
return this.spec;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public PhysicalConnectionTypeTags getTags() {
return this.tags;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return virtualPhysicalConnectionCount
*/
public Integer getVirtualPhysicalConnectionCount() {
return this.virtualPhysicalConnectionCount;
}
/**
* @return vlanId
*/
public String getVlanId() {
return this.vlanId;
}
/**
* @return vpconnStatus
*/
public String getVpconnStatus() {
return this.vpconnStatus;
}
public static final class Builder {
private String accessPointId;
private String accessPointType;
private String adDetailLocation;
private String adLocation;
private Long bandwidth;
private String businessStatus;
private String chargeType;
private String circuitCode;
private String creationTime;
private String description;
private String enabledTime;
private String endTime;
private String expectSpec;
private String hasReservationData;
private String lineOperator;
private String loaStatus;
private String name;
private String orderMode;
private Long parentPhysicalConnectionAliUid;
private String parentPhysicalConnectionId;
private String peerLocation;
private String physicalConnectionId;
private String portNumber;
private String portType;
private String productType;
private String qosId;
private String redundantPhysicalConnectionId;
private String reservationActiveTime;
private String reservationInternetChargeType;
private String reservationOrderType;
private String resourceGroupId;
private String spec;
private String status;
private PhysicalConnectionTypeTags tags;
private String type;
private Integer virtualPhysicalConnectionCount;
private String vlanId;
private String vpconnStatus;
private Builder() {
}
private Builder(PhysicalConnectionType model) {
this.accessPointId = model.accessPointId;
this.accessPointType = model.accessPointType;
this.adDetailLocation = model.adDetailLocation;
this.adLocation = model.adLocation;
this.bandwidth = model.bandwidth;
this.businessStatus = model.businessStatus;
this.chargeType = model.chargeType;
this.circuitCode = model.circuitCode;
this.creationTime = model.creationTime;
this.description = model.description;
this.enabledTime = model.enabledTime;
this.endTime = model.endTime;
this.expectSpec = model.expectSpec;
this.hasReservationData = model.hasReservationData;
this.lineOperator = model.lineOperator;
this.loaStatus = model.loaStatus;
this.name = model.name;
this.orderMode = model.orderMode;
this.parentPhysicalConnectionAliUid = model.parentPhysicalConnectionAliUid;
this.parentPhysicalConnectionId = model.parentPhysicalConnectionId;
this.peerLocation = model.peerLocation;
this.physicalConnectionId = model.physicalConnectionId;
this.portNumber = model.portNumber;
this.portType = model.portType;
this.productType = model.productType;
this.qosId = model.qosId;
this.redundantPhysicalConnectionId = model.redundantPhysicalConnectionId;
this.reservationActiveTime = model.reservationActiveTime;
this.reservationInternetChargeType = model.reservationInternetChargeType;
this.reservationOrderType = model.reservationOrderType;
this.resourceGroupId = model.resourceGroupId;
this.spec = model.spec;
this.status = model.status;
this.tags = model.tags;
this.type = model.type;
this.virtualPhysicalConnectionCount = model.virtualPhysicalConnectionCount;
this.vlanId = model.vlanId;
this.vpconnStatus = model.vpconnStatus;
}
/**
* <p>The ID of the Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>ap-cn-hangzhou-finance-yh-E</p>
*/
public Builder accessPointId(String accessPointId) {
this.accessPointId = accessPointId;
return this;
}
/**
* <p>The type of the access point.</p>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder accessPointType(String accessPointType) {
this.accessPointType = accessPointType;
return this;
}
/**
* <p>The information about the data center and rack.</p>
*
* <strong>example:</strong>
* <p>Position 30, Server Rack JXX, Booth ET135ET135-XX-2, Room XX, Building 10, XX Road, XX Town, XX District, Hangzhou, Zhejiang Province</p>
*/
public Builder adDetailLocation(String adDetailLocation) {
this.adDetailLocation = adDetailLocation;
return this;
}
/**
* <p>The location of the access point.</p>
*
* <strong>example:</strong>
* <p>Number 10, XX Road, XX Town, XX District, Hangzhou City, Zhejiang Province.</p>
*/
public Builder adLocation(String adLocation) {
this.adLocation = adLocation;
return this;
}
/**
* <p>The maximum bandwidth of the Express Connect circuit.</p>
* <p>Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder bandwidth(Long bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The status of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: enabled</li>
* <li><strong>FinancialLocked</strong>: locked due to overdue payments</li>
* <li><strong>SecurityLocked</strong>: locked for security reasons</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.businessStatus = businessStatus;
return this;
}
/**
* <p>The billing method of the Express Connect circuit.</p>
* <p>If <strong>Prepaid</strong> is returned, it indicates that the Express Connect circuit is billed on a subscription basis.</p>
*
* <strong>example:</strong>
* <p>Prepaid</p>
*/
public Builder chargeType(String chargeType) {
this.chargeType = chargeType;
return this;
}
/**
* <p>The circuit code of the Express Connect circuit. The circuit code is provided by the connectivity provider.</p>
*
* <strong>example:</strong>
* <p>longtel001</p>
*/
public Builder circuitCode(String circuitCode) {
this.circuitCode = circuitCode;
return this;
}
/**
* <p>The time when the Express Connect circuit was created.</p>
*
* <strong>example:</strong>
* <p>2021-08-24T07:30:58Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>desctest</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The time when the Express Connect circuit was enabled.</p>
*
* <strong>example:</strong>
* <p>2021-08-24T07:33:18Z</p>
*/
public Builder enabledTime(String enabledTime) {
this.enabledTime = enabledTime;
return this;
}
/**
* <p>The time when the Express Connect circuit expires.</p>
*
* <strong>example:</strong>
* <p>2022-04-24T16:00:00Z</p>
*/
public Builder endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The estimated maximum bandwidth of the shared Express Connect circuit. The estimated bandwidth takes effect after you complete the payment.</p>
* <p>Unit: <strong>M</strong> (Mbit/s) and <strong>G</strong> (Gbit/s).</p>
*
* <strong>example:</strong>
* <p>50M</p>
*/
public Builder expectSpec(String expectSpec) {
this.expectSpec = expectSpec;
return this;
}
/**
* <p>Indicates whether the data about pending orders is returned. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder hasReservationData(String hasReservationData) {
this.hasReservationData = hasReservationData;
return this;
}
/**
* <p>The connectivity provider of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>CT</strong>: China Telecom.</li>
* <li><strong>CU</strong>: China Unicom.</li>
* <li><strong>CM</strong>: China Mobile.</li>
* <li><strong>CO</strong>: other connectivity providers in the Chinese mainland.</li>
* <li><strong>Equinix</strong>: Equinix.</li>
* <li><strong>Other</strong>: other connectivity providers outside the Chinese mainland.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CT</p>
*/
public Builder lineOperator(String lineOperator) {
this.lineOperator = lineOperator;
return this;
}
/**
* <p>The status of the letter of authorization (LOA). Valid values:</p>
* <ul>
* <li><strong>Applying</strong>: The LOA is pending for approval.</li>
* <li><strong>Accept</strong>: The LOA is approved.</li>
* <li><strong>Available</strong>: The LOA is available.</li>
* <li><strong>Rejected</strong>: The LOA is rejected.</li>
* <li><strong>Completing</strong>: The Express Connect circuit is under construction.</li>
* <li><strong>Complete</strong>: The Express Connect circuit is installed.</li>
* <li><strong>Deleted</strong>: The LOA is deleted.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder loaStatus(String loaStatus) {
this.loaStatus = loaStatus;
return this;
}
/**
* <p>The name of the Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>nametest</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The payer for the hosted connection. Valid values:</p>
* <ul>
* <li><strong>PayByPhysicalConnectionOwner</strong>: The partner pays for the shared Express Connect circuit.</li>
* <li><strong>PayByVirtualPhysicalConnectionOwner</strong>: The tenant pays for the shared Express Connect circuit.</li>
* </ul>
*
* <strong>example:</strong>
* <p>PayByPhysicalConnectionOwner</p>
*/
public Builder orderMode(String orderMode) {
this.orderMode = orderMode;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the parent Express Connect circuit belongs.</p>
*
* <strong>example:</strong>
* <p>283117732402483989</p>
*/
public Builder parentPhysicalConnectionAliUid(Long parentPhysicalConnectionAliUid) {
this.parentPhysicalConnectionAliUid = parentPhysicalConnectionAliUid;
return this;
}
/**
* <p>The ID of the parent Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>pc-bp1ciz7ekd2grn1as****</p>
*/
public Builder parentPhysicalConnectionId(String parentPhysicalConnectionId) {
this.parentPhysicalConnectionId = parentPhysicalConnectionId;
return this;
}
/**
* <p>The geographical location of the data center.</p>
*
* <strong>example:</strong>
* <p>XX Number, XX Road, XX Town, XX District, Hangzhou City, Zhejiang Province.</p>
*/
public Builder peerLocation(String peerLocation) {
this.peerLocation = peerLocation;
return this;
}
/**
* <p>The ID of the Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>pc-bp1ciz7ekd2grn1as****</p>
*/
public Builder physicalConnectionId(String physicalConnectionId) {
this.physicalConnectionId = physicalConnectionId;
return this;
}
/**
* <p>The ID of the port on the access device.</p>
*
* <strong>example:</strong>
* <p>1/1/1</p>
*/
public Builder portNumber(String portNumber) {
this.portNumber = portNumber;
return this;
}
/**
* <p>The port type of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>100Base-T</strong>: 100 Mbit/s copper Ethernet port</li>
* <li><strong>1000Base-T</strong>: 1,000 Mbit/s copper Ethernet port</li>
* <li><strong>1000Base-LX</strong>: 1,000 Mbit/s single-mode optical port (10 km)</li>
* <li><strong>10GBase-T</strong>: 10,000 Mbit/s copper Ethernet port</li>
* <li><strong>10GBase-LR</strong>: 10,000 Mbit/s single-mode optical port (10 km)</li>
* <li><strong>40GBase-LR</strong>: 40,000 Mbit/s single-mode optical port</li>
* <li><strong>100GBase-LR</strong>: 100,000 Mbit/s single-mode optical port</li>
* </ul>
* <blockquote>
* <p>Whether 40GBase-LR and 100GBase-LR ports can be created depends on resource supplies. For more information, contact your account manager.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10GBase-LR</p>
*/
public Builder portType(String portType) {
this.portType = portType;
return this;
}
/**
* <p>The type of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>VirtualPhysicalConnection</strong>: shared Express Connect circuit</li>
* <li><strong>PhysicalConnection</strong>: dedicated Express Connect circuit</li>
* </ul>
*
* <strong>example:</strong>
* <p>PhysicalConnection</p>
*/
public Builder productType(String productType) {
this.productType = productType;
return this;
}
/**
* <p>The ID of the QoS policy.</p>
*
* <strong>example:</strong>
* <p>qos-bp10s3szn8rgnxuw7****</p>
*/
public Builder qosId(String qosId) {
this.qosId = qosId;
return this;
}
/**
* <p>The ID of the standby Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>pc-119mfjzm****</p>
*/
public Builder redundantPhysicalConnectionId(String redundantPhysicalConnectionId) {
this.redundantPhysicalConnectionId = redundantPhysicalConnectionId;
return this;
}
/**
* <p>The time when the pending order takes effect.</p>
*
* <strong>example:</strong>
* <p>2022-02-25T11:01:04Z</p>
*/
public Builder reservationActiveTime(String reservationActiveTime) {
this.reservationActiveTime = reservationActiveTime;
return this;
}
/**
* <p>The billing method of the pending order.</p>
* <p>If <strong>PayByBandwidth</strong> is returned, it indicates that the Express Connect circuit is billed on a pay-by-bandwidth basis.</p>
*
* <strong>example:</strong>
* <p>PayByBandwidth</p>
*/
public Builder reservationInternetChargeType(String reservationInternetChargeType) {
this.reservationInternetChargeType = reservationInternetChargeType;
return this;
}
/**
* <p>The type of the pending order.</p>
* <p>If the value is <strong>RENEW</strong>, it indicates that the order is placed for service renewal.</p>
*
* <strong>example:</strong>
* <p>RENEW</p>
*/
public Builder reservationOrderType(String reservationOrderType) {
this.reservationOrderType = reservationOrderType;
return this;
}
/**
* <p>The resource group ID to which the instance belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmwu3k52prgdi</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The specification of the Express Connect circuit.</p>
* <p>Unit: <strong>G</strong> (Gbit/s).</p>
*
* <strong>example:</strong>
* <p>10G</p>
*/
public Builder spec(String spec) {
this.spec = spec;
return this;
}
/**
* <p>The status of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>Initial</strong></li>
* <li><strong>Approved</strong></li>
* <li><strong>Allocating</strong></li>
* <li><strong>Allocated</strong></li>
* <li><strong>Confirmed</strong></li>
* <li><strong>Enabled</strong></li>
* <li><strong>Rejected</strong></li>
* <li><strong>Canceled</strong></li>
* <li><strong>Allocation Failed</strong></li>
* <li><strong>Terminating</strong></li>
* <li><strong>Terminated</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Enabled</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The tags that are added to the cluster.</p>
*/
public Builder tags(PhysicalConnectionTypeTags tags) {
this.tags = tags;
return this;
}
/**
* <p>The type of resource to which the Express Connect circuit is connected. Only <strong>VPC</strong> may be returned.</p>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The number of Express Connect circuits that are established.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder virtualPhysicalConnectionCount(Integer virtualPhysicalConnectionCount) {
this.virtualPhysicalConnectionCount = virtualPhysicalConnectionCount;
return this;
}
/**
* <p>The VLAN ID of the shared Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder vlanId(String vlanId) {
this.vlanId = vlanId;
return this;
}
/**
* <p>The status of the shared Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>Confirmed</strong></li>
* <li><strong>UnConfirmed</strong></li>
* <li><strong>Deleted</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Confirmed</p>
*/
public Builder vpconnStatus(String vpconnStatus) {
this.vpconnStatus = vpconnStatus;
return this;
}
public PhysicalConnectionType build() {
return new PhysicalConnectionType(this);
}
}
}
/**
*
* {@link DescribePhysicalConnectionsResponseBody} extends {@link TeaModel}
*
* <p>DescribePhysicalConnectionsResponseBody</p>
*/
public static class PhysicalConnectionSet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PhysicalConnectionType")
private java.util.List<PhysicalConnectionType> physicalConnectionType;
private PhysicalConnectionSet(Builder builder) {
this.physicalConnectionType = builder.physicalConnectionType;
}
public static Builder builder() {
return new Builder();
}
public static PhysicalConnectionSet create() {
return builder().build();
}
/**
* @return physicalConnectionType
*/
public java.util.List<PhysicalConnectionType> getPhysicalConnectionType() {
return this.physicalConnectionType;
}
public static final class Builder {
private java.util.List<PhysicalConnectionType> physicalConnectionType;
private Builder() {
}
private Builder(PhysicalConnectionSet model) {
this.physicalConnectionType = model.physicalConnectionType;
}
/**
* PhysicalConnectionType.
*/
public Builder physicalConnectionType(java.util.List<PhysicalConnectionType> physicalConnectionType) {
this.physicalConnectionType = physicalConnectionType;
return this;
}
public PhysicalConnectionSet build() {
return new PhysicalConnectionSet(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribePublicIpAddressRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribePublicIpAddressRequest} extends {@link RequestModel}
*
* <p>DescribePublicIpAddressRequest</p>
*/
public class DescribePublicIpAddressRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribePublicIpAddressRequest(Builder builder) {
super(builder);
this.ipVersion = builder.ipVersion;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePublicIpAddressRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribePublicIpAddressRequest, Builder> {
private String ipVersion;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribePublicIpAddressRequest request) {
super(request);
this.ipVersion = request.ipVersion;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The IP version. Valid values:</p>
* <ul>
* <li><strong>IPv4</strong> (default)</li>
* <li><strong>IPv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.putQueryParameter("IpVersion", ipVersion);
this.ipVersion = ipVersion;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
* <p>Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>100</strong>.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region that you want to query. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribePublicIpAddressRequest build() {
return new DescribePublicIpAddressRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribePublicIpAddressResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribePublicIpAddressResponse} extends {@link TeaModel}
*
* <p>DescribePublicIpAddressResponse</p>
*/
public class DescribePublicIpAddressResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribePublicIpAddressResponseBody body;
private DescribePublicIpAddressResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribePublicIpAddressResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribePublicIpAddressResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribePublicIpAddressResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribePublicIpAddressResponseBody body);
@Override
DescribePublicIpAddressResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribePublicIpAddressResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribePublicIpAddressResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribePublicIpAddressResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribePublicIpAddressResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribePublicIpAddressResponse build() {
return new DescribePublicIpAddressResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribePublicIpAddressResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribePublicIpAddressResponseBody} extends {@link TeaModel}
*
* <p>DescribePublicIpAddressResponseBody</p>
*/
public class DescribePublicIpAddressResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("PublicIpAddress")
private java.util.List<String> publicIpAddress;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribePublicIpAddressResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.publicIpAddress = builder.publicIpAddress;
this.regionId = builder.regionId;
this.requestId = builder.requestId;
this.success = builder.success;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribePublicIpAddressResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return publicIpAddress
*/
public java.util.List<String> getPublicIpAddress() {
return this.publicIpAddress;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private String code;
private String message;
private Integer pageNumber;
private Integer pageSize;
private java.util.List<String> publicIpAddress;
private String regionId;
private String requestId;
private Boolean success;
private Integer totalCount;
private Builder() {
}
private Builder(DescribePublicIpAddressResponseBody model) {
this.code = model.code;
this.message = model.message;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.publicIpAddress = model.publicIpAddress;
this.regionId = model.regionId;
this.requestId = model.requestId;
this.success = model.success;
this.totalCount = model.totalCount;
}
/**
* <p>The HTTP status codes returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The response messages.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The range of the public IP addresses of the VPC in the region.</p>
*
* <strong>example:</strong>
* <p>110.11.1.0/24</p>
*/
public Builder publicIpAddress(java.util.List<String> publicIpAddress) {
this.publicIpAddress = publicIpAddress;
return this;
}
/**
* <p>The ID of the region to which the public IP addresses belong.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the call is successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The number of returned entries.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribePublicIpAddressResponseBody build() {
return new DescribePublicIpAddressResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRegionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeRegionsRequest} extends {@link RequestModel}
*
* <p>DescribeRegionsRequest</p>
*/
public class DescribeRegionsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AcceptLanguage")
private String acceptLanguage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProductType")
private String productType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeRegionsRequest(Builder builder) {
super(builder);
this.acceptLanguage = builder.acceptLanguage;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.productType = builder.productType;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRegionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return acceptLanguage
*/
public String getAcceptLanguage() {
return this.acceptLanguage;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return productType
*/
public String getProductType() {
return this.productType;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeRegionsRequest, Builder> {
private String acceptLanguage;
private String ownerAccount;
private Long ownerId;
private String productType;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeRegionsRequest request) {
super(request);
this.acceptLanguage = request.acceptLanguage;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.productType = request.productType;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The language of the response. Valid values:</p>
* <ul>
* <li><strong>zh-CN</strong> (default): Chinese</li>
* <li><strong>en-US</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh-CN</p>
*/
public Builder acceptLanguage(String acceptLanguage) {
this.putQueryParameter("AcceptLanguage", acceptLanguage);
this.acceptLanguage = acceptLanguage;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The service type. Default value: <strong>VPC</strong>.</p>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder productType(String productType) {
this.putQueryParameter("ProductType", productType);
this.productType = productType;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeRegionsRequest build() {
return new DescribeRegionsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRegionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeRegionsResponse} extends {@link TeaModel}
*
* <p>DescribeRegionsResponse</p>
*/
public class DescribeRegionsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRegionsResponseBody body;
private DescribeRegionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRegionsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRegionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRegionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRegionsResponseBody body);
@Override
DescribeRegionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRegionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRegionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRegionsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRegionsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRegionsResponse build() {
return new DescribeRegionsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRegionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public class DescribeRegionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Regions")
private Regions regions;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeRegionsResponseBody(Builder builder) {
this.regions = builder.regions;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRegionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regions
*/
public Regions getRegions() {
return this.regions;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Regions regions;
private String requestId;
private Builder() {
}
private Builder(DescribeRegionsResponseBody model) {
this.regions = model.regions;
this.requestId = model.requestId;
}
/**
* <p>The list of regions.</p>
*/
public Builder regions(Regions regions) {
this.regions = regions;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeRegionsResponseBody build() {
return new DescribeRegionsResponseBody(this);
}
}
/**
*
* {@link DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public static class Region extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("RegionEndpoint")
private String regionEndpoint;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private Region(Builder builder) {
this.localName = builder.localName;
this.regionEndpoint = builder.regionEndpoint;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static Region create() {
return builder().build();
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return regionEndpoint
*/
public String getRegionEndpoint() {
return this.regionEndpoint;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String localName;
private String regionEndpoint;
private String regionId;
private Builder() {
}
private Builder(Region model) {
this.localName = model.localName;
this.regionEndpoint = model.regionEndpoint;
this.regionId = model.regionId;
}
/**
* <p>The name of the region.</p>
*
* <strong>example:</strong>
* <p>China (Qingdao)</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The endpoint of the region service.</p>
*
* <strong>example:</strong>
* <p>vpc.aliyuncs.com</p>
*/
public Builder regionEndpoint(String regionEndpoint) {
this.regionEndpoint = regionEndpoint;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-qingdao</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public Region build() {
return new Region(this);
}
}
}
/**
*
* {@link DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public static class Regions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Region")
private java.util.List<Region> region;
private Regions(Builder builder) {
this.region = builder.region;
}
public static Builder builder() {
return new Builder();
}
public static Regions create() {
return builder().build();
}
/**
* @return region
*/
public java.util.List<Region> getRegion() {
return this.region;
}
public static final class Builder {
private java.util.List<Region> region;
private Builder() {
}
private Builder(Regions model) {
this.region = model.region;
}
/**
* Region.
*/
public Builder region(java.util.List<Region> region) {
this.region = region;
return this;
}
public Regions build() {
return new Regions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouteEntryListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeRouteEntryListRequest} extends {@link RequestModel}
*
* <p>DescribeRouteEntryListRequest</p>
*/
public class DescribeRouteEntryListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DestCidrBlockList")
private java.util.List<String> destCidrBlockList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DestinationCidrBlock")
private String destinationCidrBlock;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResult")
@com.aliyun.core.annotation.Validation(maximum = 500)
private Integer maxResult;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHopId")
private String nextHopId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHopType")
private String nextHopType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteEntryId")
private String routeEntryId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteEntryName")
private String routeEntryName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteEntryType")
private String routeEntryType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableId")
@com.aliyun.core.annotation.Validation(required = true)
private String routeTableId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceType")
private String serviceType;
private DescribeRouteEntryListRequest(Builder builder) {
super(builder);
this.destCidrBlockList = builder.destCidrBlockList;
this.destinationCidrBlock = builder.destinationCidrBlock;
this.ipVersion = builder.ipVersion;
this.maxResult = builder.maxResult;
this.nextHopId = builder.nextHopId;
this.nextHopType = builder.nextHopType;
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeEntryId = builder.routeEntryId;
this.routeEntryName = builder.routeEntryName;
this.routeEntryType = builder.routeEntryType;
this.routeTableId = builder.routeTableId;
this.serviceType = builder.serviceType;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRouteEntryListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return destCidrBlockList
*/
public java.util.List<String> getDestCidrBlockList() {
return this.destCidrBlockList;
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return maxResult
*/
public Integer getMaxResult() {
return this.maxResult;
}
/**
* @return nextHopId
*/
public String getNextHopId() {
return this.nextHopId;
}
/**
* @return nextHopType
*/
public String getNextHopType() {
return this.nextHopType;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return routeEntryId
*/
public String getRouteEntryId() {
return this.routeEntryId;
}
/**
* @return routeEntryName
*/
public String getRouteEntryName() {
return this.routeEntryName;
}
/**
* @return routeEntryType
*/
public String getRouteEntryType() {
return this.routeEntryType;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
/**
* @return serviceType
*/
public String getServiceType() {
return this.serviceType;
}
public static final class Builder extends Request.Builder<DescribeRouteEntryListRequest, Builder> {
private java.util.List<String> destCidrBlockList;
private String destinationCidrBlock;
private String ipVersion;
private Integer maxResult;
private String nextHopId;
private String nextHopType;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeEntryId;
private String routeEntryName;
private String routeEntryType;
private String routeTableId;
private String serviceType;
private Builder() {
super();
}
private Builder(DescribeRouteEntryListRequest request) {
super(request);
this.destCidrBlockList = request.destCidrBlockList;
this.destinationCidrBlock = request.destinationCidrBlock;
this.ipVersion = request.ipVersion;
this.maxResult = request.maxResult;
this.nextHopId = request.nextHopId;
this.nextHopType = request.nextHopType;
this.nextToken = request.nextToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeEntryId = request.routeEntryId;
this.routeEntryName = request.routeEntryName;
this.routeEntryType = request.routeEntryType;
this.routeTableId = request.routeTableId;
this.serviceType = request.serviceType;
}
/**
* <p>The destination CIDR blocks of the routes.</p>
*/
public Builder destCidrBlockList(java.util.List<String> destCidrBlockList) {
this.putQueryParameter("DestCidrBlockList", destCidrBlockList);
this.destCidrBlockList = destCidrBlockList;
return this;
}
/**
* <p>The destination CIDR block of the route. IPv4 and IPv6 CIDR blocks are supported.</p>
*
* <strong>example:</strong>
* <p>192.168.2.0/24</p>
*/
public Builder destinationCidrBlock(String destinationCidrBlock) {
this.putQueryParameter("DestinationCidrBlock", destinationCidrBlock);
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
/**
* <p>The IP version. Valid values:</p>
* <ul>
* <li><strong>IPv4</strong></li>
* <li><strong>IPv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.putQueryParameter("IpVersion", ipVersion);
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The number of entries per page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder maxResult(Integer maxResult) {
this.putQueryParameter("MaxResult", maxResult);
this.maxResult = maxResult;
return this;
}
/**
* <p>The ID of the next hop.</p>
*
* <strong>example:</strong>
* <p>vpn-bp10zyaph5cc8b7c7****</p>
*/
public Builder nextHopId(String nextHopId) {
this.putQueryParameter("NextHopId", nextHopId);
this.nextHopId = nextHopId;
return this;
}
/**
* <p>The next hop type. Valid values:</p>
* <ul>
* <li><strong>Instance</strong>: an Elastic Compute Service (ECS) instance. This is the default value.</li>
* <li><strong>HaVip</strong>: a high-availability virtual IP address (HaVip).</li>
* <li><strong>VpnGateway</strong>: a VPN gateway.</li>
* <li><strong>NatGateway</strong>: a NAT gateway.</li>
* <li><strong>NetworkInterface</strong>: a secondary elastic network interface (ENI).</li>
* <li><strong>RouterInterface</strong>: a router interface.</li>
* <li><strong>IPv6Gateway</strong>: an IPv6 gateway.</li>
* <li><strong>Attachment</strong>: a transit router.</li>
* <li><strong>Ipv4Gateway</strong>: an IPv4 gateway.</li>
* <li><strong>GatewayEndpoint</strong>: a gateway endpoint.</li>
* <li><strong>CenBasic</strong>: CEN does not support transit routers.</li>
* <li><strong>Ecr</strong>: Express Connect Router (ECR).</li>
* </ul>
*
* <strong>example:</strong>
* <p>Instance</p>
*/
public Builder nextHopType(String nextHopType) {
this.putQueryParameter("NextHopType", nextHopType);
this.nextHopType = nextHopType;
return this;
}
/**
* <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p>
* <ul>
* <li>You do not need to specify this parameter for the first request.</li>
* <li>You must specify the token that is obtained from the previous query as the value of NextToken.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the route table.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the route that you want to query.</p>
*
* <strong>example:</strong>
* <p>rte-bp1mnnr2al0naomnp****</p>
*/
public Builder routeEntryId(String routeEntryId) {
this.putQueryParameter("RouteEntryId", routeEntryId);
this.routeEntryId = routeEntryId;
return this;
}
/**
* <p>The name of the route entry.</p>
* <p>The name must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder routeEntryName(String routeEntryName) {
this.putQueryParameter("RouteEntryName", routeEntryName);
this.routeEntryName = routeEntryName;
return this;
}
/**
* <p>The route type. Valid values:</p>
* <ul>
* <li><strong>Custom</strong>: custom routes.</li>
* <li><strong>System</strong>: system routes.</li>
* <li><strong>BGP</strong>: BGP routes.</li>
* <li><strong>CEN</strong>: Cloud Enterprise Network (CEN) routes.</li>
* <li><strong>ECR</strong>: Express Connect Router (ECR) routes.</li>
* </ul>
*
* <strong>example:</strong>
* <p>System</p>
*/
public Builder routeEntryType(String routeEntryType) {
this.putQueryParameter("RouteEntryType", routeEntryType);
this.routeEntryType = routeEntryType;
return this;
}
/**
* <p>The ID of the route table that you want to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vtb-bp1r9pvl4xen8s9ju****</p>
*/
public Builder routeTableId(String routeTableId) {
this.putQueryParameter("RouteTableId", routeTableId);
this.routeTableId = routeTableId;
return this;
}
/**
* <p>Specifies whether to host the route. If the parameter is empty, the route is not hosted.</p>
* <p>Set the value to <strong>TR</strong>, which specifies that the route is hosted by a transit router.</p>
*
* <strong>example:</strong>
* <p>TR</p>
*/
public Builder serviceType(String serviceType) {
this.putQueryParameter("ServiceType", serviceType);
this.serviceType = serviceType;
return this;
}
@Override
public DescribeRouteEntryListRequest build() {
return new DescribeRouteEntryListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouteEntryListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeRouteEntryListResponse} extends {@link TeaModel}
*
* <p>DescribeRouteEntryListResponse</p>
*/
public class DescribeRouteEntryListResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRouteEntryListResponseBody body;
private DescribeRouteEntryListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRouteEntryListResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRouteEntryListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRouteEntryListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRouteEntryListResponseBody body);
@Override
DescribeRouteEntryListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRouteEntryListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRouteEntryListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRouteEntryListResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRouteEntryListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRouteEntryListResponse build() {
return new DescribeRouteEntryListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouteEntryListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeRouteEntryListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteEntryListResponseBody</p>
*/
public class DescribeRouteEntryListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RouteEntrys")
private RouteEntrys routeEntrys;
private DescribeRouteEntryListResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.routeEntrys = builder.routeEntrys;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRouteEntryListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return routeEntrys
*/
public RouteEntrys getRouteEntrys() {
return this.routeEntrys;
}
public static final class Builder {
private String nextToken;
private String requestId;
private RouteEntrys routeEntrys;
private Builder() {
}
private Builder(DescribeRouteEntryListResponseBody model) {
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.routeEntrys = model.routeEntrys;
}
/**
* <p>A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:</p>
* <ul>
* <li>If no value is returned for <strong>NextToken</strong>, no next queries are sent.</li>
* <li>If a value is returned for <strong>NextToken</strong>, the value is used to retrieve a new page of results.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>14A07460-EBE7-47CA-9757-12CC4761D47A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the routes.</p>
*/
public Builder routeEntrys(RouteEntrys routeEntrys) {
this.routeEntrys = routeEntrys;
return this;
}
public DescribeRouteEntryListResponseBody build() {
return new DescribeRouteEntryListResponseBody(this);
}
}
/**
*
* {@link DescribeRouteEntryListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteEntryListResponseBody</p>
*/
public static class NextHopRelatedInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private NextHopRelatedInfo(Builder builder) {
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static NextHopRelatedInfo create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String instanceId;
private String instanceType;
private String regionId;
private Builder() {
}
private Builder(NextHopRelatedInfo model) {
this.instanceId = model.instanceId;
this.instanceType = model.instanceType;
this.regionId = model.regionId;
}
/**
* <p>The ID of the instance that is associated with the next hop.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1t36rn9l53iwbsf****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The type of the instance associated with the next hop. Valid values:</p>
* <ul>
* <li><strong>VPC</strong>: a VPC</li>
* <li><strong>VBR</strong>: a VBR</li>
* <li><strong>PCONN</strong>: an Express Connect circuit</li>
* </ul>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* <p>The region ID of the instance associated with the next hop. Valid values:</p>
*
* <strong>example:</strong>
* <p>ch-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public NextHopRelatedInfo build() {
return new NextHopRelatedInfo(this);
}
}
}
/**
*
* {@link DescribeRouteEntryListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteEntryListResponseBody</p>
*/
public static class NextHop extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Enabled")
private Integer enabled;
@com.aliyun.core.annotation.NameInMap("NextHopId")
private String nextHopId;
@com.aliyun.core.annotation.NameInMap("NextHopRegionId")
private String nextHopRegionId;
@com.aliyun.core.annotation.NameInMap("NextHopRelatedInfo")
private NextHopRelatedInfo nextHopRelatedInfo;
@com.aliyun.core.annotation.NameInMap("NextHopType")
private String nextHopType;
@com.aliyun.core.annotation.NameInMap("Weight")
private Integer weight;
private NextHop(Builder builder) {
this.enabled = builder.enabled;
this.nextHopId = builder.nextHopId;
this.nextHopRegionId = builder.nextHopRegionId;
this.nextHopRelatedInfo = builder.nextHopRelatedInfo;
this.nextHopType = builder.nextHopType;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static NextHop create() {
return builder().build();
}
/**
* @return enabled
*/
public Integer getEnabled() {
return this.enabled;
}
/**
* @return nextHopId
*/
public String getNextHopId() {
return this.nextHopId;
}
/**
* @return nextHopRegionId
*/
public String getNextHopRegionId() {
return this.nextHopRegionId;
}
/**
* @return nextHopRelatedInfo
*/
public NextHopRelatedInfo getNextHopRelatedInfo() {
return this.nextHopRelatedInfo;
}
/**
* @return nextHopType
*/
public String getNextHopType() {
return this.nextHopType;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder {
private Integer enabled;
private String nextHopId;
private String nextHopRegionId;
private NextHopRelatedInfo nextHopRelatedInfo;
private String nextHopType;
private Integer weight;
private Builder() {
}
private Builder(NextHop model) {
this.enabled = model.enabled;
this.nextHopId = model.nextHopId;
this.nextHopRegionId = model.nextHopRegionId;
this.nextHopRelatedInfo = model.nextHopRelatedInfo;
this.nextHopType = model.nextHopType;
this.weight = model.weight;
}
/**
* <p>Indicates whether the route is available. Valid values:</p>
* <ul>
* <li><strong>0</strong>: unavailable</li>
* <li><strong>1</strong>: available</li>
* </ul>
* <blockquote>
* <p> This parameter is returned when the next hop type is set to <strong>RouterInterface</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder enabled(Integer enabled) {
this.enabled = enabled;
return this;
}
/**
* <p>The ID of the next hop.</p>
*
* <strong>example:</strong>
* <p>vpn-bp10zyaph5cc8b7c7****</p>
*/
public Builder nextHopId(String nextHopId) {
this.nextHopId = nextHopId;
return this;
}
/**
* <p>The ID of the region where the next hop is deployed.</p>
* <blockquote>
* <p> This parameter is returned when the next hop type is set to <strong>RouterInterface</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder nextHopRegionId(String nextHopRegionId) {
this.nextHopRegionId = nextHopRegionId;
return this;
}
/**
* <p>The information about the next hop.</p>
*/
public Builder nextHopRelatedInfo(NextHopRelatedInfo nextHopRelatedInfo) {
this.nextHopRelatedInfo = nextHopRelatedInfo;
return this;
}
/**
* <p>The next hop type. Valid values:</p>
* <ul>
* <li><strong>Instance</strong>: an ECS instance.</li>
* <li><strong>HaVip</strong>: an HaVip.</li>
* <li><strong>VpnGateway</strong>: a VPN gateway.</li>
* <li><strong>NatGateway</strong>: a NAT gateway.</li>
* <li><strong>NetworkInterface</strong>: a secondary ENI.</li>
* <li><strong>RouterInterface</strong>: a router interface.</li>
* <li><strong>IPv6Gateway</strong>: an IPv6 gateway.</li>
* <li><strong>Attachment</strong>: a transit router.</li>
* <li><strong>Ipv4Gateway</strong>: an IPv4 gateway.</li>
* <li><strong>GatewayEndpoint</strong>: a gateway endpoint.</li>
* <li><strong>CenBasic</strong>: CEN does not support transit routers.</li>
* <li><strong>Ecr</strong>: ECR.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Instance</p>
*/
public Builder nextHopType(String nextHopType) {
this.nextHopType = nextHopType;
return this;
}
/**
* <p>The weight of the route.</p>
* <blockquote>
* <p> This parameter is returned when the next hop type is set to <strong>RouterInterface</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder weight(Integer weight) {
this.weight = weight;
return this;
}
public NextHop build() {
return new NextHop(this);
}
}
}
/**
*
* {@link DescribeRouteEntryListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteEntryListResponseBody</p>
*/
public static class NextHops extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NextHop")
private java.util.List<NextHop> nextHop;
private NextHops(Builder builder) {
this.nextHop = builder.nextHop;
}
public static Builder builder() {
return new Builder();
}
public static NextHops create() {
return builder().build();
}
/**
* @return nextHop
*/
public java.util.List<NextHop> getNextHop() {
return this.nextHop;
}
public static final class Builder {
private java.util.List<NextHop> nextHop;
private Builder() {
}
private Builder(NextHops model) {
this.nextHop = model.nextHop;
}
/**
* NextHop.
*/
public Builder nextHop(java.util.List<NextHop> nextHop) {
this.nextHop = nextHop;
return this;
}
public NextHops build() {
return new NextHops(this);
}
}
}
/**
*
* {@link DescribeRouteEntryListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteEntryListResponseBody</p>
*/
public static class RouteEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DestinationCidrBlock")
private String destinationCidrBlock;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private String gmtModified;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("NextHops")
private NextHops nextHops;
@com.aliyun.core.annotation.NameInMap("Origin")
private String origin;
@com.aliyun.core.annotation.NameInMap("RouteEntryId")
private String routeEntryId;
@com.aliyun.core.annotation.NameInMap("RouteEntryName")
private String routeEntryName;
@com.aliyun.core.annotation.NameInMap("RouteTableId")
private String routeTableId;
@com.aliyun.core.annotation.NameInMap("ServiceType")
private String serviceType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private RouteEntry(Builder builder) {
this.description = builder.description;
this.destinationCidrBlock = builder.destinationCidrBlock;
this.gmtModified = builder.gmtModified;
this.ipVersion = builder.ipVersion;
this.nextHops = builder.nextHops;
this.origin = builder.origin;
this.routeEntryId = builder.routeEntryId;
this.routeEntryName = builder.routeEntryName;
this.routeTableId = builder.routeTableId;
this.serviceType = builder.serviceType;
this.status = builder.status;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static RouteEntry create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return gmtModified
*/
public String getGmtModified() {
return this.gmtModified;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return nextHops
*/
public NextHops getNextHops() {
return this.nextHops;
}
/**
* @return origin
*/
public String getOrigin() {
return this.origin;
}
/**
* @return routeEntryId
*/
public String getRouteEntryId() {
return this.routeEntryId;
}
/**
* @return routeEntryName
*/
public String getRouteEntryName() {
return this.routeEntryName;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
/**
* @return serviceType
*/
public String getServiceType() {
return this.serviceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String description;
private String destinationCidrBlock;
private String gmtModified;
private String ipVersion;
private NextHops nextHops;
private String origin;
private String routeEntryId;
private String routeEntryName;
private String routeTableId;
private String serviceType;
private String status;
private String type;
private Builder() {
}
private Builder(RouteEntry model) {
this.description = model.description;
this.destinationCidrBlock = model.destinationCidrBlock;
this.gmtModified = model.gmtModified;
this.ipVersion = model.ipVersion;
this.nextHops = model.nextHops;
this.origin = model.origin;
this.routeEntryId = model.routeEntryId;
this.routeEntryName = model.routeEntryName;
this.routeTableId = model.routeTableId;
this.serviceType = model.serviceType;
this.status = model.status;
this.type = model.type;
}
/**
* <p>The description of the route.</p>
*
* <strong>example:</strong>
* <p>RouteEntryDescription</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The destination CIDR block of the route.</p>
*
* <strong>example:</strong>
* <p>192.168.2.0/24</p>
*/
public Builder destinationCidrBlock(String destinationCidrBlock) {
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
/**
* <p>The time when the route was modified. The time follows the ISO 8601 standard in the <code>YYYY-MM-DDThh:mm:ssZ</code> format. The time is displayed in UTC.</p>
* <p>Use the UTC time format: yyyy-MM-ddTHH:mmZ</p>
*
* <strong>example:</strong>
* <p>2022-05-09T03:00:07Z</p>
*/
public Builder gmtModified(String gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The IP version. Valid values: Valid values:</p>
* <ul>
* <li><strong>ipv4</strong></li>
* <li><strong>ipv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The information about the next hops.</p>
*/
public Builder nextHops(NextHops nextHops) {
this.nextHops = nextHops;
return this;
}
/**
* <p>The route origin. Valid values:</p>
* <ul>
* <li><strong>RoutePropagation</strong>: The route is created by a dynamic propagation source.</li>
* <li><strong>SystemCreate</strong>: The route is created by the system.</li>
* <li><strong>CustomCreate</strong>: The route is created by a user.</li>
* </ul>
*
* <strong>example:</strong>
* <p>RoutePropagation</p>
*/
public Builder origin(String origin) {
this.origin = origin;
return this;
}
/**
* <p>The ID of the route.</p>
*
* <strong>example:</strong>
* <p>rte-bp1mnnr2al0naomnp****</p>
*/
public Builder routeEntryId(String routeEntryId) {
this.routeEntryId = routeEntryId;
return this;
}
/**
* <p>The name of the route.</p>
*
* <strong>example:</strong>
* <p>aaa</p>
*/
public Builder routeEntryName(String routeEntryName) {
this.routeEntryName = routeEntryName;
return this;
}
/**
* <p>The ID of the route table.</p>
*
* <strong>example:</strong>
* <p>vtb-bp15w5q90d2rk3bww****</p>
*/
public Builder routeTableId(String routeTableId) {
this.routeTableId = routeTableId;
return this;
}
/**
* <p>Indicates whether the route is hosted. If the parameter is empty, the route is not hosted.</p>
* <p>If <strong>TR</strong> is returned, the route is hosted by a transit router.</p>
*
* <strong>example:</strong>
* <p>TR</p>
*/
public Builder serviceType(String serviceType) {
this.serviceType = serviceType;
return this;
}
/**
* <p>The status of the route entry. Valid values:</p>
* <ul>
* <li><strong>Pending</strong></li>
* <li><strong>Available</strong></li>
* <li><strong>Modifying</strong></li>
* <li><strong>Deleting</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The route type. Valid values:</p>
* <ul>
* <li><strong>Custom</strong>: custom routes.</li>
* <li><strong>System</strong>: system routes.</li>
* <li><strong>BGP</strong>: BGP routes.</li>
* <li><strong>CEN</strong>: CEN routes.</li>
* <li><strong>ECR</strong>: ECR routes.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Custom</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public RouteEntry build() {
return new RouteEntry(this);
}
}
}
/**
*
* {@link DescribeRouteEntryListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteEntryListResponseBody</p>
*/
public static class RouteEntrys extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RouteEntry")
private java.util.List<RouteEntry> routeEntry;
private RouteEntrys(Builder builder) {
this.routeEntry = builder.routeEntry;
}
public static Builder builder() {
return new Builder();
}
public static RouteEntrys create() {
return builder().build();
}
/**
* @return routeEntry
*/
public java.util.List<RouteEntry> getRouteEntry() {
return this.routeEntry;
}
public static final class Builder {
private java.util.List<RouteEntry> routeEntry;
private Builder() {
}
private Builder(RouteEntrys model) {
this.routeEntry = model.routeEntry;
}
/**
* RouteEntry.
*/
public Builder routeEntry(java.util.List<RouteEntry> routeEntry) {
this.routeEntry = routeEntry;
return this;
}
public RouteEntrys build() {
return new RouteEntrys(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouteTableListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeRouteTableListRequest} extends {@link RequestModel}
*
* <p>DescribeRouteTableListRequest</p>
*/
public class DescribeRouteTableListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableId")
private String routeTableId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableName")
private String routeTableName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableType")
private String routeTableType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouterId")
private String routerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouterType")
private String routerType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private DescribeRouteTableListRequest(Builder builder) {
super(builder);
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeTableId = builder.routeTableId;
this.routeTableName = builder.routeTableName;
this.routeTableType = builder.routeTableType;
this.routerId = builder.routerId;
this.routerType = builder.routerType;
this.tag = builder.tag;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRouteTableListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
/**
* @return routeTableName
*/
public String getRouteTableName() {
return this.routeTableName;
}
/**
* @return routeTableType
*/
public String getRouteTableType() {
return this.routeTableType;
}
/**
* @return routerId
*/
public String getRouterId() {
return this.routerId;
}
/**
* @return routerType
*/
public String getRouterType() {
return this.routerType;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<DescribeRouteTableListRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeTableId;
private String routeTableName;
private String routeTableType;
private String routerId;
private String routerType;
private java.util.List<Tag> tag;
private String vpcId;
private Builder() {
super();
}
private Builder(DescribeRouteTableListRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeTableId = request.routeTableId;
this.routeTableName = request.routeTableName;
this.routeTableType = request.routeTableType;
this.routerId = request.routerId;
this.routerType = request.routerType;
this.tag = request.tag;
this.vpcId = request.vpcId;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the returned page. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the VPC to which the route table belongs.</p>
* <p>You can call <a href="https://www.alibabacloud.com/help/vpc/developer-reference/api-vpc-2016-04-28-describeregions">DescribeRegions</a> to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ap-southeast-6</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the route table belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the route table.</p>
*
* <strong>example:</strong>
* <p>vtb-bp145q7glnuzdvzu2****</p>
*/
public Builder routeTableId(String routeTableId) {
this.putQueryParameter("RouteTableId", routeTableId);
this.routeTableId = routeTableId;
return this;
}
/**
* <p>The name of the route table.</p>
*
* <strong>example:</strong>
* <p>doctest</p>
*/
public Builder routeTableName(String routeTableName) {
this.putQueryParameter("RouteTableName", routeTableName);
this.routeTableName = routeTableName;
return this;
}
/**
* <p>The type of the route table.</p>
* <ul>
* <li><strong>System</strong></li>
* <li><strong>Custom</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>System</p>
*/
public Builder routeTableType(String routeTableType) {
this.putQueryParameter("RouteTableType", routeTableType);
this.routeTableType = routeTableType;
return this;
}
/**
* <p>The ID of vRouter to which the route table belongs.</p>
*
* <strong>example:</strong>
* <p>vrt-bp1lhl0taikrteen8****</p>
*/
public Builder routerId(String routerId) {
this.putQueryParameter("RouterId", routerId);
this.routerId = routerId;
return this;
}
/**
* <p>The type of the router to which the route table belongs. Valid value:</p>
* <ul>
* <li><strong>VRouter</strong> (default): a vRouter</li>
* <li><strong>VBR</strong>: a VBR</li>
* </ul>
*
* <strong>example:</strong>
* <p>VRouter</p>
*/
public Builder routerType(String routerType) {
this.putQueryParameter("RouterType", routerType);
this.routerType = routerType;
return this;
}
/**
* <p>The tags of the resource.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The ID of the VPC to which the route table belongs. </p>
* <p>When this parameter is set, the value of <strong>RouterType</strong> is automatically assigned to <strong>VRouter</strong>.</p>
*
* <strong>example:</strong>
* <p>vpc-bp15zckdt37pq72****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public DescribeRouteTableListRequest build() {
return new DescribeRouteTableListRequest(this);
}
}
/**
*
* {@link DescribeRouteTableListRequest} extends {@link TeaModel}
*
* <p>DescribeRouteTableListRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The value of tag N to add to the resource. You can specify up to 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code> and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N to add to the resource. You can specify up to 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code> and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouteTableListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeRouteTableListResponse} extends {@link TeaModel}
*
* <p>DescribeRouteTableListResponse</p>
*/
public class DescribeRouteTableListResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRouteTableListResponseBody body;
private DescribeRouteTableListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRouteTableListResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRouteTableListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRouteTableListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRouteTableListResponseBody body);
@Override
DescribeRouteTableListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRouteTableListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRouteTableListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRouteTableListResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRouteTableListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRouteTableListResponse build() {
return new DescribeRouteTableListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouteTableListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeRouteTableListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteTableListResponseBody</p>
*/
public class DescribeRouteTableListResponseBody extends TeaModel {
@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("RouterTableList")
private RouterTableList routerTableList;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeRouteTableListResponseBody(Builder builder) {
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.routerTableList = builder.routerTableList;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRouteTableListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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 routerTableList
*/
public RouterTableList getRouterTableList() {
return this.routerTableList;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private RouterTableList routerTableList;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeRouteTableListResponseBody model) {
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.routerTableList = model.routerTableList;
this.totalCount = model.totalCount;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>DC668356-BCB4-42FD-9BC3-FA2B2E04B634</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The detailed information about the route tables.</p>
*/
public Builder routerTableList(RouterTableList routerTableList) {
this.routerTableList = routerTableList;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeRouteTableListResponseBody build() {
return new DescribeRouteTableListResponseBody(this);
}
}
/**
*
* {@link DescribeRouteTableListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteTableListResponseBody</p>
*/
public static class GatewayIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GatewayIds")
private java.util.List<String> gatewayIds;
private GatewayIds(Builder builder) {
this.gatewayIds = builder.gatewayIds;
}
public static Builder builder() {
return new Builder();
}
public static GatewayIds create() {
return builder().build();
}
/**
* @return gatewayIds
*/
public java.util.List<String> getGatewayIds() {
return this.gatewayIds;
}
public static final class Builder {
private java.util.List<String> gatewayIds;
private Builder() {
}
private Builder(GatewayIds model) {
this.gatewayIds = model.gatewayIds;
}
/**
* GatewayIds.
*/
public Builder gatewayIds(java.util.List<String> gatewayIds) {
this.gatewayIds = gatewayIds;
return this;
}
public GatewayIds build() {
return new GatewayIds(this);
}
}
}
/**
*
* {@link DescribeRouteTableListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteTableListResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of the tag that is added to the route table.</p>
*
* <strong>example:</strong>
* <p>type</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of the tag that is added to the route table.</p>
*
* <strong>example:</strong>
* <p>ingress</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeRouteTableListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteTableListResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeRouteTableListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteTableListResponseBody</p>
*/
public static class VSwitchIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private java.util.List<String> vSwitchId;
private VSwitchIds(Builder builder) {
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static VSwitchIds create() {
return builder().build();
}
/**
* @return vSwitchId
*/
public java.util.List<String> getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder {
private java.util.List<String> vSwitchId;
private Builder() {
}
private Builder(VSwitchIds model) {
this.vSwitchId = model.vSwitchId;
}
/**
* VSwitchId.
*/
public Builder vSwitchId(java.util.List<String> vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public VSwitchIds build() {
return new VSwitchIds(this);
}
}
}
/**
*
* {@link DescribeRouteTableListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteTableListResponseBody</p>
*/
public static class RouterTableListType extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociateType")
private String associateType;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("GatewayIds")
private GatewayIds gatewayIds;
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("RoutePropagationEnable")
private Boolean routePropagationEnable;
@com.aliyun.core.annotation.NameInMap("RouteTableId")
private String routeTableId;
@com.aliyun.core.annotation.NameInMap("RouteTableName")
private String routeTableName;
@com.aliyun.core.annotation.NameInMap("RouteTableType")
private String routeTableType;
@com.aliyun.core.annotation.NameInMap("RouterId")
private String routerId;
@com.aliyun.core.annotation.NameInMap("RouterType")
private String routerType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VSwitchIds")
private VSwitchIds vSwitchIds;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private RouterTableListType(Builder builder) {
this.associateType = builder.associateType;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.gatewayIds = builder.gatewayIds;
this.ownerId = builder.ownerId;
this.resourceGroupId = builder.resourceGroupId;
this.routePropagationEnable = builder.routePropagationEnable;
this.routeTableId = builder.routeTableId;
this.routeTableName = builder.routeTableName;
this.routeTableType = builder.routeTableType;
this.routerId = builder.routerId;
this.routerType = builder.routerType;
this.status = builder.status;
this.tags = builder.tags;
this.vSwitchIds = builder.vSwitchIds;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static RouterTableListType create() {
return builder().build();
}
/**
* @return associateType
*/
public String getAssociateType() {
return this.associateType;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return gatewayIds
*/
public GatewayIds getGatewayIds() {
return this.gatewayIds;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return routePropagationEnable
*/
public Boolean getRoutePropagationEnable() {
return this.routePropagationEnable;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
/**
* @return routeTableName
*/
public String getRouteTableName() {
return this.routeTableName;
}
/**
* @return routeTableType
*/
public String getRouteTableType() {
return this.routeTableType;
}
/**
* @return routerId
*/
public String getRouterId() {
return this.routerId;
}
/**
* @return routerType
*/
public String getRouterType() {
return this.routerType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vSwitchIds
*/
public VSwitchIds getVSwitchIds() {
return this.vSwitchIds;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String associateType;
private String creationTime;
private String description;
private GatewayIds gatewayIds;
private Long ownerId;
private String resourceGroupId;
private Boolean routePropagationEnable;
private String routeTableId;
private String routeTableName;
private String routeTableType;
private String routerId;
private String routerType;
private String status;
private Tags tags;
private VSwitchIds vSwitchIds;
private String vpcId;
private Builder() {
}
private Builder(RouterTableListType model) {
this.associateType = model.associateType;
this.creationTime = model.creationTime;
this.description = model.description;
this.gatewayIds = model.gatewayIds;
this.ownerId = model.ownerId;
this.resourceGroupId = model.resourceGroupId;
this.routePropagationEnable = model.routePropagationEnable;
this.routeTableId = model.routeTableId;
this.routeTableName = model.routeTableName;
this.routeTableType = model.routeTableType;
this.routerId = model.routerId;
this.routerType = model.routerType;
this.status = model.status;
this.tags = model.tags;
this.vSwitchIds = model.vSwitchIds;
this.vpcId = model.vpcId;
}
/**
* <p>The type of the cloud resource with which the route table is associated. Valid values:</p>
* <ul>
* <li><strong>VSwitch</strong>: vSwitch</li>
* <li><strong>Gateway</strong>: IPv4 gateway</li>
* </ul>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder associateType(String associateType) {
this.associateType = associateType;
return this;
}
/**
* <p>The time when the route table was created.</p>
*
* <strong>example:</strong>
* <p>2021-08-22T10:40:25Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The information about the route table.</p>
*
* <strong>example:</strong>
* <p>This is Route Table.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The detailed information about the IPv4 gateway.</p>
*/
public Builder gatewayIds(GatewayIds gatewayIds) {
this.gatewayIds = gatewayIds;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the route table belongs.</p>
*
* <strong>example:</strong>
* <p>253460731706911258</p>
*/
public Builder ownerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the resource group to which the route table belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>Whether to receive the propagation routes. Valid Values:</p>
* <ul>
* <li><p><strong>true</strong>: received.</p>
* </li>
* <li><p><strong>false</strong>: not received.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder routePropagationEnable(Boolean routePropagationEnable) {
this.routePropagationEnable = routePropagationEnable;
return this;
}
/**
* <p>The ID of the route table.</p>
*
* <strong>example:</strong>
* <p>vtb-bp145q7glnuzdvzu2****</p>
*/
public Builder routeTableId(String routeTableId) {
this.routeTableId = routeTableId;
return this;
}
/**
* <p>The name of the route table.</p>
*
* <strong>example:</strong>
* <p>doctest</p>
*/
public Builder routeTableName(String routeTableName) {
this.routeTableName = routeTableName;
return this;
}
/**
* <p>The type of the route table. Valid values:</p>
* <ul>
* <li><strong>Custom</strong></li>
* <li><strong>System</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>System</p>
*/
public Builder routeTableType(String routeTableType) {
this.routeTableType = routeTableType;
return this;
}
/**
* <p>The ID of the vRouter to which the route table belongs.</p>
*
* <strong>example:</strong>
* <p>vrt-bp1lhl0taikrteen8****</p>
*/
public Builder routerId(String routerId) {
this.routerId = routerId;
return this;
}
/**
* <p>The type of the vRouter to which the route table belongs. Valid values:</p>
* <ul>
* <li><p><strong>VRouter</strong>: a vRouter.</p>
* </li>
* <li><p><strong>VBR</strong>: a VBR.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>VRouter</p>
*/
public Builder routerType(String routerType) {
this.routerType = routerType;
return this;
}
/**
* <p>The status of the route table. Valid values:</p>
* <ul>
* <li><strong>Pending</strong></li>
* <li><strong>Available</strong></li>
* <li><strong>Deleting</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The vSwitch IDs.</p>
*/
public Builder vSwitchIds(VSwitchIds vSwitchIds) {
this.vSwitchIds = vSwitchIds;
return this;
}
/**
* <p>The ID of the VPC to which the route table belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-bp15zckdt37pq72****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public RouterTableListType build() {
return new RouterTableListType(this);
}
}
}
/**
*
* {@link DescribeRouteTableListResponseBody} extends {@link TeaModel}
*
* <p>DescribeRouteTableListResponseBody</p>
*/
public static class RouterTableList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RouterTableListType")
private java.util.List<RouterTableListType> routerTableListType;
private RouterTableList(Builder builder) {
this.routerTableListType = builder.routerTableListType;
}
public static Builder builder() {
return new Builder();
}
public static RouterTableList create() {
return builder().build();
}
/**
* @return routerTableListType
*/
public java.util.List<RouterTableListType> getRouterTableListType() {
return this.routerTableListType;
}
public static final class Builder {
private java.util.List<RouterTableListType> routerTableListType;
private Builder() {
}
private Builder(RouterTableList model) {
this.routerTableListType = model.routerTableListType;
}
/**
* RouterTableListType.
*/
public Builder routerTableListType(java.util.List<RouterTableListType> routerTableListType) {
this.routerTableListType = routerTableListType;
return this;
}
public RouterTableList build() {
return new RouterTableList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouteTablesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 DescribeRouteTablesRequest} extends {@link RequestModel}
*
* <p>DescribeRouteTablesRequest</p>
*/
public class DescribeRouteTablesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableId")
private String routeTableId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableName")
private String routeTableName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouterId")
private String routerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouterType")
private String routerType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VRouterId")
private String vRouterId;
private DescribeRouteTablesRequest(Builder builder) {
super(builder);
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeTableId = builder.routeTableId;
this.routeTableName = builder.routeTableName;
this.routerId = builder.routerId;
this.routerType = builder.routerType;
this.type = builder.type;
this.vRouterId = builder.vRouterId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRouteTablesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
/**
* @return routeTableName
*/
public String getRouteTableName() {
return this.routeTableName;
}
/**
* @return routerId
*/
public String getRouterId() {
return this.routerId;
}
/**
* @return routerType
*/
public String getRouterType() {
return this.routerType;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return vRouterId
*/
public String getVRouterId() {
return this.vRouterId;
}
public static final class Builder extends Request.Builder<DescribeRouteTablesRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeTableId;
private String routeTableName;
private String routerId;
private String routerType;
private String type;
private String vRouterId;
private Builder() {
super();
}
private Builder(DescribeRouteTablesRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeTableId = request.routeTableId;
this.routeTableName = request.routeTableName;
this.routerId = request.routerId;
this.routerType = request.routerType;
this.type = request.type;
this.vRouterId = request.vRouterId;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the VPC to which the route table belongs.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the route table to be queried belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazccb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the route table that you want to query.</p>
*
* <strong>example:</strong>
* <p>rtb-bp12mw1f8k3jgygk9****</p>
*/
public Builder routeTableId(String routeTableId) {
this.putQueryParameter("RouteTableId", routeTableId);
this.routeTableId = routeTableId;
return this;
}
/**
* <p>The name of the route table that you want to query.</p>
* <p>The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-).</p>
*
* <strong>example:</strong>
* <p>RouteTable-1</p>
*/
public Builder routeTableName(String routeTableName) {
this.putQueryParameter("RouteTableName", routeTableName);
this.routeTableName = routeTableName;
return this;
}
/**
* <p>The ID of the router to which the route table belongs.</p>
*
* <strong>example:</strong>
* <p>vtb-bp1krxxzp0c29fmon****</p>
*/
public Builder routerId(String routerId) {
this.putQueryParameter("RouterId", routerId);
this.routerId = routerId;
return this;
}
/**
* <p>The type of the router to which the route table belongs. Valid values:</p>
* <ul>
* <li><strong>VRouter</strong> (default)</li>
* <li><strong>VBR</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>VRouter</p>
*/
public Builder routerType(String routerType) {
this.putQueryParameter("RouterType", routerType);
this.routerType = routerType;
return this;
}
/**
* <p>The route type. Valid values:</p>
* <ul>
* <li><strong>Custom</strong></li>
* <li><strong>System</strong></li>
* <li><strong>BGP</strong></li>
* <li><strong>CEN</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>custom</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
/**
* <p>The ID of the vRouter.</p>
*
* <strong>example:</strong>
* <p>vtb-bp1krxxzp0c29fmon****</p>
*/
public Builder vRouterId(String vRouterId) {
this.putQueryParameter("VRouterId", vRouterId);
this.vRouterId = vRouterId;
return this;
}
@Override
public DescribeRouteTablesRequest build() {
return new DescribeRouteTablesRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.