index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DeleteVServerGroupRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DeleteVServerGroupRequest} extends {@link RequestModel}
*
* <p>DeleteVServerGroupRequest</p>
*/
public class DeleteVServerGroupRequest 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("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("VServerGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String vServerGroupId;
private DeleteVServerGroupRequest(Builder builder) {
super(builder);
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vServerGroupId = builder.vServerGroupId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVServerGroupRequest 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 regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
public static final class Builder extends Request.Builder<DeleteVServerGroupRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vServerGroupId;
private Builder() {
super();
}
private Builder(DeleteVServerGroupRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vServerGroupId = request.vServerGroupId;
}
/**
* 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 to which the associated Server Load Balancer (SLB) instance belongs.</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 VServer group to be deleted.</p>
* <blockquote>
* <p> If the VServer group is in use, it cannot be deleted.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6j*****</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.putQueryParameter("VServerGroupId", vServerGroupId);
this.vServerGroupId = vServerGroupId;
return this;
}
@Override
public DeleteVServerGroupRequest build() {
return new DeleteVServerGroupRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DeleteVServerGroupResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DeleteVServerGroupResponse} extends {@link TeaModel}
*
* <p>DeleteVServerGroupResponse</p>
*/
public class DeleteVServerGroupResponse 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 DeleteVServerGroupResponseBody body;
private DeleteVServerGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVServerGroupResponse 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 DeleteVServerGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVServerGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVServerGroupResponseBody body);
@Override
DeleteVServerGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVServerGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVServerGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVServerGroupResponse 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(DeleteVServerGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVServerGroupResponse build() {
return new DeleteVServerGroupResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DeleteVServerGroupResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DeleteVServerGroupResponseBody} extends {@link TeaModel}
*
* <p>DeleteVServerGroupResponseBody</p>
*/
public class DeleteVServerGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVServerGroupResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVServerGroupResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteVServerGroupResponseBody build() {
return new DeleteVServerGroupResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAccessControlListAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAccessControlListAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeAccessControlListAttributeRequest</p>
*/
public class DescribeAccessControlListAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AclEntryComment")
private String aclEntryComment;
@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("Page")
private Integer page;
@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 DescribeAccessControlListAttributeRequest(Builder builder) {
super(builder);
this.aclEntryComment = builder.aclEntryComment;
this.aclId = builder.aclId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.page = builder.page;
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 DescribeAccessControlListAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aclEntryComment
*/
public String getAclEntryComment() {
return this.aclEntryComment;
}
/**
* @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 page
*/
public Integer getPage() {
return this.page;
}
/**
* @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<DescribeAccessControlListAttributeRequest, Builder> {
private String aclEntryComment;
private String aclId;
private String ownerAccount;
private Long ownerId;
private Integer page;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeAccessControlListAttributeRequest request) {
super(request);
this.aclEntryComment = request.aclEntryComment;
this.aclId = request.aclId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.page = request.page;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The remarks of the ACL entry.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder aclEntryComment(String aclEntryComment) {
this.putQueryParameter("AclEntryComment", aclEntryComment);
this.aclEntryComment = aclEntryComment;
return this;
}
/**
* <p>The ID of the ACL that you want to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>acl-bp1ut10zzvh1y8dfs****</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.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder page(Integer page) {
this.putQueryParameter("Page", page);
this.page = page;
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 ACL.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/2401682.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 DescribeAccessControlListAttributeRequest build() {
return new DescribeAccessControlListAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAccessControlListAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAccessControlListAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeAccessControlListAttributeResponse</p>
*/
public class DescribeAccessControlListAttributeResponse 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 DescribeAccessControlListAttributeResponseBody body;
private DescribeAccessControlListAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAccessControlListAttributeResponse 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 DescribeAccessControlListAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAccessControlListAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAccessControlListAttributeResponseBody body);
@Override
DescribeAccessControlListAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAccessControlListAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAccessControlListAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAccessControlListAttributeResponse 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(DescribeAccessControlListAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAccessControlListAttributeResponse build() {
return new DescribeAccessControlListAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAccessControlListAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAccessControlListAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListAttributeResponseBody</p>
*/
public class DescribeAccessControlListAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclEntrys")
private AclEntrys aclEntrys;
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.NameInMap("AclName")
private String aclName;
@com.aliyun.core.annotation.NameInMap("AddressIPVersion")
private String addressIPVersion;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("RelatedListeners")
private RelatedListeners relatedListeners;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("TotalAclEntry")
private Integer totalAclEntry;
private DescribeAccessControlListAttributeResponseBody(Builder builder) {
this.aclEntrys = builder.aclEntrys;
this.aclId = builder.aclId;
this.aclName = builder.aclName;
this.addressIPVersion = builder.addressIPVersion;
this.createTime = builder.createTime;
this.relatedListeners = builder.relatedListeners;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.tags = builder.tags;
this.totalAclEntry = builder.totalAclEntry;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAccessControlListAttributeResponseBody create() {
return builder().build();
}
/**
* @return aclEntrys
*/
public AclEntrys getAclEntrys() {
return this.aclEntrys;
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclName
*/
public String getAclName() {
return this.aclName;
}
/**
* @return addressIPVersion
*/
public String getAddressIPVersion() {
return this.addressIPVersion;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return relatedListeners
*/
public RelatedListeners getRelatedListeners() {
return this.relatedListeners;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return totalAclEntry
*/
public Integer getTotalAclEntry() {
return this.totalAclEntry;
}
public static final class Builder {
private AclEntrys aclEntrys;
private String aclId;
private String aclName;
private String addressIPVersion;
private String createTime;
private RelatedListeners relatedListeners;
private String requestId;
private String resourceGroupId;
private Tags tags;
private Integer totalAclEntry;
/**
* <p>The information about the access control policy.</p>
*/
public Builder aclEntrys(AclEntrys aclEntrys) {
this.aclEntrys = aclEntrys;
return this;
}
/**
* <p>The ACL ID.</p>
*
* <strong>example:</strong>
* <p>acl-bp1ut10zzvh1y8dfs****</p>
*/
public Builder aclId(String aclId) {
this.aclId = aclId;
return this;
}
/**
* <p>The ACL name.</p>
*
* <strong>example:</strong>
* <p>doctest</p>
*/
public Builder aclName(String aclName) {
this.aclName = aclName;
return this;
}
/**
* <p>The IP version. Valid values: <strong>ipv4</strong> and <strong>ipv6</strong>.</p>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder addressIPVersion(String addressIPVersion) {
this.addressIPVersion = addressIPVersion;
return this;
}
/**
* <p>The time when the ACL was created. The time follows the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2022-08-31T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The listeners with which the ACL is associated.</p>
*/
public Builder relatedListeners(RelatedListeners relatedListeners) {
this.relatedListeners = relatedListeners;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>C9906A1D-86F7-4C9C-A369-54DA42EF206A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmz3jksig****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The tags added to the ACL.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The total number of ACL entries.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder totalAclEntry(Integer totalAclEntry) {
this.totalAclEntry = totalAclEntry;
return this;
}
public DescribeAccessControlListAttributeResponseBody build() {
return new DescribeAccessControlListAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeAccessControlListAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListAttributeResponseBody</p>
*/
public static class AclEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclEntryComment")
private String aclEntryComment;
@com.aliyun.core.annotation.NameInMap("AclEntryIP")
private String aclEntryIP;
private AclEntry(Builder builder) {
this.aclEntryComment = builder.aclEntryComment;
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 aclEntryIP
*/
public String getAclEntryIP() {
return this.aclEntryIP;
}
public static final class Builder {
private String aclEntryComment;
private String aclEntryIP;
/**
* <p>The remarks of the ACL entry.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder aclEntryComment(String aclEntryComment) {
this.aclEntryComment = aclEntryComment;
return this;
}
/**
* <p>The IP entry in the ACL.</p>
*
* <strong>example:</strong>
* <p>192.168.0.1</p>
*/
public Builder aclEntryIP(String aclEntryIP) {
this.aclEntryIP = aclEntryIP;
return this;
}
public AclEntry build() {
return new AclEntry(this);
}
}
}
/**
*
* {@link DescribeAccessControlListAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListAttributeResponseBody</p>
*/
public static class AclEntrys extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclEntry")
private java.util.List<AclEntry> aclEntry;
private AclEntrys(Builder builder) {
this.aclEntry = builder.aclEntry;
}
public static Builder builder() {
return new Builder();
}
public static AclEntrys 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;
/**
* AclEntry.
*/
public Builder aclEntry(java.util.List<AclEntry> aclEntry) {
this.aclEntry = aclEntry;
return this;
}
public AclEntrys build() {
return new AclEntrys(this);
}
}
}
/**
*
* {@link DescribeAccessControlListAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListAttributeResponseBody</p>
*/
public static class RelatedListener extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclType")
private String aclType;
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
private RelatedListener(Builder builder) {
this.aclType = builder.aclType;
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
this.protocol = builder.protocol;
}
public static Builder builder() {
return new Builder();
}
public static RelatedListener create() {
return builder().build();
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
public static final class Builder {
private String aclType;
private Integer listenerPort;
private String loadBalancerId;
private String protocol;
/**
* <p>The type of ACL. Valid values:</p>
* <ul>
* <li><strong>black</strong></li>
* <li><strong>white</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>white</p>
*/
public Builder aclType(String aclType) {
this.aclType = aclType;
return this;
}
/**
* <p>The frontend port of the listener with which the ACL is associated.</p>
*
* <strong>example:</strong>
* <p>443</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The CLB instance ID.</p>
*
* <strong>example:</strong>
* <p>lb-bp1qpzldlm38bnexl****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The type of protocol that the associated listener uses.</p>
*
* <strong>example:</strong>
* <p>https</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
public RelatedListener build() {
return new RelatedListener(this);
}
}
}
/**
*
* {@link DescribeAccessControlListAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListAttributeResponseBody</p>
*/
public static class RelatedListeners extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RelatedListener")
private java.util.List<RelatedListener> relatedListener;
private RelatedListeners(Builder builder) {
this.relatedListener = builder.relatedListener;
}
public static Builder builder() {
return new Builder();
}
public static RelatedListeners create() {
return builder().build();
}
/**
* @return relatedListener
*/
public java.util.List<RelatedListener> getRelatedListener() {
return this.relatedListener;
}
public static final class Builder {
private java.util.List<RelatedListener> relatedListener;
/**
* RelatedListener.
*/
public Builder relatedListener(java.util.List<RelatedListener> relatedListener) {
this.relatedListener = relatedListener;
return this;
}
public RelatedListeners build() {
return new RelatedListeners(this);
}
}
}
/**
*
* {@link DescribeAccessControlListAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListAttributeResponseBody</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;
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>TestValue</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeAccessControlListAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListAttributeResponseBody</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;
/**
* 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAccessControlListsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAccessControlListsRequest} extends {@link RequestModel}
*
* <p>DescribeAccessControlListsRequest</p>
*/
public class DescribeAccessControlListsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AclName")
private String aclName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AddressIPVersion")
private String addressIPVersion;
@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("Tag")
private java.util.List<Tag> tag;
private DescribeAccessControlListsRequest(Builder builder) {
super(builder);
this.aclName = builder.aclName;
this.addressIPVersion = builder.addressIPVersion;
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.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAccessControlListsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aclName
*/
public String getAclName() {
return this.aclName;
}
/**
* @return addressIPVersion
*/
public String getAddressIPVersion() {
return this.addressIPVersion;
}
/**
* @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 tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<DescribeAccessControlListsRequest, Builder> {
private String aclName;
private String addressIPVersion;
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<Tag> tag;
private Builder() {
super();
}
private Builder(DescribeAccessControlListsRequest request) {
super(request);
this.aclName = request.aclName;
this.addressIPVersion = request.addressIPVersion;
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.tag = request.tag;
}
/**
* <p>The ACL name. The ACL name. The name must be 1 to 80 characters in length, and can contain letters, digits, periods (.), hyphens (-), forward slashes (/), and underscores (_). The name of each ACL must be unique within a region. Fuzzy match is supported.</p>
*
* <strong>example:</strong>
* <p>rule1</p>
*/
public Builder aclName(String aclName) {
this.putQueryParameter("AclName", aclName);
this.aclName = aclName;
return this;
}
/**
* <p>The IP version of the Classic Load Balancer (CLB) instance with which the ACL is associated. Valid values:</p>
* <ul>
* <li><strong>ipv4</strong></li>
* <li><strong>ipv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder addressIPVersion(String addressIPVersion) {
this.putQueryParameter("AddressIPVersion", addressIPVersion);
this.addressIPVersion = addressIPVersion;
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 ACL.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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 resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-atstuj3rtop4****</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 tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeAccessControlListsRequest build() {
return new DescribeAccessControlListsRequest(this);
}
}
/**
*
* {@link DescribeAccessControlListsRequest} extends {@link TeaModel}
*
* <p>DescribeAccessControlListsRequest</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;
/**
* <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 must be 1 to 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>test</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. You can specify at most 20 tag values. The tag value cannot be an empty string.</p>
* <p>The tag value must be 1 to 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. It cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAccessControlListsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAccessControlListsResponse} extends {@link TeaModel}
*
* <p>DescribeAccessControlListsResponse</p>
*/
public class DescribeAccessControlListsResponse 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 DescribeAccessControlListsResponseBody body;
private DescribeAccessControlListsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAccessControlListsResponse 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 DescribeAccessControlListsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAccessControlListsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAccessControlListsResponseBody body);
@Override
DescribeAccessControlListsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAccessControlListsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAccessControlListsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAccessControlListsResponse 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(DescribeAccessControlListsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAccessControlListsResponse build() {
return new DescribeAccessControlListsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAccessControlListsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAccessControlListsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListsResponseBody</p>
*/
public class DescribeAccessControlListsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Acls")
private Acls acls;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@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 DescribeAccessControlListsResponseBody(Builder builder) {
this.acls = builder.acls;
this.count = builder.count;
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 DescribeAccessControlListsResponseBody create() {
return builder().build();
}
/**
* @return acls
*/
public Acls getAcls() {
return this.acls;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @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 Acls acls;
private Integer count;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
/**
* <p>A list of ACLs.</p>
*/
public Builder acls(Acls acls) {
this.acls = acls;
return this;
}
/**
* <p>The number of ACLs on the current page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The number of the returned page. Pages start from page <strong>1</strong>. 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 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.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>3CB646EF-6147-4566-A9D9-CE8FBE86F971</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of ACLs.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeAccessControlListsResponseBody build() {
return new DescribeAccessControlListsResponseBody(this);
}
}
/**
*
* {@link DescribeAccessControlListsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListsResponseBody</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;
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeAccessControlListsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListsResponseBody</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;
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeAccessControlListsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListsResponseBody</p>
*/
public static class Acl extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.NameInMap("AclName")
private String aclName;
@com.aliyun.core.annotation.NameInMap("AddressIPVersion")
private String addressIPVersion;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
private Acl(Builder builder) {
this.aclId = builder.aclId;
this.aclName = builder.aclName;
this.addressIPVersion = builder.addressIPVersion;
this.createTime = builder.createTime;
this.resourceGroupId = builder.resourceGroupId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static Acl create() {
return builder().build();
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclName
*/
public String getAclName() {
return this.aclName;
}
/**
* @return addressIPVersion
*/
public String getAddressIPVersion() {
return this.addressIPVersion;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
public static final class Builder {
private String aclId;
private String aclName;
private String addressIPVersion;
private String createTime;
private String resourceGroupId;
private Tags tags;
/**
* <p>The ACL ID.</p>
*
* <strong>example:</strong>
* <p>acl-bp1l0kk4gxce43k*****</p>
*/
public Builder aclId(String aclId) {
this.aclId = aclId;
return this;
}
/**
* <p>The ACL name.</p>
*
* <strong>example:</strong>
* <p>rule1</p>
*/
public Builder aclName(String aclName) {
this.aclName = aclName;
return this;
}
/**
* <p>The IP version that is used by the CLB instance associated with the ACL.</p>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder addressIPVersion(String addressIPVersion) {
this.addressIPVersion = addressIPVersion;
return this;
}
/**
* <p>The time when the CLB instance was created. The time follows the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2022-08-31T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-jfenfbp1lhl0****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The list of tags added to the network ACL. The value of this parameter must be a STRING list in the JSON format.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
public Acl build() {
return new Acl(this);
}
}
}
/**
*
* {@link DescribeAccessControlListsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessControlListsResponseBody</p>
*/
public static class Acls extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Acl")
private java.util.List<Acl> acl;
private Acls(Builder builder) {
this.acl = builder.acl;
}
public static Builder builder() {
return new Builder();
}
public static Acls create() {
return builder().build();
}
/**
* @return acl
*/
public java.util.List<Acl> getAcl() {
return this.acl;
}
public static final class Builder {
private java.util.List<Acl> acl;
/**
* Acl.
*/
public Builder acl(java.util.List<Acl> acl) {
this.acl = acl;
return this;
}
public Acls build() {
return new Acls(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAccessLogsDownloadAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAccessLogsDownloadAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeAccessLogsDownloadAttributeRequest</p>
*/
public class DescribeAccessLogsDownloadAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LogType")
private String logType;
@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("Tags")
private String tags;
private DescribeAccessLogsDownloadAttributeRequest(Builder builder) {
super(builder);
this.loadBalancerId = builder.loadBalancerId;
this.logType = builder.logType;
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.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAccessLogsDownloadAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return logType
*/
public String getLogType() {
return this.logType;
}
/**
* @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 tags
*/
public String getTags() {
return this.tags;
}
public static final class Builder extends Request.Builder<DescribeAccessLogsDownloadAttributeRequest, Builder> {
private String loadBalancerId;
private String logType;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String tags;
private Builder() {
super();
}
private Builder(DescribeAccessLogsDownloadAttributeRequest request) {
super(request);
this.loadBalancerId = request.loadBalancerId;
this.logType = request.logType;
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.tags = request.tags;
}
/**
* <p>The CLB instance ID.</p>
*
* <strong>example:</strong>
* <p>lb-bp1b6c719dfa08ex*****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The type of access log. Set the value to <strong>layer7</strong>, which specifies Layer 7 access logs.</p>
*
* <strong>example:</strong>
* <p>layer7</p>
*/
public Builder logType(String logType) {
this.putQueryParameter("LogType", logType);
this.logType = logType;
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 CLB instance.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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 tags that are added to the CLB instance. The tags must be key-value pairs that are contained in a JSON dictionary.</p>
* <p>You can specify up to 10 tags in each call.</p>
*
* <strong>example:</strong>
* <p>[{"tagKey":"Key1","tagValue":"Value1"}]</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
@Override
public DescribeAccessLogsDownloadAttributeRequest build() {
return new DescribeAccessLogsDownloadAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAccessLogsDownloadAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAccessLogsDownloadAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeAccessLogsDownloadAttributeResponse</p>
*/
public class DescribeAccessLogsDownloadAttributeResponse 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 DescribeAccessLogsDownloadAttributeResponseBody body;
private DescribeAccessLogsDownloadAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAccessLogsDownloadAttributeResponse 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 DescribeAccessLogsDownloadAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAccessLogsDownloadAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAccessLogsDownloadAttributeResponseBody body);
@Override
DescribeAccessLogsDownloadAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAccessLogsDownloadAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAccessLogsDownloadAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAccessLogsDownloadAttributeResponse 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(DescribeAccessLogsDownloadAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAccessLogsDownloadAttributeResponse build() {
return new DescribeAccessLogsDownloadAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAccessLogsDownloadAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAccessLogsDownloadAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessLogsDownloadAttributeResponseBody</p>
*/
public class DescribeAccessLogsDownloadAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LogsDownloadAttributes")
private LogsDownloadAttributes logsDownloadAttributes;
@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 DescribeAccessLogsDownloadAttributeResponseBody(Builder builder) {
this.logsDownloadAttributes = builder.logsDownloadAttributes;
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 DescribeAccessLogsDownloadAttributeResponseBody create() {
return builder().build();
}
/**
* @return logsDownloadAttributes
*/
public LogsDownloadAttributes getLogsDownloadAttributes() {
return this.logsDownloadAttributes;
}
/**
* @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 LogsDownloadAttributes logsDownloadAttributes;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
/**
* <p>The configuration of the access log.</p>
*/
public Builder logsDownloadAttributes(LogsDownloadAttributes logsDownloadAttributes) {
this.logsDownloadAttributes = logsDownloadAttributes;
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>8B9DB03B-ED39-5DB8-9C9F-1ED5F548D61E</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 DescribeAccessLogsDownloadAttributeResponseBody build() {
return new DescribeAccessLogsDownloadAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeAccessLogsDownloadAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessLogsDownloadAttributeResponseBody</p>
*/
public static class LogsDownloadAttribute extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("LogProject")
private String logProject;
@com.aliyun.core.annotation.NameInMap("LogStore")
private String logStore;
@com.aliyun.core.annotation.NameInMap("LogType")
private String logType;
@com.aliyun.core.annotation.NameInMap("Region")
private String region;
private LogsDownloadAttribute(Builder builder) {
this.loadBalancerId = builder.loadBalancerId;
this.logProject = builder.logProject;
this.logStore = builder.logStore;
this.logType = builder.logType;
this.region = builder.region;
}
public static Builder builder() {
return new Builder();
}
public static LogsDownloadAttribute create() {
return builder().build();
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return logProject
*/
public String getLogProject() {
return this.logProject;
}
/**
* @return logStore
*/
public String getLogStore() {
return this.logStore;
}
/**
* @return logType
*/
public String getLogType() {
return this.logType;
}
/**
* @return region
*/
public String getRegion() {
return this.region;
}
public static final class Builder {
private String loadBalancerId;
private String logProject;
private String logStore;
private String logType;
private String region;
/**
* <p>The CLB instance ID.</p>
*
* <strong>example:</strong>
* <p>lb-bp1b6c719dfa08ex*****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The name of the Log Service project.</p>
*
* <strong>example:</strong>
* <p>test-log-project</p>
*/
public Builder logProject(String logProject) {
this.logProject = logProject;
return this;
}
/**
* <p>The name of the Logstore.</p>
*
* <strong>example:</strong>
* <p>test-log-store</p>
*/
public Builder logStore(String logStore) {
this.logStore = logStore;
return this;
}
/**
* <p>The type of access log. Only <strong>layer7</strong> is returned, which indicates Layer 7 access logs.</p>
*
* <strong>example:</strong>
* <p>layer7</p>
*/
public Builder logType(String logType) {
this.logType = logType;
return this;
}
/**
* <p>The region ID of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder region(String region) {
this.region = region;
return this;
}
public LogsDownloadAttribute build() {
return new LogsDownloadAttribute(this);
}
}
}
/**
*
* {@link DescribeAccessLogsDownloadAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessLogsDownloadAttributeResponseBody</p>
*/
public static class LogsDownloadAttributes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LogsDownloadAttribute")
private java.util.List<LogsDownloadAttribute> logsDownloadAttribute;
private LogsDownloadAttributes(Builder builder) {
this.logsDownloadAttribute = builder.logsDownloadAttribute;
}
public static Builder builder() {
return new Builder();
}
public static LogsDownloadAttributes create() {
return builder().build();
}
/**
* @return logsDownloadAttribute
*/
public java.util.List<LogsDownloadAttribute> getLogsDownloadAttribute() {
return this.logsDownloadAttribute;
}
public static final class Builder {
private java.util.List<LogsDownloadAttribute> logsDownloadAttribute;
/**
* LogsDownloadAttribute.
*/
public Builder logsDownloadAttribute(java.util.List<LogsDownloadAttribute> logsDownloadAttribute) {
this.logsDownloadAttribute = logsDownloadAttribute;
return this;
}
public LogsDownloadAttributes build() {
return new LogsDownloadAttributes(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAvailableResourceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAvailableResourceRequest} extends {@link RequestModel}
*
* <p>DescribeAvailableResourceRequest</p>
*/
public class DescribeAvailableResourceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AddressIPVersion")
private String addressIPVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AddressType")
private String addressType;
@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 DescribeAvailableResourceRequest(Builder builder) {
super(builder);
this.addressIPVersion = builder.addressIPVersion;
this.addressType = builder.addressType;
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 DescribeAvailableResourceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return addressIPVersion
*/
public String getAddressIPVersion() {
return this.addressIPVersion;
}
/**
* @return addressType
*/
public String getAddressType() {
return this.addressType;
}
/**
* @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<DescribeAvailableResourceRequest, Builder> {
private String addressIPVersion;
private String addressType;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeAvailableResourceRequest request) {
super(request);
this.addressIPVersion = request.addressIPVersion;
this.addressType = request.addressType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The type of the IP address.</p>
* <p>Valid values: <strong>ipv4 and ipv6</strong>.</p>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder addressIPVersion(String addressIPVersion) {
this.putQueryParameter("AddressIPVersion", addressIPVersion);
this.addressIPVersion = addressIPVersion;
return this;
}
/**
* <p>The network type.</p>
* <p>Valid values: <strong>vpc, classic-internet, and classic-intranet</strong>.</p>
* <p>vpc: an internal Classic Load Balancer (CLB) instance that is deployed in a virtual private cloud (VPC).</p>
* <p>classic_internet: a public-facing CLB instance.</p>
* <p>classic_intranet: an internal CLB instance that is deployed in a classic network.</p>
*
* <strong>example:</strong>
* <p>vpc</p>
*/
public Builder addressType(String addressType) {
this.putQueryParameter("AddressType", addressType);
this.addressType = addressType;
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.</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 DescribeAvailableResourceRequest build() {
return new DescribeAvailableResourceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAvailableResourceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAvailableResourceResponse} extends {@link TeaModel}
*
* <p>DescribeAvailableResourceResponse</p>
*/
public class DescribeAvailableResourceResponse 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 DescribeAvailableResourceResponseBody body;
private DescribeAvailableResourceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAvailableResourceResponse 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 DescribeAvailableResourceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAvailableResourceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAvailableResourceResponseBody body);
@Override
DescribeAvailableResourceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAvailableResourceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAvailableResourceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAvailableResourceResponse 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(DescribeAvailableResourceResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAvailableResourceResponse build() {
return new DescribeAvailableResourceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeAvailableResourceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeAvailableResourceResponseBody} extends {@link TeaModel}
*
* <p>DescribeAvailableResourceResponseBody</p>
*/
public class DescribeAvailableResourceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AvailableResources")
private AvailableResources availableResources;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeAvailableResourceResponseBody(Builder builder) {
this.availableResources = builder.availableResources;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAvailableResourceResponseBody create() {
return builder().build();
}
/**
* @return availableResources
*/
public AvailableResources getAvailableResources() {
return this.availableResources;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private AvailableResources availableResources;
private String requestId;
/**
* <p>The zones and the supported resources.</p>
*/
public Builder availableResources(AvailableResources availableResources) {
this.availableResources = availableResources;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>173B0EEA-22ED-4EE2-91F9-3A1CDDFFBBBA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeAvailableResourceResponseBody build() {
return new DescribeAvailableResourceResponseBody(this);
}
}
/**
*
* {@link DescribeAvailableResourceResponseBody} extends {@link TeaModel}
*
* <p>DescribeAvailableResourceResponseBody</p>
*/
public static class SupportResource extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AddressIPVersion")
private String addressIPVersion;
@com.aliyun.core.annotation.NameInMap("AddressType")
private String addressType;
private SupportResource(Builder builder) {
this.addressIPVersion = builder.addressIPVersion;
this.addressType = builder.addressType;
}
public static Builder builder() {
return new Builder();
}
public static SupportResource create() {
return builder().build();
}
/**
* @return addressIPVersion
*/
public String getAddressIPVersion() {
return this.addressIPVersion;
}
/**
* @return addressType
*/
public String getAddressType() {
return this.addressType;
}
public static final class Builder {
private String addressIPVersion;
private String addressType;
/**
* <p>The type of the IP address.</p>
* <p>Valid values: <strong>ipv4 and ipv6</strong>.</p>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder addressIPVersion(String addressIPVersion) {
this.addressIPVersion = addressIPVersion;
return this;
}
/**
* <p>The network type.</p>
* <p>Valid values: <strong>vpc, classic-internet, and classic-intranet</strong>.</p>
*
* <strong>example:</strong>
* <p>classic_internet</p>
*/
public Builder addressType(String addressType) {
this.addressType = addressType;
return this;
}
public SupportResource build() {
return new SupportResource(this);
}
}
}
/**
*
* {@link DescribeAvailableResourceResponseBody} extends {@link TeaModel}
*
* <p>DescribeAvailableResourceResponseBody</p>
*/
public static class SupportResources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SupportResource")
private java.util.List<SupportResource> supportResource;
private SupportResources(Builder builder) {
this.supportResource = builder.supportResource;
}
public static Builder builder() {
return new Builder();
}
public static SupportResources create() {
return builder().build();
}
/**
* @return supportResource
*/
public java.util.List<SupportResource> getSupportResource() {
return this.supportResource;
}
public static final class Builder {
private java.util.List<SupportResource> supportResource;
/**
* SupportResource.
*/
public Builder supportResource(java.util.List<SupportResource> supportResource) {
this.supportResource = supportResource;
return this;
}
public SupportResources build() {
return new SupportResources(this);
}
}
}
/**
*
* {@link DescribeAvailableResourceResponseBody} extends {@link TeaModel}
*
* <p>DescribeAvailableResourceResponseBody</p>
*/
public static class AvailableResource extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MasterZoneId")
private String masterZoneId;
@com.aliyun.core.annotation.NameInMap("SlaveZoneId")
private String slaveZoneId;
@com.aliyun.core.annotation.NameInMap("SupportResources")
private SupportResources supportResources;
private AvailableResource(Builder builder) {
this.masterZoneId = builder.masterZoneId;
this.slaveZoneId = builder.slaveZoneId;
this.supportResources = builder.supportResources;
}
public static Builder builder() {
return new Builder();
}
public static AvailableResource create() {
return builder().build();
}
/**
* @return masterZoneId
*/
public String getMasterZoneId() {
return this.masterZoneId;
}
/**
* @return slaveZoneId
*/
public String getSlaveZoneId() {
return this.slaveZoneId;
}
/**
* @return supportResources
*/
public SupportResources getSupportResources() {
return this.supportResources;
}
public static final class Builder {
private String masterZoneId;
private String slaveZoneId;
private SupportResources supportResources;
/**
* <p>The primary zone.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai-a</p>
*/
public Builder masterZoneId(String masterZoneId) {
this.masterZoneId = masterZoneId;
return this;
}
/**
* <p>The secondary zone.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai-b</p>
*/
public Builder slaveZoneId(String slaveZoneId) {
this.slaveZoneId = slaveZoneId;
return this;
}
/**
* <p>The supported resources.</p>
*/
public Builder supportResources(SupportResources supportResources) {
this.supportResources = supportResources;
return this;
}
public AvailableResource build() {
return new AvailableResource(this);
}
}
}
/**
*
* {@link DescribeAvailableResourceResponseBody} extends {@link TeaModel}
*
* <p>DescribeAvailableResourceResponseBody</p>
*/
public static class AvailableResources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AvailableResource")
private java.util.List<AvailableResource> availableResource;
private AvailableResources(Builder builder) {
this.availableResource = builder.availableResource;
}
public static Builder builder() {
return new Builder();
}
public static AvailableResources create() {
return builder().build();
}
/**
* @return availableResource
*/
public java.util.List<AvailableResource> getAvailableResource() {
return this.availableResource;
}
public static final class Builder {
private java.util.List<AvailableResource> availableResource;
/**
* AvailableResource.
*/
public Builder availableResource(java.util.List<AvailableResource> availableResource) {
this.availableResource = availableResource;
return this;
}
public AvailableResources build() {
return new AvailableResources(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeCACertificatesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeCACertificatesRequest} extends {@link RequestModel}
*
* <p>DescribeCACertificatesRequest</p>
*/
public class DescribeCACertificatesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CACertificateId")
private String CACertificateId;
@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 DescribeCACertificatesRequest(Builder builder) {
super(builder);
this.CACertificateId = builder.CACertificateId;
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 DescribeCACertificatesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return CACertificateId
*/
public String getCACertificateId() {
return this.CACertificateId;
}
/**
* @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<DescribeCACertificatesRequest, Builder> {
private String CACertificateId;
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(DescribeCACertificatesRequest request) {
super(request);
this.CACertificateId = request.CACertificateId;
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;
}
/**
* <p>The CA certificate ID.</p>
*
* <strong>example:</strong>
* <p>139a00604bd-cn-east-hangzho****</p>
*/
public Builder CACertificateId(String CACertificateId) {
this.putQueryParameter("CACertificateId", CACertificateId);
this.CACertificateId = CACertificateId;
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 of the CA certificates.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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 resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-atstuj3rtop****</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 tags of the CA certificates.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeCACertificatesRequest build() {
return new DescribeCACertificatesRequest(this);
}
}
/**
*
* {@link DescribeCACertificatesRequest} extends {@link TeaModel}
*
* <p>DescribeCACertificatesRequest</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;
/**
* <p>The key of tag N. Valid values of N: <strong>1 to 20</strong>. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 64 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. It must not start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N. Valid values of N: <strong>1 to 20</strong>. The tag value can be an empty string. The tag value can be up to 128 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. It must not start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeCACertificatesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeCACertificatesResponse} extends {@link TeaModel}
*
* <p>DescribeCACertificatesResponse</p>
*/
public class DescribeCACertificatesResponse 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 DescribeCACertificatesResponseBody body;
private DescribeCACertificatesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCACertificatesResponse 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 DescribeCACertificatesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCACertificatesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCACertificatesResponseBody body);
@Override
DescribeCACertificatesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCACertificatesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCACertificatesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCACertificatesResponse 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(DescribeCACertificatesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCACertificatesResponse build() {
return new DescribeCACertificatesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeCACertificatesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeCACertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCACertificatesResponseBody</p>
*/
public class DescribeCACertificatesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CACertificates")
private CACertificates CACertificates;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeCACertificatesResponseBody(Builder builder) {
this.CACertificates = builder.CACertificates;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCACertificatesResponseBody create() {
return builder().build();
}
/**
* @return CACertificates
*/
public CACertificates getCACertificates() {
return this.CACertificates;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private CACertificates CACertificates;
private String requestId;
/**
* <p>The information about the CA certificate.</p>
*/
public Builder CACertificates(CACertificates CACertificates) {
this.CACertificates = CACertificates;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeCACertificatesResponseBody build() {
return new DescribeCACertificatesResponseBody(this);
}
}
/**
*
* {@link DescribeCACertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCACertificatesResponseBody</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;
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeCACertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCACertificatesResponseBody</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;
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeCACertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCACertificatesResponseBody</p>
*/
public static class CACertificate extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CACertificateId")
private String CACertificateId;
@com.aliyun.core.annotation.NameInMap("CACertificateName")
private String CACertificateName;
@com.aliyun.core.annotation.NameInMap("CommonName")
private String commonName;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("CreateTimeStamp")
private Long createTimeStamp;
@com.aliyun.core.annotation.NameInMap("ExpireTime")
private String expireTime;
@com.aliyun.core.annotation.NameInMap("ExpireTimeStamp")
private Long expireTimeStamp;
@com.aliyun.core.annotation.NameInMap("Fingerprint")
private String fingerprint;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
private CACertificate(Builder builder) {
this.CACertificateId = builder.CACertificateId;
this.CACertificateName = builder.CACertificateName;
this.commonName = builder.commonName;
this.createTime = builder.createTime;
this.createTimeStamp = builder.createTimeStamp;
this.expireTime = builder.expireTime;
this.expireTimeStamp = builder.expireTimeStamp;
this.fingerprint = builder.fingerprint;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static CACertificate create() {
return builder().build();
}
/**
* @return CACertificateId
*/
public String getCACertificateId() {
return this.CACertificateId;
}
/**
* @return CACertificateName
*/
public String getCACertificateName() {
return this.CACertificateName;
}
/**
* @return commonName
*/
public String getCommonName() {
return this.commonName;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return createTimeStamp
*/
public Long getCreateTimeStamp() {
return this.createTimeStamp;
}
/**
* @return expireTime
*/
public String getExpireTime() {
return this.expireTime;
}
/**
* @return expireTimeStamp
*/
public Long getExpireTimeStamp() {
return this.expireTimeStamp;
}
/**
* @return fingerprint
*/
public String getFingerprint() {
return this.fingerprint;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
public static final class Builder {
private String CACertificateId;
private String CACertificateName;
private String commonName;
private String createTime;
private Long createTimeStamp;
private String expireTime;
private Long expireTimeStamp;
private String fingerprint;
private String regionId;
private String resourceGroupId;
private Tags tags;
/**
* <p>The CA certificate ID.</p>
*
* <strong>example:</strong>
* <p>139a00604bd-cn-east-hangzho****</p>
*/
public Builder CACertificateId(String CACertificateId) {
this.CACertificateId = CACertificateId;
return this;
}
/**
* <p>The CA certificate name.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder CACertificateName(String CACertificateName) {
this.CACertificateName = CACertificateName;
return this;
}
/**
* <p>The domain name of the CA certificate.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder commonName(String commonName) {
this.commonName = commonName;
return this;
}
/**
* <p>The time when the CA certificate was created. The time is in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2021-08-31T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The timestamp when the CA certificate was created. Unit: milliseconds.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p>
*
* <strong>example:</strong>
* <p>1504147745000</p>
*/
public Builder createTimeStamp(Long createTimeStamp) {
this.createTimeStamp = createTimeStamp;
return this;
}
/**
* <p>The time when the CA certificate expires. The time is in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2024-11-21T06:04:25Z</p>
*/
public Builder expireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* <p>The timestamp that indicates when the CA certificate expires. Unit: milliseconds.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p>
*
* <strong>example:</strong>
* <p>1732169065000</p>
*/
public Builder expireTimeStamp(Long expireTimeStamp) {
this.expireTimeStamp = expireTimeStamp;
return this;
}
/**
* <p>The fingerprint of the CA certificate.</p>
*
* <strong>example:</strong>
* <p>79:43:fb:7d:a4:7f:44:32:61:16:57:17:e3:e8:b7:36:03:57:f6:89</p>
*/
public Builder fingerprint(String fingerprint) {
this.fingerprint = fingerprint;
return this;
}
/**
* <p>The region of the CA certificate.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-atstuj3rtop****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The tag.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
public CACertificate build() {
return new CACertificate(this);
}
}
}
/**
*
* {@link DescribeCACertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCACertificatesResponseBody</p>
*/
public static class CACertificates extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CACertificate")
private java.util.List<CACertificate> CACertificate;
private CACertificates(Builder builder) {
this.CACertificate = builder.CACertificate;
}
public static Builder builder() {
return new Builder();
}
public static CACertificates create() {
return builder().build();
}
/**
* @return CACertificate
*/
public java.util.List<CACertificate> getCACertificate() {
return this.CACertificate;
}
public static final class Builder {
private java.util.List<CACertificate> CACertificate;
/**
* CACertificate.
*/
public Builder CACertificate(java.util.List<CACertificate> CACertificate) {
this.CACertificate = CACertificate;
return this;
}
public CACertificates build() {
return new CACertificates(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeDomainExtensionAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeDomainExtensionAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeDomainExtensionAttributeRequest</p>
*/
public class DescribeDomainExtensionAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DomainExtensionId")
@com.aliyun.core.annotation.Validation(required = true)
private String domainExtensionId;
@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 DescribeDomainExtensionAttributeRequest(Builder builder) {
super(builder);
this.domainExtensionId = builder.domainExtensionId;
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 DescribeDomainExtensionAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return domainExtensionId
*/
public String getDomainExtensionId() {
return this.domainExtensionId;
}
/**
* @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<DescribeDomainExtensionAttributeRequest, Builder> {
private String domainExtensionId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDomainExtensionAttributeRequest request) {
super(request);
this.domainExtensionId = request.domainExtensionId;
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 additional certificate.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>de-bp1rp7ta1****</p>
*/
public Builder domainExtensionId(String domainExtensionId) {
this.putQueryParameter("DomainExtensionId", domainExtensionId);
this.domainExtensionId = domainExtensionId;
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 Server Load Balancer (SLB) instance is deployed.</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 DescribeDomainExtensionAttributeRequest build() {
return new DescribeDomainExtensionAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeDomainExtensionAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeDomainExtensionAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeDomainExtensionAttributeResponse</p>
*/
public class DescribeDomainExtensionAttributeResponse 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 DescribeDomainExtensionAttributeResponseBody body;
private DescribeDomainExtensionAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDomainExtensionAttributeResponse 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 DescribeDomainExtensionAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDomainExtensionAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDomainExtensionAttributeResponseBody body);
@Override
DescribeDomainExtensionAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDomainExtensionAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDomainExtensionAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDomainExtensionAttributeResponse 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(DescribeDomainExtensionAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDomainExtensionAttributeResponse build() {
return new DescribeDomainExtensionAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeDomainExtensionAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeDomainExtensionAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeDomainExtensionAttributeResponseBody</p>
*/
public class DescribeDomainExtensionAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("DomainExtensionId")
private String domainExtensionId;
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ServerCertificateId")
private String serverCertificateId;
private DescribeDomainExtensionAttributeResponseBody(Builder builder) {
this.domain = builder.domain;
this.domainExtensionId = builder.domainExtensionId;
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
this.requestId = builder.requestId;
this.serverCertificateId = builder.serverCertificateId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDomainExtensionAttributeResponseBody create() {
return builder().build();
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return domainExtensionId
*/
public String getDomainExtensionId() {
return this.domainExtensionId;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return serverCertificateId
*/
public String getServerCertificateId() {
return this.serverCertificateId;
}
public static final class Builder {
private String domain;
private String domainExtensionId;
private Integer listenerPort;
private String loadBalancerId;
private String requestId;
private String serverCertificateId;
/**
* <p>The domain name.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* <p>The ID of the additional certificate.</p>
*
* <strong>example:</strong>
* <p>de-bp1rp7ta1****</p>
*/
public Builder domainExtensionId(String domainExtensionId) {
this.domainExtensionId = domainExtensionId;
return this;
}
/**
* <p>The frontend port of the HTTPS listener that is configured for the SLB instance. Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
*
* <strong>example:</strong>
* <p>443</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The ID of the SLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-bp1o94dp5i6*****earr9g6d1l</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>48C1B671-C6DB-4DDE-9B30-10557E36CDE0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the server certificate used by the domain name.</p>
*
* <strong>example:</strong>
* <p>231579085529123_166f82******_1714763408_709981430</p>
*/
public Builder serverCertificateId(String serverCertificateId) {
this.serverCertificateId = serverCertificateId;
return this;
}
public DescribeDomainExtensionAttributeResponseBody build() {
return new DescribeDomainExtensionAttributeResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeDomainExtensionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeDomainExtensionsRequest} extends {@link RequestModel}
*
* <p>DescribeDomainExtensionsRequest</p>
*/
public class DescribeDomainExtensionsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DomainExtensionId")
private String domainExtensionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerPort")
@com.aliyun.core.annotation.Validation(required = true)
private Integer listenerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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 DescribeDomainExtensionsRequest(Builder builder) {
super(builder);
this.domainExtensionId = builder.domainExtensionId;
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
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 DescribeDomainExtensionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return domainExtensionId
*/
public String getDomainExtensionId() {
return this.domainExtensionId;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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<DescribeDomainExtensionsRequest, Builder> {
private String domainExtensionId;
private Integer listenerPort;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeDomainExtensionsRequest request) {
super(request);
this.domainExtensionId = request.domainExtensionId;
this.listenerPort = request.listenerPort;
this.loadBalancerId = request.loadBalancerId;
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 additional certificate.</p>
*
* <strong>example:</strong>
* <p>de-bp1rp7ta1****</p>
*/
public Builder domainExtensionId(String domainExtensionId) {
this.putQueryParameter("DomainExtensionId", domainExtensionId);
this.domainExtensionId = domainExtensionId;
return this;
}
/**
* <p>The frontend port of the HTTPS listener that is configured for the Classic Load Balancer (CLB) instance. Valid values: <strong>1 to 65535</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>443</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.putQueryParameter("ListenerPort", listenerPort);
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1b6c719dfa08ex****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 CLB instance is deployed.</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 DescribeDomainExtensionsRequest build() {
return new DescribeDomainExtensionsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeDomainExtensionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeDomainExtensionsResponse} extends {@link TeaModel}
*
* <p>DescribeDomainExtensionsResponse</p>
*/
public class DescribeDomainExtensionsResponse 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 DescribeDomainExtensionsResponseBody body;
private DescribeDomainExtensionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeDomainExtensionsResponse 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 DescribeDomainExtensionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeDomainExtensionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeDomainExtensionsResponseBody body);
@Override
DescribeDomainExtensionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeDomainExtensionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeDomainExtensionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeDomainExtensionsResponse 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(DescribeDomainExtensionsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeDomainExtensionsResponse build() {
return new DescribeDomainExtensionsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeDomainExtensionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeDomainExtensionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDomainExtensionsResponseBody</p>
*/
public class DescribeDomainExtensionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DomainExtensions")
private DomainExtensions domainExtensions;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDomainExtensionsResponseBody(Builder builder) {
this.domainExtensions = builder.domainExtensions;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDomainExtensionsResponseBody create() {
return builder().build();
}
/**
* @return domainExtensions
*/
public DomainExtensions getDomainExtensions() {
return this.domainExtensions;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private DomainExtensions domainExtensions;
private String requestId;
/**
* <p>The list of additional certificates.</p>
*/
public Builder domainExtensions(DomainExtensions domainExtensions) {
this.domainExtensions = domainExtensions;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>48C1B671-C6DB-4DDE-9B30-10557E36CDE0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDomainExtensionsResponseBody build() {
return new DescribeDomainExtensionsResponseBody(this);
}
}
/**
*
* {@link DescribeDomainExtensionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDomainExtensionsResponseBody</p>
*/
public static class DomainExtension extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("DomainExtensionId")
private String domainExtensionId;
@com.aliyun.core.annotation.NameInMap("ServerCertificateId")
private String serverCertificateId;
private DomainExtension(Builder builder) {
this.domain = builder.domain;
this.domainExtensionId = builder.domainExtensionId;
this.serverCertificateId = builder.serverCertificateId;
}
public static Builder builder() {
return new Builder();
}
public static DomainExtension create() {
return builder().build();
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return domainExtensionId
*/
public String getDomainExtensionId() {
return this.domainExtensionId;
}
/**
* @return serverCertificateId
*/
public String getServerCertificateId() {
return this.serverCertificateId;
}
public static final class Builder {
private String domain;
private String domainExtensionId;
private String serverCertificateId;
/**
* <p>The domain name.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* <p>The ID of the additional certificate.</p>
*
* <strong>example:</strong>
* <p>de-bp1rp7ta1****</p>
*/
public Builder domainExtensionId(String domainExtensionId) {
this.domainExtensionId = domainExtensionId;
return this;
}
/**
* <p>The ID of the server certificate that is used by the domain name.</p>
*
* <strong>example:</strong>
* <p>1231579085529123_166f8204689_1714763408_70998****</p>
*/
public Builder serverCertificateId(String serverCertificateId) {
this.serverCertificateId = serverCertificateId;
return this;
}
public DomainExtension build() {
return new DomainExtension(this);
}
}
}
/**
*
* {@link DescribeDomainExtensionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeDomainExtensionsResponseBody</p>
*/
public static class DomainExtensions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DomainExtension")
private java.util.List<DomainExtension> domainExtension;
private DomainExtensions(Builder builder) {
this.domainExtension = builder.domainExtension;
}
public static Builder builder() {
return new Builder();
}
public static DomainExtensions create() {
return builder().build();
}
/**
* @return domainExtension
*/
public java.util.List<DomainExtension> getDomainExtension() {
return this.domainExtension;
}
public static final class Builder {
private java.util.List<DomainExtension> domainExtension;
/**
* DomainExtension.
*/
public Builder domainExtension(java.util.List<DomainExtension> domainExtension) {
this.domainExtension = domainExtension;
return this;
}
public DomainExtensions build() {
return new DomainExtensions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeHealthStatusRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeHealthStatusRequest} extends {@link RequestModel}
*
* <p>DescribeHealthStatusRequest</p>
*/
public class DescribeHealthStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerPort")
@com.aliyun.core.annotation.Validation(maximum = 65535)
private Integer listenerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerProtocol")
private String listenerProtocol;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeHealthStatusRequest(Builder builder) {
super(builder);
this.listenerPort = builder.listenerPort;
this.listenerProtocol = builder.listenerProtocol;
this.loadBalancerId = builder.loadBalancerId;
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 DescribeHealthStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return listenerProtocol
*/
public String getListenerProtocol() {
return this.listenerProtocol;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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<DescribeHealthStatusRequest, Builder> {
private Integer listenerPort;
private String listenerProtocol;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeHealthStatusRequest request) {
super(request);
this.listenerPort = request.listenerPort;
this.listenerProtocol = request.listenerProtocol;
this.loadBalancerId = request.loadBalancerId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The frontend port that is used by the SLB instance. Valid values: <strong>1 to 65535</strong>.</p>
* <blockquote>
* <p> If you do not specify this parameter, the health status of all ports is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.putQueryParameter("ListenerPort", listenerPort);
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The frontend protocol that is used by the SLB instance.</p>
*
* <strong>example:</strong>
* <p>https</p>
*/
public Builder listenerProtocol(String listenerProtocol) {
this.putQueryParameter("ListenerProtocol", listenerProtocol);
this.listenerProtocol = listenerProtocol;
return this;
}
/**
* <p>The ID of the Classic Load Balancer (CLB) instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1qjwo61pqz3ah****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 SLB instance.</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 DescribeHealthStatusRequest build() {
return new DescribeHealthStatusRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeHealthStatusResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeHealthStatusResponse} extends {@link TeaModel}
*
* <p>DescribeHealthStatusResponse</p>
*/
public class DescribeHealthStatusResponse 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 DescribeHealthStatusResponseBody body;
private DescribeHealthStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeHealthStatusResponse 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 DescribeHealthStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeHealthStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeHealthStatusResponseBody body);
@Override
DescribeHealthStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeHealthStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeHealthStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeHealthStatusResponse 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(DescribeHealthStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeHealthStatusResponse build() {
return new DescribeHealthStatusResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeHealthStatusResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeHealthStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeHealthStatusResponseBody</p>
*/
public class DescribeHealthStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackendServers")
private BackendServers backendServers;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeHealthStatusResponseBody(Builder builder) {
this.backendServers = builder.backendServers;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeHealthStatusResponseBody create() {
return builder().build();
}
/**
* @return backendServers
*/
public BackendServers getBackendServers() {
return this.backendServers;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private BackendServers backendServers;
private String requestId;
/**
* <p>The backend servers.</p>
*/
public Builder backendServers(BackendServers backendServers) {
this.backendServers = backendServers;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeHealthStatusResponseBody build() {
return new DescribeHealthStatusResponseBody(this);
}
}
/**
*
* {@link DescribeHealthStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeHealthStatusResponseBody</p>
*/
public static class BackendServer extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("ServerHealthStatus")
private String serverHealthStatus;
@com.aliyun.core.annotation.NameInMap("ServerId")
private String serverId;
@com.aliyun.core.annotation.NameInMap("ServerIp")
private String serverIp;
private BackendServer(Builder builder) {
this.listenerPort = builder.listenerPort;
this.port = builder.port;
this.protocol = builder.protocol;
this.serverHealthStatus = builder.serverHealthStatus;
this.serverId = builder.serverId;
this.serverIp = builder.serverIp;
}
public static Builder builder() {
return new Builder();
}
public static BackendServer create() {
return builder().build();
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return serverHealthStatus
*/
public String getServerHealthStatus() {
return this.serverHealthStatus;
}
/**
* @return serverId
*/
public String getServerId() {
return this.serverId;
}
/**
* @return serverIp
*/
public String getServerIp() {
return this.serverIp;
}
public static final class Builder {
private Integer listenerPort;
private Integer port;
private String protocol;
private String serverHealthStatus;
private String serverId;
private String serverIp;
/**
* <p>The frontend port that is used by the SLB instance.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The backend port that is used by the SLB instance.</p>
*
* <strong>example:</strong>
* <p>70</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The frontend protocol that is used by the SLB instance.</p>
*
* <strong>example:</strong>
* <p>https</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The health status of the backend server. Valid values:</p>
* <ul>
* <li>normal: The backend server is healthy.</li>
* <li>abnormal: The backend server is unhealthy.</li>
* <li>unavailable: The health check is not completed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>abnormal</p>
*/
public Builder serverHealthStatus(String serverHealthStatus) {
this.serverHealthStatus = serverHealthStatus;
return this;
}
/**
* <p>The ID of the backend server.</p>
*
* <strong>example:</strong>
* <p>i-bp1h5u3fv54ytf***</p>
*/
public Builder serverId(String serverId) {
this.serverId = serverId;
return this;
}
/**
* <p>The IP address of the backend server.</p>
*
* <strong>example:</strong>
* <p>192.XX.XX.11</p>
*/
public Builder serverIp(String serverIp) {
this.serverIp = serverIp;
return this;
}
public BackendServer build() {
return new BackendServer(this);
}
}
}
/**
*
* {@link DescribeHealthStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeHealthStatusResponseBody</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;
/**
* BackendServer.
*/
public Builder backendServer(java.util.List<BackendServer> backendServer) {
this.backendServer = backendServer;
return this;
}
public BackendServers build() {
return new BackendServers(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeHighDefinationMonitorRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeHighDefinationMonitorRequest} extends {@link RequestModel}
*
* <p>DescribeHighDefinationMonitorRequest</p>
*/
public class DescribeHighDefinationMonitorRequest 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("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("Tags")
private String tags;
private DescribeHighDefinationMonitorRequest(Builder builder) {
super(builder);
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static DescribeHighDefinationMonitorRequest 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 regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
public static final class Builder extends Request.Builder<DescribeHighDefinationMonitorRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String tags;
private Builder() {
super();
}
private Builder(DescribeHighDefinationMonitorRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tags = request.tags;
}
/**
* 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 you want to query the configuration of fine-grained monitoring.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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 tags of the logs. The tags must be key-value pairs that are contained in a JSON dictionary.</p>
*
* <strong>example:</strong>
* <p>[{"tagKey":"Key1","tagValue":"Value1"}]</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
@Override
public DescribeHighDefinationMonitorRequest build() {
return new DescribeHighDefinationMonitorRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeHighDefinationMonitorResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeHighDefinationMonitorResponse} extends {@link TeaModel}
*
* <p>DescribeHighDefinationMonitorResponse</p>
*/
public class DescribeHighDefinationMonitorResponse 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 DescribeHighDefinationMonitorResponseBody body;
private DescribeHighDefinationMonitorResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeHighDefinationMonitorResponse 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 DescribeHighDefinationMonitorResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeHighDefinationMonitorResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeHighDefinationMonitorResponseBody body);
@Override
DescribeHighDefinationMonitorResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeHighDefinationMonitorResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeHighDefinationMonitorResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeHighDefinationMonitorResponse 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(DescribeHighDefinationMonitorResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeHighDefinationMonitorResponse build() {
return new DescribeHighDefinationMonitorResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeHighDefinationMonitorResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeHighDefinationMonitorResponseBody} extends {@link TeaModel}
*
* <p>DescribeHighDefinationMonitorResponseBody</p>
*/
public class DescribeHighDefinationMonitorResponseBody extends TeaModel {
@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 DescribeHighDefinationMonitorResponseBody(Builder builder) {
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 DescribeHighDefinationMonitorResponseBody create() {
return builder().build();
}
/**
* @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 logProject;
private String logStore;
private String requestId;
private String success;
/**
* <p>The name of the Log Service project.</p>
*
* <strong>example:</strong>
* <p>my-project</p>
*/
public Builder logProject(String logProject) {
this.logProject = logProject;
return this;
}
/**
* <p>The name of the Logstore.</p>
*
* <strong>example:</strong>
* <p>my-log-store</p>
*/
public Builder logStore(String logStore) {
this.logStore = logStore;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>2F398FF5-B349-5C01-8638-8E9A0BF1DBE6</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(String success) {
this.success = success;
return this;
}
public DescribeHighDefinationMonitorResponseBody build() {
return new DescribeHighDefinationMonitorResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeListenerAccessControlAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeListenerAccessControlAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeListenerAccessControlAttributeRequest</p>
*/
public class DescribeListenerAccessControlAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerPort")
@com.aliyun.core.annotation.Validation(required = true)
private Integer listenerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerProtocol")
private String listenerProtocol;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeListenerAccessControlAttributeRequest(Builder builder) {
super(builder);
this.listenerPort = builder.listenerPort;
this.listenerProtocol = builder.listenerProtocol;
this.loadBalancerId = builder.loadBalancerId;
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 DescribeListenerAccessControlAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return listenerProtocol
*/
public String getListenerProtocol() {
return this.listenerProtocol;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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<DescribeListenerAccessControlAttributeRequest, Builder> {
private Integer listenerPort;
private String listenerProtocol;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeListenerAccessControlAttributeRequest request) {
super(request);
this.listenerPort = request.listenerPort;
this.listenerProtocol = request.listenerProtocol;
this.loadBalancerId = request.loadBalancerId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The frontend port that is used by the CLB instance.</p>
* <p>Valid values: <strong>1 to 65535</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.putQueryParameter("ListenerPort", listenerPort);
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The frontend protocol that is used by the CLB instance.</p>
* <blockquote>
* <p>This parameter is required if the same port is specified for listeners of different protocols.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>https</p>
*/
public Builder listenerProtocol(String listenerProtocol) {
this.putQueryParameter("ListenerProtocol", listenerProtocol);
this.listenerProtocol = listenerProtocol;
return this;
}
/**
* <p>The CLB instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-8vb86hxixo8lvsja8****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 the Classic Load Balancer (CLB) instance is created.</p>
* <p>You can query the region ID from the <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a> list or by calling the <a href="https://help.aliyun.com/document_detail/25609.html">DescribeRegions</a> operation.</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 DescribeListenerAccessControlAttributeRequest build() {
return new DescribeListenerAccessControlAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeListenerAccessControlAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeListenerAccessControlAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeListenerAccessControlAttributeResponse</p>
*/
public class DescribeListenerAccessControlAttributeResponse 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 DescribeListenerAccessControlAttributeResponseBody body;
private DescribeListenerAccessControlAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeListenerAccessControlAttributeResponse 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 DescribeListenerAccessControlAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeListenerAccessControlAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeListenerAccessControlAttributeResponseBody body);
@Override
DescribeListenerAccessControlAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeListenerAccessControlAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeListenerAccessControlAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeListenerAccessControlAttributeResponse 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(DescribeListenerAccessControlAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeListenerAccessControlAttributeResponse build() {
return new DescribeListenerAccessControlAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeListenerAccessControlAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeListenerAccessControlAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeListenerAccessControlAttributeResponseBody</p>
*/
public class DescribeListenerAccessControlAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessControlStatus")
private String accessControlStatus;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SourceItems")
private String sourceItems;
private DescribeListenerAccessControlAttributeResponseBody(Builder builder) {
this.accessControlStatus = builder.accessControlStatus;
this.requestId = builder.requestId;
this.sourceItems = builder.sourceItems;
}
public static Builder builder() {
return new Builder();
}
public static DescribeListenerAccessControlAttributeResponseBody create() {
return builder().build();
}
/**
* @return accessControlStatus
*/
public String getAccessControlStatus() {
return this.accessControlStatus;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return sourceItems
*/
public String getSourceItems() {
return this.sourceItems;
}
public static final class Builder {
private String accessControlStatus;
private String requestId;
private String sourceItems;
/**
* <p>Indicates whether the whitelist is enabled. Valid values:</p>
* <ul>
* <li><strong>open_white_list</strong>: the whitelist is enabled.</li>
* <li><strong>close</strong>: the whitelist is disabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>open_white_list</p>
*/
public Builder accessControlStatus(String accessControlStatus) {
this.accessControlStatus = accessControlStatus;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The queried ACLs.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder sourceItems(String sourceItems) {
this.sourceItems = sourceItems;
return this;
}
public DescribeListenerAccessControlAttributeResponseBody build() {
return new DescribeListenerAccessControlAttributeResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeLoadBalancerAttributeRequest</p>
*/
public class DescribeLoadBalancerAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeLoadBalancerAttributeRequest(Builder builder) {
super(builder);
this.loadBalancerId = builder.loadBalancerId;
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 DescribeLoadBalancerAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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<DescribeLoadBalancerAttributeRequest, Builder> {
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeLoadBalancerAttributeRequest request) {
super(request);
this.loadBalancerId = request.loadBalancerId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The CLB instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1b6c719dfa08ex****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 CLB instance.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/25609.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;
}
@Override
public DescribeLoadBalancerAttributeRequest build() {
return new DescribeLoadBalancerAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponse</p>
*/
public class DescribeLoadBalancerAttributeResponse 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 DescribeLoadBalancerAttributeResponseBody body;
private DescribeLoadBalancerAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeLoadBalancerAttributeResponse 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 DescribeLoadBalancerAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeLoadBalancerAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeLoadBalancerAttributeResponseBody body);
@Override
DescribeLoadBalancerAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeLoadBalancerAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeLoadBalancerAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeLoadBalancerAttributeResponse 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(DescribeLoadBalancerAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeLoadBalancerAttributeResponse build() {
return new DescribeLoadBalancerAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponseBody</p>
*/
public class DescribeLoadBalancerAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Address")
private String address;
@com.aliyun.core.annotation.NameInMap("AddressIPVersion")
private String addressIPVersion;
@com.aliyun.core.annotation.NameInMap("AddressType")
private String addressType;
@com.aliyun.core.annotation.NameInMap("AutoReleaseTime")
private Long autoReleaseTime;
@com.aliyun.core.annotation.NameInMap("BackendServers")
private BackendServers backendServers;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Integer bandwidth;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("CreateTimeStamp")
private Long createTimeStamp;
@com.aliyun.core.annotation.NameInMap("DeleteProtection")
private String deleteProtection;
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.NameInMap("EndTimeStamp")
private Long endTimeStamp;
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.NameInMap("ListenerPorts")
private ListenerPorts listenerPorts;
@com.aliyun.core.annotation.NameInMap("ListenerPortsAndProtocal")
private ListenerPortsAndProtocal listenerPortsAndProtocal;
@com.aliyun.core.annotation.NameInMap("ListenerPortsAndProtocol")
private ListenerPortsAndProtocol listenerPortsAndProtocol;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("LoadBalancerName")
private String loadBalancerName;
@com.aliyun.core.annotation.NameInMap("LoadBalancerSpec")
private String loadBalancerSpec;
@com.aliyun.core.annotation.NameInMap("LoadBalancerStatus")
private String loadBalancerStatus;
@com.aliyun.core.annotation.NameInMap("MasterZoneId")
private String masterZoneId;
@com.aliyun.core.annotation.NameInMap("ModificationProtectionReason")
private String modificationProtectionReason;
@com.aliyun.core.annotation.NameInMap("ModificationProtectionStatus")
private String modificationProtectionStatus;
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RegionIdAlias")
private String regionIdAlias;
@com.aliyun.core.annotation.NameInMap("RenewalCycUnit")
private String renewalCycUnit;
@com.aliyun.core.annotation.NameInMap("RenewalDuration")
private Integer renewalDuration;
@com.aliyun.core.annotation.NameInMap("RenewalStatus")
private String renewalStatus;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("SlaveZoneId")
private String slaveZoneId;
@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 DescribeLoadBalancerAttributeResponseBody(Builder builder) {
this.address = builder.address;
this.addressIPVersion = builder.addressIPVersion;
this.addressType = builder.addressType;
this.autoReleaseTime = builder.autoReleaseTime;
this.backendServers = builder.backendServers;
this.bandwidth = builder.bandwidth;
this.createTime = builder.createTime;
this.createTimeStamp = builder.createTimeStamp;
this.deleteProtection = builder.deleteProtection;
this.endTime = builder.endTime;
this.endTimeStamp = builder.endTimeStamp;
this.instanceChargeType = builder.instanceChargeType;
this.internetChargeType = builder.internetChargeType;
this.listenerPorts = builder.listenerPorts;
this.listenerPortsAndProtocal = builder.listenerPortsAndProtocal;
this.listenerPortsAndProtocol = builder.listenerPortsAndProtocol;
this.loadBalancerId = builder.loadBalancerId;
this.loadBalancerName = builder.loadBalancerName;
this.loadBalancerSpec = builder.loadBalancerSpec;
this.loadBalancerStatus = builder.loadBalancerStatus;
this.masterZoneId = builder.masterZoneId;
this.modificationProtectionReason = builder.modificationProtectionReason;
this.modificationProtectionStatus = builder.modificationProtectionStatus;
this.networkType = builder.networkType;
this.payType = builder.payType;
this.regionId = builder.regionId;
this.regionIdAlias = builder.regionIdAlias;
this.renewalCycUnit = builder.renewalCycUnit;
this.renewalDuration = builder.renewalDuration;
this.renewalStatus = builder.renewalStatus;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.slaveZoneId = builder.slaveZoneId;
this.tags = builder.tags;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeLoadBalancerAttributeResponseBody create() {
return builder().build();
}
/**
* @return address
*/
public String getAddress() {
return this.address;
}
/**
* @return addressIPVersion
*/
public String getAddressIPVersion() {
return this.addressIPVersion;
}
/**
* @return addressType
*/
public String getAddressType() {
return this.addressType;
}
/**
* @return autoReleaseTime
*/
public Long getAutoReleaseTime() {
return this.autoReleaseTime;
}
/**
* @return backendServers
*/
public BackendServers getBackendServers() {
return this.backendServers;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return createTimeStamp
*/
public Long getCreateTimeStamp() {
return this.createTimeStamp;
}
/**
* @return deleteProtection
*/
public String getDeleteProtection() {
return this.deleteProtection;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return endTimeStamp
*/
public Long getEndTimeStamp() {
return this.endTimeStamp;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return listenerPorts
*/
public ListenerPorts getListenerPorts() {
return this.listenerPorts;
}
/**
* @return listenerPortsAndProtocal
*/
public ListenerPortsAndProtocal getListenerPortsAndProtocal() {
return this.listenerPortsAndProtocal;
}
/**
* @return listenerPortsAndProtocol
*/
public ListenerPortsAndProtocol getListenerPortsAndProtocol() {
return this.listenerPortsAndProtocol;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return loadBalancerName
*/
public String getLoadBalancerName() {
return this.loadBalancerName;
}
/**
* @return loadBalancerSpec
*/
public String getLoadBalancerSpec() {
return this.loadBalancerSpec;
}
/**
* @return loadBalancerStatus
*/
public String getLoadBalancerStatus() {
return this.loadBalancerStatus;
}
/**
* @return masterZoneId
*/
public String getMasterZoneId() {
return this.masterZoneId;
}
/**
* @return modificationProtectionReason
*/
public String getModificationProtectionReason() {
return this.modificationProtectionReason;
}
/**
* @return modificationProtectionStatus
*/
public String getModificationProtectionStatus() {
return this.modificationProtectionStatus;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return regionIdAlias
*/
public String getRegionIdAlias() {
return this.regionIdAlias;
}
/**
* @return renewalCycUnit
*/
public String getRenewalCycUnit() {
return this.renewalCycUnit;
}
/**
* @return renewalDuration
*/
public Integer getRenewalDuration() {
return this.renewalDuration;
}
/**
* @return renewalStatus
*/
public String getRenewalStatus() {
return this.renewalStatus;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return slaveZoneId
*/
public String getSlaveZoneId() {
return this.slaveZoneId;
}
/**
* @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 address;
private String addressIPVersion;
private String addressType;
private Long autoReleaseTime;
private BackendServers backendServers;
private Integer bandwidth;
private String createTime;
private Long createTimeStamp;
private String deleteProtection;
private String endTime;
private Long endTimeStamp;
private String instanceChargeType;
private String internetChargeType;
private ListenerPorts listenerPorts;
private ListenerPortsAndProtocal listenerPortsAndProtocal;
private ListenerPortsAndProtocol listenerPortsAndProtocol;
private String loadBalancerId;
private String loadBalancerName;
private String loadBalancerSpec;
private String loadBalancerStatus;
private String masterZoneId;
private String modificationProtectionReason;
private String modificationProtectionStatus;
private String networkType;
private String payType;
private String regionId;
private String regionIdAlias;
private String renewalCycUnit;
private Integer renewalDuration;
private String renewalStatus;
private String requestId;
private String resourceGroupId;
private String slaveZoneId;
private Tags tags;
private String vSwitchId;
private String vpcId;
/**
* <p>The service IP address of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>42.XX.XX.6</p>
*/
public Builder address(String address) {
this.address = address;
return this;
}
/**
* <p>The version of the IP address. Valid values: <strong>ipv4</strong> and <strong>ipv6</strong>.</p>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder addressIPVersion(String addressIPVersion) {
this.addressIPVersion = addressIPVersion;
return this;
}
/**
* <p>The address type of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>internet</p>
*/
public Builder addressType(String addressType) {
this.addressType = addressType;
return this;
}
/**
* <p>The timestamp generated when the CLB instance is released.</p>
*
* <strong>example:</strong>
* <p>1513947075000</p>
*/
public Builder autoReleaseTime(Long autoReleaseTime) {
this.autoReleaseTime = autoReleaseTime;
return this;
}
/**
* <p>The backend servers of the CLB instance.</p>
*/
public Builder backendServers(BackendServers backendServers) {
this.backendServers = backendServers;
return this;
}
/**
* <p>The maximum bandwidth of the Internet-facing CLB instance that is billed on a pay-by-bandwidth basis.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The time when the CLB instance was created. The time is in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2017-08-31T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The timestamp generated when the CA certificate is uploaded.</p>
*
* <strong>example:</strong>
* <p>1504147745000</p>
*/
public Builder createTimeStamp(Long createTimeStamp) {
this.createTimeStamp = createTimeStamp;
return this;
}
/**
* <p>Indicates whether deletion protection is enabled for the CLB instance.</p>
* <p>Valid values: <strong>on</strong> and <strong>off</strong>.</p>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder deleteProtection(String deleteProtection) {
this.deleteProtection = deleteProtection;
return this;
}
/**
* <p>The time when the CLB instance expires.</p>
*
* <strong>example:</strong>
* <p>2022-09-08T16:00:00Z</p>
*/
public Builder endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The timestamp that indicates the expiration time of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>32493801600000</p>
*/
public Builder endTimeStamp(Long endTimeStamp) {
this.endTimeStamp = endTimeStamp;
return this;
}
/**
* <p>The metering method of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>PayBySpec</strong> (default)</li>
* <li><strong>PayByCLCU</strong></li>
* </ul>
* <blockquote>
* <p>This parameter is available only on the China site and takes effect only when <strong>PayType</strong> is set to <strong>PayOnDemand</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>PayBySpec</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The metering method of the Internet-facing CLB instance. 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 frontend port used by the CLB instance.</p>
*/
public Builder listenerPorts(ListenerPorts listenerPorts) {
this.listenerPorts = listenerPorts;
return this;
}
/**
* <p>The ports or protocols of the listeners.</p>
*/
public Builder listenerPortsAndProtocal(ListenerPortsAndProtocal listenerPortsAndProtocal) {
this.listenerPortsAndProtocal = listenerPortsAndProtocal;
return this;
}
/**
* <p>The ports or protocols of the listeners.</p>
*/
public Builder listenerPortsAndProtocol(ListenerPortsAndProtocol listenerPortsAndProtocol) {
this.listenerPortsAndProtocol = listenerPortsAndProtocol;
return this;
}
/**
* <p>The CLB instance ID.</p>
*
* <strong>example:</strong>
* <p>lb-bp1b6c719dfa08ex****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The name of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-instance-test</p>
*/
public Builder loadBalancerName(String loadBalancerName) {
this.loadBalancerName = loadBalancerName;
return this;
}
/**
* <p>The specification of the CLB instance.</p>
* <blockquote>
* <p> Pay-as-you-go CLB instances are not subject to specifications. By default, <strong>slb.lcu.elastic</strong> is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>slb.s1.small</p>
*/
public Builder loadBalancerSpec(String loadBalancerSpec) {
this.loadBalancerSpec = loadBalancerSpec;
return this;
}
/**
* <p>The status of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>inactive</strong>: The CLB instance is disabled. CLB instances in the inactive state do not forward traffic.</li>
* <li><strong>active</strong>: The CLB instance is running as expected. Newly created CLB instances are in the <strong>active</strong> state by default.</li>
* <li><strong>locked</strong>: The CLB instance is locked. CLB instances may be locked due to overdue payments or other reasons.</li>
* </ul>
*
* <strong>example:</strong>
* <p>active</p>
*/
public Builder loadBalancerStatus(String loadBalancerStatus) {
this.loadBalancerStatus = loadBalancerStatus;
return this;
}
/**
* <p>The ID of the primary zone to which the CLB instance belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder masterZoneId(String masterZoneId) {
this.masterZoneId = masterZoneId;
return this;
}
/**
* <p>The reason why the configuration read-only mode is enabled. The value is 1 to 80 characters in length. It starts with a letter and can contain digits, periods (.), underscores (_), and hyphens (-).</p>
* <blockquote>
* <p> This parameter is valid only when <strong>ModificationProtectionStatus</strong> is set to <strong>ConsoleProtection</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Managed instance</p>
*/
public Builder modificationProtectionReason(String modificationProtectionReason) {
this.modificationProtectionReason = modificationProtectionReason;
return this;
}
/**
* <p>Indicates whether the configuration read-only mode is enabled. Valid values:</p>
* <ul>
* <li><strong>NonProtection</strong>: The configuration read-only mode is disabled. After you disable the configuration read-only mode, the value of <strong>ModificationProtectionReason</strong> is cleared.</li>
* <li><strong>ConsoleProtection</strong>: The configuration read-only mode is enabled.</li>
* </ul>
* <blockquote>
* <p> If this parameter is set to <strong>ConsoleProtection</strong>, you cannot modify instance configurations in the CLB console. However, you can modify instance configurations by calling API operations.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ConsoleProtection</p>
*/
public Builder modificationProtectionStatus(String modificationProtectionStatus) {
this.modificationProtectionStatus = modificationProtectionStatus;
return this;
}
/**
* <p>The network type of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>vpc</p>
*/
public Builder networkType(String networkType) {
this.networkType = networkType;
return this;
}
/**
* <p>The billing method of the CLB instance. Valid values:</p>
* <ul>
* <li>Only <strong>PayOnDemand</strong> may be returned, which indicates the pay-as-you-go billing method.</li>
* </ul>
*
* <strong>example:</strong>
* <p>PayOnDemand</p>
*/
public Builder payType(String payType) {
this.payType = payType;
return this;
}
/**
* <p>The region ID of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The alias of the region to which the CLB instance belongs.</p>
*
* <strong>example:</strong>
* <p>hangzhou</p>
*/
public Builder regionIdAlias(String regionIdAlias) {
this.regionIdAlias = regionIdAlias;
return this;
}
/**
* <p>The auto-renewal cycle. Valid values: <strong>Year</strong> and <strong>Month</strong>. Default value: Month.</p>
* <blockquote>
* <p> This parameter is valid only if you create a subscription CLB instance on the Alibaba Cloud China site. In this case, <strong>PayType</strong> must be set to <strong>PrePay</strong> and <strong>RenewalStatus</strong> must be set to <strong>AutoRenewal</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Month</p>
*/
public Builder renewalCycUnit(String renewalCycUnit) {
this.renewalCycUnit = renewalCycUnit;
return this;
}
/**
* <p>The auto-renewal duration. This parameter is valid only if <strong>RenewalStatus</strong> is set to <strong>AutoRenewal</strong>.</p>
* <ul>
* <li><p>Valid values when <strong>PeriodUnit</strong> is set to <strong>Year</strong>: <strong>1</strong>~<strong>5</strong>.</p>
* </li>
* <li><p>Valid values when <strong>PeriodUnit</strong> is set to <strong>Month</strong>: <strong>1</strong>~ <strong>9</strong>.</p>
* </li>
* </ul>
* <blockquote>
* <p>This parameter is valid only when you create a subscription CLB instance on the Alibaba Cloud China site. In this case, the <strong>PayType</strong> parameter must be set to <strong>PrePay</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder renewalDuration(Integer renewalDuration) {
this.renewalDuration = renewalDuration;
return this;
}
/**
* <p>Indicates whether auto-renewal is enabled. Valid values:</p>
* <ul>
* <li><p><strong>AutoRenewal</strong>: Auto-renewal is enabled.</p>
* </li>
* <li><p><strong>Normal</strong>: Auto-renewal is disabled. You must manually renew the CLB instance.</p>
* </li>
* <li><p><strong>NotRenewal</strong>: The CLB instance will not be renewed upon expiration. If this value is returned, the system does not send notifications until three days before the expiration date.</p>
* <p>**</p>
* <p><strong>Note</strong> This parameter is valid only when you create a subscription CLB instance on the Alibaba Cloud China site. In this case, <strong>PayType</strong> must be set to <strong>PrePay</strong>.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>AutoRenewal</p>
*/
public Builder renewalStatus(String renewalStatus) {
this.renewalStatus = renewalStatus;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-atstuj3rtop****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the secondary zone to which the CLB instance belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-d</p>
*/
public Builder slaveZoneId(String slaveZoneId) {
this.slaveZoneId = slaveZoneId;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the vSwitch to which the internal-facing CLB instance belongs.</p>
*
* <strong>example:</strong>
* <p>vsw-255ecrwq5****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) where the internal-facing CLB instance is deployed.</p>
*
* <strong>example:</strong>
* <p>vpc-25dvzy9f8****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public DescribeLoadBalancerAttributeResponseBody build() {
return new DescribeLoadBalancerAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeLoadBalancerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponseBody</p>
*/
public static class BackendServer extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ServerId")
private String serverId;
@com.aliyun.core.annotation.NameInMap("ServerIp")
private String serverIp;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Weight")
private Integer weight;
private BackendServer(Builder builder) {
this.description = builder.description;
this.serverId = builder.serverId;
this.serverIp = builder.serverIp;
this.type = builder.type;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static BackendServer create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return serverId
*/
public String getServerId() {
return this.serverId;
}
/**
* @return serverIp
*/
public String getServerIp() {
return this.serverIp;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder {
private String description;
private String serverId;
private String serverIp;
private String type;
private Integer weight;
/**
* <p>The description of the backend server.</p>
* <blockquote>
* <p>This parameter is not returned if Description is not set.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>backend server description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The backend server ID.</p>
*
* <strong>example:</strong>
* <p>i-2zej4lxhjoq1icu*****</p>
*/
public Builder serverId(String serverId) {
this.serverId = serverId;
return this;
}
/**
* <p>The ID of the elastic network interface (ENI) or elastic container instance.</p>
*
* <strong>example:</strong>
* <p>192.XX.XX.11</p>
*/
public Builder serverIp(String serverIp) {
this.serverIp = serverIp;
return this;
}
/**
* <p>The type of the backend server.</p>
*
* <strong>example:</strong>
* <p>ecs</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The weight of the backend server.</p>
*
* <strong>example:</strong>
* <p>90</p>
*/
public Builder weight(Integer weight) {
this.weight = weight;
return this;
}
public BackendServer build() {
return new BackendServer(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponseBody</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;
/**
* BackendServer.
*/
public Builder backendServer(java.util.List<BackendServer> backendServer) {
this.backendServer = backendServer;
return this;
}
public BackendServers build() {
return new BackendServers(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponseBody</p>
*/
public static class ListenerPorts extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private java.util.List<Integer> listenerPort;
private ListenerPorts(Builder builder) {
this.listenerPort = builder.listenerPort;
}
public static Builder builder() {
return new Builder();
}
public static ListenerPorts create() {
return builder().build();
}
/**
* @return listenerPort
*/
public java.util.List<Integer> getListenerPort() {
return this.listenerPort;
}
public static final class Builder {
private java.util.List<Integer> listenerPort;
/**
* ListenerPort.
*/
public Builder listenerPort(java.util.List<Integer> listenerPort) {
this.listenerPort = listenerPort;
return this;
}
public ListenerPorts build() {
return new ListenerPorts(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponseBody</p>
*/
public static class ListenerPortAndProtocal extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("ListenerProtocal")
private String listenerProtocal;
private ListenerPortAndProtocal(Builder builder) {
this.listenerPort = builder.listenerPort;
this.listenerProtocal = builder.listenerProtocal;
}
public static Builder builder() {
return new Builder();
}
public static ListenerPortAndProtocal create() {
return builder().build();
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return listenerProtocal
*/
public String getListenerProtocal() {
return this.listenerProtocal;
}
public static final class Builder {
private Integer listenerPort;
private String listenerProtocal;
/**
* <p>The frontend port that is used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>443</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The frontend protocol that is used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>http</p>
*/
public Builder listenerProtocal(String listenerProtocal) {
this.listenerProtocal = listenerProtocal;
return this;
}
public ListenerPortAndProtocal build() {
return new ListenerPortAndProtocal(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponseBody</p>
*/
public static class ListenerPortsAndProtocal extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ListenerPortAndProtocal")
private java.util.List<ListenerPortAndProtocal> listenerPortAndProtocal;
private ListenerPortsAndProtocal(Builder builder) {
this.listenerPortAndProtocal = builder.listenerPortAndProtocal;
}
public static Builder builder() {
return new Builder();
}
public static ListenerPortsAndProtocal create() {
return builder().build();
}
/**
* @return listenerPortAndProtocal
*/
public java.util.List<ListenerPortAndProtocal> getListenerPortAndProtocal() {
return this.listenerPortAndProtocal;
}
public static final class Builder {
private java.util.List<ListenerPortAndProtocal> listenerPortAndProtocal;
/**
* ListenerPortAndProtocal.
*/
public Builder listenerPortAndProtocal(java.util.List<ListenerPortAndProtocal> listenerPortAndProtocal) {
this.listenerPortAndProtocal = listenerPortAndProtocal;
return this;
}
public ListenerPortsAndProtocal build() {
return new ListenerPortsAndProtocal(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponseBody</p>
*/
public static class ListenerPortAndProtocol extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ForwardPort")
private Integer forwardPort;
@com.aliyun.core.annotation.NameInMap("ListenerForward")
private String listenerForward;
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("ListenerProtocol")
private String listenerProtocol;
private ListenerPortAndProtocol(Builder builder) {
this.description = builder.description;
this.forwardPort = builder.forwardPort;
this.listenerForward = builder.listenerForward;
this.listenerPort = builder.listenerPort;
this.listenerProtocol = builder.listenerProtocol;
}
public static Builder builder() {
return new Builder();
}
public static ListenerPortAndProtocol create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return forwardPort
*/
public Integer getForwardPort() {
return this.forwardPort;
}
/**
* @return listenerForward
*/
public String getListenerForward() {
return this.listenerForward;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return listenerProtocol
*/
public String getListenerProtocol() {
return this.listenerProtocol;
}
public static final class Builder {
private String description;
private Integer forwardPort;
private String listenerForward;
private Integer listenerPort;
private String listenerProtocol;
/**
* <p>Indicates whether the listener is enabled.</p>
*
* <strong>example:</strong>
* <p>Listener Description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The destination listening port to which requests are forwarded. The port must be open and use HTTPS.</p>
*
* <strong>example:</strong>
* <p>443</p>
*/
public Builder forwardPort(Integer forwardPort) {
this.forwardPort = forwardPort;
return this;
}
/**
* <p>Indicates whether the listener is enabled.</p>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder listenerForward(String listenerForward) {
this.listenerForward = listenerForward;
return this;
}
/**
* <p>The frontend port that is used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The frontend protocol that is used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>https</p>
*/
public Builder listenerProtocol(String listenerProtocol) {
this.listenerProtocol = listenerProtocol;
return this;
}
public ListenerPortAndProtocol build() {
return new ListenerPortAndProtocol(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponseBody</p>
*/
public static class ListenerPortsAndProtocol extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ListenerPortAndProtocol")
private java.util.List<ListenerPortAndProtocol> listenerPortAndProtocol;
private ListenerPortsAndProtocol(Builder builder) {
this.listenerPortAndProtocol = builder.listenerPortAndProtocol;
}
public static Builder builder() {
return new Builder();
}
public static ListenerPortsAndProtocol create() {
return builder().build();
}
/**
* @return listenerPortAndProtocol
*/
public java.util.List<ListenerPortAndProtocol> getListenerPortAndProtocol() {
return this.listenerPortAndProtocol;
}
public static final class Builder {
private java.util.List<ListenerPortAndProtocol> listenerPortAndProtocol;
/**
* ListenerPortAndProtocol.
*/
public Builder listenerPortAndProtocol(java.util.List<ListenerPortAndProtocol> listenerPortAndProtocol) {
this.listenerPortAndProtocol = listenerPortAndProtocol;
return this;
}
public ListenerPortsAndProtocol build() {
return new ListenerPortsAndProtocol(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponseBody</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;
/**
* <p>The tag key. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag key cannot be an empty string.</p>
* <p>The tag key can be at most 64 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. It must not start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. The tag value cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>value</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerAttributeResponseBody</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;
/**
* 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerHTTPListenerAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerHTTPListenerAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeLoadBalancerHTTPListenerAttributeRequest</p>
*/
public class DescribeLoadBalancerHTTPListenerAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerPort")
@com.aliyun.core.annotation.Validation(required = true, maximum = 65535, minimum = 1)
private Integer listenerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeLoadBalancerHTTPListenerAttributeRequest(Builder builder) {
super(builder);
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
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 DescribeLoadBalancerHTTPListenerAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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<DescribeLoadBalancerHTTPListenerAttributeRequest, Builder> {
private Integer listenerPort;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeLoadBalancerHTTPListenerAttributeRequest request) {
super(request);
this.listenerPort = request.listenerPort;
this.loadBalancerId = request.loadBalancerId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The frontend port that is used by the CLB instance.</p>
* <p>Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.putQueryParameter("ListenerPort", listenerPort);
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The CLB instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1uaunez0uho0zf0****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 CLB instance.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/25609.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;
}
@Override
public DescribeLoadBalancerHTTPListenerAttributeRequest build() {
return new DescribeLoadBalancerHTTPListenerAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerHTTPListenerAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerHTTPListenerAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPListenerAttributeResponse</p>
*/
public class DescribeLoadBalancerHTTPListenerAttributeResponse 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 DescribeLoadBalancerHTTPListenerAttributeResponseBody body;
private DescribeLoadBalancerHTTPListenerAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeLoadBalancerHTTPListenerAttributeResponse 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 DescribeLoadBalancerHTTPListenerAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeLoadBalancerHTTPListenerAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeLoadBalancerHTTPListenerAttributeResponseBody body);
@Override
DescribeLoadBalancerHTTPListenerAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeLoadBalancerHTTPListenerAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeLoadBalancerHTTPListenerAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeLoadBalancerHTTPListenerAttributeResponse 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(DescribeLoadBalancerHTTPListenerAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeLoadBalancerHTTPListenerAttributeResponse build() {
return new DescribeLoadBalancerHTTPListenerAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerHTTPListenerAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerHTTPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPListenerAttributeResponseBody</p>
*/
public class DescribeLoadBalancerHTTPListenerAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.NameInMap("AclIds")
private AclIds aclIds;
@com.aliyun.core.annotation.NameInMap("AclStatus")
private String aclStatus;
@com.aliyun.core.annotation.NameInMap("AclType")
private String aclType;
@com.aliyun.core.annotation.NameInMap("BackendServerPort")
private Integer backendServerPort;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Integer bandwidth;
@com.aliyun.core.annotation.NameInMap("Cookie")
private String cookie;
@com.aliyun.core.annotation.NameInMap("CookieTimeout")
private Integer cookieTimeout;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ForwardPort")
private Integer forwardPort;
@com.aliyun.core.annotation.NameInMap("Gzip")
private String gzip;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private String healthCheck;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort")
private Integer healthCheckConnectPort;
@com.aliyun.core.annotation.NameInMap("HealthCheckDomain")
private String healthCheckDomain;
@com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode")
private String healthCheckHttpCode;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckMethod")
private String healthCheckMethod;
@com.aliyun.core.annotation.NameInMap("HealthCheckTimeout")
private Integer healthCheckTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheckURI")
private String healthCheckURI;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("IdleTimeout")
private Integer idleTimeout;
@com.aliyun.core.annotation.NameInMap("ListenerForward")
private String listenerForward;
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RequestTimeout")
private Integer requestTimeout;
@com.aliyun.core.annotation.NameInMap("Rules")
private Rules rules;
@com.aliyun.core.annotation.NameInMap("Scheduler")
private String scheduler;
@com.aliyun.core.annotation.NameInMap("SecurityStatus")
private String securityStatus;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StickySession")
private String stickySession;
@com.aliyun.core.annotation.NameInMap("StickySessionType")
private String stickySessionType;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("UnhealthyThreshold")
private Integer unhealthyThreshold;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
@com.aliyun.core.annotation.NameInMap("XForwardedFor")
private String xForwardedFor;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientSrcPort")
private String xForwardedForClientSrcPort;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBID")
private String xForwardedForSLBID;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBIP")
private String xForwardedForSLBIP;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBPORT")
private String xForwardedForSLBPORT;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_proto")
private String xForwardedForProto;
private DescribeLoadBalancerHTTPListenerAttributeResponseBody(Builder builder) {
this.aclId = builder.aclId;
this.aclIds = builder.aclIds;
this.aclStatus = builder.aclStatus;
this.aclType = builder.aclType;
this.backendServerPort = builder.backendServerPort;
this.bandwidth = builder.bandwidth;
this.cookie = builder.cookie;
this.cookieTimeout = builder.cookieTimeout;
this.description = builder.description;
this.forwardPort = builder.forwardPort;
this.gzip = builder.gzip;
this.healthCheck = builder.healthCheck;
this.healthCheckConnectPort = builder.healthCheckConnectPort;
this.healthCheckDomain = builder.healthCheckDomain;
this.healthCheckHttpCode = builder.healthCheckHttpCode;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckMethod = builder.healthCheckMethod;
this.healthCheckTimeout = builder.healthCheckTimeout;
this.healthCheckURI = builder.healthCheckURI;
this.healthyThreshold = builder.healthyThreshold;
this.idleTimeout = builder.idleTimeout;
this.listenerForward = builder.listenerForward;
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
this.requestId = builder.requestId;
this.requestTimeout = builder.requestTimeout;
this.rules = builder.rules;
this.scheduler = builder.scheduler;
this.securityStatus = builder.securityStatus;
this.status = builder.status;
this.stickySession = builder.stickySession;
this.stickySessionType = builder.stickySessionType;
this.tags = builder.tags;
this.unhealthyThreshold = builder.unhealthyThreshold;
this.vServerGroupId = builder.vServerGroupId;
this.xForwardedFor = builder.xForwardedFor;
this.xForwardedForClientSrcPort = builder.xForwardedForClientSrcPort;
this.xForwardedForSLBID = builder.xForwardedForSLBID;
this.xForwardedForSLBIP = builder.xForwardedForSLBIP;
this.xForwardedForSLBPORT = builder.xForwardedForSLBPORT;
this.xForwardedForProto = builder.xForwardedForProto;
}
public static Builder builder() {
return new Builder();
}
public static DescribeLoadBalancerHTTPListenerAttributeResponseBody create() {
return builder().build();
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclIds
*/
public AclIds getAclIds() {
return this.aclIds;
}
/**
* @return aclStatus
*/
public String getAclStatus() {
return this.aclStatus;
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return backendServerPort
*/
public Integer getBackendServerPort() {
return this.backendServerPort;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return cookie
*/
public String getCookie() {
return this.cookie;
}
/**
* @return cookieTimeout
*/
public Integer getCookieTimeout() {
return this.cookieTimeout;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return forwardPort
*/
public Integer getForwardPort() {
return this.forwardPort;
}
/**
* @return gzip
*/
public String getGzip() {
return this.gzip;
}
/**
* @return healthCheck
*/
public String getHealthCheck() {
return this.healthCheck;
}
/**
* @return healthCheckConnectPort
*/
public Integer getHealthCheckConnectPort() {
return this.healthCheckConnectPort;
}
/**
* @return healthCheckDomain
*/
public String getHealthCheckDomain() {
return this.healthCheckDomain;
}
/**
* @return healthCheckHttpCode
*/
public String getHealthCheckHttpCode() {
return this.healthCheckHttpCode;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckMethod
*/
public String getHealthCheckMethod() {
return this.healthCheckMethod;
}
/**
* @return healthCheckTimeout
*/
public Integer getHealthCheckTimeout() {
return this.healthCheckTimeout;
}
/**
* @return healthCheckURI
*/
public String getHealthCheckURI() {
return this.healthCheckURI;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return idleTimeout
*/
public Integer getIdleTimeout() {
return this.idleTimeout;
}
/**
* @return listenerForward
*/
public String getListenerForward() {
return this.listenerForward;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return requestTimeout
*/
public Integer getRequestTimeout() {
return this.requestTimeout;
}
/**
* @return rules
*/
public Rules getRules() {
return this.rules;
}
/**
* @return scheduler
*/
public String getScheduler() {
return this.scheduler;
}
/**
* @return securityStatus
*/
public String getSecurityStatus() {
return this.securityStatus;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return stickySession
*/
public String getStickySession() {
return this.stickySession;
}
/**
* @return stickySessionType
*/
public String getStickySessionType() {
return this.stickySessionType;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return unhealthyThreshold
*/
public Integer getUnhealthyThreshold() {
return this.unhealthyThreshold;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
/**
* @return xForwardedFor
*/
public String getXForwardedFor() {
return this.xForwardedFor;
}
/**
* @return xForwardedForClientSrcPort
*/
public String getXForwardedForClientSrcPort() {
return this.xForwardedForClientSrcPort;
}
/**
* @return xForwardedForSLBID
*/
public String getXForwardedForSLBID() {
return this.xForwardedForSLBID;
}
/**
* @return xForwardedForSLBIP
*/
public String getXForwardedForSLBIP() {
return this.xForwardedForSLBIP;
}
/**
* @return xForwardedForSLBPORT
*/
public String getXForwardedForSLBPORT() {
return this.xForwardedForSLBPORT;
}
/**
* @return xForwardedForProto
*/
public String getXForwardedForProto() {
return this.xForwardedForProto;
}
public static final class Builder {
private String aclId;
private AclIds aclIds;
private String aclStatus;
private String aclType;
private Integer backendServerPort;
private Integer bandwidth;
private String cookie;
private Integer cookieTimeout;
private String description;
private Integer forwardPort;
private String gzip;
private String healthCheck;
private Integer healthCheckConnectPort;
private String healthCheckDomain;
private String healthCheckHttpCode;
private Integer healthCheckInterval;
private String healthCheckMethod;
private Integer healthCheckTimeout;
private String healthCheckURI;
private Integer healthyThreshold;
private Integer idleTimeout;
private String listenerForward;
private Integer listenerPort;
private String loadBalancerId;
private String requestId;
private Integer requestTimeout;
private Rules rules;
private String scheduler;
private String securityStatus;
private String status;
private String stickySession;
private String stickySessionType;
private Tags tags;
private Integer unhealthyThreshold;
private String vServerGroupId;
private String xForwardedFor;
private String xForwardedForClientSrcPort;
private String xForwardedForSLBID;
private String xForwardedForSLBIP;
private String xForwardedForSLBPORT;
private String xForwardedForProto;
/**
* <p>The ID of the network ACL that is associated with a listener.</p>
* <blockquote>
* <p>This parameter is returned when <strong>AclStatus</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder aclId(String aclId) {
this.aclId = aclId;
return this;
}
/**
* AclIds.
*/
public Builder aclIds(AclIds aclIds) {
this.aclIds = aclIds;
return this;
}
/**
* <p>Indicates whether access control is enabled. 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.aclStatus = aclStatus;
return this;
}
/**
* <p>The type of the ACL. Valid values:</p>
* <ul>
* <li><strong>white</strong>: a whitelist. Only requests from the IP addresses or CIDR blocks in the ACL are forwarded. Whitelists apply to scenarios where you want to allow only specific IP addresses to access an application. Your service may be adversely affected if the whitelist is not properly configured. If a whitelist is configured, only requests from IP addresses that are added to the whitelist are forwarded by the listener.</li>
* </ul>
* <p>If you enable a whitelist but do not add an IP address to the ACL, the listener forwards all requests.</p>
* <ul>
* <li><strong>black</strong>: a blacklist. All requests from the IP addresses or CIDR blocks in the network ACL are rejected. Blacklists apply to scenarios where you want to block access from specified IP addresses to an application.</li>
* </ul>
* <p>If a blacklist is configured for a listener but no IP address is added to the blacklist, the listener forwards all requests.</p>
* <blockquote>
* <p>This parameter is required when <strong>AclStatus</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>white</p>
*/
public Builder aclType(String aclType) {
this.aclType = aclType;
return this;
}
/**
* <p>The backend port that is used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder backendServerPort(Integer backendServerPort) {
this.backendServerPort = backendServerPort;
return this;
}
/**
* <p>The maximum bandwidth of the listener. Unit: Mbit/s.</p>
* <ul>
* <li><strong>-1</strong>: If -1 is returned, it indicates that the bandwidth of the listener is unlimited.</li>
* <li><strong>1 to 5120</strong>: If a value from 1 to 5120 is returned, the value indicates the maximum bandwidth of the listener. The sum of the maximum bandwidth of all listeners added to a CLB instance does not exceed the maximum bandwidth of the CLB instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The cookie that is configured on the server.</p>
*
* <strong>example:</strong>
* <p>B490B5EBF6F3CD402E515D22BCDA1598</p>
*/
public Builder cookie(String cookie) {
this.cookie = cookie;
return this;
}
/**
* <p>The timeout period of a cookie. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder cookieTimeout(Integer cookieTimeout) {
this.cookieTimeout = cookieTimeout;
return this;
}
/**
* <p>The name of the listener.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The listener port that is used to redirect HTTP requests to HTTPS.</p>
* <blockquote>
* <p> If the <strong>ListenerForward</strong> parameter is set to <strong>off</strong>, this parameter is not displayed.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder forwardPort(Integer forwardPort) {
this.forwardPort = forwardPort;
return this;
}
/**
* <p>Indicates whether <code>Gzip</code> compression is enabled to compress specific types of files. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder gzip(String gzip) {
this.gzip = gzip;
return this;
}
/**
* <p>Indicates whether the health check feature is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder healthCheck(String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The port that is used for health checks.</p>
* <blockquote>
* <p>This parameter takes effect only when <strong>HealthCheck</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder healthCheckConnectPort(Integer healthCheckConnectPort) {
this.healthCheckConnectPort = healthCheckConnectPort;
return this;
}
/**
* <p>The domain name that you want to use for health checks.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.domain.com">www.domain.com</a></p>
*/
public Builder healthCheckDomain(String healthCheckDomain) {
this.healthCheckDomain = healthCheckDomain;
return this;
}
/**
* <p>The HTTP status code for a successful health check.</p>
*
* <strong>example:</strong>
* <p>http_2xx,http_3xx</p>
*/
public Builder healthCheckHttpCode(String healthCheckHttpCode) {
this.healthCheckHttpCode = healthCheckHttpCode;
return this;
}
/**
* <p>The interval at which health checks are performed. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* <p>The health check method used by HTTP listeners. Valid values: <strong>head</strong> and <strong>get</strong>.</p>
* <blockquote>
* <p>This parameter is returned when <strong>HealthCheck</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>get</p>
*/
public Builder healthCheckMethod(String healthCheckMethod) {
this.healthCheckMethod = healthCheckMethod;
return this;
}
/**
* <p>The timeout period of each health check. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder healthCheckTimeout(Integer healthCheckTimeout) {
this.healthCheckTimeout = healthCheckTimeout;
return this;
}
/**
* <p>The URL path that is used for health checks.</p>
* <p>The URI must be 1 to 80 characters in length, and can contain only digits, letters, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URI must start with a forward slash (/) but cannot be a single forward slash (/).</p>
*
* <strong>example:</strong>
* <p>/test/index.html</p>
*/
public Builder healthCheckURI(String healthCheckURI) {
this.healthCheckURI = healthCheckURI;
return this;
}
/**
* <p>The healthy threshold.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* <p>The timeout period of an idle connection. Unit: seconds.</p>
* <p>Default value: <strong>15</strong>. Valid values: <strong>1 to 60</strong>.</p>
* <p>If no request is received within the specified timeout period, CLB closes the connection. When a request is received, CLB establishes a new connection.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder idleTimeout(Integer idleTimeout) {
this.idleTimeout = idleTimeout;
return this;
}
/**
* <p>Indicates whether HTTP-to-HTTPS redirection is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder listenerForward(String listenerForward) {
this.listenerForward = listenerForward;
return this;
}
/**
* <p>The frontend port that is used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The CLB instance ID.</p>
*
* <strong>example:</strong>
* <p>lb-bp1uaunez0uho0zf0****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The timeout period of a request. Unit: seconds.</p>
* <p>Default value: <strong>60</strong>. Valid values: <strong>1 to 180</strong>.</p>
* <p>If no response is received from a backend server within the specified timeout period, CLB returns the HTTP 504 status code to the client.</p>
*
* <strong>example:</strong>
* <p>34</p>
*/
public Builder requestTimeout(Integer requestTimeout) {
this.requestTimeout = requestTimeout;
return this;
}
/**
* <p>The list of forwarding rules.</p>
*/
public Builder rules(Rules rules) {
this.rules = rules;
return this;
}
/**
* <p>The routing algorithm. Valid values:</p>
* <ul>
* <li><strong>wrr</strong>: Backend servers that have higher weights receive more requests than backend servers that have lower weights.</li>
* <li>** rr**: Requests are sequentially distributed to backend servers.</li>
* </ul>
*
* <strong>example:</strong>
* <p>wrr</p>
*/
public Builder scheduler(String scheduler) {
this.scheduler = scheduler;
return this;
}
/**
* <p>Indicates whether the listener is in the Secure state. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder securityStatus(String securityStatus) {
this.securityStatus = securityStatus;
return this;
}
/**
* <p>The status of the listener. Valid values:</p>
* <ul>
* <li><strong>running</strong></li>
* <li><strong>stopped</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>stopped</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>Indicates whether session persistence is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder stickySession(String stickySession) {
this.stickySession = stickySession;
return this;
}
/**
* <p>The method that is used to handle a cookie.</p>
* <p>Valid values: <strong>insert</strong> and <strong>server</strong>.</p>
* <ul>
* <li><p><strong>insert</strong>: inserts a cookie.</p>
* <p>CLB inserts a session cookie (SERVERID) into the first HTTP or HTTPS response that is sent to a client. Subsequent requests to CLB carry this cookie, and CLB determines the destination servers of the requests based on the cookies.</p>
* </li>
* <li><p><strong>server</strong>: rewrites a cookie.</p>
* <p>When CLB detects a user-defined cookie, it overwrites the original cookie with the user-defined cookie. The next request from the client carries the user-defined cookie, and the listener forwards this request to the recorded backend server.</p>
* </li>
* </ul>
* <blockquote>
* <p>This parameter is required when <strong>StickySession</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>insert</p>
*/
public Builder stickySessionType(String stickySessionType) {
this.stickySessionType = stickySessionType;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The unhealthy threshold.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
/**
* <p>The ID of the associated server group.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6j****</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
/**
* <p>Indicates whether the <code>X-Forwarded-For</code> header is used to preserve the real IP address of the client. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedFor(String xForwardedFor) {
this.xForwardedFor = xForwardedFor;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientSrcPort</code> header is used to retrieve the client port. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientSrcPort(String xForwardedForClientSrcPort) {
this.xForwardedForClientSrcPort = xForwardedForClientSrcPort;
return this;
}
/**
* <p>Indicates whether the <code>SLB-ID</code> header is used to retrieve the ID of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForSLBID(String xForwardedForSLBID) {
this.xForwardedForSLBID = xForwardedForSLBID;
return this;
}
/**
* <p>Indicates whether the <code>SLB-IP</code> header is used to retrieve the virtual IP address requested by the client. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForSLBIP(String xForwardedForSLBIP) {
this.xForwardedForSLBIP = xForwardedForSLBIP;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_SLBPORT</code> header is used to retrieve the listener port of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForSLBPORT(String xForwardedForSLBPORT) {
this.xForwardedForSLBPORT = xForwardedForSLBPORT;
return this;
}
/**
* <p>Indicates whether the <code>X-Forwarded-Proto</code> header is used to retrieve the listener protocol. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForProto(String xForwardedForProto) {
this.xForwardedForProto = xForwardedForProto;
return this;
}
public DescribeLoadBalancerHTTPListenerAttributeResponseBody build() {
return new DescribeLoadBalancerHTTPListenerAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeLoadBalancerHTTPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPListenerAttributeResponseBody</p>
*/
public static class AclIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private java.util.List<String> aclId;
private AclIds(Builder builder) {
this.aclId = builder.aclId;
}
public static Builder builder() {
return new Builder();
}
public static AclIds create() {
return builder().build();
}
/**
* @return aclId
*/
public java.util.List<String> getAclId() {
return this.aclId;
}
public static final class Builder {
private java.util.List<String> aclId;
/**
* <p>The ID of the network ACL that is associated with a listener.</p>
* <blockquote>
* <p>This parameter is returned when <strong>AclStatus</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder aclId(java.util.List<String> aclId) {
this.aclId = aclId;
return this;
}
public AclIds build() {
return new AclIds(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerHTTPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPListenerAttributeResponseBody</p>
*/
public static class Rule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("RuleId")
private String ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
private Rule(Builder builder) {
this.domain = builder.domain;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.url = builder.url;
this.vServerGroupId = builder.vServerGroupId;
}
public static Builder builder() {
return new Builder();
}
public static Rule create() {
return builder().build();
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
public static final class Builder {
private String domain;
private String ruleId;
private String ruleName;
private String url;
private String vServerGroupId;
/**
* <p>The domain name.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* <p>The ID of the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>1234</p>
*/
public Builder ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The request URL.</p>
*
* <strong>example:</strong>
* <p>/example</p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
/**
* <p>The ID of the server group specified in the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
public Rule build() {
return new Rule(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerHTTPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPListenerAttributeResponseBody</p>
*/
public static class Rules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Rule")
private java.util.List<Rule> rule;
private Rules(Builder builder) {
this.rule = builder.rule;
}
public static Builder builder() {
return new Builder();
}
public static Rules create() {
return builder().build();
}
/**
* @return rule
*/
public java.util.List<Rule> getRule() {
return this.rule;
}
public static final class Builder {
private java.util.List<Rule> rule;
/**
* Rule.
*/
public Builder rule(java.util.List<Rule> rule) {
this.rule = rule;
return this;
}
public Rules build() {
return new Rules(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerHTTPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPListenerAttributeResponseBody</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;
/**
* <p>The key of tag N. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag key cannot be an empty string. The tag key can be up to 64 characters in length. The key cannot start with <code>acs:</code> or <code>aliyun</code> or contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The value of tag N. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag value can be an empty string. The tag value must be 0 to 128 characters in length, and cannot start with <code>acs:</code>. It cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>TestValue</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerHTTPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPListenerAttributeResponseBody</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;
/**
* 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerHTTPSListenerAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerHTTPSListenerAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeLoadBalancerHTTPSListenerAttributeRequest</p>
*/
public class DescribeLoadBalancerHTTPSListenerAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerPort")
@com.aliyun.core.annotation.Validation(required = true, maximum = 65535, minimum = 1)
private Integer listenerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeLoadBalancerHTTPSListenerAttributeRequest(Builder builder) {
super(builder);
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
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 DescribeLoadBalancerHTTPSListenerAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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<DescribeLoadBalancerHTTPSListenerAttributeRequest, Builder> {
private Integer listenerPort;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeLoadBalancerHTTPSListenerAttributeRequest request) {
super(request);
this.listenerPort = request.listenerPort;
this.loadBalancerId = request.loadBalancerId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The frontend port that is used by the CLB instance.</p>
* <p>Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.putQueryParameter("ListenerPort", listenerPort);
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The CLB instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1mxu5r8lau****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 CLB instance.</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 DescribeLoadBalancerHTTPSListenerAttributeRequest build() {
return new DescribeLoadBalancerHTTPSListenerAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerHTTPSListenerAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerHTTPSListenerAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPSListenerAttributeResponse</p>
*/
public class DescribeLoadBalancerHTTPSListenerAttributeResponse 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 DescribeLoadBalancerHTTPSListenerAttributeResponseBody body;
private DescribeLoadBalancerHTTPSListenerAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeLoadBalancerHTTPSListenerAttributeResponse 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 DescribeLoadBalancerHTTPSListenerAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeLoadBalancerHTTPSListenerAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeLoadBalancerHTTPSListenerAttributeResponseBody body);
@Override
DescribeLoadBalancerHTTPSListenerAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeLoadBalancerHTTPSListenerAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeLoadBalancerHTTPSListenerAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeLoadBalancerHTTPSListenerAttributeResponse 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(DescribeLoadBalancerHTTPSListenerAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeLoadBalancerHTTPSListenerAttributeResponse build() {
return new DescribeLoadBalancerHTTPSListenerAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerHTTPSListenerAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerHTTPSListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPSListenerAttributeResponseBody</p>
*/
public class DescribeLoadBalancerHTTPSListenerAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.NameInMap("AclIds")
private AclIds aclIds;
@com.aliyun.core.annotation.NameInMap("AclStatus")
private String aclStatus;
@com.aliyun.core.annotation.NameInMap("AclType")
private String aclType;
@com.aliyun.core.annotation.NameInMap("BackendServerPort")
private Integer backendServerPort;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Integer bandwidth;
@com.aliyun.core.annotation.NameInMap("CACertificateId")
private String CACertificateId;
@com.aliyun.core.annotation.NameInMap("Cookie")
private String cookie;
@com.aliyun.core.annotation.NameInMap("CookieTimeout")
private Integer cookieTimeout;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DomainExtensions")
private DomainExtensions domainExtensions;
@com.aliyun.core.annotation.NameInMap("EnableHttp2")
private String enableHttp2;
@com.aliyun.core.annotation.NameInMap("Gzip")
private String gzip;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private String healthCheck;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort")
private Integer healthCheckConnectPort;
@com.aliyun.core.annotation.NameInMap("HealthCheckDomain")
private String healthCheckDomain;
@com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode")
private String healthCheckHttpCode;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckMethod")
private String healthCheckMethod;
@com.aliyun.core.annotation.NameInMap("HealthCheckTimeout")
private Integer healthCheckTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheckURI")
private String healthCheckURI;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("IdleTimeout")
private Integer idleTimeout;
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RequestTimeout")
private Integer requestTimeout;
@com.aliyun.core.annotation.NameInMap("Rules")
private Rules rules;
@com.aliyun.core.annotation.NameInMap("Scheduler")
private String scheduler;
@com.aliyun.core.annotation.NameInMap("SecurityStatus")
private String securityStatus;
@com.aliyun.core.annotation.NameInMap("ServerCertificateId")
private String serverCertificateId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StickySession")
private String stickySession;
@com.aliyun.core.annotation.NameInMap("StickySessionType")
private String stickySessionType;
@com.aliyun.core.annotation.NameInMap("TLSCipherPolicy")
private String TLSCipherPolicy;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("UnhealthyThreshold")
private Integer unhealthyThreshold;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
@com.aliyun.core.annotation.NameInMap("XForwardedFor")
private String xForwardedFor;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientCertClientVerify")
private String xForwardedForClientCertClientVerify;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientCertFingerprint")
private String xForwardedForClientCertFingerprint;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientCertIssuerDN")
private String xForwardedForClientCertIssuerDN;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientCertSubjectDN")
private String xForwardedForClientCertSubjectDN;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientSrcPort")
private String xForwardedForClientSrcPort;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBID")
private String xForwardedForSLBID;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBIP")
private String xForwardedForSLBIP;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBPORT")
private String xForwardedForSLBPORT;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_proto")
private String xForwardedForProto;
private DescribeLoadBalancerHTTPSListenerAttributeResponseBody(Builder builder) {
this.aclId = builder.aclId;
this.aclIds = builder.aclIds;
this.aclStatus = builder.aclStatus;
this.aclType = builder.aclType;
this.backendServerPort = builder.backendServerPort;
this.bandwidth = builder.bandwidth;
this.CACertificateId = builder.CACertificateId;
this.cookie = builder.cookie;
this.cookieTimeout = builder.cookieTimeout;
this.description = builder.description;
this.domainExtensions = builder.domainExtensions;
this.enableHttp2 = builder.enableHttp2;
this.gzip = builder.gzip;
this.healthCheck = builder.healthCheck;
this.healthCheckConnectPort = builder.healthCheckConnectPort;
this.healthCheckDomain = builder.healthCheckDomain;
this.healthCheckHttpCode = builder.healthCheckHttpCode;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckMethod = builder.healthCheckMethod;
this.healthCheckTimeout = builder.healthCheckTimeout;
this.healthCheckURI = builder.healthCheckURI;
this.healthyThreshold = builder.healthyThreshold;
this.idleTimeout = builder.idleTimeout;
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
this.requestId = builder.requestId;
this.requestTimeout = builder.requestTimeout;
this.rules = builder.rules;
this.scheduler = builder.scheduler;
this.securityStatus = builder.securityStatus;
this.serverCertificateId = builder.serverCertificateId;
this.status = builder.status;
this.stickySession = builder.stickySession;
this.stickySessionType = builder.stickySessionType;
this.TLSCipherPolicy = builder.TLSCipherPolicy;
this.tags = builder.tags;
this.unhealthyThreshold = builder.unhealthyThreshold;
this.vServerGroupId = builder.vServerGroupId;
this.xForwardedFor = builder.xForwardedFor;
this.xForwardedForClientCertClientVerify = builder.xForwardedForClientCertClientVerify;
this.xForwardedForClientCertFingerprint = builder.xForwardedForClientCertFingerprint;
this.xForwardedForClientCertIssuerDN = builder.xForwardedForClientCertIssuerDN;
this.xForwardedForClientCertSubjectDN = builder.xForwardedForClientCertSubjectDN;
this.xForwardedForClientSrcPort = builder.xForwardedForClientSrcPort;
this.xForwardedForSLBID = builder.xForwardedForSLBID;
this.xForwardedForSLBIP = builder.xForwardedForSLBIP;
this.xForwardedForSLBPORT = builder.xForwardedForSLBPORT;
this.xForwardedForProto = builder.xForwardedForProto;
}
public static Builder builder() {
return new Builder();
}
public static DescribeLoadBalancerHTTPSListenerAttributeResponseBody create() {
return builder().build();
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclIds
*/
public AclIds getAclIds() {
return this.aclIds;
}
/**
* @return aclStatus
*/
public String getAclStatus() {
return this.aclStatus;
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return backendServerPort
*/
public Integer getBackendServerPort() {
return this.backendServerPort;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return CACertificateId
*/
public String getCACertificateId() {
return this.CACertificateId;
}
/**
* @return cookie
*/
public String getCookie() {
return this.cookie;
}
/**
* @return cookieTimeout
*/
public Integer getCookieTimeout() {
return this.cookieTimeout;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return domainExtensions
*/
public DomainExtensions getDomainExtensions() {
return this.domainExtensions;
}
/**
* @return enableHttp2
*/
public String getEnableHttp2() {
return this.enableHttp2;
}
/**
* @return gzip
*/
public String getGzip() {
return this.gzip;
}
/**
* @return healthCheck
*/
public String getHealthCheck() {
return this.healthCheck;
}
/**
* @return healthCheckConnectPort
*/
public Integer getHealthCheckConnectPort() {
return this.healthCheckConnectPort;
}
/**
* @return healthCheckDomain
*/
public String getHealthCheckDomain() {
return this.healthCheckDomain;
}
/**
* @return healthCheckHttpCode
*/
public String getHealthCheckHttpCode() {
return this.healthCheckHttpCode;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckMethod
*/
public String getHealthCheckMethod() {
return this.healthCheckMethod;
}
/**
* @return healthCheckTimeout
*/
public Integer getHealthCheckTimeout() {
return this.healthCheckTimeout;
}
/**
* @return healthCheckURI
*/
public String getHealthCheckURI() {
return this.healthCheckURI;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return idleTimeout
*/
public Integer getIdleTimeout() {
return this.idleTimeout;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return requestTimeout
*/
public Integer getRequestTimeout() {
return this.requestTimeout;
}
/**
* @return rules
*/
public Rules getRules() {
return this.rules;
}
/**
* @return scheduler
*/
public String getScheduler() {
return this.scheduler;
}
/**
* @return securityStatus
*/
public String getSecurityStatus() {
return this.securityStatus;
}
/**
* @return serverCertificateId
*/
public String getServerCertificateId() {
return this.serverCertificateId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return stickySession
*/
public String getStickySession() {
return this.stickySession;
}
/**
* @return stickySessionType
*/
public String getStickySessionType() {
return this.stickySessionType;
}
/**
* @return TLSCipherPolicy
*/
public String getTLSCipherPolicy() {
return this.TLSCipherPolicy;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return unhealthyThreshold
*/
public Integer getUnhealthyThreshold() {
return this.unhealthyThreshold;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
/**
* @return xForwardedFor
*/
public String getXForwardedFor() {
return this.xForwardedFor;
}
/**
* @return xForwardedForClientCertClientVerify
*/
public String getXForwardedForClientCertClientVerify() {
return this.xForwardedForClientCertClientVerify;
}
/**
* @return xForwardedForClientCertFingerprint
*/
public String getXForwardedForClientCertFingerprint() {
return this.xForwardedForClientCertFingerprint;
}
/**
* @return xForwardedForClientCertIssuerDN
*/
public String getXForwardedForClientCertIssuerDN() {
return this.xForwardedForClientCertIssuerDN;
}
/**
* @return xForwardedForClientCertSubjectDN
*/
public String getXForwardedForClientCertSubjectDN() {
return this.xForwardedForClientCertSubjectDN;
}
/**
* @return xForwardedForClientSrcPort
*/
public String getXForwardedForClientSrcPort() {
return this.xForwardedForClientSrcPort;
}
/**
* @return xForwardedForSLBID
*/
public String getXForwardedForSLBID() {
return this.xForwardedForSLBID;
}
/**
* @return xForwardedForSLBIP
*/
public String getXForwardedForSLBIP() {
return this.xForwardedForSLBIP;
}
/**
* @return xForwardedForSLBPORT
*/
public String getXForwardedForSLBPORT() {
return this.xForwardedForSLBPORT;
}
/**
* @return xForwardedForProto
*/
public String getXForwardedForProto() {
return this.xForwardedForProto;
}
public static final class Builder {
private String aclId;
private AclIds aclIds;
private String aclStatus;
private String aclType;
private Integer backendServerPort;
private Integer bandwidth;
private String CACertificateId;
private String cookie;
private Integer cookieTimeout;
private String description;
private DomainExtensions domainExtensions;
private String enableHttp2;
private String gzip;
private String healthCheck;
private Integer healthCheckConnectPort;
private String healthCheckDomain;
private String healthCheckHttpCode;
private Integer healthCheckInterval;
private String healthCheckMethod;
private Integer healthCheckTimeout;
private String healthCheckURI;
private Integer healthyThreshold;
private Integer idleTimeout;
private Integer listenerPort;
private String loadBalancerId;
private String requestId;
private Integer requestTimeout;
private Rules rules;
private String scheduler;
private String securityStatus;
private String serverCertificateId;
private String status;
private String stickySession;
private String stickySessionType;
private String TLSCipherPolicy;
private Tags tags;
private Integer unhealthyThreshold;
private String vServerGroupId;
private String xForwardedFor;
private String xForwardedForClientCertClientVerify;
private String xForwardedForClientCertFingerprint;
private String xForwardedForClientCertIssuerDN;
private String xForwardedForClientCertSubjectDN;
private String xForwardedForClientSrcPort;
private String xForwardedForSLBID;
private String xForwardedForSLBIP;
private String xForwardedForSLBPORT;
private String xForwardedForProto;
/**
* <p>The ID of the network ACL that is associated with a listener.</p>
* <blockquote>
* <p>This parameter is required when <strong>AclStatus</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>nacl-a2do9e413e0spzasx****</p>
*/
public Builder aclId(String aclId) {
this.aclId = aclId;
return this;
}
/**
* AclIds.
*/
public Builder aclIds(AclIds aclIds) {
this.aclIds = aclIds;
return this;
}
/**
* <p>Indicates whether access control is enabled. 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.aclStatus = aclStatus;
return this;
}
/**
* <p>The type of the access control list (ACL). Valid values:</p>
* <ul>
* <li><strong>white</strong>: a whitelist. Only requests from the IP addresses or CIDR blocks in the ACL are forwarded. Whitelists apply to scenarios where you want to allow only specific IP addresses to access an application. Your service may be adversely affected if the whitelist is not properly configured. If a whitelist is configured, only requests from IP addresses that are added to the whitelist are forwarded by the listener.</li>
* </ul>
* <p>If you enable a whitelist but do not add an IP address to the ACL, the listener forwards all requests.</p>
* <ul>
* <li><strong>black</strong>: a blacklist. All requests from the IP addresses or CIDR blocks in the network ACL are rejected. Blacklists apply to scenarios where you want to block access from specified IP addresses to an application.</li>
* </ul>
* <p>If a blacklist is configured for a listener but no IP address is added to the blacklist, the listener forwards all requests.</p>
* <blockquote>
* <p>This parameter is required when <strong>AclStatus</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>white</p>
*/
public Builder aclType(String aclType) {
this.aclType = aclType;
return this;
}
/**
* <p>The backend port that is used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder backendServerPort(Integer backendServerPort) {
this.backendServerPort = backendServerPort;
return this;
}
/**
* <p>The maximum bandwidth of the listener. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The ID of the certification authority (CA) certificate.</p>
*
* <strong>example:</strong>
* <p>idkp-234-cn-test-0**</p>
*/
public Builder CACertificateId(String CACertificateId) {
this.CACertificateId = CACertificateId;
return this;
}
/**
* <p>The cookie that is configured on the server.</p>
*
* <strong>example:</strong>
* <p>B490B5EBF6F3CD402E515D22BCDA1598</p>
*/
public Builder cookie(String cookie) {
this.cookie = cookie;
return this;
}
/**
* <p>The timeout period of a cookie.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder cookieTimeout(Integer cookieTimeout) {
this.cookieTimeout = cookieTimeout;
return this;
}
/**
* <p>The name of the listener.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>A list of additional certificates.</p>
*/
public Builder domainExtensions(DomainExtensions domainExtensions) {
this.domainExtensions = domainExtensions;
return this;
}
/**
* <p>Indicates whether <code>HTTP/2</code> is used. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder enableHttp2(String enableHttp2) {
this.enableHttp2 = enableHttp2;
return this;
}
/**
* <p>Indicates whether <code>Gzip</code> compression is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder gzip(String gzip) {
this.gzip = gzip;
return this;
}
/**
* <p>Indicates whether the health check feature is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder healthCheck(String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The port that is used for health checks.</p>
* <blockquote>
* <p>This parameter is required when <strong>HealthCheck</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder healthCheckConnectPort(Integer healthCheckConnectPort) {
this.healthCheckConnectPort = healthCheckConnectPort;
return this;
}
/**
* <p>The domain name that you want to use for health checks.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.test.com">www.test.com</a></p>
*/
public Builder healthCheckDomain(String healthCheckDomain) {
this.healthCheckDomain = healthCheckDomain;
return this;
}
/**
* <p>The HTTP status code for a successful health check.</p>
*
* <strong>example:</strong>
* <p>http_2xx,http_3xx</p>
*/
public Builder healthCheckHttpCode(String healthCheckHttpCode) {
this.healthCheckHttpCode = healthCheckHttpCode;
return this;
}
/**
* <p>The interval at which health checks are performed. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* <p>The health check method used by HTTP listeners. Valid values: <strong>head</strong> and <strong>get</strong>.</p>
* <blockquote>
* <p>This parameter is available only when <strong>HealthCheck</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>get</p>
*/
public Builder healthCheckMethod(String healthCheckMethod) {
this.healthCheckMethod = healthCheckMethod;
return this;
}
/**
* <p>The maximum timeout period of a health check. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder healthCheckTimeout(Integer healthCheckTimeout) {
this.healthCheckTimeout = healthCheckTimeout;
return this;
}
/**
* <p>The URL path that is used for health checks.</p>
*
* <strong>example:</strong>
* <p>/test/index.html</p>
*/
public Builder healthCheckURI(String healthCheckURI) {
this.healthCheckURI = healthCheckURI;
return this;
}
/**
* <p>The healthy threshold.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* <p>The timeout period of an idle connection. Valid values: <strong>1</strong> to <strong>60</strong>. Default value: <strong>15</strong>. Unit: seconds.</p>
* <p>If no request is received within the specified timeout period, CLB closes the connection. When a request is received, CLB establishes a new connection.</p>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder idleTimeout(Integer idleTimeout) {
this.idleTimeout = idleTimeout;
return this;
}
/**
* <p>The frontend port that is used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The CLB instance ID.</p>
*
* <strong>example:</strong>
* <p>lb-bp1mxu5r8lau****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF3********</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The timeout period of a request. Valid values: <strong>1</strong> to <strong>180</strong>. Default value: <strong>60</strong>. Unit: seconds.</p>
* <p>If no response is received from a backend server within the specified timeout period, CLB returns the HTTP 504 status code to the client.</p>
*
* <strong>example:</strong>
* <p>43</p>
*/
public Builder requestTimeout(Integer requestTimeout) {
this.requestTimeout = requestTimeout;
return this;
}
/**
* <p>The list of forwarding rules that are associated with the listener.</p>
*/
public Builder rules(Rules rules) {
this.rules = rules;
return this;
}
/**
* <p>The routing algorithm. Valid values: <strong>wrr</strong> and <strong>rr</strong>.</p>
* <ul>
* <li><strong>wrr</strong>: Backend servers that have higher weights receive more requests than backend servers that have lower weights.</li>
* <li><strong>rr</strong>: Requests are distributed to backend servers in sequence.</li>
* </ul>
*
* <strong>example:</strong>
* <p>wrr</p>
*/
public Builder scheduler(String scheduler) {
this.scheduler = scheduler;
return this;
}
/**
* <p>Indicates whether the listener is in the Secure state. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder securityStatus(String securityStatus) {
this.securityStatus = securityStatus;
return this;
}
/**
* <p>The ID of the server certificate.</p>
*
* <strong>example:</strong>
* <p>idkp-123-cn-test-0**</p>
*/
public Builder serverCertificateId(String serverCertificateId) {
this.serverCertificateId = serverCertificateId;
return this;
}
/**
* <p>The status of the listener. Valid values:</p>
* <ul>
* <li><strong>running</strong></li>
* <li><strong>stopped</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>stopped</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>Indicates whether session persistence is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder stickySession(String stickySession) {
this.stickySession = stickySession;
return this;
}
/**
* <p>The method that is used to handle a cookie.</p>
* <p>Valid values: <strong>insert</strong> and <strong>server</strong>.</p>
* <ul>
* <li><p><strong>insert</strong>: inserts a cookie.</p>
* <p>CLB inserts a cookie (SERVERID) into the first HTTP or HTTPS response packet that is sent to a client. The next request from the client will contain this cookie, and the listener will distribute this request to the recorded backend server.</p>
* </li>
* <li><p><strong>server</strong>: rewrites a cookie.</p>
* <p>When CLB detects a user-defined cookie, it overwrites the original cookie with the user-defined cookie. The next request from the client carries the user-defined cookie, and the listener will distribute the request to the recorded backend server.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>insert</p>
*/
public Builder stickySessionType(String stickySessionType) {
this.stickySessionType = stickySessionType;
return this;
}
/**
* <p>The Transport Layer Security (TLS) security policy for a high-performance CLB instance.</p>
* <p>Each security policy contains TLS protocol versions and cipher suites available for HTTPS. Valid values:</p>
* <ul>
* <li><p><strong>tls_cipher_policy_1_0</strong>:</p>
* <p>Supported TLS versions: TLS 1.0, TLS 1.1, and TLS 1.2</p>
* <p>Supported cipher suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, AES128-GCM-SHA256, AES256-GCM-SHA384, AES128-SHA256, AES256-SHA256, ECDHE-RSA-AES128-SHA, ECDHE-RSA-AES256-SHA, AES128-SHA, AES256-SHA, and DES-CBC3-SHA</p>
* </li>
* <li><p><strong>tls_cipher_policy_1_1</strong>:</p>
* <p>Supported TLS versions: TLS 1.1 and TLS 1.2</p>
* <p>Supported cipher suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, AES128-GCM-SHA256, AES256-GCM-SHA384, AES128-SHA256, AES256-SHA256, ECDHE-RSA-AES128-SHA, ECDHE-RSA-AES256-SHA, AES128-SHA, AES256-SHA, and DES-CBC3-SHA</p>
* </li>
* <li><p><strong>tls_cipher_policy_1_2</strong></p>
* <p>Supported TLS version: TLS 1.2</p>
* <p>Supported cipher suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, AES128-GCM-SHA256, AES256-GCM-SHA384, AES128-SHA256, AES256-SHA256, ECDHE-RSA-AES128-SHA, ECDHE-RSA-AES256-SHA, AES128-SHA, AES256-SHA, and DES-CBC3-SHA</p>
* </li>
* <li><p><strong>tls_cipher_policy_1_2_strict</strong></p>
* <p>Supported TLS version: TLS 1.2</p>
* <p>Supported cipher suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, ECDHE-RSA-AES128-SHA, and ECDHE-RSA-AES256-SHA</p>
* </li>
* <li><p><strong>tls_cipher_policy_1_2_strict_with_1_3</strong></p>
* <p>Supported TLS versions: TLS 1.2 and TLS 1.3</p>
* <p>Supported cipher suites: TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, TLS_AES_128_CCM_SHA256, TLS_AES_128_CCM_8_SHA256, ECDHE-ECDSA-AES128-GCM-SHA256, ECDHE-ECDSA-AES256-GCM-SHA384, ECDHE-ECDSA-AES128-SHA256, ECDHE-ECDSA-AES256-SHA384, ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, ECDHE-ECDSA-AES128-SHA, ECDHE-ECDSA-AES256-SHA, ECDHE-RSA-AES128-SHA, and ECDHE-RSA-AES256-SHA</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>tls_cipher_policy_1_0</p>
*/
public Builder TLSCipherPolicy(String TLSCipherPolicy) {
this.TLSCipherPolicy = TLSCipherPolicy;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The unhealthy threshold.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
/**
* <p>The ID of the associated server group.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6j5e********</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
/**
* <p>Indicates whether the <code>X-Forwarded-For</code> header is used to retrieve client IP addresses. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedFor(String xForwardedFor) {
this.xForwardedFor = xForwardedFor;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientCertClientVerify</code> header is used to retrieve the verification result of the client certificate. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientCertClientVerify(String xForwardedForClientCertClientVerify) {
this.xForwardedForClientCertClientVerify = xForwardedForClientCertClientVerify;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientCertFingerprint</code> header is used to retrieve the fingerprint of the client certificate. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientCertFingerprint(String xForwardedForClientCertFingerprint) {
this.xForwardedForClientCertFingerprint = xForwardedForClientCertFingerprint;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientCertIssuerDN</code> header is used to retrieve information about the authority that issues the client certificate. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientCertIssuerDN(String xForwardedForClientCertIssuerDN) {
this.xForwardedForClientCertIssuerDN = xForwardedForClientCertIssuerDN;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientCertSubjectDN</code> header is used to retrieve information about the owner of the client certificate. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientCertSubjectDN(String xForwardedForClientCertSubjectDN) {
this.xForwardedForClientCertSubjectDN = xForwardedForClientCertSubjectDN;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientSrcPort</code> header is used to retrieve the client port. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientSrcPort(String xForwardedForClientSrcPort) {
this.xForwardedForClientSrcPort = xForwardedForClientSrcPort;
return this;
}
/**
* <p>Indicates whether the <code>SLB-ID</code> header is used to retrieve the ID of the ALB instance. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForSLBID(String xForwardedForSLBID) {
this.xForwardedForSLBID = xForwardedForSLBID;
return this;
}
/**
* <p>Indicates whether the <code>SLB-IP</code> header is used to retrieve the virtual IP address requested by the client. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForSLBIP(String xForwardedForSLBIP) {
this.xForwardedForSLBIP = xForwardedForSLBIP;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_SLBPORT</code> header is used to retrieve the listening port. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForSLBPORT(String xForwardedForSLBPORT) {
this.xForwardedForSLBPORT = xForwardedForSLBPORT;
return this;
}
/**
* <p>Indicates whether the <code>X-Forwarded-Proto</code> header is used to retrieve the listener protocol. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForProto(String xForwardedForProto) {
this.xForwardedForProto = xForwardedForProto;
return this;
}
public DescribeLoadBalancerHTTPSListenerAttributeResponseBody build() {
return new DescribeLoadBalancerHTTPSListenerAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeLoadBalancerHTTPSListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPSListenerAttributeResponseBody</p>
*/
public static class AclIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private java.util.List<String> aclId;
private AclIds(Builder builder) {
this.aclId = builder.aclId;
}
public static Builder builder() {
return new Builder();
}
public static AclIds create() {
return builder().build();
}
/**
* @return aclId
*/
public java.util.List<String> getAclId() {
return this.aclId;
}
public static final class Builder {
private java.util.List<String> aclId;
/**
* <p>The ID of the network ACL that is associated with a listener.</p>
* <blockquote>
* <p>This parameter is required when <strong>AclStatus</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>nacl-a2do9e413e0spzasx****</p>
*/
public Builder aclId(java.util.List<String> aclId) {
this.aclId = aclId;
return this;
}
public AclIds build() {
return new AclIds(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerHTTPSListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPSListenerAttributeResponseBody</p>
*/
public static class DomainExtension extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("DomainExtensionId")
private String domainExtensionId;
@com.aliyun.core.annotation.NameInMap("ServerCertificateId")
private String serverCertificateId;
private DomainExtension(Builder builder) {
this.domain = builder.domain;
this.domainExtensionId = builder.domainExtensionId;
this.serverCertificateId = builder.serverCertificateId;
}
public static Builder builder() {
return new Builder();
}
public static DomainExtension create() {
return builder().build();
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return domainExtensionId
*/
public String getDomainExtensionId() {
return this.domainExtensionId;
}
/**
* @return serverCertificateId
*/
public String getServerCertificateId() {
return this.serverCertificateId;
}
public static final class Builder {
private String domain;
private String domainExtensionId;
private String serverCertificateId;
/**
* <p>The endpoint.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* <p>The ID of the additional domain name.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder domainExtensionId(String domainExtensionId) {
this.domainExtensionId = domainExtensionId;
return this;
}
/**
* <p>The ID of the server certificate that is associated with the domain name.</p>
*
* <strong>example:</strong>
* <p>13344444****</p>
*/
public Builder serverCertificateId(String serverCertificateId) {
this.serverCertificateId = serverCertificateId;
return this;
}
public DomainExtension build() {
return new DomainExtension(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerHTTPSListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPSListenerAttributeResponseBody</p>
*/
public static class DomainExtensions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DomainExtension")
private java.util.List<DomainExtension> domainExtension;
private DomainExtensions(Builder builder) {
this.domainExtension = builder.domainExtension;
}
public static Builder builder() {
return new Builder();
}
public static DomainExtensions create() {
return builder().build();
}
/**
* @return domainExtension
*/
public java.util.List<DomainExtension> getDomainExtension() {
return this.domainExtension;
}
public static final class Builder {
private java.util.List<DomainExtension> domainExtension;
/**
* DomainExtension.
*/
public Builder domainExtension(java.util.List<DomainExtension> domainExtension) {
this.domainExtension = domainExtension;
return this;
}
public DomainExtensions build() {
return new DomainExtensions(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerHTTPSListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPSListenerAttributeResponseBody</p>
*/
public static class Rule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("RuleId")
private String ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
private Rule(Builder builder) {
this.domain = builder.domain;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.url = builder.url;
this.vServerGroupId = builder.vServerGroupId;
}
public static Builder builder() {
return new Builder();
}
public static Rule create() {
return builder().build();
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
public static final class Builder {
private String domain;
private String ruleId;
private String ruleName;
private String url;
private String vServerGroupId;
/**
* <p>The endpoint.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* <p>The ID of the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>example</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The request path.</p>
*
* <strong>example:</strong>
* <p>/example</p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
/**
* <p>The ID of the server group that is associated with the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
public Rule build() {
return new Rule(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerHTTPSListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPSListenerAttributeResponseBody</p>
*/
public static class Rules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Rule")
private java.util.List<Rule> rule;
private Rules(Builder builder) {
this.rule = builder.rule;
}
public static Builder builder() {
return new Builder();
}
public static Rules create() {
return builder().build();
}
/**
* @return rule
*/
public java.util.List<Rule> getRule() {
return this.rule;
}
public static final class Builder {
private java.util.List<Rule> rule;
/**
* Rule.
*/
public Builder rule(java.util.List<Rule> rule) {
this.rule = rule;
return this;
}
public Rules build() {
return new Rules(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerHTTPSListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPSListenerAttributeResponseBody</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;
/**
* <p>The key of tag N. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag key cannot be an empty string. The tag key can be up to 64 characters in length, and cannot start with <code>aliyun</code> or <code>acs:</code>. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The value of tag N. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag value can be an empty string. The tag value can be up to 128 characters in length, and cannot start with <code>acs:</code>. The tag value cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>TestValue</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerHTTPSListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerHTTPSListenerAttributeResponseBody</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;
/**
* 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerListenersRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerListenersRequest} extends {@link RequestModel}
*
* <p>DescribeLoadBalancerListenersRequest</p>
*/
public class DescribeLoadBalancerListenersRequest 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("ListenerPort")
@com.aliyun.core.annotation.Validation(maximum = 65535)
private Integer listenerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerProtocol")
private String listenerProtocol;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private java.util.List<String> loadBalancerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResults")
@com.aliyun.core.annotation.Validation(maximum = 101)
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;
@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 DescribeLoadBalancerListenersRequest(Builder builder) {
super(builder);
this.description = builder.description;
this.listenerPort = builder.listenerPort;
this.listenerProtocol = builder.listenerProtocol;
this.loadBalancerId = builder.loadBalancerId;
this.maxResults = builder.maxResults;
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.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeLoadBalancerListenersRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return listenerProtocol
*/
public String getListenerProtocol() {
return this.listenerProtocol;
}
/**
* @return loadBalancerId
*/
public java.util.List<String> getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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;
}
/**
* @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<DescribeLoadBalancerListenersRequest, Builder> {
private String description;
private Integer listenerPort;
private String listenerProtocol;
private java.util.List<String> loadBalancerId;
private Integer maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(DescribeLoadBalancerListenersRequest request) {
super(request);
this.description = request.description;
this.listenerPort = request.listenerPort;
this.listenerProtocol = request.listenerProtocol;
this.loadBalancerId = request.loadBalancerId;
this.maxResults = request.maxResults;
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.tag = request.tag;
}
/**
* <p>The description of the listener.</p>
*
* <strong>example:</strong>
* <p>HTTPS_443</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The frontend port that is used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>443</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.putQueryParameter("ListenerPort", listenerPort);
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The protocol used by the listener. Valid values:</p>
* <ul>
* <li><strong>tcp</strong></li>
* <li><strong>udp</strong></li>
* <li><strong>http</strong></li>
* <li><strong>https</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>http</p>
*/
public Builder listenerProtocol(String listenerProtocol) {
this.putQueryParameter("ListenerProtocol", listenerProtocol);
this.listenerProtocol = listenerProtocol;
return this;
}
/**
* <p>The ID of the CLB instance. You can specify at most 10 IDs.</p>
*
* <strong>example:</strong>
* <p>lb-123wrwer</p>
*/
public Builder loadBalancerId(java.util.List<String> loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The number of entries per page.</p>
* <p>Valid values: <strong>1</strong> to <strong>100</strong>. If you do not specify this parameter, the default value <strong>20</strong> is used.</p>
*
* <strong>example:</strong>
* <p>50</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 this is your first query and no subsequent queries are to be sent, ignore this parameter.</li>
* <li>If a subsequent query is to be sent, set the parameter to the value of NextToken that is returned from the last call.</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 ID of the region where the CLB instance is deployed.</p>
* <p>You can call the <a href="~~DescribeRegions~~">DescribeRegions</a> operation to query the most recent region list.</p>
* <blockquote>
* <p> If the endpoint of the selected region is slb.aliyuncs.com, the <code>RegionId</code> parameter is required.</p>
* </blockquote>
*
* <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 tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeLoadBalancerListenersRequest build() {
return new DescribeLoadBalancerListenersRequest(this);
}
}
/**
*
* {@link DescribeLoadBalancerListenersRequest} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerListenersRequest</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;
/**
* <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 must be 1 to 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>TestKey</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. Valid values of N: <strong>1 to 20</strong>. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. The tag value cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>TestValue</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerListenersResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerListenersResponse} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerListenersResponse</p>
*/
public class DescribeLoadBalancerListenersResponse 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 DescribeLoadBalancerListenersResponseBody body;
private DescribeLoadBalancerListenersResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeLoadBalancerListenersResponse 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 DescribeLoadBalancerListenersResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeLoadBalancerListenersResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeLoadBalancerListenersResponseBody body);
@Override
DescribeLoadBalancerListenersResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeLoadBalancerListenersResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeLoadBalancerListenersResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeLoadBalancerListenersResponse 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(DescribeLoadBalancerListenersResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeLoadBalancerListenersResponse build() {
return new DescribeLoadBalancerListenersResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerListenersResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerListenersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerListenersResponseBody</p>
*/
public class DescribeLoadBalancerListenersResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Listeners")
private java.util.List<Listeners> listeners;
@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 DescribeLoadBalancerListenersResponseBody(Builder builder) {
this.listeners = builder.listeners;
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 DescribeLoadBalancerListenersResponseBody create() {
return builder().build();
}
/**
* @return listeners
*/
public java.util.List<Listeners> getListeners() {
return this.listeners;
}
/**
* @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 java.util.List<Listeners> listeners;
private Integer maxResults;
private String nextToken;
private String requestId;
private Integer totalCount;
/**
* <p>A list of listeners of the CLB instance.</p>
* <blockquote>
* <p> This parameter is not returned if the CLB instance does not have a listener.</p>
* </blockquote>
*/
public Builder listeners(java.util.List<Listeners> listeners) {
this.listeners = listeners;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder maxResults(Integer maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* <p>The token that determines the start point of the query. Valid values:</p>
* <ul>
* <li>If <strong>NextToken</strong> is empty, it indicates that no subsequent query is to be sent.</li>
* <li>If a value is returned for <strong>NextToken</strong>, the value is the token that determines the start point of the next query.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</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 DescribeLoadBalancerListenersResponseBody build() {
return new DescribeLoadBalancerListenersResponseBody(this);
}
}
/**
*
* {@link DescribeLoadBalancerListenersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerListenersResponseBody</p>
*/
public static class HTTPListenerConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cookie")
private String cookie;
@com.aliyun.core.annotation.NameInMap("CookieTimeout")
private Integer cookieTimeout;
@com.aliyun.core.annotation.NameInMap("ForwardPort")
private Integer forwardPort;
@com.aliyun.core.annotation.NameInMap("Gzip")
private String gzip;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private String healthCheck;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort")
private Integer healthCheckConnectPort;
@com.aliyun.core.annotation.NameInMap("HealthCheckDomain")
private String healthCheckDomain;
@com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode")
private String healthCheckHttpCode;
@com.aliyun.core.annotation.NameInMap("HealthCheckHttpVersion")
private String healthCheckHttpVersion;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckMethod")
private String healthCheckMethod;
@com.aliyun.core.annotation.NameInMap("HealthCheckTimeout")
private Integer healthCheckTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheckType")
private String healthCheckType;
@com.aliyun.core.annotation.NameInMap("HealthCheckURI")
private String healthCheckURI;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("IdleTimeout")
private Integer idleTimeout;
@com.aliyun.core.annotation.NameInMap("ListenerForward")
private String listenerForward;
@com.aliyun.core.annotation.NameInMap("RequestTimeout")
private Integer requestTimeout;
@com.aliyun.core.annotation.NameInMap("StickySession")
private String stickySession;
@com.aliyun.core.annotation.NameInMap("StickySessionType")
private String stickySessionType;
@com.aliyun.core.annotation.NameInMap("UnhealthyThreshold")
private Integer unhealthyThreshold;
@com.aliyun.core.annotation.NameInMap("XForwardedFor")
private String xForwardedFor;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientSrcPort")
private String xForwardedForClientSrcPort;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBID")
private String xForwardedForSLBID;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBIP")
private String xForwardedForSLBIP;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBPORT")
private String xForwardedForSLBPORT;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_proto")
private String xForwardedForProto;
private HTTPListenerConfig(Builder builder) {
this.cookie = builder.cookie;
this.cookieTimeout = builder.cookieTimeout;
this.forwardPort = builder.forwardPort;
this.gzip = builder.gzip;
this.healthCheck = builder.healthCheck;
this.healthCheckConnectPort = builder.healthCheckConnectPort;
this.healthCheckDomain = builder.healthCheckDomain;
this.healthCheckHttpCode = builder.healthCheckHttpCode;
this.healthCheckHttpVersion = builder.healthCheckHttpVersion;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckMethod = builder.healthCheckMethod;
this.healthCheckTimeout = builder.healthCheckTimeout;
this.healthCheckType = builder.healthCheckType;
this.healthCheckURI = builder.healthCheckURI;
this.healthyThreshold = builder.healthyThreshold;
this.idleTimeout = builder.idleTimeout;
this.listenerForward = builder.listenerForward;
this.requestTimeout = builder.requestTimeout;
this.stickySession = builder.stickySession;
this.stickySessionType = builder.stickySessionType;
this.unhealthyThreshold = builder.unhealthyThreshold;
this.xForwardedFor = builder.xForwardedFor;
this.xForwardedForClientSrcPort = builder.xForwardedForClientSrcPort;
this.xForwardedForSLBID = builder.xForwardedForSLBID;
this.xForwardedForSLBIP = builder.xForwardedForSLBIP;
this.xForwardedForSLBPORT = builder.xForwardedForSLBPORT;
this.xForwardedForProto = builder.xForwardedForProto;
}
public static Builder builder() {
return new Builder();
}
public static HTTPListenerConfig create() {
return builder().build();
}
/**
* @return cookie
*/
public String getCookie() {
return this.cookie;
}
/**
* @return cookieTimeout
*/
public Integer getCookieTimeout() {
return this.cookieTimeout;
}
/**
* @return forwardPort
*/
public Integer getForwardPort() {
return this.forwardPort;
}
/**
* @return gzip
*/
public String getGzip() {
return this.gzip;
}
/**
* @return healthCheck
*/
public String getHealthCheck() {
return this.healthCheck;
}
/**
* @return healthCheckConnectPort
*/
public Integer getHealthCheckConnectPort() {
return this.healthCheckConnectPort;
}
/**
* @return healthCheckDomain
*/
public String getHealthCheckDomain() {
return this.healthCheckDomain;
}
/**
* @return healthCheckHttpCode
*/
public String getHealthCheckHttpCode() {
return this.healthCheckHttpCode;
}
/**
* @return healthCheckHttpVersion
*/
public String getHealthCheckHttpVersion() {
return this.healthCheckHttpVersion;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckMethod
*/
public String getHealthCheckMethod() {
return this.healthCheckMethod;
}
/**
* @return healthCheckTimeout
*/
public Integer getHealthCheckTimeout() {
return this.healthCheckTimeout;
}
/**
* @return healthCheckType
*/
public String getHealthCheckType() {
return this.healthCheckType;
}
/**
* @return healthCheckURI
*/
public String getHealthCheckURI() {
return this.healthCheckURI;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return idleTimeout
*/
public Integer getIdleTimeout() {
return this.idleTimeout;
}
/**
* @return listenerForward
*/
public String getListenerForward() {
return this.listenerForward;
}
/**
* @return requestTimeout
*/
public Integer getRequestTimeout() {
return this.requestTimeout;
}
/**
* @return stickySession
*/
public String getStickySession() {
return this.stickySession;
}
/**
* @return stickySessionType
*/
public String getStickySessionType() {
return this.stickySessionType;
}
/**
* @return unhealthyThreshold
*/
public Integer getUnhealthyThreshold() {
return this.unhealthyThreshold;
}
/**
* @return xForwardedFor
*/
public String getXForwardedFor() {
return this.xForwardedFor;
}
/**
* @return xForwardedForClientSrcPort
*/
public String getXForwardedForClientSrcPort() {
return this.xForwardedForClientSrcPort;
}
/**
* @return xForwardedForSLBID
*/
public String getXForwardedForSLBID() {
return this.xForwardedForSLBID;
}
/**
* @return xForwardedForSLBIP
*/
public String getXForwardedForSLBIP() {
return this.xForwardedForSLBIP;
}
/**
* @return xForwardedForSLBPORT
*/
public String getXForwardedForSLBPORT() {
return this.xForwardedForSLBPORT;
}
/**
* @return xForwardedForProto
*/
public String getXForwardedForProto() {
return this.xForwardedForProto;
}
public static final class Builder {
private String cookie;
private Integer cookieTimeout;
private Integer forwardPort;
private String gzip;
private String healthCheck;
private Integer healthCheckConnectPort;
private String healthCheckDomain;
private String healthCheckHttpCode;
private String healthCheckHttpVersion;
private Integer healthCheckInterval;
private String healthCheckMethod;
private Integer healthCheckTimeout;
private String healthCheckType;
private String healthCheckURI;
private Integer healthyThreshold;
private Integer idleTimeout;
private String listenerForward;
private Integer requestTimeout;
private String stickySession;
private String stickySessionType;
private Integer unhealthyThreshold;
private String xForwardedFor;
private String xForwardedForClientSrcPort;
private String xForwardedForSLBID;
private String xForwardedForSLBIP;
private String xForwardedForSLBPORT;
private String xForwardedForProto;
/**
* <p>The cookie configures for the server.</p>
*
* <strong>example:</strong>
* <p>B490B5EBF6F3CD402E515D22BCDA****</p>
*/
public Builder cookie(String cookie) {
this.cookie = cookie;
return this;
}
/**
* <p>The maximum amount of time to wait before the session cookie expires. Unit: seconds.</p>
* <p>Valid values: <strong>1</strong> to <strong>86400</strong>.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder cookieTimeout(Integer cookieTimeout) {
this.cookieTimeout = cookieTimeout;
return this;
}
/**
* <p>The listener port that is used for HTTP-to-HTTPS redirection.</p>
* <blockquote>
* <p> If the <strong>ListenerForward</strong> parameter is set to <strong>off</strong>, this parameter is not returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder forwardPort(Integer forwardPort) {
this.forwardPort = forwardPort;
return this;
}
/**
* <p>Indicates whether GZIP compression is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder gzip(String gzip) {
this.gzip = gzip;
return this;
}
/**
* <p>Indicates whether the health check feature is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder healthCheck(String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The port that is used for health checks.</p>
* <blockquote>
* <p> This parameter takes effect only when <strong>HealthCheck</strong> is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder healthCheckConnectPort(Integer healthCheckConnectPort) {
this.healthCheckConnectPort = healthCheckConnectPort;
return this;
}
/**
* <p>The domain name that is used for health checks.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder healthCheckDomain(String healthCheckDomain) {
this.healthCheckDomain = healthCheckDomain;
return this;
}
/**
* <p>The HTTP status code that indicates a healthy backend server.</p>
*
* <strong>example:</strong>
* <p>http_2xx,http_3xx</p>
*/
public Builder healthCheckHttpCode(String healthCheckHttpCode) {
this.healthCheckHttpCode = healthCheckHttpCode;
return this;
}
/**
* <p>The HTTP version for health checks.</p>
*
* <strong>example:</strong>
* <p>HTTP 1.0</p>
*/
public Builder healthCheckHttpVersion(String healthCheckHttpVersion) {
this.healthCheckHttpVersion = healthCheckHttpVersion;
return this;
}
/**
* <p>The interval at which health checks are performed. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* <p>The health check method. Valid values: <strong>head</strong> and <strong>get</strong>.</p>
*
* <strong>example:</strong>
* <p>get</p>
*/
public Builder healthCheckMethod(String healthCheckMethod) {
this.healthCheckMethod = healthCheckMethod;
return this;
}
/**
* <p>The maximum timeout period of a health check. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder healthCheckTimeout(Integer healthCheckTimeout) {
this.healthCheckTimeout = healthCheckTimeout;
return this;
}
/**
* <p>The protocol that you want to use for health checks.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder healthCheckType(String healthCheckType) {
this.healthCheckType = healthCheckType;
return this;
}
/**
* <p>The URI that is used for health checks.</p>
*
* <strong>example:</strong>
* <p>/test/index.html</p>
*/
public Builder healthCheckURI(String healthCheckURI) {
this.healthCheckURI = healthCheckURI;
return this;
}
/**
* <p>The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. In this case, the health check status of the backend server changes from <strong>fail</strong> to <strong>success</strong>.</p>
* <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* <p>The timeout period of an idle connection. Unit: seconds. Valid values: <strong>1</strong> to <strong>60</strong>.</p>
* <p>If no request is received within the specified timeout period, CLB closes the connection. When a request is received, CLB establishes a new connection.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder idleTimeout(Integer idleTimeout) {
this.idleTimeout = idleTimeout;
return this;
}
/**
* <p>Indicates whether HTTP-to-HTTPS redirection is enabled for the listener. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder listenerForward(String listenerForward) {
this.listenerForward = listenerForward;
return this;
}
/**
* <p>The timeout period of a request. Unit: seconds. Valid values: <strong>1</strong> to <strong>180</strong>.</p>
* <p>If no response is received from a backend server during the request timeout period, CLB sends the <code>HTTP 504</code> status code to the client.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder requestTimeout(Integer requestTimeout) {
this.requestTimeout = requestTimeout;
return this;
}
/**
* <p>Indicates whether session persistence is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder stickySession(String stickySession) {
this.stickySession = stickySession;
return this;
}
/**
* <p>The method used to handle the cookie. Valid values:</p>
* <ul>
* <li><strong>insert</strong>: inserts a cookie. CLB inserts the SERVERID cookie to the HTTP or HTTPS response to the first request from a client. Subsequent requests that carry the SERVERID cookie from the client are forwarded to the same backend server as the first request.</li>
* <li><strong>server</strong>: rewrites the original cookie. CLB rewrites the custom cookies in requests from a client. Subsequent requests from the client that carry the new cookie are forwarded to the same backend server as the first request.</li>
* </ul>
*
* <strong>example:</strong>
* <p>insert</p>
*/
public Builder stickySessionType(String stickySessionType) {
this.stickySessionType = stickySessionType;
return this;
}
/**
* <p>The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. In this case, the health check status of the backend server changes from <strong>success</strong> to <strong>fail</strong>.</p>
* <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
/**
* <p>Indicates whether the <code>X-Forwarded-For</code> header is used to preserve client IP addresses. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedFor(String xForwardedFor) {
this.xForwardedFor = xForwardedFor;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientSrcPort</code> header is used to retrieve the client port. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForClientSrcPort(String xForwardedForClientSrcPort) {
this.xForwardedForClientSrcPort = xForwardedForClientSrcPort;
return this;
}
/**
* <p>Indicates whether the <code>SLB-ID</code> header is used to retrieve the ID of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForSLBID(String xForwardedForSLBID) {
this.xForwardedForSLBID = xForwardedForSLBID;
return this;
}
/**
* <p>Indicates whether the <code>SLB-IP</code> header is used to retrieve the VIP of the client. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForSLBIP(String xForwardedForSLBIP) {
this.xForwardedForSLBIP = xForwardedForSLBIP;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_SLBPORT</code> header is used to retrieve the listener port of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForSLBPORT(String xForwardedForSLBPORT) {
this.xForwardedForSLBPORT = xForwardedForSLBPORT;
return this;
}
/**
* <p>Indicates whether the <code>X-Forwarded-Proto</code> header is used to obtain the listener protocol. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForProto(String xForwardedForProto) {
this.xForwardedForProto = xForwardedForProto;
return this;
}
public HTTPListenerConfig build() {
return new HTTPListenerConfig(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerListenersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerListenersResponseBody</p>
*/
public static class HTTPSListenerConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CACertificateId")
private String CACertificateId;
@com.aliyun.core.annotation.NameInMap("Cookie")
private String cookie;
@com.aliyun.core.annotation.NameInMap("CookieTimeout")
private Integer cookieTimeout;
@com.aliyun.core.annotation.NameInMap("EnableHttp2")
private String enableHttp2;
@com.aliyun.core.annotation.NameInMap("Gzip")
private String gzip;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private String healthCheck;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort")
private Integer healthCheckConnectPort;
@com.aliyun.core.annotation.NameInMap("HealthCheckDomain")
private String healthCheckDomain;
@com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode")
private String healthCheckHttpCode;
@com.aliyun.core.annotation.NameInMap("HealthCheckHttpVersion")
private String healthCheckHttpVersion;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckMethod")
private String healthCheckMethod;
@com.aliyun.core.annotation.NameInMap("HealthCheckTimeout")
private Integer healthCheckTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheckType")
private String healthCheckType;
@com.aliyun.core.annotation.NameInMap("HealthCheckURI")
private String healthCheckURI;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("IdleTimeout")
private Integer idleTimeout;
@com.aliyun.core.annotation.NameInMap("RequestTimeout")
private Integer requestTimeout;
@com.aliyun.core.annotation.NameInMap("ServerCertificateId")
private String serverCertificateId;
@com.aliyun.core.annotation.NameInMap("StickySession")
private String stickySession;
@com.aliyun.core.annotation.NameInMap("StickySessionType")
private String stickySessionType;
@com.aliyun.core.annotation.NameInMap("TLSCipherPolicy")
private String TLSCipherPolicy;
@com.aliyun.core.annotation.NameInMap("UnhealthyThreshold")
private Integer unhealthyThreshold;
@com.aliyun.core.annotation.NameInMap("XForwardedFor")
private String xForwardedFor;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientCertClientVerify")
private String xForwardedForClientCertClientVerify;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientCertFingerprint")
private String xForwardedForClientCertFingerprint;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientCertIssuerDN")
private String xForwardedForClientCertIssuerDN;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientCertSubjectDN")
private String xForwardedForClientCertSubjectDN;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientSrcPort")
private String xForwardedForClientSrcPort;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBID")
private String xForwardedForSLBID;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBIP")
private String xForwardedForSLBIP;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBPORT")
private String xForwardedForSLBPORT;
@com.aliyun.core.annotation.NameInMap("XForwardedFor_proto")
private String xForwardedForProto;
private HTTPSListenerConfig(Builder builder) {
this.CACertificateId = builder.CACertificateId;
this.cookie = builder.cookie;
this.cookieTimeout = builder.cookieTimeout;
this.enableHttp2 = builder.enableHttp2;
this.gzip = builder.gzip;
this.healthCheck = builder.healthCheck;
this.healthCheckConnectPort = builder.healthCheckConnectPort;
this.healthCheckDomain = builder.healthCheckDomain;
this.healthCheckHttpCode = builder.healthCheckHttpCode;
this.healthCheckHttpVersion = builder.healthCheckHttpVersion;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckMethod = builder.healthCheckMethod;
this.healthCheckTimeout = builder.healthCheckTimeout;
this.healthCheckType = builder.healthCheckType;
this.healthCheckURI = builder.healthCheckURI;
this.healthyThreshold = builder.healthyThreshold;
this.idleTimeout = builder.idleTimeout;
this.requestTimeout = builder.requestTimeout;
this.serverCertificateId = builder.serverCertificateId;
this.stickySession = builder.stickySession;
this.stickySessionType = builder.stickySessionType;
this.TLSCipherPolicy = builder.TLSCipherPolicy;
this.unhealthyThreshold = builder.unhealthyThreshold;
this.xForwardedFor = builder.xForwardedFor;
this.xForwardedForClientCertClientVerify = builder.xForwardedForClientCertClientVerify;
this.xForwardedForClientCertFingerprint = builder.xForwardedForClientCertFingerprint;
this.xForwardedForClientCertIssuerDN = builder.xForwardedForClientCertIssuerDN;
this.xForwardedForClientCertSubjectDN = builder.xForwardedForClientCertSubjectDN;
this.xForwardedForClientSrcPort = builder.xForwardedForClientSrcPort;
this.xForwardedForSLBID = builder.xForwardedForSLBID;
this.xForwardedForSLBIP = builder.xForwardedForSLBIP;
this.xForwardedForSLBPORT = builder.xForwardedForSLBPORT;
this.xForwardedForProto = builder.xForwardedForProto;
}
public static Builder builder() {
return new Builder();
}
public static HTTPSListenerConfig create() {
return builder().build();
}
/**
* @return CACertificateId
*/
public String getCACertificateId() {
return this.CACertificateId;
}
/**
* @return cookie
*/
public String getCookie() {
return this.cookie;
}
/**
* @return cookieTimeout
*/
public Integer getCookieTimeout() {
return this.cookieTimeout;
}
/**
* @return enableHttp2
*/
public String getEnableHttp2() {
return this.enableHttp2;
}
/**
* @return gzip
*/
public String getGzip() {
return this.gzip;
}
/**
* @return healthCheck
*/
public String getHealthCheck() {
return this.healthCheck;
}
/**
* @return healthCheckConnectPort
*/
public Integer getHealthCheckConnectPort() {
return this.healthCheckConnectPort;
}
/**
* @return healthCheckDomain
*/
public String getHealthCheckDomain() {
return this.healthCheckDomain;
}
/**
* @return healthCheckHttpCode
*/
public String getHealthCheckHttpCode() {
return this.healthCheckHttpCode;
}
/**
* @return healthCheckHttpVersion
*/
public String getHealthCheckHttpVersion() {
return this.healthCheckHttpVersion;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckMethod
*/
public String getHealthCheckMethod() {
return this.healthCheckMethod;
}
/**
* @return healthCheckTimeout
*/
public Integer getHealthCheckTimeout() {
return this.healthCheckTimeout;
}
/**
* @return healthCheckType
*/
public String getHealthCheckType() {
return this.healthCheckType;
}
/**
* @return healthCheckURI
*/
public String getHealthCheckURI() {
return this.healthCheckURI;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return idleTimeout
*/
public Integer getIdleTimeout() {
return this.idleTimeout;
}
/**
* @return requestTimeout
*/
public Integer getRequestTimeout() {
return this.requestTimeout;
}
/**
* @return serverCertificateId
*/
public String getServerCertificateId() {
return this.serverCertificateId;
}
/**
* @return stickySession
*/
public String getStickySession() {
return this.stickySession;
}
/**
* @return stickySessionType
*/
public String getStickySessionType() {
return this.stickySessionType;
}
/**
* @return TLSCipherPolicy
*/
public String getTLSCipherPolicy() {
return this.TLSCipherPolicy;
}
/**
* @return unhealthyThreshold
*/
public Integer getUnhealthyThreshold() {
return this.unhealthyThreshold;
}
/**
* @return xForwardedFor
*/
public String getXForwardedFor() {
return this.xForwardedFor;
}
/**
* @return xForwardedForClientCertClientVerify
*/
public String getXForwardedForClientCertClientVerify() {
return this.xForwardedForClientCertClientVerify;
}
/**
* @return xForwardedForClientCertFingerprint
*/
public String getXForwardedForClientCertFingerprint() {
return this.xForwardedForClientCertFingerprint;
}
/**
* @return xForwardedForClientCertIssuerDN
*/
public String getXForwardedForClientCertIssuerDN() {
return this.xForwardedForClientCertIssuerDN;
}
/**
* @return xForwardedForClientCertSubjectDN
*/
public String getXForwardedForClientCertSubjectDN() {
return this.xForwardedForClientCertSubjectDN;
}
/**
* @return xForwardedForClientSrcPort
*/
public String getXForwardedForClientSrcPort() {
return this.xForwardedForClientSrcPort;
}
/**
* @return xForwardedForSLBID
*/
public String getXForwardedForSLBID() {
return this.xForwardedForSLBID;
}
/**
* @return xForwardedForSLBIP
*/
public String getXForwardedForSLBIP() {
return this.xForwardedForSLBIP;
}
/**
* @return xForwardedForSLBPORT
*/
public String getXForwardedForSLBPORT() {
return this.xForwardedForSLBPORT;
}
/**
* @return xForwardedForProto
*/
public String getXForwardedForProto() {
return this.xForwardedForProto;
}
public static final class Builder {
private String CACertificateId;
private String cookie;
private Integer cookieTimeout;
private String enableHttp2;
private String gzip;
private String healthCheck;
private Integer healthCheckConnectPort;
private String healthCheckDomain;
private String healthCheckHttpCode;
private String healthCheckHttpVersion;
private Integer healthCheckInterval;
private String healthCheckMethod;
private Integer healthCheckTimeout;
private String healthCheckType;
private String healthCheckURI;
private Integer healthyThreshold;
private Integer idleTimeout;
private Integer requestTimeout;
private String serverCertificateId;
private String stickySession;
private String stickySessionType;
private String TLSCipherPolicy;
private Integer unhealthyThreshold;
private String xForwardedFor;
private String xForwardedForClientCertClientVerify;
private String xForwardedForClientCertFingerprint;
private String xForwardedForClientCertIssuerDN;
private String xForwardedForClientCertSubjectDN;
private String xForwardedForClientSrcPort;
private String xForwardedForSLBID;
private String xForwardedForSLBIP;
private String xForwardedForSLBPORT;
private String xForwardedForProto;
/**
* <p>The ID of the CA certificate.</p>
*
* <strong>example:</strong>
* <p>idkp-234-cn-test-0****</p>
*/
public Builder CACertificateId(String CACertificateId) {
this.CACertificateId = CACertificateId;
return this;
}
/**
* <p>The cookie configures for the server.</p>
*
* <strong>example:</strong>
* <p>B490B5EBF6F3CD402E515D22BCDA****</p>
*/
public Builder cookie(String cookie) {
this.cookie = cookie;
return this;
}
/**
* <p>The maximum amount of time to wait before the session cookie expires. Unit: seconds.</p>
* <p>Valid values: <strong>1</strong> to <strong>86400</strong>.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder cookieTimeout(Integer cookieTimeout) {
this.cookieTimeout = cookieTimeout;
return this;
}
/**
* <p>Indicates whether <code>HTTP 2.0</code> is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder enableHttp2(String enableHttp2) {
this.enableHttp2 = enableHttp2;
return this;
}
/**
* <p>Indicates whether GZIP compression is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder gzip(String gzip) {
this.gzip = gzip;
return this;
}
/**
* <p>Indicates whether the health check feature is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder healthCheck(String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The port that is used for health checks.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder healthCheckConnectPort(Integer healthCheckConnectPort) {
this.healthCheckConnectPort = healthCheckConnectPort;
return this;
}
/**
* <p>The domain name that is used for health checks.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder healthCheckDomain(String healthCheckDomain) {
this.healthCheckDomain = healthCheckDomain;
return this;
}
/**
* <p>The HTTP status code that indicates a healthy backend server.</p>
*
* <strong>example:</strong>
* <p>http_2xx,http_3xx</p>
*/
public Builder healthCheckHttpCode(String healthCheckHttpCode) {
this.healthCheckHttpCode = healthCheckHttpCode;
return this;
}
/**
* <p>The HTTP version for health checks.</p>
*
* <strong>example:</strong>
* <p>HTTP 1.0</p>
*/
public Builder healthCheckHttpVersion(String healthCheckHttpVersion) {
this.healthCheckHttpVersion = healthCheckHttpVersion;
return this;
}
/**
* <p>The interval at which health checks are performed. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* <p>The health check method.</p>
*
* <strong>example:</strong>
* <p>get</p>
*/
public Builder healthCheckMethod(String healthCheckMethod) {
this.healthCheckMethod = healthCheckMethod;
return this;
}
/**
* <p>The timeout period of a health check response. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder healthCheckTimeout(Integer healthCheckTimeout) {
this.healthCheckTimeout = healthCheckTimeout;
return this;
}
/**
* <p>The protocol that you want to use for health checks.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder healthCheckType(String healthCheckType) {
this.healthCheckType = healthCheckType;
return this;
}
/**
* <p>The URI that is used for health checks.</p>
*
* <strong>example:</strong>
* <p>/test/index.html</p>
*/
public Builder healthCheckURI(String healthCheckURI) {
this.healthCheckURI = healthCheckURI;
return this;
}
/**
* <p>The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. In this case, the health check status of the backend server changes from <strong>fail</strong> to <strong>success</strong>.</p>
* <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* <p>The timeout period of an idle connection. Unit: seconds. Valid values: <strong>1</strong> to <strong>60</strong>.</p>
* <p>If no request is received within the specified timeout period, CLB closes the connection. When a request is received, CLB establishes a new connection.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder idleTimeout(Integer idleTimeout) {
this.idleTimeout = idleTimeout;
return this;
}
/**
* <p>The request timeout period. Unit: seconds. Valid values: <strong>1</strong> to <strong>180</strong>.</p>
* <p>If no response is received from a backend server during the request timeout period, CLB sends the <code>HTTP 504</code> status code to the client.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder requestTimeout(Integer requestTimeout) {
this.requestTimeout = requestTimeout;
return this;
}
/**
* <p>The ID of the server certificate.</p>
*
* <strong>example:</strong>
* <p>idkp-123-cn-test-0****</p>
*/
public Builder serverCertificateId(String serverCertificateId) {
this.serverCertificateId = serverCertificateId;
return this;
}
/**
* <p>Indicates whether session persistence is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder stickySession(String stickySession) {
this.stickySession = stickySession;
return this;
}
/**
* <p>The method used to handle the cookie.</p>
* <ul>
* <li><strong>insert</strong>: inserts a cookie. CLB inserts the SERVERID cookie to the HTTP or HTTPS response to the first request from a client. Subsequent requests that carry the SERVERID cookie from the client are forwarded to the same backend server as the first request.</li>
* <li><strong>server</strong>: rewrites the original cookie. CLB rewrites the custom cookies in requests from a client. Subsequent requests from the client that carry the new cookie are forwarded to the same backend server as the first request.</li>
* </ul>
*
* <strong>example:</strong>
* <p>insert</p>
*/
public Builder stickySessionType(String stickySessionType) {
this.stickySessionType = stickySessionType;
return this;
}
/**
* <p>A TLS security policy contains TLS protocols and cipher suites available for HTTPS.</p>
* <ul>
* <li><p><strong>tls_cipher_policy_1_0</strong>:</p>
* <p>Supported TLS versions: TLSv1.0, TLSv1.1, and TLSv1.2.</p>
* <p>Supported cipher suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, AES128-GCM-SHA256, AES256-GCM-SHA384, AES128-SHA256, AES256-SHA256, ECDHE-RSA-AES128-SHA, ECDHE-RSA-AES256-SHA, AES128-SHA, AES256-SHA, and DES-CBC3-SHA.</p>
* </li>
* <li><p><strong>tls_cipher_policy_1_1</strong>:</p>
* <p>Supported TLS versions: TLSv1.1 and TLSv1.2.</p>
* <p>Supported cipher suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, AES128-GCM-SHA256, AES256-GCM-SHA384, AES128-SHA256, AES256-SHA256, ECDHE-RSA-AES128-SHA, ECDHE-RSA-AES256-SHA, AES128-SHA, AES256-SHA, and DES-CBC3-SHA.</p>
* </li>
* <li><p><strong>tls_cipher_policy_1_2</strong></p>
* <p>Supported TLS versions: TLSv1.2.</p>
* <p>Supported cipher suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, AES128-GCM-SHA256, AES256-GCM-SHA384, AES128-SHA256, AES256-SHA256, ECDHE-RSA-AES128-SHA, ECDHE-RSA-AES256-SHA, AES128-SHA, AES256-SHA, and DES-CBC3-SHA.</p>
* </li>
* <li><p><strong>tls_cipher_policy_1_2_strict</strong></p>
* <p>Supported TLS versions: TLSv1.2.</p>
* <p>Supported cipher suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, ECDHE-RSA-AES128-SHA, and ECDHE-RSA-AES256-SHA.</p>
* </li>
* <li><p><strong>tls_cipher_policy_1_2_strict_with_1_3</strong></p>
* <p>Supported TLS versions: TLSv1.2 and TLSv1.3.</p>
* <p>Supported cipher suites: TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, TLS_AES_128_CCM_SHA256, TLS_AES_128_CCM_8_SHA256, ECDHE-ECDSA-AES128-GCM-SHA256, ECDHE-ECDSA-AES256-GCM-SHA384, ECDHE-ECDSA-AES128-SHA256, ECDHE-ECDSA-AES256-SHA384, ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, ECDHE-ECDSA-AES128-SHA, ECDHE-ECDSA-AES256-SHA, ECDHE-RSA-AES128-SHA, and ECDHE-RSA-AES256-SHA.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>tls_cipher_policy_1_0</p>
*/
public Builder TLSCipherPolicy(String TLSCipherPolicy) {
this.TLSCipherPolicy = TLSCipherPolicy;
return this;
}
/**
* <p>The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. In this case, the health check status of the backend server changes from <strong>success</strong> to <strong>fail</strong>.</p>
* <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
/**
* <p>Indicates whether the <code>X-Forwarded-For</code> header is used to retrieve client IP addresses. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedFor(String xForwardedFor) {
this.xForwardedFor = xForwardedFor;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientCertClientVerify</code> header is used to obtain the verification result of the client certificate. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientCertClientVerify(String xForwardedForClientCertClientVerify) {
this.xForwardedForClientCertClientVerify = xForwardedForClientCertClientVerify;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientCertFingerprint</code> header is used to obtain the fingerprint of the client certificate. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientCertFingerprint(String xForwardedForClientCertFingerprint) {
this.xForwardedForClientCertFingerprint = xForwardedForClientCertFingerprint;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientCertIssuerDN</code> header is used to obtain information about the authority that issues the client certificate. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientCertIssuerDN(String xForwardedForClientCertIssuerDN) {
this.xForwardedForClientCertIssuerDN = xForwardedForClientCertIssuerDN;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientCertSubjectDN</code> header is used to obtain information about the owner of the client certificate. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientCertSubjectDN(String xForwardedForClientCertSubjectDN) {
this.xForwardedForClientCertSubjectDN = xForwardedForClientCertSubjectDN;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_ClientSrcPort</code> header is used to retrieve the client port. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForClientSrcPort(String xForwardedForClientSrcPort) {
this.xForwardedForClientSrcPort = xForwardedForClientSrcPort;
return this;
}
/**
* <p>Indicates whether the <code>SLB-ID</code> header is used to retrieve the ID of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForSLBID(String xForwardedForSLBID) {
this.xForwardedForSLBID = xForwardedForSLBID;
return this;
}
/**
* <p>Indicates whether the <code>SLB-IP</code> header is used to retrieve the VIP of the client. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForSLBIP(String xForwardedForSLBIP) {
this.xForwardedForSLBIP = xForwardedForSLBIP;
return this;
}
/**
* <p>Indicates whether the <code>XForwardedFor_SLBPORT</code> header is used to retrieve the listener port of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder xForwardedForSLBPORT(String xForwardedForSLBPORT) {
this.xForwardedForSLBPORT = xForwardedForSLBPORT;
return this;
}
/**
* <p>Indicates whether the <code>X-Forwarded-Proto</code> header is used to obtain the listener protocol. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder xForwardedForProto(String xForwardedForProto) {
this.xForwardedForProto = xForwardedForProto;
return this;
}
public HTTPSListenerConfig build() {
return new HTTPSListenerConfig(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerListenersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerListenersResponseBody</p>
*/
public static class TCPListenerConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConnectionDrain")
private String connectionDrain;
@com.aliyun.core.annotation.NameInMap("ConnectionDrainTimeout")
private Integer connectionDrainTimeout;
@com.aliyun.core.annotation.NameInMap("EstablishedTimeout")
private Integer establishedTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private String healthCheck;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort")
private Integer healthCheckConnectPort;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectTimeout")
private Integer healthCheckConnectTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheckDomain")
private String healthCheckDomain;
@com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode")
private String healthCheckHttpCode;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckMethod")
private String healthCheckMethod;
@com.aliyun.core.annotation.NameInMap("HealthCheckType")
private String healthCheckType;
@com.aliyun.core.annotation.NameInMap("HealthCheckURI")
private String healthCheckURI;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupId")
private String masterSlaveServerGroupId;
@com.aliyun.core.annotation.NameInMap("PersistenceTimeout")
private Integer persistenceTimeout;
@com.aliyun.core.annotation.NameInMap("ProxyProtocolV2Enabled")
private String proxyProtocolV2Enabled;
@com.aliyun.core.annotation.NameInMap("UnhealthyThreshold")
private Integer unhealthyThreshold;
private TCPListenerConfig(Builder builder) {
this.connectionDrain = builder.connectionDrain;
this.connectionDrainTimeout = builder.connectionDrainTimeout;
this.establishedTimeout = builder.establishedTimeout;
this.healthCheck = builder.healthCheck;
this.healthCheckConnectPort = builder.healthCheckConnectPort;
this.healthCheckConnectTimeout = builder.healthCheckConnectTimeout;
this.healthCheckDomain = builder.healthCheckDomain;
this.healthCheckHttpCode = builder.healthCheckHttpCode;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckMethod = builder.healthCheckMethod;
this.healthCheckType = builder.healthCheckType;
this.healthCheckURI = builder.healthCheckURI;
this.healthyThreshold = builder.healthyThreshold;
this.masterSlaveServerGroupId = builder.masterSlaveServerGroupId;
this.persistenceTimeout = builder.persistenceTimeout;
this.proxyProtocolV2Enabled = builder.proxyProtocolV2Enabled;
this.unhealthyThreshold = builder.unhealthyThreshold;
}
public static Builder builder() {
return new Builder();
}
public static TCPListenerConfig create() {
return builder().build();
}
/**
* @return connectionDrain
*/
public String getConnectionDrain() {
return this.connectionDrain;
}
/**
* @return connectionDrainTimeout
*/
public Integer getConnectionDrainTimeout() {
return this.connectionDrainTimeout;
}
/**
* @return establishedTimeout
*/
public Integer getEstablishedTimeout() {
return this.establishedTimeout;
}
/**
* @return healthCheck
*/
public String getHealthCheck() {
return this.healthCheck;
}
/**
* @return healthCheckConnectPort
*/
public Integer getHealthCheckConnectPort() {
return this.healthCheckConnectPort;
}
/**
* @return healthCheckConnectTimeout
*/
public Integer getHealthCheckConnectTimeout() {
return this.healthCheckConnectTimeout;
}
/**
* @return healthCheckDomain
*/
public String getHealthCheckDomain() {
return this.healthCheckDomain;
}
/**
* @return healthCheckHttpCode
*/
public String getHealthCheckHttpCode() {
return this.healthCheckHttpCode;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckMethod
*/
public String getHealthCheckMethod() {
return this.healthCheckMethod;
}
/**
* @return healthCheckType
*/
public String getHealthCheckType() {
return this.healthCheckType;
}
/**
* @return healthCheckURI
*/
public String getHealthCheckURI() {
return this.healthCheckURI;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return masterSlaveServerGroupId
*/
public String getMasterSlaveServerGroupId() {
return this.masterSlaveServerGroupId;
}
/**
* @return persistenceTimeout
*/
public Integer getPersistenceTimeout() {
return this.persistenceTimeout;
}
/**
* @return proxyProtocolV2Enabled
*/
public String getProxyProtocolV2Enabled() {
return this.proxyProtocolV2Enabled;
}
/**
* @return unhealthyThreshold
*/
public Integer getUnhealthyThreshold() {
return this.unhealthyThreshold;
}
public static final class Builder {
private String connectionDrain;
private Integer connectionDrainTimeout;
private Integer establishedTimeout;
private String healthCheck;
private Integer healthCheckConnectPort;
private Integer healthCheckConnectTimeout;
private String healthCheckDomain;
private String healthCheckHttpCode;
private Integer healthCheckInterval;
private String healthCheckMethod;
private String healthCheckType;
private String healthCheckURI;
private Integer healthyThreshold;
private String masterSlaveServerGroupId;
private Integer persistenceTimeout;
private String proxyProtocolV2Enabled;
private Integer unhealthyThreshold;
/**
* <p>Indicates whether connection draining is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder connectionDrain(String connectionDrain) {
this.connectionDrain = connectionDrain;
return this;
}
/**
* <p>The timeout period of connection draining. Unit: seconds.</p>
* <p>Value values: <strong>10 to 900</strong>.</p>
*
* <strong>example:</strong>
* <p>300</p>
*/
public Builder connectionDrainTimeout(Integer connectionDrainTimeout) {
this.connectionDrainTimeout = connectionDrainTimeout;
return this;
}
/**
* <p>The timeout period of a connection. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder establishedTimeout(Integer establishedTimeout) {
this.establishedTimeout = establishedTimeout;
return this;
}
/**
* <p>Indicates whether the health check feature is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder healthCheck(String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The port that is used for health checks.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder healthCheckConnectPort(Integer healthCheckConnectPort) {
this.healthCheckConnectPort = healthCheckConnectPort;
return this;
}
/**
* <p>The timeout period of health checks. Unit: seconds.</p>
* <p>Valid values: <strong>1</strong> to <strong>300</strong>.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder healthCheckConnectTimeout(Integer healthCheckConnectTimeout) {
this.healthCheckConnectTimeout = healthCheckConnectTimeout;
return this;
}
/**
* <p>The domain name that is used for health checks.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder healthCheckDomain(String healthCheckDomain) {
this.healthCheckDomain = healthCheckDomain;
return this;
}
/**
* <p>The HTTP status code that indicates a healthy backend server.</p>
*
* <strong>example:</strong>
* <p>http_2xx,http_3xx</p>
*/
public Builder healthCheckHttpCode(String healthCheckHttpCode) {
this.healthCheckHttpCode = healthCheckHttpCode;
return this;
}
/**
* <p>The interval between two consecutive health checks. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* <p>The health check method.</p>
*
* <strong>example:</strong>
* <p>get</p>
*/
public Builder healthCheckMethod(String healthCheckMethod) {
this.healthCheckMethod = healthCheckMethod;
return this;
}
/**
* <p>The protocol that you want to use for health checks.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder healthCheckType(String healthCheckType) {
this.healthCheckType = healthCheckType;
return this;
}
/**
* <p>The URI that is used for health checks.</p>
*
* <strong>example:</strong>
* <p>/test/index.html</p>
*/
public Builder healthCheckURI(String healthCheckURI) {
this.healthCheckURI = healthCheckURI;
return this;
}
/**
* <p>The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. In this case, the health check status of the backend server changes from <strong>fail</strong> to <strong>success</strong>.</p>
* <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* <p>The ID of the primary/secondary server group associated with the listener.</p>
*
* <strong>example:</strong>
* <p>rsp-0bfucw*****</p>
*/
public Builder masterSlaveServerGroupId(String masterSlaveServerGroupId) {
this.masterSlaveServerGroupId = masterSlaveServerGroupId;
return this;
}
/**
* <p>Indicates whether session persistence is enabled. Unit: seconds.</p>
* <p>Valid values: <strong>0</strong> to <strong>3600</strong>.</p>
* <p><strong>0</strong> indicates that session persistence is disabled.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder persistenceTimeout(Integer persistenceTimeout) {
this.persistenceTimeout = persistenceTimeout;
return this;
}
/**
* <p>Indicates whether the Proxy protocol is used to pass source client IP addresses to backend servers. Valid values:</p>
* <ul>
* <li><strong>true</strong>: enables the burst feature for the data disk.</li>
* <li><strong>false</strong>: The task is not being retried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder proxyProtocolV2Enabled(String proxyProtocolV2Enabled) {
this.proxyProtocolV2Enabled = proxyProtocolV2Enabled;
return this;
}
/**
* <p>The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. In this case, the health check status of the backend server changes from <strong>success</strong> to <strong>fail</strong>.</p>
* <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
public TCPListenerConfig build() {
return new TCPListenerConfig(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerListenersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerListenersResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TagKey")
private String tagKey;
@com.aliyun.core.annotation.NameInMap("TagValue")
private String tagValue;
private Tags(Builder builder) {
this.tagKey = builder.tagKey;
this.tagValue = builder.tagValue;
}
public static Builder builder() {
return new Builder();
}
public static Tags 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;
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>TestValue</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerListenersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerListenersResponseBody</p>
*/
public static class UDPListenerConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConnectionDrain")
private String connectionDrain;
@com.aliyun.core.annotation.NameInMap("ConnectionDrainTimeout")
private Integer connectionDrainTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private String healthCheck;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort")
private Integer healthCheckConnectPort;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectTimeout")
private Integer healthCheckConnectTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheckExp")
private String healthCheckExp;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckReq")
private String healthCheckReq;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupId")
private String masterSlaveServerGroupId;
@com.aliyun.core.annotation.NameInMap("ProxyProtocolV2Enabled")
private String proxyProtocolV2Enabled;
@com.aliyun.core.annotation.NameInMap("UnhealthyThreshold")
private Integer unhealthyThreshold;
private UDPListenerConfig(Builder builder) {
this.connectionDrain = builder.connectionDrain;
this.connectionDrainTimeout = builder.connectionDrainTimeout;
this.healthCheck = builder.healthCheck;
this.healthCheckConnectPort = builder.healthCheckConnectPort;
this.healthCheckConnectTimeout = builder.healthCheckConnectTimeout;
this.healthCheckExp = builder.healthCheckExp;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckReq = builder.healthCheckReq;
this.healthyThreshold = builder.healthyThreshold;
this.masterSlaveServerGroupId = builder.masterSlaveServerGroupId;
this.proxyProtocolV2Enabled = builder.proxyProtocolV2Enabled;
this.unhealthyThreshold = builder.unhealthyThreshold;
}
public static Builder builder() {
return new Builder();
}
public static UDPListenerConfig create() {
return builder().build();
}
/**
* @return connectionDrain
*/
public String getConnectionDrain() {
return this.connectionDrain;
}
/**
* @return connectionDrainTimeout
*/
public Integer getConnectionDrainTimeout() {
return this.connectionDrainTimeout;
}
/**
* @return healthCheck
*/
public String getHealthCheck() {
return this.healthCheck;
}
/**
* @return healthCheckConnectPort
*/
public Integer getHealthCheckConnectPort() {
return this.healthCheckConnectPort;
}
/**
* @return healthCheckConnectTimeout
*/
public Integer getHealthCheckConnectTimeout() {
return this.healthCheckConnectTimeout;
}
/**
* @return healthCheckExp
*/
public String getHealthCheckExp() {
return this.healthCheckExp;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckReq
*/
public String getHealthCheckReq() {
return this.healthCheckReq;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return masterSlaveServerGroupId
*/
public String getMasterSlaveServerGroupId() {
return this.masterSlaveServerGroupId;
}
/**
* @return proxyProtocolV2Enabled
*/
public String getProxyProtocolV2Enabled() {
return this.proxyProtocolV2Enabled;
}
/**
* @return unhealthyThreshold
*/
public Integer getUnhealthyThreshold() {
return this.unhealthyThreshold;
}
public static final class Builder {
private String connectionDrain;
private Integer connectionDrainTimeout;
private String healthCheck;
private Integer healthCheckConnectPort;
private Integer healthCheckConnectTimeout;
private String healthCheckExp;
private Integer healthCheckInterval;
private String healthCheckReq;
private Integer healthyThreshold;
private String masterSlaveServerGroupId;
private String proxyProtocolV2Enabled;
private Integer unhealthyThreshold;
/**
* <p>Indicates whether connection draining is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder connectionDrain(String connectionDrain) {
this.connectionDrain = connectionDrain;
return this;
}
/**
* <p>The timeout period of connection draining. Unit: seconds.</p>
* <p>Value values: <strong>10 to 900</strong>.</p>
*
* <strong>example:</strong>
* <p>300</p>
*/
public Builder connectionDrainTimeout(Integer connectionDrainTimeout) {
this.connectionDrainTimeout = connectionDrainTimeout;
return this;
}
/**
* <p>Indicates whether the health check feature is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong></li>
* <li><strong>off</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder healthCheck(String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The port that is used for health checks.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder healthCheckConnectPort(Integer healthCheckConnectPort) {
this.healthCheckConnectPort = healthCheckConnectPort;
return this;
}
/**
* <p>The timeout period for a health check response.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder healthCheckConnectTimeout(Integer healthCheckConnectTimeout) {
this.healthCheckConnectTimeout = healthCheckConnectTimeout;
return this;
}
/**
* <p>The response string of UDP health checks.</p>
*
* <strong>example:</strong>
* <p>ok</p>
*/
public Builder healthCheckExp(String healthCheckExp) {
this.healthCheckExp = healthCheckExp;
return this;
}
/**
* <p>The interval between two consecutive health checks. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* <p>The request string of UDP health checks.</p>
*
* <strong>example:</strong>
* <p>hello</p>
*/
public Builder healthCheckReq(String healthCheckReq) {
this.healthCheckReq = healthCheckReq;
return this;
}
/**
* <p>The number of times that a backend server must consecutively pass health checks before it is declared healthy.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* <p>The ID of the primary/secondary server group that is associated with the listener.</p>
*
* <strong>example:</strong>
* <p>rsp-0bfucw****</p>
*/
public Builder masterSlaveServerGroupId(String masterSlaveServerGroupId) {
this.masterSlaveServerGroupId = masterSlaveServerGroupId;
return this;
}
/**
* <p>Indicates whether the Proxy protocol is used to pass source client IP addresses to backend servers. Valid values:</p>
* <ul>
* <li><strong>true</strong>: enables the burst feature for the data disk.</li>
* <li><strong>false</strong>: The task is not being retried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder proxyProtocolV2Enabled(String proxyProtocolV2Enabled) {
this.proxyProtocolV2Enabled = proxyProtocolV2Enabled;
return this;
}
/**
* <p>The number of times that a backend server must consecutively fail health checks before it is declared unhealthy.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
public UDPListenerConfig build() {
return new UDPListenerConfig(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerListenersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerListenersResponseBody</p>
*/
public static class Listeners extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.NameInMap("AclIds")
private java.util.List<String> aclIds;
@com.aliyun.core.annotation.NameInMap("AclStatus")
private String aclStatus;
@com.aliyun.core.annotation.NameInMap("AclType")
private String aclType;
@com.aliyun.core.annotation.NameInMap("BackendServerPort")
private Integer backendServerPort;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Integer bandwidth;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("HTTPListenerConfig")
private HTTPListenerConfig HTTPListenerConfig;
@com.aliyun.core.annotation.NameInMap("HTTPSListenerConfig")
private HTTPSListenerConfig HTTPSListenerConfig;
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("ListenerProtocol")
private String listenerProtocol;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("Scheduler")
private String scheduler;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TCPListenerConfig")
private TCPListenerConfig TCPListenerConfig;
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
@com.aliyun.core.annotation.NameInMap("UDPListenerConfig")
private UDPListenerConfig UDPListenerConfig;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
private Listeners(Builder builder) {
this.aclId = builder.aclId;
this.aclIds = builder.aclIds;
this.aclStatus = builder.aclStatus;
this.aclType = builder.aclType;
this.backendServerPort = builder.backendServerPort;
this.bandwidth = builder.bandwidth;
this.description = builder.description;
this.HTTPListenerConfig = builder.HTTPListenerConfig;
this.HTTPSListenerConfig = builder.HTTPSListenerConfig;
this.listenerPort = builder.listenerPort;
this.listenerProtocol = builder.listenerProtocol;
this.loadBalancerId = builder.loadBalancerId;
this.scheduler = builder.scheduler;
this.status = builder.status;
this.TCPListenerConfig = builder.TCPListenerConfig;
this.tags = builder.tags;
this.UDPListenerConfig = builder.UDPListenerConfig;
this.vServerGroupId = builder.vServerGroupId;
}
public static Builder builder() {
return new Builder();
}
public static Listeners create() {
return builder().build();
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclIds
*/
public java.util.List<String> getAclIds() {
return this.aclIds;
}
/**
* @return aclStatus
*/
public String getAclStatus() {
return this.aclStatus;
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return backendServerPort
*/
public Integer getBackendServerPort() {
return this.backendServerPort;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return HTTPListenerConfig
*/
public HTTPListenerConfig getHTTPListenerConfig() {
return this.HTTPListenerConfig;
}
/**
* @return HTTPSListenerConfig
*/
public HTTPSListenerConfig getHTTPSListenerConfig() {
return this.HTTPSListenerConfig;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return listenerProtocol
*/
public String getListenerProtocol() {
return this.listenerProtocol;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return scheduler
*/
public String getScheduler() {
return this.scheduler;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return TCPListenerConfig
*/
public TCPListenerConfig getTCPListenerConfig() {
return this.TCPListenerConfig;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
/**
* @return UDPListenerConfig
*/
public UDPListenerConfig getUDPListenerConfig() {
return this.UDPListenerConfig;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
public static final class Builder {
private String aclId;
private java.util.List<String> aclIds;
private String aclStatus;
private String aclType;
private Integer backendServerPort;
private Integer bandwidth;
private String description;
private HTTPListenerConfig HTTPListenerConfig;
private HTTPSListenerConfig HTTPSListenerConfig;
private Integer listenerPort;
private String listenerProtocol;
private String loadBalancerId;
private String scheduler;
private String status;
private TCPListenerConfig TCPListenerConfig;
private java.util.List<Tags> tags;
private UDPListenerConfig UDPListenerConfig;
private String vServerGroupId;
/**
* <p>The ID of the access control list (ACL).</p>
*
* <strong>example:</strong>
* <p>nacl-a2do9e413e0spzasx****</p>
*/
public Builder aclId(String aclId) {
this.aclId = aclId;
return this;
}
/**
* <p>The IDs of the ACLs.</p>
*/
public Builder aclIds(java.util.List<String> aclIds) {
this.aclIds = aclIds;
return this;
}
/**
* <p>Indicates whether access control is enabled. 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.aclStatus = aclStatus;
return this;
}
/**
* <p>The type of access control. Valid values:</p>
* <ul>
* <li><strong>white</strong>: The listener forwards requests only from IP addresses and CIDR blocks on the whitelist. Your service may be adversely affected if the whitelist is not properly configured. If a whitelist is configured, the listener forwards requests only from IP addresses that are added to the whitelist.</li>
* </ul>
* <p>If you configure a whitelist but no IP address is added to the whitelist, the listener forwards all requests.</p>
* <ul>
* <li><strong>black</strong>: The listener blocks requests from IP addresses and CIDR blocks on the blacklist.</li>
* </ul>
* <p>If you configure a blacklist but no IP address is added to the blacklist, the listener forwards all requests.</p>
*
* <strong>example:</strong>
* <p>white</p>
*/
public Builder aclType(String aclType) {
this.aclType = aclType;
return this;
}
/**
* <p>The port of the backend server.</p>
* <blockquote>
* <p> This parameter takes effect only when the <code>VServerGroupId</code> and <code>MasterSlaveServerGroupId</code> parameters are both empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder backendServerPort(Integer backendServerPort) {
this.backendServerPort = backendServerPort;
return this;
}
/**
* <p>The maximum bandwidth of the listener. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The description of the listener.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The configurations of the HTTP listener.</p>
*/
public Builder HTTPListenerConfig(HTTPListenerConfig HTTPListenerConfig) {
this.HTTPListenerConfig = HTTPListenerConfig;
return this;
}
/**
* <p>The configurations of the HTTPS listener.</p>
*/
public Builder HTTPSListenerConfig(HTTPSListenerConfig HTTPSListenerConfig) {
this.HTTPSListenerConfig = HTTPSListenerConfig;
return this;
}
/**
* <p>The listener port.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The protocol used by the listener.</p>
*
* <strong>example:</strong>
* <p>http</p>
*/
public Builder listenerProtocol(String listenerProtocol) {
this.listenerProtocol = listenerProtocol;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-bp1b6c719dfa****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The scheduling algorithm. Valid values:</p>
* <ul>
* <li><strong>wrr</strong>: Backend servers with higher weights receive more requests than those with lower weights.</li>
* <li><strong>rr</strong>: Requests are distributed to backend servers in sequence.</li>
* <li><strong>sch</strong>: consistent hashing that is based on source IP addresses. Requests from the same source IP address are distributed to the same backend server.</li>
* <li><strong>tch</strong>: specifies consistent hashing based on the source IP address, destination IP address, source port, and destination port. Requests that have the same four factors are distributed to the same backend server.</li>
* <li><strong>qch</strong>: specifies consistent hashing based on Quick UDP Internet Connection (QUIC) IDs. Requests that contain the same QUIC ID are scheduled to the same backend server.</li>
* </ul>
* <blockquote>
* <p> Only high-performance CLB instances support the <strong>sch</strong>, <strong>tch</strong>, and <strong>qch</strong> consistent hashing algorithms.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>wrr</p>
*/
public Builder scheduler(String scheduler) {
this.scheduler = scheduler;
return this;
}
/**
* <p>The status of the listener. Valid values:</p>
* <ul>
* <li><strong>running</strong></li>
* <li><strong>stopped</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>running</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The configurations of the TCP listener.</p>
*/
public Builder TCPListenerConfig(TCPListenerConfig TCPListenerConfig) {
this.TCPListenerConfig = TCPListenerConfig;
return this;
}
/**
* <p>A list of tags.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.tags = tags;
return this;
}
/**
* <p>The configurations of the UDP listener.</p>
*/
public Builder UDPListenerConfig(UDPListenerConfig UDPListenerConfig) {
this.UDPListenerConfig = UDPListenerConfig;
return this;
}
/**
* <p>The ID of the vServer group associated with the listener.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6j****</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
public Listeners build() {
return new Listeners(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerTCPListenerAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerTCPListenerAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeLoadBalancerTCPListenerAttributeRequest</p>
*/
public class DescribeLoadBalancerTCPListenerAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerPort")
@com.aliyun.core.annotation.Validation(required = true, maximum = 65535)
private Integer listenerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeLoadBalancerTCPListenerAttributeRequest(Builder builder) {
super(builder);
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
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 DescribeLoadBalancerTCPListenerAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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<DescribeLoadBalancerTCPListenerAttributeRequest, Builder> {
private Integer listenerPort;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeLoadBalancerTCPListenerAttributeRequest request) {
super(request);
this.listenerPort = request.listenerPort;
this.loadBalancerId = request.loadBalancerId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The frontend port used by the CLB instance.</p>
* <p>Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.putQueryParameter("ListenerPort", listenerPort);
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1ygod3yctvg1y****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 CLB instance.</p>
* <p>You can query the region ID from the <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a> list or by calling the <a href="https://help.aliyun.com/document_detail/25609.html">DescribeRegions</a> operation.</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 DescribeLoadBalancerTCPListenerAttributeRequest build() {
return new DescribeLoadBalancerTCPListenerAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerTCPListenerAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerTCPListenerAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerTCPListenerAttributeResponse</p>
*/
public class DescribeLoadBalancerTCPListenerAttributeResponse 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 DescribeLoadBalancerTCPListenerAttributeResponseBody body;
private DescribeLoadBalancerTCPListenerAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeLoadBalancerTCPListenerAttributeResponse 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 DescribeLoadBalancerTCPListenerAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeLoadBalancerTCPListenerAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeLoadBalancerTCPListenerAttributeResponseBody body);
@Override
DescribeLoadBalancerTCPListenerAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeLoadBalancerTCPListenerAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeLoadBalancerTCPListenerAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeLoadBalancerTCPListenerAttributeResponse 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(DescribeLoadBalancerTCPListenerAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeLoadBalancerTCPListenerAttributeResponse build() {
return new DescribeLoadBalancerTCPListenerAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerTCPListenerAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerTCPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerTCPListenerAttributeResponseBody</p>
*/
public class DescribeLoadBalancerTCPListenerAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.NameInMap("AclIds")
private AclIds aclIds;
@com.aliyun.core.annotation.NameInMap("AclStatus")
private String aclStatus;
@com.aliyun.core.annotation.NameInMap("AclType")
private String aclType;
@com.aliyun.core.annotation.NameInMap("BackendServerPort")
private Integer backendServerPort;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Integer bandwidth;
@com.aliyun.core.annotation.NameInMap("ConnectionDrain")
private String connectionDrain;
@com.aliyun.core.annotation.NameInMap("ConnectionDrainTimeout")
private Integer connectionDrainTimeout;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EstablishedTimeout")
private Integer establishedTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private String healthCheck;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort")
private Integer healthCheckConnectPort;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectTimeout")
private Integer healthCheckConnectTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheckDomain")
private String healthCheckDomain;
@com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode")
private String healthCheckHttpCode;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckMethod")
private String healthCheckMethod;
@com.aliyun.core.annotation.NameInMap("HealthCheckType")
private String healthCheckType;
@com.aliyun.core.annotation.NameInMap("HealthCheckURI")
private String healthCheckURI;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupId")
private String masterSlaveServerGroupId;
@com.aliyun.core.annotation.NameInMap("PersistenceTimeout")
private Integer persistenceTimeout;
@com.aliyun.core.annotation.NameInMap("ProxyProtocolV2Enabled")
private Boolean proxyProtocolV2Enabled;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Scheduler")
private String scheduler;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("SynProxy")
private String synProxy;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("UnhealthyThreshold")
private Integer unhealthyThreshold;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
private DescribeLoadBalancerTCPListenerAttributeResponseBody(Builder builder) {
this.aclId = builder.aclId;
this.aclIds = builder.aclIds;
this.aclStatus = builder.aclStatus;
this.aclType = builder.aclType;
this.backendServerPort = builder.backendServerPort;
this.bandwidth = builder.bandwidth;
this.connectionDrain = builder.connectionDrain;
this.connectionDrainTimeout = builder.connectionDrainTimeout;
this.description = builder.description;
this.establishedTimeout = builder.establishedTimeout;
this.healthCheck = builder.healthCheck;
this.healthCheckConnectPort = builder.healthCheckConnectPort;
this.healthCheckConnectTimeout = builder.healthCheckConnectTimeout;
this.healthCheckDomain = builder.healthCheckDomain;
this.healthCheckHttpCode = builder.healthCheckHttpCode;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckMethod = builder.healthCheckMethod;
this.healthCheckType = builder.healthCheckType;
this.healthCheckURI = builder.healthCheckURI;
this.healthyThreshold = builder.healthyThreshold;
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
this.masterSlaveServerGroupId = builder.masterSlaveServerGroupId;
this.persistenceTimeout = builder.persistenceTimeout;
this.proxyProtocolV2Enabled = builder.proxyProtocolV2Enabled;
this.requestId = builder.requestId;
this.scheduler = builder.scheduler;
this.status = builder.status;
this.synProxy = builder.synProxy;
this.tags = builder.tags;
this.unhealthyThreshold = builder.unhealthyThreshold;
this.vServerGroupId = builder.vServerGroupId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeLoadBalancerTCPListenerAttributeResponseBody create() {
return builder().build();
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclIds
*/
public AclIds getAclIds() {
return this.aclIds;
}
/**
* @return aclStatus
*/
public String getAclStatus() {
return this.aclStatus;
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return backendServerPort
*/
public Integer getBackendServerPort() {
return this.backendServerPort;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return connectionDrain
*/
public String getConnectionDrain() {
return this.connectionDrain;
}
/**
* @return connectionDrainTimeout
*/
public Integer getConnectionDrainTimeout() {
return this.connectionDrainTimeout;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return establishedTimeout
*/
public Integer getEstablishedTimeout() {
return this.establishedTimeout;
}
/**
* @return healthCheck
*/
public String getHealthCheck() {
return this.healthCheck;
}
/**
* @return healthCheckConnectPort
*/
public Integer getHealthCheckConnectPort() {
return this.healthCheckConnectPort;
}
/**
* @return healthCheckConnectTimeout
*/
public Integer getHealthCheckConnectTimeout() {
return this.healthCheckConnectTimeout;
}
/**
* @return healthCheckDomain
*/
public String getHealthCheckDomain() {
return this.healthCheckDomain;
}
/**
* @return healthCheckHttpCode
*/
public String getHealthCheckHttpCode() {
return this.healthCheckHttpCode;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckMethod
*/
public String getHealthCheckMethod() {
return this.healthCheckMethod;
}
/**
* @return healthCheckType
*/
public String getHealthCheckType() {
return this.healthCheckType;
}
/**
* @return healthCheckURI
*/
public String getHealthCheckURI() {
return this.healthCheckURI;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return masterSlaveServerGroupId
*/
public String getMasterSlaveServerGroupId() {
return this.masterSlaveServerGroupId;
}
/**
* @return persistenceTimeout
*/
public Integer getPersistenceTimeout() {
return this.persistenceTimeout;
}
/**
* @return proxyProtocolV2Enabled
*/
public Boolean getProxyProtocolV2Enabled() {
return this.proxyProtocolV2Enabled;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return scheduler
*/
public String getScheduler() {
return this.scheduler;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return synProxy
*/
public String getSynProxy() {
return this.synProxy;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return unhealthyThreshold
*/
public Integer getUnhealthyThreshold() {
return this.unhealthyThreshold;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
public static final class Builder {
private String aclId;
private AclIds aclIds;
private String aclStatus;
private String aclType;
private Integer backendServerPort;
private Integer bandwidth;
private String connectionDrain;
private Integer connectionDrainTimeout;
private String description;
private Integer establishedTimeout;
private String healthCheck;
private Integer healthCheckConnectPort;
private Integer healthCheckConnectTimeout;
private String healthCheckDomain;
private String healthCheckHttpCode;
private Integer healthCheckInterval;
private String healthCheckMethod;
private String healthCheckType;
private String healthCheckURI;
private Integer healthyThreshold;
private Integer listenerPort;
private String loadBalancerId;
private String masterSlaveServerGroupId;
private Integer persistenceTimeout;
private Boolean proxyProtocolV2Enabled;
private String requestId;
private String scheduler;
private String status;
private String synProxy;
private Tags tags;
private Integer unhealthyThreshold;
private String vServerGroupId;
/**
* <p>The ID of the network ACL that is associated with the listener.</p>
* <p>If <strong>AclStatus</strong> is set to <strong>on</strong>, this parameter is returned.</p>
*
* <strong>example:</strong>
* <p>acl-uf60jwfi******</p>
*/
public Builder aclId(String aclId) {
this.aclId = aclId;
return this;
}
/**
* <p>The IDs of the ACLs.</p>
*/
public Builder aclIds(AclIds aclIds) {
this.aclIds = aclIds;
return this;
}
/**
* <p>Indicates whether access control is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong>: yes</li>
* <li><strong>off</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder aclStatus(String aclStatus) {
this.aclStatus = aclStatus;
return this;
}
/**
* <p>The type of the ACL. Valid values:</p>
* <ul>
* <li><p><strong>white</strong>: a whitelist. Only requests from the IP addresses or CIDR blocks in the network ACL are forwarded. Whitelists apply to scenarios in which you want to allow only specific IP addresses to access an application.</p>
* <p>Your service may be adversely affected if the whitelist is not properly configured. After a whitelist is configured, only requests from IP addresses that are added to the whitelist are forwarded by the listener.</p>
* <p>If you enable a whitelist but do not add an IP address to the ACL, the listener forwards all requests.</p>
* </li>
* <li><p><strong>black</strong>: a blacklist. All requests from the IP addresses or CIDR blocks in the network ACL are rejected. Blacklists apply to scenarios in which you want to block access from specified IP addresses to an application.</p>
* <p>If a blacklist is configured for a listener but no IP address is added to the blacklist, the listener forwards all requests.</p>
* </li>
* </ul>
* <blockquote>
* <p> If <strong>AclStatus</strong> is set to <strong>on</strong>, this parameter is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>white</p>
*/
public Builder aclType(String aclType) {
this.aclType = aclType;
return this;
}
/**
* <p>The backend port used by the CLB instance.</p>
* <blockquote>
* <p> If the listener is associated with a vServer group, this parameter is not returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>443</p>
*/
public Builder backendServerPort(Integer backendServerPort) {
this.backendServerPort = backendServerPort;
return this;
}
/**
* <p>The maximum bandwidth of the listener. Unit: Mbit/s. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: For a pay-by-data-transfer Internet-facing CLB instance, this parameter is set to -1. This indicates that the bandwidth of the listener is unlimited.</li>
* <li><strong>1</strong> to <strong>5120</strong>: For a pay-by-bandwidth Internet-facing CLB instance, you can specify the maximum bandwidth of each listener. The sum of maximum bandwidth of all listeners cannot exceed the maximum bandwidth of the CLB instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>Indicates whether connection draining is enabled. If <strong>ConnectionDrain</strong> is set to <strong>on</strong>, the parameter is returned. Valid values:</p>
* <ul>
* <li><strong>on</strong>: yes</li>
* <li><strong>off</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder connectionDrain(String connectionDrain) {
this.connectionDrain = connectionDrain;
return this;
}
/**
* <p>The timeout period of connection draining. If <strong>ConnectionDrain</strong> is set to <strong>on</strong>, the parameter is returned.</p>
* <p>Valid values: 10 to 900. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>300</p>
*/
public Builder connectionDrainTimeout(Integer connectionDrainTimeout) {
this.connectionDrainTimeout = connectionDrainTimeout;
return this;
}
/**
* <p>The description of the listener.</p>
*
* <strong>example:</strong>
* <p>TCP listener</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The timeout period of a connection.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder establishedTimeout(Integer establishedTimeout) {
this.establishedTimeout = establishedTimeout;
return this;
}
/**
* <p>Indicates whether the health check feature is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong>: yes</li>
* <li><strong>off</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder healthCheck(String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The port that is used for health checks. Valid values: <strong>1</strong> to <strong>65535</strong>. If this parameter is not set, the port specified by BackendServerPort is used for health checks.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder healthCheckConnectPort(Integer healthCheckConnectPort) {
this.healthCheckConnectPort = healthCheckConnectPort;
return this;
}
/**
* <p>The timeout period.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder healthCheckConnectTimeout(Integer healthCheckConnectTimeout) {
this.healthCheckConnectTimeout = healthCheckConnectTimeout;
return this;
}
/**
* <p>The domain name that is used for health checks. Valid values:</p>
* <ul>
* <li><strong>$_ip</strong>: the private IP addresses of backend servers. If you do not set the HealthCheckDomain parameter or set the parameter to $_ip, the CLB instance uses the private IP address of each backend server for health checks.</li>
* <li><strong>domain</strong>: The domain name is 1 to 80 characters in length, and can contain letters, digits, periods (.), and hyphens (-).</li>
* </ul>
*
* <strong>example:</strong>
* <p><a href="http://www.domain.com">www.domain.com</a></p>
*/
public Builder healthCheckDomain(String healthCheckDomain) {
this.healthCheckDomain = healthCheckDomain;
return this;
}
/**
* <p>The HTTP status code for a successful health check.</p>
*
* <strong>example:</strong>
* <p>http_2xx</p>
*/
public Builder healthCheckHttpCode(String healthCheckHttpCode) {
this.healthCheckHttpCode = healthCheckHttpCode;
return this;
}
/**
* <p>The interval between two consecutive health checks. Valid values: <strong>1</strong> to <strong>50</strong>. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* <p>The health check method.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder healthCheckMethod(String healthCheckMethod) {
this.healthCheckMethod = healthCheckMethod;
return this;
}
/**
* <p>The health check method that is used by the TCP listener.</p>
* <p>Valid values: <strong>tcp</strong> and <strong>http</strong>.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder healthCheckType(String healthCheckType) {
this.healthCheckType = healthCheckType;
return this;
}
/**
* <p>The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL is not a single forward slash (/) but it starts with a forward slash (/).</p>
*
* <strong>example:</strong>
* <p>/test/index.html</p>
*/
public Builder healthCheckURI(String healthCheckURI) {
this.healthCheckURI = healthCheckURI;
return this;
}
/**
* <p>The healthy threshold. The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. In this case, the health status is changed from <strong>fail</strong> to <strong>success</strong>. Valid values: <strong>2</strong> to <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* <p>The frontend port used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>110</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-bp1ygod3yctvg1y****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The ID of the primary/secondary server group that is associated with the listener.</p>
*
* <strong>example:</strong>
* <p>rsp-0bfucw****</p>
*/
public Builder masterSlaveServerGroupId(String masterSlaveServerGroupId) {
this.masterSlaveServerGroupId = masterSlaveServerGroupId;
return this;
}
/**
* <p>The timeout period of session persistence.</p>
* <p>Valid values: <strong>0</strong> to <strong>3600</strong>. Unit: seconds. Default value: <strong>0</strong>. If the default value is used, the system disables session persistence.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder persistenceTimeout(Integer persistenceTimeout) {
this.persistenceTimeout = persistenceTimeout;
return this;
}
/**
* <p>Indicates whether the Proxy protocol is used to pass client IP addresses to backend servers. 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 proxyProtocolV2Enabled(Boolean proxyProtocolV2Enabled) {
this.proxyProtocolV2Enabled = proxyProtocolV2Enabled;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The scheduling algorithm.</p>
* <ul>
* <li><strong>wrr</strong> (default): Backend servers with higher weights receive more requests than backend servers with lower weights.</li>
* <li><strong>rr</strong>: Requests are distributed to backend servers in sequence.</li>
* <li><strong>sch</strong>: specifies consistent hashing that is based on source IP addresses. Requests from the same source IP address are distributed to the same backend server.</li>
* <li><strong>tch</strong>: specifies consistent hashing that is based on four factors: source IP address, destination IP address, source port, and destination port. Requests that contain the same information based on the four factors are distributed to the same backend server.</li>
* </ul>
* <blockquote>
* <p>Only high-performance CLB instances support the sch and tch algorithms.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>wrr</p>
*/
public Builder scheduler(String scheduler) {
this.scheduler = scheduler;
return this;
}
/**
* <p>The status of the listener. Valid values:</p>
* <ul>
* <li><strong>running</strong></li>
* <li><strong>stopped</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>stopped</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>Indicates whether the SynProxy feature of CLB is enabled for protection.</p>
* <p>We recommend that you use the default value of this parameter. Valid values:</p>
* <ul>
* <li><strong>enable</strong>: yes</li>
* <li><strong>disable</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>enable</p>
*/
public Builder synProxy(String synProxy) {
this.synProxy = synProxy;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The unhealthy threshold. The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. In this case, the health status is changed from <strong>success</strong> to <strong>fail</strong>. Valid values: <strong>2</strong> to <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
/**
* <p>The ID of the associated server group.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6******8</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
public DescribeLoadBalancerTCPListenerAttributeResponseBody build() {
return new DescribeLoadBalancerTCPListenerAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeLoadBalancerTCPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerTCPListenerAttributeResponseBody</p>
*/
public static class AclIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private java.util.List<String> aclId;
private AclIds(Builder builder) {
this.aclId = builder.aclId;
}
public static Builder builder() {
return new Builder();
}
public static AclIds create() {
return builder().build();
}
/**
* @return aclId
*/
public java.util.List<String> getAclId() {
return this.aclId;
}
public static final class Builder {
private java.util.List<String> aclId;
/**
* <p>The ID of the network ACL that is associated with the listener.</p>
* <p>If <strong>AclStatus</strong> is set to <strong>on</strong>, this parameter is returned.</p>
*
* <strong>example:</strong>
* <p>acl-uf60jwfi******</p>
*/
public Builder aclId(java.util.List<String> aclId) {
this.aclId = aclId;
return this;
}
public AclIds build() {
return new AclIds(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerTCPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerTCPListenerAttributeResponseBody</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;
/**
* <p>The key of tag N. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag value cannot be an empty string. The tag key can be up to 128 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. It cannot start with <code>acs:</code> or <code>aliyun</code>.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The value of tag N. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag value can be an empty string. The tag value can be up to 128 characters in length, and cannot start with <code>acs:</code>. It cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>TestValue</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerTCPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerTCPListenerAttributeResponseBody</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;
/**
* 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerUDPListenerAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerUDPListenerAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeLoadBalancerUDPListenerAttributeRequest</p>
*/
public class DescribeLoadBalancerUDPListenerAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerPort")
@com.aliyun.core.annotation.Validation(required = true, maximum = 65535)
private Integer listenerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeLoadBalancerUDPListenerAttributeRequest(Builder builder) {
super(builder);
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
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 DescribeLoadBalancerUDPListenerAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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<DescribeLoadBalancerUDPListenerAttributeRequest, Builder> {
private Integer listenerPort;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeLoadBalancerUDPListenerAttributeRequest request) {
super(request);
this.listenerPort = request.listenerPort;
this.loadBalancerId = request.loadBalancerId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The frontend port used by the CLB instance.</p>
* <p>Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.putQueryParameter("ListenerPort", listenerPort);
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1rtfnodmywb43e*****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 Classic Load Balancer (CLB) instance is deployed.</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 DescribeLoadBalancerUDPListenerAttributeRequest build() {
return new DescribeLoadBalancerUDPListenerAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerUDPListenerAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerUDPListenerAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerUDPListenerAttributeResponse</p>
*/
public class DescribeLoadBalancerUDPListenerAttributeResponse 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 DescribeLoadBalancerUDPListenerAttributeResponseBody body;
private DescribeLoadBalancerUDPListenerAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeLoadBalancerUDPListenerAttributeResponse 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 DescribeLoadBalancerUDPListenerAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeLoadBalancerUDPListenerAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeLoadBalancerUDPListenerAttributeResponseBody body);
@Override
DescribeLoadBalancerUDPListenerAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeLoadBalancerUDPListenerAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeLoadBalancerUDPListenerAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeLoadBalancerUDPListenerAttributeResponse 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(DescribeLoadBalancerUDPListenerAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeLoadBalancerUDPListenerAttributeResponse build() {
return new DescribeLoadBalancerUDPListenerAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancerUDPListenerAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancerUDPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerUDPListenerAttributeResponseBody</p>
*/
public class DescribeLoadBalancerUDPListenerAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private String aclId;
@com.aliyun.core.annotation.NameInMap("AclIds")
private AclIds aclIds;
@com.aliyun.core.annotation.NameInMap("AclStatus")
private String aclStatus;
@com.aliyun.core.annotation.NameInMap("AclType")
private String aclType;
@com.aliyun.core.annotation.NameInMap("BackendServerPort")
private Integer backendServerPort;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Integer bandwidth;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private String healthCheck;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort")
private Integer healthCheckConnectPort;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectTimeout")
private Integer healthCheckConnectTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheckExp")
private String healthCheckExp;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckReq")
private String healthCheckReq;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupId")
private String masterSlaveServerGroupId;
@com.aliyun.core.annotation.NameInMap("ProxyProtocolV2Enabled")
private Boolean proxyProtocolV2Enabled;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Scheduler")
private String scheduler;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("UnhealthyThreshold")
private Integer unhealthyThreshold;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
private DescribeLoadBalancerUDPListenerAttributeResponseBody(Builder builder) {
this.aclId = builder.aclId;
this.aclIds = builder.aclIds;
this.aclStatus = builder.aclStatus;
this.aclType = builder.aclType;
this.backendServerPort = builder.backendServerPort;
this.bandwidth = builder.bandwidth;
this.description = builder.description;
this.healthCheck = builder.healthCheck;
this.healthCheckConnectPort = builder.healthCheckConnectPort;
this.healthCheckConnectTimeout = builder.healthCheckConnectTimeout;
this.healthCheckExp = builder.healthCheckExp;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckReq = builder.healthCheckReq;
this.healthyThreshold = builder.healthyThreshold;
this.listenerPort = builder.listenerPort;
this.loadBalancerId = builder.loadBalancerId;
this.masterSlaveServerGroupId = builder.masterSlaveServerGroupId;
this.proxyProtocolV2Enabled = builder.proxyProtocolV2Enabled;
this.requestId = builder.requestId;
this.scheduler = builder.scheduler;
this.status = builder.status;
this.tags = builder.tags;
this.unhealthyThreshold = builder.unhealthyThreshold;
this.vServerGroupId = builder.vServerGroupId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeLoadBalancerUDPListenerAttributeResponseBody create() {
return builder().build();
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclIds
*/
public AclIds getAclIds() {
return this.aclIds;
}
/**
* @return aclStatus
*/
public String getAclStatus() {
return this.aclStatus;
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return backendServerPort
*/
public Integer getBackendServerPort() {
return this.backendServerPort;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return healthCheck
*/
public String getHealthCheck() {
return this.healthCheck;
}
/**
* @return healthCheckConnectPort
*/
public Integer getHealthCheckConnectPort() {
return this.healthCheckConnectPort;
}
/**
* @return healthCheckConnectTimeout
*/
public Integer getHealthCheckConnectTimeout() {
return this.healthCheckConnectTimeout;
}
/**
* @return healthCheckExp
*/
public String getHealthCheckExp() {
return this.healthCheckExp;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckReq
*/
public String getHealthCheckReq() {
return this.healthCheckReq;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return masterSlaveServerGroupId
*/
public String getMasterSlaveServerGroupId() {
return this.masterSlaveServerGroupId;
}
/**
* @return proxyProtocolV2Enabled
*/
public Boolean getProxyProtocolV2Enabled() {
return this.proxyProtocolV2Enabled;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return scheduler
*/
public String getScheduler() {
return this.scheduler;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return unhealthyThreshold
*/
public Integer getUnhealthyThreshold() {
return this.unhealthyThreshold;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
public static final class Builder {
private String aclId;
private AclIds aclIds;
private String aclStatus;
private String aclType;
private Integer backendServerPort;
private Integer bandwidth;
private String description;
private String healthCheck;
private Integer healthCheckConnectPort;
private Integer healthCheckConnectTimeout;
private String healthCheckExp;
private Integer healthCheckInterval;
private String healthCheckReq;
private Integer healthyThreshold;
private Integer listenerPort;
private String loadBalancerId;
private String masterSlaveServerGroupId;
private Boolean proxyProtocolV2Enabled;
private String requestId;
private String scheduler;
private String status;
private Tags tags;
private Integer unhealthyThreshold;
private String vServerGroupId;
/**
* <p>The ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>123943****</p>
*/
public Builder aclId(String aclId) {
this.aclId = aclId;
return this;
}
/**
* <p>The ID of the access control list (ACL).</p>
*/
public Builder aclIds(AclIds aclIds) {
this.aclIds = aclIds;
return this;
}
/**
* <p>Indicates whether access control is enabled. Valid values: <strong>on</strong> and <strong>off</strong>. Default value: off.</p>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder aclStatus(String aclStatus) {
this.aclStatus = aclStatus;
return this;
}
/**
* <p>The type of the ACL. Valid values:</p>
* <ul>
* <li><p><strong>white</strong>: a whitelist. Only requests from the IP addresses or CIDR blocks in the network ACL are forwarded. Whitelists apply to scenarios in which you want to allow only specified IP addresses to access an application.</p>
* <p>Your service may be adversely affected if the whitelist is not properly configured. After a whitelist is configured, only requests from IP addresses that are added to the whitelist are forwarded by the listener. If you enable a whitelist but do not add an IP address to the ACL, the listener forwards all requests.</p>
* </li>
* <li><p><strong>black</strong>: a blacklist. All requests from the IP addresses or CIDR blocks in the network ACL are blocked. Blacklists apply to scenarios in which you want to deny access from specific IP addresses or CIDR blocks to an application.</p>
* <p>If a blacklist is configured for a listener but no IP address is added to the blacklist, the listener forwards all requests.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>white</p>
*/
public Builder aclType(String aclType) {
this.aclType = aclType;
return this;
}
/**
* <p>The backend port used by the CLB instance.</p>
* <blockquote>
* <p> If the listener is associated with a vServer group, this parameter is not returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>90</p>
*/
public Builder backendServerPort(Integer backendServerPort) {
this.backendServerPort = backendServerPort;
return this;
}
/**
* <p>The maximum bandwidth of the listener. Unit: Mbit/s. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: For a pay-by-data-transfer Internet-facing CLB instance, this parameter is set to -1. This indicates that the bandwidth of the listener is unlimited.</li>
* <li><strong>1</strong> to <strong>5120</strong>: For a pay-by-bandwidth Internet-facing CLB instance, you can specify the maximum bandwidth of each listener. The sum of maximum bandwidth of all listeners cannot exceed the maximum bandwidth of the CLB instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The description of the listener.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>Indicates whether the health check feature is enabled. Valid values:</p>
* <ul>
* <li><strong>on</strong>: yes</li>
* <li><strong>off</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>on</p>
*/
public Builder healthCheck(String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The port that is used for health checks. Valid values: <strong>1</strong> to <strong>65535</strong>. If this parameter is not set, the port specified by BackendServerPort is used for health checks.</p>
* <blockquote>
* <p> This parameter takes effect only when the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder healthCheckConnectPort(Integer healthCheckConnectPort) {
this.healthCheckConnectPort = healthCheckConnectPort;
return this;
}
/**
* <p>The timeout period of a health check. If a backend Elastic Compute Service (ECS) instance does not return a health check response within the specified timeout period, the server fails the health check. Valid values: <strong>1</strong> to <strong>300</strong>. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder healthCheckConnectTimeout(Integer healthCheckConnectTimeout) {
this.healthCheckConnectTimeout = healthCheckConnectTimeout;
return this;
}
/**
* <p>The response string for UDP listener health checks. The string is up to 64 characters in length, and can contain letters and digits.</p>
*
* <strong>example:</strong>
* <p>ok</p>
*/
public Builder healthCheckExp(String healthCheckExp) {
this.healthCheckExp = healthCheckExp;
return this;
}
/**
* <p>The interval between two consecutive health checks. Valid values: <strong>1</strong> to <strong>50</strong>. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* <p>The request string for UDP listener health checks. The string is up to 64 characters in length, and can contain letters and digits.</p>
*
* <strong>example:</strong>
* <p>hello</p>
*/
public Builder healthCheckReq(String healthCheckReq) {
this.healthCheckReq = healthCheckReq;
return this;
}
/**
* <p>The healthy threshold. The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. In this case, the health status is changed from <strong>fail</strong> to <strong>success</strong>. Valid values: <strong>2</strong> to <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* <p>The frontend port used by the CLB instance.</p>
*
* <strong>example:</strong>
* <p>53</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-bp1rtfnodmywb43e*****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The ID of the primary/secondary server group that is associated with the listener.</p>
*
* <strong>example:</strong>
* <p>rsp-0bfucw****</p>
*/
public Builder masterSlaveServerGroupId(String masterSlaveServerGroupId) {
this.masterSlaveServerGroupId = masterSlaveServerGroupId;
return this;
}
/**
* <p>Indicates whether the Proxy protocol is used to pass client IP addresses to backend servers. 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 proxyProtocolV2Enabled(Boolean proxyProtocolV2Enabled) {
this.proxyProtocolV2Enabled = proxyProtocolV2Enabled;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The scheduling algorithm. Valid values:</p>
* <ul>
* <li><strong>wrr</strong> (default): Backend servers with higher weights receive more requests than backend servers with lower weights.</li>
* <li><strong>rr</strong>: Requests are distributed to backend servers in sequence.</li>
* </ul>
*
* <strong>example:</strong>
* <p>wrr</p>
*/
public Builder scheduler(String scheduler) {
this.scheduler = scheduler;
return this;
}
/**
* <p>The status of the listener. Valid values:</p>
* <ul>
* <li><strong>running</strong></li>
* <li><strong>stopped</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>stopped</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 unhealthy threshold. The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. In this case, the health status is changed from <strong>success</strong> to <strong>fail</strong>. Valid values: <strong>2</strong> to <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
/**
* <p>The ID of the vServer group that is associated with the listener.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6j****</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
public DescribeLoadBalancerUDPListenerAttributeResponseBody build() {
return new DescribeLoadBalancerUDPListenerAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeLoadBalancerUDPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerUDPListenerAttributeResponseBody</p>
*/
public static class AclIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclId")
private java.util.List<String> aclId;
private AclIds(Builder builder) {
this.aclId = builder.aclId;
}
public static Builder builder() {
return new Builder();
}
public static AclIds create() {
return builder().build();
}
/**
* @return aclId
*/
public java.util.List<String> getAclId() {
return this.aclId;
}
public static final class Builder {
private java.util.List<String> aclId;
/**
* <p>The ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>123943****</p>
*/
public Builder aclId(java.util.List<String> aclId) {
this.aclId = aclId;
return this;
}
public AclIds build() {
return new AclIds(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerUDPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerUDPListenerAttributeResponseBody</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;
/**
* <p>The key of tag N. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag value cannot be an empty string. The tag key can be up to 128 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. It cannot start with <code>acs:</code> or <code>aliyun</code>.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The value of tag N. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag value can be an empty string. The tag value can be up to 128 characters in length, and cannot start with <code>acs:</code>. It cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>TestValue</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeLoadBalancerUDPListenerAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancerUDPListenerAttributeResponseBody</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;
/**
* 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancersRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancersRequest} extends {@link RequestModel}
*
* <p>DescribeLoadBalancersRequest</p>
*/
public class DescribeLoadBalancersRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Address")
private String address;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AddressIPVersion")
private String addressIPVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AddressType")
private String addressType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerName")
private String loadBalancerName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerStatus")
private String loadBalancerStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MasterZoneId")
private String masterZoneId;
@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")
@com.aliyun.core.annotation.Validation(maximum = 1000, minimum = 1)
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("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("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("ServerId")
private String serverId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServerIntranetAddress")
private String serverIntranetAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SlaveZoneId")
private String slaveZoneId;
@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("Tags")
private String tags;
@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 DescribeLoadBalancersRequest(Builder builder) {
super(builder);
this.address = builder.address;
this.addressIPVersion = builder.addressIPVersion;
this.addressType = builder.addressType;
this.internetChargeType = builder.internetChargeType;
this.loadBalancerId = builder.loadBalancerId;
this.loadBalancerName = builder.loadBalancerName;
this.loadBalancerStatus = builder.loadBalancerStatus;
this.masterZoneId = builder.masterZoneId;
this.networkType = builder.networkType;
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.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.serverId = builder.serverId;
this.serverIntranetAddress = builder.serverIntranetAddress;
this.slaveZoneId = builder.slaveZoneId;
this.tag = builder.tag;
this.tags = builder.tags;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeLoadBalancersRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return address
*/
public String getAddress() {
return this.address;
}
/**
* @return addressIPVersion
*/
public String getAddressIPVersion() {
return this.addressIPVersion;
}
/**
* @return addressType
*/
public String getAddressType() {
return this.addressType;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return loadBalancerName
*/
public String getLoadBalancerName() {
return this.loadBalancerName;
}
/**
* @return loadBalancerStatus
*/
public String getLoadBalancerStatus() {
return this.loadBalancerStatus;
}
/**
* @return masterZoneId
*/
public String getMasterZoneId() {
return this.masterZoneId;
}
/**
* @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 payType
*/
public String getPayType() {
return this.payType;
}
/**
* @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 serverId
*/
public String getServerId() {
return this.serverId;
}
/**
* @return serverIntranetAddress
*/
public String getServerIntranetAddress() {
return this.serverIntranetAddress;
}
/**
* @return slaveZoneId
*/
public String getSlaveZoneId() {
return this.slaveZoneId;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return tags
*/
public String 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 extends Request.Builder<DescribeLoadBalancersRequest, Builder> {
private String address;
private String addressIPVersion;
private String addressType;
private String internetChargeType;
private String loadBalancerId;
private String loadBalancerName;
private String loadBalancerStatus;
private String masterZoneId;
private String networkType;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String payType;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String serverId;
private String serverIntranetAddress;
private String slaveZoneId;
private java.util.List<Tag> tag;
private String tags;
private String vSwitchId;
private String vpcId;
private Builder() {
super();
}
private Builder(DescribeLoadBalancersRequest request) {
super(request);
this.address = request.address;
this.addressIPVersion = request.addressIPVersion;
this.addressType = request.addressType;
this.internetChargeType = request.internetChargeType;
this.loadBalancerId = request.loadBalancerId;
this.loadBalancerName = request.loadBalancerName;
this.loadBalancerStatus = request.loadBalancerStatus;
this.masterZoneId = request.masterZoneId;
this.networkType = request.networkType;
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.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.serverId = request.serverId;
this.serverIntranetAddress = request.serverIntranetAddress;
this.slaveZoneId = request.slaveZoneId;
this.tag = request.tag;
this.tags = request.tags;
this.vSwitchId = request.vSwitchId;
this.vpcId = request.vpcId;
}
/**
* <p>The IP address that the CLB instance uses to provide services.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder address(String address) {
this.putQueryParameter("Address", address);
this.address = address;
return this;
}
/**
* <p>The IP version that is used by the CLB instance. Valid values: <strong>ipv4</strong> and <strong>ipv6</strong>.</p>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder addressIPVersion(String addressIPVersion) {
this.putQueryParameter("AddressIPVersion", addressIPVersion);
this.addressIPVersion = addressIPVersion;
return this;
}
/**
* <p>The network type of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>internet:</strong> After an Internet-facing CLB instance is created, the system assigns a public IP address to the CLB instance. Then, the CLB instance can forward requests over the Internet.</li>
* <li><strong>intranet:</strong> After an internal-facing CLB instance is created, the system assigns a private IP address to the CLB instance. Then, the CLB instance can forward requests only over internal networks.</li>
* </ul>
*
* <strong>example:</strong>
* <p>intranet</p>
*/
public Builder addressType(String addressType) {
this.putQueryParameter("AddressType", addressType);
this.addressType = addressType;
return this;
}
/**
* <p>The metering method of Internet data transfer. Valid values:</p>
* <ul>
* <li><strong>paybybandwidth:</strong> pay-by-bandwidth.</li>
* <li><strong>paybytraffic:</strong> pay-by-data-transfer.</li>
* </ul>
*
* <strong>example:</strong>
* <p>paybytraffic</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.putQueryParameter("InternetChargeType", internetChargeType);
this.internetChargeType = internetChargeType;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
* <p>You can specify up to 10 IDs. Separate multiple IDs with commas (,).</p>
*
* <strong>example:</strong>
* <p>lb-bp1b6c719dfa****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The name of the CLB instance.</p>
* <p>The name must be 1 to 80 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.</p>
* <p>You can specify up to 10 names. Separate multiple names with commas (,).</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder loadBalancerName(String loadBalancerName) {
this.putQueryParameter("LoadBalancerName", loadBalancerName);
this.loadBalancerName = loadBalancerName;
return this;
}
/**
* <p>The status of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>inactive:</strong> The CLB instance is disabled. CLB instances in the inactive state do not forward traffic.</li>
* <li><strong>active:</strong> The CLB instance runs as expected. By default, newly created CLB instances are in the <strong>active</strong> state.</li>
* <li><strong>locked:</strong> The CLB instance is locked. After a CLB instance expires, it is locked for seven days. A locked CLB instance cannot forward traffic and you cannot perform operations on the locked CLB instance. However, other settings such as the IP address are retained.</li>
* </ul>
*
* <strong>example:</strong>
* <p>active</p>
*/
public Builder loadBalancerStatus(String loadBalancerStatus) {
this.putQueryParameter("LoadBalancerStatus", loadBalancerStatus);
this.loadBalancerStatus = loadBalancerStatus;
return this;
}
/**
* <p>The ID of the primary zone to which the CLB instance belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder masterZoneId(String masterZoneId) {
this.putQueryParameter("MasterZoneId", masterZoneId);
this.masterZoneId = masterZoneId;
return this;
}
/**
* <p>The network type of the internal-facing CLB instance. Valid values:</p>
* <ul>
* <li><strong>vpc:</strong> VPC.</li>
* <li><strong>classic:</strong> classic network.</li>
* </ul>
*
* <strong>example:</strong>
* <p>vpc</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 of the page to return.</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.</p>
* <p>Valid values: <strong>1</strong> to <strong>100</strong>.</p>
* <blockquote>
* <p> If you specify the <strong>PageSize</strong> parameter, you must also specify the <strong>PageNumber</strong> parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The billing method of the CLB instance. Valid values:</p>
* <ul>
* <li>Set the value to <strong>PayOnDemand</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>PayOnDemand</p>
*/
public Builder payType(String payType) {
this.putQueryParameter("PayType", payType);
this.payType = payType;
return this;
}
/**
* <p>The ID of the region where the CLB instance is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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.</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;
}
/**
* <p>The ID of the backend server that is added to the CLB instance.</p>
*
* <strong>example:</strong>
* <p>vm-server-23****</p>
*/
public Builder serverId(String serverId) {
this.putQueryParameter("ServerId", serverId);
this.serverId = serverId;
return this;
}
/**
* <p>The private IP address of the backend server that is added to the CLB instance.</p>
* <p>You can specify multiple IP addresses. Separate multiple IP addresses with commas (,).</p>
*
* <strong>example:</strong>
* <p>10.XX.XX.102</p>
*/
public Builder serverIntranetAddress(String serverIntranetAddress) {
this.putQueryParameter("ServerIntranetAddress", serverIntranetAddress);
this.serverIntranetAddress = serverIntranetAddress;
return this;
}
/**
* <p>The ID of the secondary zone to which the CLB instance belongs.</p>
* <p>CLB instances on Alibaba Finance Cloud do not support cross-zone deployment.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-d</p>
*/
public Builder slaveZoneId(String slaveZoneId) {
this.putQueryParameter("SlaveZoneId", slaveZoneId);
this.slaveZoneId = slaveZoneId;
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 tags that are added to the CLB instance. The tags must be key-value pairs that are contained in a JSON dictionary.</p>
* <p>You can specify up to 10 tags in each call.</p>
*
* <strong>example:</strong>
* <p>[{"tagKey":"Key1","tagValue":"Value1"}]</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The ID of the vSwitch to which the CLB instance belongs.</p>
*
* <strong>example:</strong>
* <p>vsw-bp12mw1f8k3****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) to which the CLB instance belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1aevy8sof****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public DescribeLoadBalancersRequest build() {
return new DescribeLoadBalancersRequest(this);
}
}
/**
*
* {@link DescribeLoadBalancersRequest} extends {@link TeaModel}
*
* <p>DescribeLoadBalancersRequest</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;
/**
* <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 must be 1 to 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>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 at most 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. It 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancersResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancersResponse} extends {@link TeaModel}
*
* <p>DescribeLoadBalancersResponse</p>
*/
public class DescribeLoadBalancersResponse 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 DescribeLoadBalancersResponseBody body;
private DescribeLoadBalancersResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeLoadBalancersResponse 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 DescribeLoadBalancersResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeLoadBalancersResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeLoadBalancersResponseBody body);
@Override
DescribeLoadBalancersResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeLoadBalancersResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeLoadBalancersResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeLoadBalancersResponse 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(DescribeLoadBalancersResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeLoadBalancersResponse build() {
return new DescribeLoadBalancersResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeLoadBalancersResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeLoadBalancersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancersResponseBody</p>
*/
public class DescribeLoadBalancersResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LoadBalancers")
private LoadBalancers loadBalancers;
@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 DescribeLoadBalancersResponseBody(Builder builder) {
this.loadBalancers = builder.loadBalancers;
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 DescribeLoadBalancersResponseBody create() {
return builder().build();
}
/**
* @return loadBalancers
*/
public LoadBalancers getLoadBalancers() {
return this.loadBalancers;
}
/**
* @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 LoadBalancers loadBalancers;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
/**
* <p>An array of CLB instances.</p>
*/
public Builder loadBalancers(LoadBalancers loadBalancers) {
this.loadBalancers = loadBalancers;
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 on the current page.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>8B9DB03B-ED39-5DB8-9C9F-1ED5F548D61E</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of instances returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeLoadBalancersResponseBody build() {
return new DescribeLoadBalancersResponseBody(this);
}
}
/**
*
* {@link DescribeLoadBalancersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancersResponseBody</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;
/**
* <p>The key of the tag.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The value of the tag.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeLoadBalancersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancersResponseBody</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;
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeLoadBalancersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancersResponseBody</p>
*/
public static class LoadBalancer extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Address")
private String address;
@com.aliyun.core.annotation.NameInMap("AddressIPVersion")
private String addressIPVersion;
@com.aliyun.core.annotation.NameInMap("AddressType")
private String addressType;
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Integer bandwidth;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("CreateTimeStamp")
private Long createTimeStamp;
@com.aliyun.core.annotation.NameInMap("DeleteProtection")
private String deleteProtection;
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.NameInMap("InternetChargeTypeAlias")
private String internetChargeTypeAlias;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("LoadBalancerName")
private String loadBalancerName;
@com.aliyun.core.annotation.NameInMap("LoadBalancerSpec")
private String loadBalancerSpec;
@com.aliyun.core.annotation.NameInMap("LoadBalancerStatus")
private String loadBalancerStatus;
@com.aliyun.core.annotation.NameInMap("MasterZoneId")
private String masterZoneId;
@com.aliyun.core.annotation.NameInMap("ModificationProtectionReason")
private String modificationProtectionReason;
@com.aliyun.core.annotation.NameInMap("ModificationProtectionStatus")
private String modificationProtectionStatus;
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RegionIdAlias")
private String regionIdAlias;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("SlaveZoneId")
private String slaveZoneId;
@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 LoadBalancer(Builder builder) {
this.address = builder.address;
this.addressIPVersion = builder.addressIPVersion;
this.addressType = builder.addressType;
this.bandwidth = builder.bandwidth;
this.createTime = builder.createTime;
this.createTimeStamp = builder.createTimeStamp;
this.deleteProtection = builder.deleteProtection;
this.instanceChargeType = builder.instanceChargeType;
this.internetChargeType = builder.internetChargeType;
this.internetChargeTypeAlias = builder.internetChargeTypeAlias;
this.loadBalancerId = builder.loadBalancerId;
this.loadBalancerName = builder.loadBalancerName;
this.loadBalancerSpec = builder.loadBalancerSpec;
this.loadBalancerStatus = builder.loadBalancerStatus;
this.masterZoneId = builder.masterZoneId;
this.modificationProtectionReason = builder.modificationProtectionReason;
this.modificationProtectionStatus = builder.modificationProtectionStatus;
this.networkType = builder.networkType;
this.payType = builder.payType;
this.regionId = builder.regionId;
this.regionIdAlias = builder.regionIdAlias;
this.resourceGroupId = builder.resourceGroupId;
this.slaveZoneId = builder.slaveZoneId;
this.tags = builder.tags;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static LoadBalancer create() {
return builder().build();
}
/**
* @return address
*/
public String getAddress() {
return this.address;
}
/**
* @return addressIPVersion
*/
public String getAddressIPVersion() {
return this.addressIPVersion;
}
/**
* @return addressType
*/
public String getAddressType() {
return this.addressType;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return createTimeStamp
*/
public Long getCreateTimeStamp() {
return this.createTimeStamp;
}
/**
* @return deleteProtection
*/
public String getDeleteProtection() {
return this.deleteProtection;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return internetChargeTypeAlias
*/
public String getInternetChargeTypeAlias() {
return this.internetChargeTypeAlias;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return loadBalancerName
*/
public String getLoadBalancerName() {
return this.loadBalancerName;
}
/**
* @return loadBalancerSpec
*/
public String getLoadBalancerSpec() {
return this.loadBalancerSpec;
}
/**
* @return loadBalancerStatus
*/
public String getLoadBalancerStatus() {
return this.loadBalancerStatus;
}
/**
* @return masterZoneId
*/
public String getMasterZoneId() {
return this.masterZoneId;
}
/**
* @return modificationProtectionReason
*/
public String getModificationProtectionReason() {
return this.modificationProtectionReason;
}
/**
* @return modificationProtectionStatus
*/
public String getModificationProtectionStatus() {
return this.modificationProtectionStatus;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return regionIdAlias
*/
public String getRegionIdAlias() {
return this.regionIdAlias;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return slaveZoneId
*/
public String getSlaveZoneId() {
return this.slaveZoneId;
}
/**
* @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 address;
private String addressIPVersion;
private String addressType;
private Integer bandwidth;
private String createTime;
private Long createTimeStamp;
private String deleteProtection;
private String instanceChargeType;
private String internetChargeType;
private String internetChargeTypeAlias;
private String loadBalancerId;
private String loadBalancerName;
private String loadBalancerSpec;
private String loadBalancerStatus;
private String masterZoneId;
private String modificationProtectionReason;
private String modificationProtectionStatus;
private String networkType;
private String payType;
private String regionId;
private String regionIdAlias;
private String resourceGroupId;
private String slaveZoneId;
private Tags tags;
private String vSwitchId;
private String vpcId;
/**
* <p>The endpoint of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>100.XX.XX.28</p>
*/
public Builder address(String address) {
this.address = address;
return this;
}
/**
* <p>The IP version that is used by the CLB instance. Valid values: <strong>ipv4</strong> and <strong>ipv6</strong>.</p>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder addressIPVersion(String addressIPVersion) {
this.addressIPVersion = addressIPVersion;
return this;
}
/**
* <p>The network type of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>internet:</strong> After an Internet-facing CLB instance is created, the system assigns a public IP address to the CLB instance. Then, the CLB instance can forward requests over the Internet.</li>
* <li><strong>intranet:</strong> After an internal-facing CLB instance is created, the system assigns a private IP address to the CLB instance. Then, the CLB instance can forward requests only over internal networks.</li>
* </ul>
*
* <strong>example:</strong>
* <p>intranet</p>
*/
public Builder addressType(String addressType) {
this.addressType = addressType;
return this;
}
/**
* <p>The maximum bandwidth of the listener. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The time when the CLB instance was created. The time follows the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2021-12-02T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The timestamp when the instance was created.</p>
*
* <strong>example:</strong>
* <p>1504147745000</p>
*/
public Builder createTimeStamp(Long createTimeStamp) {
this.createTimeStamp = createTimeStamp;
return this;
}
/**
* <p>Indicates whether deletion protection is enabled for the CLB instance. Valid values:</p>
* <ul>
* <li><strong>on:</strong> Deletion protection is enabled.</li>
* <li><strong>off:</strong> Deletion protection is disabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder deleteProtection(String deleteProtection) {
this.deleteProtection = deleteProtection;
return this;
}
/**
* <p>The metering method of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>PayBySpec:</strong> pay-by-specification.</li>
* <li><strong>PayByCLCU:</strong> pay-by-LCU.</li>
* </ul>
* <blockquote>
* <p> This parameter takes effect only for accounts registered on the China site (aliyun.com) and when the <strong>PayType</strong> parameter is set to <strong>PayOnDemand</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>PayBySpec</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The metering method of the Internet-facing CLB instance. Valid values:</p>
* <ul>
* <li><strong>3:</strong> pay-by-bandwidth (<strong>paybybandwidth</strong>).</li>
* <li><strong>4:</strong> pay-by-data-transfer (<strong>paybytraffic</strong>).</li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.internetChargeType = internetChargeType;
return this;
}
/**
* <p>The metering method of Internet data transfer. Valid values:</p>
* <ul>
* <li><strong>paybybandwidth:</strong> pay-by-bandwidth.</li>
* <li><strong>paybytraffic:</strong> pay-by-data-transfer.</li>
* </ul>
*
* <strong>example:</strong>
* <p>paybybandwidth</p>
*/
public Builder internetChargeTypeAlias(String internetChargeTypeAlias) {
this.internetChargeTypeAlias = internetChargeTypeAlias;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-bp1b6c719dfa****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The name of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-bp1o94dp5i6ea****</p>
*/
public Builder loadBalancerName(String loadBalancerName) {
this.loadBalancerName = loadBalancerName;
return this;
}
/**
* <p>The specification of the CLB instance.</p>
* <blockquote>
* <p> Pay-as-you-go CLB instances are not subject to specifications. <strong>slb.lcu.elastic</strong> is returned by default.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>slb.s1.small</p>
*/
public Builder loadBalancerSpec(String loadBalancerSpec) {
this.loadBalancerSpec = loadBalancerSpec;
return this;
}
/**
* <p>The status of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>inactive:</strong> The CLB instance is disabled. CLB instances in the inactive state do not forward traffic.</li>
* <li><strong>active:</strong> The CLB instance runs as expected. By default, newly created CLB instances are in the <strong>active</strong> state.</li>
* <li><strong>locked:</strong> The CLB instance is locked.</li>
* </ul>
*
* <strong>example:</strong>
* <p>active</p>
*/
public Builder loadBalancerStatus(String loadBalancerStatus) {
this.loadBalancerStatus = loadBalancerStatus;
return this;
}
/**
* <p>The ID of the primary zone to which the CLB instance belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder masterZoneId(String masterZoneId) {
this.masterZoneId = masterZoneId;
return this;
}
/**
* <p>The reason why the configuration read-only mode was enabled. The reason must be 1 to 80 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The reason must start with a letter.</p>
* <blockquote>
* <p>This parameter takes effect only when you set the <code>ModificationProtectionStatus</code> parameter to <strong>ConsoleProtection</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ManagedInstance</p>
*/
public Builder modificationProtectionReason(String modificationProtectionReason) {
this.modificationProtectionReason = modificationProtectionReason;
return this;
}
/**
* <p>Indicates whether the configuration read-only mode is enabled for the CLB instance. Valid values:</p>
* <ul>
* <li><strong>NonProtection:</strong> The configuration read-only mode is disabled. In this case, you cannot specify the ModificationProtectionReason parameter. If you specify the <code>ModificationProtectionReason</code> parameter, the value is cleared.</li>
* <li><strong>ConsoleProtection:</strong> The configuration read-only mode is enabled.</li>
* </ul>
* <blockquote>
* <p> If you set this parameter to <strong>ConsoleProtection</strong>, you cannot modify the configurations of the CLB instance in the CLB console. However, you can call API operations to modify the configurations of the CLB instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ConsoleProtection</p>
*/
public Builder modificationProtectionStatus(String modificationProtectionStatus) {
this.modificationProtectionStatus = modificationProtectionStatus;
return this;
}
/**
* <p>The network type of the internal-facing CLB instance. Valid values:</p>
* <ul>
* <li><strong>vpc:</strong> VPC.</li>
* <li><strong>classic:</strong> classic network.</li>
* </ul>
*
* <strong>example:</strong>
* <p>vpc</p>
*/
public Builder networkType(String networkType) {
this.networkType = networkType;
return this;
}
/**
* <p>The billing method of the CLB instance.</p>
* <ul>
* <li><strong>PayOnDemand</strong> is returned, which indicates the pay-as-you-go billing method.</li>
* </ul>
*
* <strong>example:</strong>
* <p>PayOnDemand</p>
*/
public Builder payType(String payType) {
this.payType = payType;
return this;
}
/**
* <p>The ID of the region where the CLB instance was deployed.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The region where the CLB instance was deployed.</p>
*
* <strong>example:</strong>
* <p>hangzhou</p>
*/
public Builder regionIdAlias(String regionIdAlias) {
this.regionIdAlias = regionIdAlias;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-atstuj3r****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the secondary zone to which the CLB instance belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-d</p>
*/
public Builder slaveZoneId(String slaveZoneId) {
this.slaveZoneId = slaveZoneId;
return this;
}
/**
* <p>The tags of the CLB instance.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the vSwitch to which the internal-facing CLB instance belongs.</p>
*
* <strong>example:</strong>
* <p>vsw-255ecr****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the VPC in which the internal-facing CLB instance was deployed.</p>
*
* <strong>example:</strong>
* <p>vpc-25dvzy9f8****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public LoadBalancer build() {
return new LoadBalancer(this);
}
}
}
/**
*
* {@link DescribeLoadBalancersResponseBody} extends {@link TeaModel}
*
* <p>DescribeLoadBalancersResponseBody</p>
*/
public static class LoadBalancers extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LoadBalancer")
private java.util.List<LoadBalancer> loadBalancer;
private LoadBalancers(Builder builder) {
this.loadBalancer = builder.loadBalancer;
}
public static Builder builder() {
return new Builder();
}
public static LoadBalancers create() {
return builder().build();
}
/**
* @return loadBalancer
*/
public java.util.List<LoadBalancer> getLoadBalancer() {
return this.loadBalancer;
}
public static final class Builder {
private java.util.List<LoadBalancer> loadBalancer;
/**
* LoadBalancer.
*/
public Builder loadBalancer(java.util.List<LoadBalancer> loadBalancer) {
this.loadBalancer = loadBalancer;
return this;
}
public LoadBalancers build() {
return new LoadBalancers(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeMasterSlaveServerGroupAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeMasterSlaveServerGroupAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeMasterSlaveServerGroupAttributeRequest</p>
*/
public class DescribeMasterSlaveServerGroupAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String masterSlaveServerGroupId;
@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 DescribeMasterSlaveServerGroupAttributeRequest(Builder builder) {
super(builder);
this.masterSlaveServerGroupId = builder.masterSlaveServerGroupId;
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 DescribeMasterSlaveServerGroupAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return masterSlaveServerGroupId
*/
public String getMasterSlaveServerGroupId() {
return this.masterSlaveServerGroupId;
}
/**
* @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<DescribeMasterSlaveServerGroupAttributeRequest, Builder> {
private String masterSlaveServerGroupId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeMasterSlaveServerGroupAttributeRequest request) {
super(request);
this.masterSlaveServerGroupId = request.masterSlaveServerGroupId;
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 primary/secondary server group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6j******</p>
*/
public Builder masterSlaveServerGroupId(String masterSlaveServerGroupId) {
this.putQueryParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId);
this.masterSlaveServerGroupId = masterSlaveServerGroupId;
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 Classic Load Balancer (CLB) instance.</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 DescribeMasterSlaveServerGroupAttributeRequest build() {
return new DescribeMasterSlaveServerGroupAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeMasterSlaveServerGroupAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeMasterSlaveServerGroupAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupAttributeResponse</p>
*/
public class DescribeMasterSlaveServerGroupAttributeResponse 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 DescribeMasterSlaveServerGroupAttributeResponseBody body;
private DescribeMasterSlaveServerGroupAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeMasterSlaveServerGroupAttributeResponse 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 DescribeMasterSlaveServerGroupAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeMasterSlaveServerGroupAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeMasterSlaveServerGroupAttributeResponseBody body);
@Override
DescribeMasterSlaveServerGroupAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeMasterSlaveServerGroupAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeMasterSlaveServerGroupAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeMasterSlaveServerGroupAttributeResponse 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(DescribeMasterSlaveServerGroupAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeMasterSlaveServerGroupAttributeResponse build() {
return new DescribeMasterSlaveServerGroupAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeMasterSlaveServerGroupAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeMasterSlaveServerGroupAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupAttributeResponseBody</p>
*/
public class DescribeMasterSlaveServerGroupAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("MasterSlaveBackendServers")
private MasterSlaveBackendServers masterSlaveBackendServers;
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupId")
private String masterSlaveServerGroupId;
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupName")
private String masterSlaveServerGroupName;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
private DescribeMasterSlaveServerGroupAttributeResponseBody(Builder builder) {
this.createTime = builder.createTime;
this.loadBalancerId = builder.loadBalancerId;
this.masterSlaveBackendServers = builder.masterSlaveBackendServers;
this.masterSlaveServerGroupId = builder.masterSlaveServerGroupId;
this.masterSlaveServerGroupName = builder.masterSlaveServerGroupName;
this.requestId = builder.requestId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static DescribeMasterSlaveServerGroupAttributeResponseBody create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return masterSlaveBackendServers
*/
public MasterSlaveBackendServers getMasterSlaveBackendServers() {
return this.masterSlaveBackendServers;
}
/**
* @return masterSlaveServerGroupId
*/
public String getMasterSlaveServerGroupId() {
return this.masterSlaveServerGroupId;
}
/**
* @return masterSlaveServerGroupName
*/
public String getMasterSlaveServerGroupName() {
return this.masterSlaveServerGroupName;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
public static final class Builder {
private String createTime;
private String loadBalancerId;
private MasterSlaveBackendServers masterSlaveBackendServers;
private String masterSlaveServerGroupId;
private String masterSlaveServerGroupName;
private String requestId;
private Tags tags;
/**
* <p>The time when the CLB instance was created. The time follows the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2022-12-02T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the associated CLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-14fadafw4343a******</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>A list of backend servers in the primary/secondary server group.</p>
*/
public Builder masterSlaveBackendServers(MasterSlaveBackendServers masterSlaveBackendServers) {
this.masterSlaveBackendServers = masterSlaveBackendServers;
return this;
}
/**
* <p>The ID of the primary/secondary server group.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6******</p>
*/
public Builder masterSlaveServerGroupId(String masterSlaveServerGroupId) {
this.masterSlaveServerGroupId = masterSlaveServerGroupId;
return this;
}
/**
* <p>The name of the primary/secondary server group.</p>
*
* <strong>example:</strong>
* <p>Group1</p>
*/
public Builder masterSlaveServerGroupName(String masterSlaveServerGroupName) {
this.masterSlaveServerGroupName = masterSlaveServerGroupName;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The tag list.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
public DescribeMasterSlaveServerGroupAttributeResponseBody build() {
return new DescribeMasterSlaveServerGroupAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupAttributeResponseBody</p>
*/
public static class MasterSlaveBackendServer extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("ServerId")
private String serverId;
@com.aliyun.core.annotation.NameInMap("ServerType")
private String serverType;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Weight")
private Integer weight;
private MasterSlaveBackendServer(Builder builder) {
this.description = builder.description;
this.port = builder.port;
this.serverId = builder.serverId;
this.serverType = builder.serverType;
this.type = builder.type;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static MasterSlaveBackendServer create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return serverId
*/
public String getServerId() {
return this.serverId;
}
/**
* @return serverType
*/
public String getServerType() {
return this.serverType;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder {
private String description;
private Integer port;
private String serverId;
private String serverType;
private String type;
private Integer weight;
/**
* <p>The description of the primary/secondary server group.</p>
*
* <strong>example:</strong>
* <p>Primary and secondary server group description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The port that is used by the backend server.</p>
*
* <strong>example:</strong>
* <p>90</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The ID of the backend server.</p>
*
* <strong>example:</strong>
* <p>vm-hrf******</p>
*/
public Builder serverId(String serverId) {
this.serverId = serverId;
return this;
}
/**
* <p>The type of backend server. Valid values: <strong>Master</strong> and <strong>Slave</strong>.</p>
*
* <strong>example:</strong>
* <p>Slave</p>
*/
public Builder serverType(String serverType) {
this.serverType = serverType;
return this;
}
/**
* <p>The type of the backend server. Valid values:</p>
* <ul>
* <li><strong>ecs</strong> (default): Elastic Compute Service (ECS) instance</li>
* <li><strong>eni</strong>: elastic network interface (ENI)</li>
* <li><strong>eci</strong>: elastic container instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>ecs</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The weight of the backend server.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder weight(Integer weight) {
this.weight = weight;
return this;
}
public MasterSlaveBackendServer build() {
return new MasterSlaveBackendServer(this);
}
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupAttributeResponseBody</p>
*/
public static class MasterSlaveBackendServers extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MasterSlaveBackendServer")
private java.util.List<MasterSlaveBackendServer> masterSlaveBackendServer;
private MasterSlaveBackendServers(Builder builder) {
this.masterSlaveBackendServer = builder.masterSlaveBackendServer;
}
public static Builder builder() {
return new Builder();
}
public static MasterSlaveBackendServers create() {
return builder().build();
}
/**
* @return masterSlaveBackendServer
*/
public java.util.List<MasterSlaveBackendServer> getMasterSlaveBackendServer() {
return this.masterSlaveBackendServer;
}
public static final class Builder {
private java.util.List<MasterSlaveBackendServer> masterSlaveBackendServer;
/**
* MasterSlaveBackendServer.
*/
public Builder masterSlaveBackendServer(java.util.List<MasterSlaveBackendServer> masterSlaveBackendServer) {
this.masterSlaveBackendServer = masterSlaveBackendServer;
return this;
}
public MasterSlaveBackendServers build() {
return new MasterSlaveBackendServers(this);
}
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupAttributeResponseBody</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;
/**
* <p>The tag key. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 64 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value. Valid values of N: <strong>1</strong> to <strong>20</strong>. 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>value</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupAttributeResponseBody</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;
/**
* 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeMasterSlaveServerGroupsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeMasterSlaveServerGroupsRequest} extends {@link RequestModel}
*
* <p>DescribeMasterSlaveServerGroupsRequest</p>
*/
public class DescribeMasterSlaveServerGroupsRequest 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("IncludeListener")
private Boolean includeListener;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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("Tag")
private java.util.List<Tag> tag;
private DescribeMasterSlaveServerGroupsRequest(Builder builder) {
super(builder);
this.description = builder.description;
this.includeListener = builder.includeListener;
this.loadBalancerId = builder.loadBalancerId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeMasterSlaveServerGroupsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return includeListener
*/
public Boolean getIncludeListener() {
return this.includeListener;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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 tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<DescribeMasterSlaveServerGroupsRequest, Builder> {
private String description;
private Boolean includeListener;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(DescribeMasterSlaveServerGroupsRequest request) {
super(request);
this.description = request.description;
this.includeListener = request.includeListener;
this.loadBalancerId = request.loadBalancerId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
}
/**
* <p>The description of the primary/secondary server group.</p>
*
* <strong>example:</strong>
* <p>test-112</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>Specifies whether to return information about the associated listeners. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder includeListener(Boolean includeListener) {
this.putQueryParameter("IncludeListener", includeListener);
this.includeListener = includeListener;
return this;
}
/**
* <p>The CLB instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp14zi0n66zpg6o******</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 CLB instance.</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 tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeMasterSlaveServerGroupsRequest build() {
return new DescribeMasterSlaveServerGroupsRequest(this);
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupsRequest} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupsRequest</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;
/**
* <p>The key of tag N. Valid values of N: <strong>1 to 20</strong>. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 64 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N. Valid values of N: <strong>1 to 20</strong>. The tag value can be an empty string. 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> and <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>value</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeMasterSlaveServerGroupsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeMasterSlaveServerGroupsResponse} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupsResponse</p>
*/
public class DescribeMasterSlaveServerGroupsResponse 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 DescribeMasterSlaveServerGroupsResponseBody body;
private DescribeMasterSlaveServerGroupsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeMasterSlaveServerGroupsResponse 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 DescribeMasterSlaveServerGroupsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeMasterSlaveServerGroupsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeMasterSlaveServerGroupsResponseBody body);
@Override
DescribeMasterSlaveServerGroupsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeMasterSlaveServerGroupsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeMasterSlaveServerGroupsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeMasterSlaveServerGroupsResponse 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(DescribeMasterSlaveServerGroupsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeMasterSlaveServerGroupsResponse build() {
return new DescribeMasterSlaveServerGroupsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeMasterSlaveServerGroupsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeMasterSlaveServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupsResponseBody</p>
*/
public class DescribeMasterSlaveServerGroupsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroups")
private MasterSlaveServerGroups masterSlaveServerGroups;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeMasterSlaveServerGroupsResponseBody(Builder builder) {
this.masterSlaveServerGroups = builder.masterSlaveServerGroups;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeMasterSlaveServerGroupsResponseBody create() {
return builder().build();
}
/**
* @return masterSlaveServerGroups
*/
public MasterSlaveServerGroups getMasterSlaveServerGroups() {
return this.masterSlaveServerGroups;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private MasterSlaveServerGroups masterSlaveServerGroups;
private String requestId;
/**
* <p>The primary/secondary server groups.</p>
*/
public Builder masterSlaveServerGroups(MasterSlaveServerGroups masterSlaveServerGroups) {
this.masterSlaveServerGroups = masterSlaveServerGroups;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeMasterSlaveServerGroupsResponseBody build() {
return new DescribeMasterSlaveServerGroupsResponseBody(this);
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupsResponseBody</p>
*/
public static class Listener extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
private Listener(Builder builder) {
this.port = builder.port;
this.protocol = builder.protocol;
}
public static Builder builder() {
return new Builder();
}
public static Listener create() {
return builder().build();
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
public static final class Builder {
private Integer port;
private String protocol;
/**
* <p>The listener port.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The listener protocol.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
public Listener build() {
return new Listener(this);
}
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupsResponseBody</p>
*/
public static class Listeners extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Listener")
private java.util.List<Listener> listener;
private Listeners(Builder builder) {
this.listener = builder.listener;
}
public static Builder builder() {
return new Builder();
}
public static Listeners create() {
return builder().build();
}
/**
* @return listener
*/
public java.util.List<Listener> getListener() {
return this.listener;
}
public static final class Builder {
private java.util.List<Listener> listener;
/**
* Listener.
*/
public Builder listener(java.util.List<Listener> listener) {
this.listener = listener;
return this;
}
public Listeners build() {
return new Listeners(this);
}
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupsResponseBody</p>
*/
public static class AssociatedObjects extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Listeners")
private Listeners listeners;
private AssociatedObjects(Builder builder) {
this.listeners = builder.listeners;
}
public static Builder builder() {
return new Builder();
}
public static AssociatedObjects create() {
return builder().build();
}
/**
* @return listeners
*/
public Listeners getListeners() {
return this.listeners;
}
public static final class Builder {
private Listeners listeners;
/**
* <p>The listeners.</p>
*/
public Builder listeners(Listeners listeners) {
this.listeners = listeners;
return this;
}
public AssociatedObjects build() {
return new AssociatedObjects(this);
}
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupsResponseBody</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;
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>test_slb_yaochi_tag_key-0</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>000098dab00323fb</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupsResponseBody</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;
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupsResponseBody</p>
*/
public static class MasterSlaveServerGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociatedObjects")
private AssociatedObjects associatedObjects;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupId")
private String masterSlaveServerGroupId;
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupName")
private String masterSlaveServerGroupName;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
private MasterSlaveServerGroup(Builder builder) {
this.associatedObjects = builder.associatedObjects;
this.createTime = builder.createTime;
this.masterSlaveServerGroupId = builder.masterSlaveServerGroupId;
this.masterSlaveServerGroupName = builder.masterSlaveServerGroupName;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static MasterSlaveServerGroup create() {
return builder().build();
}
/**
* @return associatedObjects
*/
public AssociatedObjects getAssociatedObjects() {
return this.associatedObjects;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return masterSlaveServerGroupId
*/
public String getMasterSlaveServerGroupId() {
return this.masterSlaveServerGroupId;
}
/**
* @return masterSlaveServerGroupName
*/
public String getMasterSlaveServerGroupName() {
return this.masterSlaveServerGroupName;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
public static final class Builder {
private AssociatedObjects associatedObjects;
private String createTime;
private String masterSlaveServerGroupId;
private String masterSlaveServerGroupName;
private Tags tags;
/**
* <p>The associated resources.</p>
*/
public Builder associatedObjects(AssociatedObjects associatedObjects) {
this.associatedObjects = associatedObjects;
return this;
}
/**
* <p>The time when the CLB instance was created. Specify the time in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2022-12-02T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the primary/secondary server group.</p>
*
* <strong>example:</strong>
* <p>rsp-0bfuc******</p>
*/
public Builder masterSlaveServerGroupId(String masterSlaveServerGroupId) {
this.masterSlaveServerGroupId = masterSlaveServerGroupId;
return this;
}
/**
* <p>The name of the primary/secondary server group.</p>
*
* <strong>example:</strong>
* <p>Group3</p>
*/
public Builder masterSlaveServerGroupName(String masterSlaveServerGroupName) {
this.masterSlaveServerGroupName = masterSlaveServerGroupName;
return this;
}
/**
* <p>The tags to add to the resource.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
public MasterSlaveServerGroup build() {
return new MasterSlaveServerGroup(this);
}
}
}
/**
*
* {@link DescribeMasterSlaveServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeMasterSlaveServerGroupsResponseBody</p>
*/
public static class MasterSlaveServerGroups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroup")
private java.util.List<MasterSlaveServerGroup> masterSlaveServerGroup;
private MasterSlaveServerGroups(Builder builder) {
this.masterSlaveServerGroup = builder.masterSlaveServerGroup;
}
public static Builder builder() {
return new Builder();
}
public static MasterSlaveServerGroups create() {
return builder().build();
}
/**
* @return masterSlaveServerGroup
*/
public java.util.List<MasterSlaveServerGroup> getMasterSlaveServerGroup() {
return this.masterSlaveServerGroup;
}
public static final class Builder {
private java.util.List<MasterSlaveServerGroup> masterSlaveServerGroup;
/**
* MasterSlaveServerGroup.
*/
public Builder masterSlaveServerGroup(java.util.List<MasterSlaveServerGroup> masterSlaveServerGroup) {
this.masterSlaveServerGroup = masterSlaveServerGroup;
return this;
}
public MasterSlaveServerGroups build() {
return new MasterSlaveServerGroups(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeRegionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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("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;
private DescribeRegionsRequest(Builder builder) {
super(builder);
this.acceptLanguage = builder.acceptLanguage;
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 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 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<DescribeRegionsRequest, Builder> {
private String acceptLanguage;
private String ownerAccount;
private Long ownerId;
private String regionId;
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.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The supported language. Valid values:</p>
* <ul>
* <li>zh-CN: Chinese</li>
* <li>en-US: English</li>
* <li>ja: Japanese</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 ID of the region.</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 DescribeRegionsRequest build() {
return new DescribeRegionsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeRegionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeRegionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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();
}
/**
* @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;
/**
* <p>The list of regions.</p>
*/
public Builder regions(Regions regions) {
this.regions = regions;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>1651FBB6-4FBF-49FF-A9F5-DF5D696C7EC6</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;
/**
* <p>The name of the region.</p>
*
* <strong>example:</strong>
* <p>China (Beijing)</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The endpoint of the region.</p>
*
* <strong>example:</strong>
* <p>slb.aliyuncs.com</p>
*/
public Builder regionEndpoint(String regionEndpoint) {
this.regionEndpoint = regionEndpoint;
return this;
}
/**
* <p>The ID of the region.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</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;
/**
* 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeRuleAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeRuleAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeRuleAttributeRequest</p>
*/
public class DescribeRuleAttributeRequest 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("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("RuleId")
@com.aliyun.core.annotation.Validation(required = true)
private String ruleId;
private DescribeRuleAttributeRequest(Builder builder) {
super(builder);
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.ruleId = builder.ruleId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRuleAttributeRequest 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 regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
public static final class Builder extends Request.Builder<DescribeRuleAttributeRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String ruleId;
private Builder() {
super();
}
private Builder(DescribeRuleAttributeRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.ruleId = request.ruleId;
}
/**
* 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 Server Load Balancer (SLB) instance is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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 forwarding rule.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rule-bp1efemp9****</p>
*/
public Builder ruleId(String ruleId) {
this.putQueryParameter("RuleId", ruleId);
this.ruleId = ruleId;
return this;
}
@Override
public DescribeRuleAttributeRequest build() {
return new DescribeRuleAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeRuleAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeRuleAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeRuleAttributeResponse</p>
*/
public class DescribeRuleAttributeResponse 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 DescribeRuleAttributeResponseBody body;
private DescribeRuleAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRuleAttributeResponse 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 DescribeRuleAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRuleAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRuleAttributeResponseBody body);
@Override
DescribeRuleAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRuleAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRuleAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRuleAttributeResponse 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(DescribeRuleAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRuleAttributeResponse build() {
return new DescribeRuleAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeRuleAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeRuleAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeRuleAttributeResponseBody</p>
*/
public class DescribeRuleAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cookie")
private String cookie;
@com.aliyun.core.annotation.NameInMap("CookieTimeout")
private Integer cookieTimeout;
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private String healthCheck;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort")
private Integer healthCheckConnectPort;
@com.aliyun.core.annotation.NameInMap("HealthCheckDomain")
private String healthCheckDomain;
@com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode")
private String healthCheckHttpCode;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckTimeout")
private Integer healthCheckTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheckURI")
private String healthCheckURI;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private String listenerPort;
@com.aliyun.core.annotation.NameInMap("ListenerSync")
private String listenerSync;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RuleId")
private String ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Scheduler")
private String scheduler;
@com.aliyun.core.annotation.NameInMap("StickySession")
private String stickySession;
@com.aliyun.core.annotation.NameInMap("StickySessionType")
private String stickySessionType;
@com.aliyun.core.annotation.NameInMap("UnhealthyThreshold")
private Integer unhealthyThreshold;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
private DescribeRuleAttributeResponseBody(Builder builder) {
this.cookie = builder.cookie;
this.cookieTimeout = builder.cookieTimeout;
this.domain = builder.domain;
this.healthCheck = builder.healthCheck;
this.healthCheckConnectPort = builder.healthCheckConnectPort;
this.healthCheckDomain = builder.healthCheckDomain;
this.healthCheckHttpCode = builder.healthCheckHttpCode;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckTimeout = builder.healthCheckTimeout;
this.healthCheckURI = builder.healthCheckURI;
this.healthyThreshold = builder.healthyThreshold;
this.listenerPort = builder.listenerPort;
this.listenerSync = builder.listenerSync;
this.loadBalancerId = builder.loadBalancerId;
this.requestId = builder.requestId;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.scheduler = builder.scheduler;
this.stickySession = builder.stickySession;
this.stickySessionType = builder.stickySessionType;
this.unhealthyThreshold = builder.unhealthyThreshold;
this.url = builder.url;
this.vServerGroupId = builder.vServerGroupId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRuleAttributeResponseBody create() {
return builder().build();
}
/**
* @return cookie
*/
public String getCookie() {
return this.cookie;
}
/**
* @return cookieTimeout
*/
public Integer getCookieTimeout() {
return this.cookieTimeout;
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return healthCheck
*/
public String getHealthCheck() {
return this.healthCheck;
}
/**
* @return healthCheckConnectPort
*/
public Integer getHealthCheckConnectPort() {
return this.healthCheckConnectPort;
}
/**
* @return healthCheckDomain
*/
public String getHealthCheckDomain() {
return this.healthCheckDomain;
}
/**
* @return healthCheckHttpCode
*/
public String getHealthCheckHttpCode() {
return this.healthCheckHttpCode;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckTimeout
*/
public Integer getHealthCheckTimeout() {
return this.healthCheckTimeout;
}
/**
* @return healthCheckURI
*/
public String getHealthCheckURI() {
return this.healthCheckURI;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return listenerPort
*/
public String getListenerPort() {
return this.listenerPort;
}
/**
* @return listenerSync
*/
public String getListenerSync() {
return this.listenerSync;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return scheduler
*/
public String getScheduler() {
return this.scheduler;
}
/**
* @return stickySession
*/
public String getStickySession() {
return this.stickySession;
}
/**
* @return stickySessionType
*/
public String getStickySessionType() {
return this.stickySessionType;
}
/**
* @return unhealthyThreshold
*/
public Integer getUnhealthyThreshold() {
return this.unhealthyThreshold;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
public static final class Builder {
private String cookie;
private Integer cookieTimeout;
private String domain;
private String healthCheck;
private Integer healthCheckConnectPort;
private String healthCheckDomain;
private String healthCheckHttpCode;
private Integer healthCheckInterval;
private Integer healthCheckTimeout;
private String healthCheckURI;
private Integer healthyThreshold;
private String listenerPort;
private String listenerSync;
private String loadBalancerId;
private String requestId;
private String ruleId;
private String ruleName;
private String scheduler;
private String stickySession;
private String stickySessionType;
private Integer unhealthyThreshold;
private String url;
private String vServerGroupId;
/**
* <p>The cookie to be configured on the backend server.</p>
* <p>The cookie must be 1 to 200 characters in length and can contain ASCII letters and digits. It cannot contain commas (,), semicolons (;), or whitespace characters. It cannot start with a dollar sign ($).</p>
* <p>If you set the <strong>StickySession</strong> parameter to <strong>on</strong> and the <strong>StickySessionType</strong> parameter to <strong>server</strong>, this parameter is required.</p>
*
* <strong>example:</strong>
* <p>wwe</p>
*/
public Builder cookie(String cookie) {
this.cookie = cookie;
return this;
}
/**
* <p>The timeout period of a cookie.</p>
* <p>Valid values: <strong>1 to 86400</strong>. Unit: seconds.</p>
* <blockquote>
* <p> If you set the <strong>StickySession</strong> parameter to <strong>on</strong> and the <strong>StickySessionType</strong> parameter to <strong>insert</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder cookieTimeout(Integer cookieTimeout) {
this.cookieTimeout = cookieTimeout;
return this;
}
/**
* <p>The domain name that is configured in the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>test.com</p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* <p>Specifies whether to enable health checks.</p>
* <p>Valid values: <strong>on</strong> and <strong>off</strong>.</p>
* <blockquote>
* <p> If you set the <strong>ListenerSync</strong> parameter to <strong>off</strong>, this parameter is required. If you set the parameter to <strong>on</strong>, the configuration of the listener is used.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder healthCheck(String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The backend port that is used for health checks.</p>
* <p>Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required. If this parameter is empty but <strong>HealthCheck</strong> is set to <strong>on</strong>, the listener port is used for health checks.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder healthCheckConnectPort(Integer healthCheckConnectPort) {
this.healthCheckConnectPort = healthCheckConnectPort;
return this;
}
/**
* <p>The domain name that is used for health checks. Valid values:</p>
* <ul>
* <li><strong>$_ip</strong>: The private IP address of the backend server. If the $_ip parameter is set or the HealthCheckDomain parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks.</li>
* <li><strong>domain</strong>: The domain name must be 1 to 80 characters in length. It can contain only letters, digits, periods (.),and hyphens (-).</li>
* </ul>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder healthCheckDomain(String healthCheckDomain) {
this.healthCheckDomain = healthCheckDomain;
return this;
}
/**
* <p>The HTTP status code that indicates a successful health check. Separate multiple HTTP status codes with commas (,). Default value: <strong>http_2xx</strong>.</p>
* <p>Valid values: <strong>http_2xx</strong>, <strong>http_3xx</strong>, <strong>http_4xx</strong>, and <strong>http_5xx</strong>.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>http_3xx</p>
*/
public Builder healthCheckHttpCode(String healthCheckHttpCode) {
this.healthCheckHttpCode = healthCheckHttpCode;
return this;
}
/**
* <p>The time interval between two consecutive health checks.</p>
* <p>Valid values: <strong>1</strong> to <strong>50</strong>. Unit: seconds.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>34</p>
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* <p>The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check.</p>
* <p>Valid values: <strong>1</strong> to <strong>300</strong>. Unit: seconds.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>34</p>
*/
public Builder healthCheckTimeout(Integer healthCheckTimeout) {
this.healthCheckTimeout = healthCheckTimeout;
return this;
}
/**
* <p>The URI that is used for health checks.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>10.21.22.1</p>
*/
public Builder healthCheckURI(String healthCheckURI) {
this.healthCheckURI = healthCheckURI;
return this;
}
/**
* <p>The number of consecutive successful health checks that must occur before an unhealthy backend server is declared healthy. In this case, the health check state is changed from <strong>fail</strong> to <strong>success</strong>.</p>
* <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* <p>The listener port that is used by the SLB instance.</p>
*
* <strong>example:</strong>
* <p>90</p>
*/
public Builder listenerPort(String listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>Indicates whether the forwarding rule uses the scheduling algorithm, session persistence, and health check configurations of the listener.</p>
* <p>Valid values: <strong>on</strong> and <strong>off</strong>.</p>
* <ul>
* <li><strong>off</strong>: does not use the configurations of the listener. You can customize health check and session persistence configurations for the forwarding rule.</li>
* <li><strong>on</strong>: uses the configurations of the listener.</li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder listenerSync(String listenerSync) {
this.listenerSync = listenerSync;
return this;
}
/**
* <p>The ID of the SLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-bp1ca0zt07t934wxe****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>rule-hfgnd*****</p>
*/
public Builder ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>Rule1</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The scheduling algorithm. Valid values:</p>
* <ul>
* <li><strong>wrr</strong> (default): Backend servers that have higher weights receive more requests than backend servers that have lower weights.</li>
* <li><strong>rr</strong>: Requests are distributed to backend servers in sequence.</li>
* </ul>
* <blockquote>
* <p> If you set the <strong>ListenerSync</strong> parameter to <strong>off</strong>, this parameter is required. If you set the parameter to <strong>on</strong>, the configuration of the listener is used.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>wrr</p>
*/
public Builder scheduler(String scheduler) {
this.scheduler = scheduler;
return this;
}
/**
* <p>Indicates whether session persistence is enabled.</p>
* <p>Valid values: <strong>on</strong> and <strong>off</strong>.</p>
* <blockquote>
* <p> If you set the <strong>ListenerSync</strong> parameter to <strong>off</strong>, this parameter is required. If you set the parameter to <strong>on</strong>, the configuration of the listener is used.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder stickySession(String stickySession) {
this.stickySession = stickySession;
return this;
}
/**
* <p>The method that is used to handle a cookie. Valid values:</p>
* <ul>
* <li><strong>insert</strong>: inserts a cookie into the response. SLB inserts a cookie (SERVERID) into the first HTTP or HTTPS response packet that is sent to a client. The next request from the client will contain this cookie, and the listener will distribute this request to the recorded backend server.</li>
* <li><strong>server</strong>: rewrites a cookie. When SLB detects a user-defined cookie, SLB overwrites the original cookie with the user-defined cookie. The next request from the client contains the user-defined cookie, and the listener distributes the request to the recorded backend server.</li>
* </ul>
* <blockquote>
* <p> If you set the <strong>StickySession</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>insert</p>
*/
public Builder stickySessionType(String stickySessionType) {
this.stickySessionType = stickySessionType;
return this;
}
/**
* <p>The number of consecutive failed health checks that must occur before a healthy backend server is declared unhealthy. In this case, the health check state is changed from <strong>success</strong> to <strong>fail</strong>.</p>
* <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
/**
* <p>The URL that is configured in the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>/cache</p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
/**
* <p>The ID of the vServer group that is associated with the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6j****</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
public DescribeRuleAttributeResponseBody build() {
return new DescribeRuleAttributeResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeRulesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeRulesRequest} extends {@link RequestModel}
*
* <p>DescribeRulesRequest</p>
*/
public class DescribeRulesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerPort")
@com.aliyun.core.annotation.Validation(required = true)
private Integer listenerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerProtocol")
private String listenerProtocol;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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 DescribeRulesRequest(Builder builder) {
super(builder);
this.listenerPort = builder.listenerPort;
this.listenerProtocol = builder.listenerProtocol;
this.loadBalancerId = builder.loadBalancerId;
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 DescribeRulesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return listenerProtocol
*/
public String getListenerProtocol() {
return this.listenerProtocol;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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<DescribeRulesRequest, Builder> {
private Integer listenerPort;
private String listenerProtocol;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeRulesRequest request) {
super(request);
this.listenerPort = request.listenerPort;
this.listenerProtocol = request.listenerProtocol;
this.loadBalancerId = request.loadBalancerId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The frontend listener port that is used by the Server Load Balancer (SLB) instance.</p>
* <p>Valid values: <strong>1 to 65535</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>90</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.putQueryParameter("ListenerPort", listenerPort);
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The frontend listener protocol that is used by the SLB instance.</p>
* <blockquote>
* <p> This parameter is required when listeners that use different protocols listen on the same port.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>https</p>
*/
public Builder listenerProtocol(String listenerProtocol) {
this.putQueryParameter("ListenerProtocol", listenerProtocol);
this.listenerProtocol = listenerProtocol;
return this;
}
/**
* <p>The ID of the SLB instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1ca0zt07t934****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 SLB instance is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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 DescribeRulesRequest build() {
return new DescribeRulesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeRulesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeRulesResponse} extends {@link TeaModel}
*
* <p>DescribeRulesResponse</p>
*/
public class DescribeRulesResponse 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 DescribeRulesResponseBody body;
private DescribeRulesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRulesResponse 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 DescribeRulesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRulesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRulesResponseBody body);
@Override
DescribeRulesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRulesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRulesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRulesResponse 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(DescribeRulesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRulesResponse build() {
return new DescribeRulesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeRulesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeRulesResponseBody</p>
*/
public class DescribeRulesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Rules")
private Rules rules;
private DescribeRulesResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.rules = builder.rules;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRulesResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return rules
*/
public Rules getRules() {
return this.rules;
}
public static final class Builder {
private String requestId;
private Rules rules;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The forwarding rules.</p>
*/
public Builder rules(Rules rules) {
this.rules = rules;
return this;
}
public DescribeRulesResponseBody build() {
return new DescribeRulesResponseBody(this);
}
}
/**
*
* {@link DescribeRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeRulesResponseBody</p>
*/
public static class Rule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cookie")
private String cookie;
@com.aliyun.core.annotation.NameInMap("CookieTimeout")
private Integer cookieTimeout;
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private String healthCheck;
@com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort")
private Integer healthCheckConnectPort;
@com.aliyun.core.annotation.NameInMap("HealthCheckDomain")
private String healthCheckDomain;
@com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode")
private String healthCheckHttpCode;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckTimeout")
private Integer healthCheckTimeout;
@com.aliyun.core.annotation.NameInMap("HealthCheckURI")
private String healthCheckURI;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("ListenerSync")
private String listenerSync;
@com.aliyun.core.annotation.NameInMap("RuleId")
private String ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Scheduler")
private String scheduler;
@com.aliyun.core.annotation.NameInMap("StickySession")
private String stickySession;
@com.aliyun.core.annotation.NameInMap("StickySessionType")
private String stickySessionType;
@com.aliyun.core.annotation.NameInMap("UnhealthyThreshold")
private Integer unhealthyThreshold;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
private Rule(Builder builder) {
this.cookie = builder.cookie;
this.cookieTimeout = builder.cookieTimeout;
this.domain = builder.domain;
this.healthCheck = builder.healthCheck;
this.healthCheckConnectPort = builder.healthCheckConnectPort;
this.healthCheckDomain = builder.healthCheckDomain;
this.healthCheckHttpCode = builder.healthCheckHttpCode;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckTimeout = builder.healthCheckTimeout;
this.healthCheckURI = builder.healthCheckURI;
this.healthyThreshold = builder.healthyThreshold;
this.listenerSync = builder.listenerSync;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.scheduler = builder.scheduler;
this.stickySession = builder.stickySession;
this.stickySessionType = builder.stickySessionType;
this.unhealthyThreshold = builder.unhealthyThreshold;
this.url = builder.url;
this.vServerGroupId = builder.vServerGroupId;
}
public static Builder builder() {
return new Builder();
}
public static Rule create() {
return builder().build();
}
/**
* @return cookie
*/
public String getCookie() {
return this.cookie;
}
/**
* @return cookieTimeout
*/
public Integer getCookieTimeout() {
return this.cookieTimeout;
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return healthCheck
*/
public String getHealthCheck() {
return this.healthCheck;
}
/**
* @return healthCheckConnectPort
*/
public Integer getHealthCheckConnectPort() {
return this.healthCheckConnectPort;
}
/**
* @return healthCheckDomain
*/
public String getHealthCheckDomain() {
return this.healthCheckDomain;
}
/**
* @return healthCheckHttpCode
*/
public String getHealthCheckHttpCode() {
return this.healthCheckHttpCode;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckTimeout
*/
public Integer getHealthCheckTimeout() {
return this.healthCheckTimeout;
}
/**
* @return healthCheckURI
*/
public String getHealthCheckURI() {
return this.healthCheckURI;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return listenerSync
*/
public String getListenerSync() {
return this.listenerSync;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return scheduler
*/
public String getScheduler() {
return this.scheduler;
}
/**
* @return stickySession
*/
public String getStickySession() {
return this.stickySession;
}
/**
* @return stickySessionType
*/
public String getStickySessionType() {
return this.stickySessionType;
}
/**
* @return unhealthyThreshold
*/
public Integer getUnhealthyThreshold() {
return this.unhealthyThreshold;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
public static final class Builder {
private String cookie;
private Integer cookieTimeout;
private String domain;
private String healthCheck;
private Integer healthCheckConnectPort;
private String healthCheckDomain;
private String healthCheckHttpCode;
private Integer healthCheckInterval;
private Integer healthCheckTimeout;
private String healthCheckURI;
private Integer healthyThreshold;
private String listenerSync;
private String ruleId;
private String ruleName;
private String scheduler;
private String stickySession;
private String stickySessionType;
private Integer unhealthyThreshold;
private String url;
private String vServerGroupId;
/**
* <p>The cookie that is configured on the backend server.</p>
* <p>The value must be 1 to 200 characters in length, and can contain only ASCII letters and digits. It cannot contain commas (,), semicolons (;), or spaces. It cannot start with a dollar sign ($).</p>
* <blockquote>
* <p> If you set the <strong>StickySession</strong> parameter to <strong>on</strong> and the <strong>StickySessionType</strong> parameter to <strong>server</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder cookie(String cookie) {
this.cookie = cookie;
return this;
}
/**
* <p>The timeout period of a cookie. Valid values: <strong>1 to 86400</strong>. Unit: seconds.</p>
* <blockquote>
* <p> If you set the <strong>StickySession</strong> parameter to <strong>on</strong> and the <strong>StickySessionType</strong> parameter to <strong>insert</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>56</p>
*/
public Builder cookieTimeout(Integer cookieTimeout) {
this.cookieTimeout = cookieTimeout;
return this;
}
/**
* <p>The requested domain name specified in the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>test.com</p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* <p>Indicates whether health checks are enabled.</p>
* <p>Valid values: <strong>on</strong> and <strong>off</strong>.</p>
* <blockquote>
* <p> If you set the <strong>ListenerSync</strong> parameter to <strong>off</strong>, this parameter is required. If you set the parameter to <strong>on</strong>, the configuration of the listener is used.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder healthCheck(String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The backend port that is used for health checks.</p>
* <p>Valid values: <strong>1 to 65535</strong>.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required. If this parameter is empty but <strong>HealthCheck</strong> is set to <strong>on</strong>, the listener port is used for health checks.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>45</p>
*/
public Builder healthCheckConnectPort(Integer healthCheckConnectPort) {
this.healthCheckConnectPort = healthCheckConnectPort;
return this;
}
/**
* <p>The domain name that is used for health checks. Valid values:</p>
* <ul>
* <li><p><strong>$_ip</strong>: The private IP address of the backend server.</p>
* <p>If you do not set this parameter or set the parameter to $_ip, the SLB instance uses the private IP address of each backend server as the domain name for health checks.</p>
* </li>
* <li><p><strong>domain</strong>: The domain name must be 1 to 80 characters in length. The domain name can contain only letters, digits, periods (.),and hyphens (-).</p>
* </li>
* </ul>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p><a href="http://www.domain.com">www.domain.com</a></p>
*/
public Builder healthCheckDomain(String healthCheckDomain) {
this.healthCheckDomain = healthCheckDomain;
return this;
}
/**
* <p>The HTTP status code that indicates a successful health check. Multiple HTTP status codes are separated by commas (,). Default value: <strong>http_2xx</strong>.</p>
* <p>Valid values: <strong>http_2xx</strong>, <strong>http_3xx</strong>, <strong>http_4xx</strong>, and <strong>http_5xx</strong>.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>http_3xx</p>
*/
public Builder healthCheckHttpCode(String healthCheckHttpCode) {
this.healthCheckHttpCode = healthCheckHttpCode;
return this;
}
/**
* <p>The time interval between two consecutive health checks.</p>
* <p>Valid values: <strong>1 to 50</strong>. Unit: seconds.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* <p>The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds</p>
* <p>Valid values: <strong>1 to 300</strong>.</p>
* <blockquote>
* <p> When you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter takes effect.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>34</p>
*/
public Builder healthCheckTimeout(Integer healthCheckTimeout) {
this.healthCheckTimeout = healthCheckTimeout;
return this;
}
/**
* <p>The URI that is used for health checks.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>/example</p>
*/
public Builder healthCheckURI(String healthCheckURI) {
this.healthCheckURI = healthCheckURI;
return this;
}
/**
* <p>Specifies the number of successful health checks that must be consecutively performed before a backend server can be declared healthy (from <strong>fail</strong> to <strong>success</strong>).</p>
* <p>Valid values: <strong>2 to 10</strong>.</p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* <p>Indicates whether the forwarding rule uses the scheduling algorithm, session persistence, and health check configurations of the listener.</p>
* <p>Valid values: <strong>on</strong> and <strong>off</strong>.</p>
* <ul>
* <li><strong>off</strong>: does not use the configurations of the listener. You can customize health check and session persistence configurations for the forwarding rule.</li>
* <li><strong>on</strong>: uses the configurations of the listener.</li>
* </ul>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder listenerSync(String listenerSync) {
this.listenerSync = listenerSync;
return this;
}
/**
* <p>The ID of the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>rule-tybqi6****</p>
*/
public Builder ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the forwarding rule. The name must be 1 to 80 characters in length, and can contain only letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).</p>
* <blockquote>
* <p> The name of each forwarding rule must be unique within a listener.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Rule2</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The scheduling algorithm. Valid values:</p>
* <ul>
* <li><strong>wrr</strong> (default): Backend servers that have higher weights receive more requests than backend servers that have lower weights.</li>
* <li><strong>rr</strong>: Requests are distributed to backend servers in sequence.</li>
* </ul>
* <blockquote>
* <p> If you set the <strong>ListenerSync</strong> parameter to <strong>off</strong>, this parameter is required. If you set the parameter to <strong>on</strong>, the configuration of the listener is used.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>wrr</p>
*/
public Builder scheduler(String scheduler) {
this.scheduler = scheduler;
return this;
}
/**
* <p>Specifies whether to enable session persistence.</p>
* <p>Valid values: <strong>on</strong> and <strong>off</strong>.</p>
* <blockquote>
* <p> If you set the <strong>ListenerSync</strong> parameter to <strong>off</strong>, this parameter is required. If you set the parameter to <strong>on</strong>, the configuration of the listener is used.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>off</p>
*/
public Builder stickySession(String stickySession) {
this.stickySession = stickySession;
return this;
}
/**
* <p>The method that is used to handle a cookie. Valid values:</p>
* <ul>
* <li><strong>insert</strong>: inserts a cookie into the response. SLB inserts a cookie (SERVERID) into the first HTTP or HTTPS response packet that is sent to a client. The next request from the client will contain this cookie, and the listener will distribute this request to the recorded backend server.</li>
* <li><strong>server</strong>: rewrites a cookie. When SLB detects a user-defined cookie, SLB overwrites the original cookie with the user-defined cookie. The next request from the client contains the user-defined cookie, and the listener distributes the request to the recorded backend server.</li>
* </ul>
* <blockquote>
* <p> If you set the <strong>StickySession</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>insert</p>
*/
public Builder stickySessionType(String stickySessionType) {
this.stickySessionType = stickySessionType;
return this;
}
/**
* <p>Specifies the number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy (from <strong>success</strong> to <strong>fail</strong>).</p>
* <p>Valid values: <strong>2 to 10</strong></p>
* <blockquote>
* <p> If you set the <strong>HealthCheck</strong> parameter to <strong>on</strong>, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
/**
* <p>The requested path specified in the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>/cache</p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
/**
* <p>The ID of the destination vServer group specified in the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>rsp-6cejjzl****</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
public Rule build() {
return new Rule(this);
}
}
}
/**
*
* {@link DescribeRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeRulesResponseBody</p>
*/
public static class Rules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Rule")
private java.util.List<Rule> rule;
private Rules(Builder builder) {
this.rule = builder.rule;
}
public static Builder builder() {
return new Builder();
}
public static Rules create() {
return builder().build();
}
/**
* @return rule
*/
public java.util.List<Rule> getRule() {
return this.rule;
}
public static final class Builder {
private java.util.List<Rule> rule;
/**
* Rule.
*/
public Builder rule(java.util.List<Rule> rule) {
this.rule = rule;
return this;
}
public Rules build() {
return new Rules(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeServerCertificatesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeServerCertificatesRequest} extends {@link RequestModel}
*
* <p>DescribeServerCertificatesRequest</p>
*/
public class DescribeServerCertificatesRequest 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("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("ServerCertificateId")
private String serverCertificateId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private DescribeServerCertificatesRequest(Builder builder) {
super(builder);
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.serverCertificateId = builder.serverCertificateId;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeServerCertificatesRequest 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 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 serverCertificateId
*/
public String getServerCertificateId() {
return this.serverCertificateId;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<DescribeServerCertificatesRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String serverCertificateId;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(DescribeServerCertificatesRequest request) {
super(request);
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.serverCertificateId = request.serverCertificateId;
this.tag = request.tag;
}
/**
* 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 the CLB instance is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <blockquote>
* <p> If the endpoint of the selected region is slb.aliyuncs.com, you must specify <code>RegionId</code>.</p>
* </blockquote>
*
* <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.</p>
*
* <strong>example:</strong>
* <p>rg-atstuj3rtop****</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 server certificate ID.</p>
*
* <strong>example:</strong>
* <p>12315790*******_166f8204689_1714763408_709981430</p>
*/
public Builder serverCertificateId(String serverCertificateId) {
this.putQueryParameter("ServerCertificateId", serverCertificateId);
this.serverCertificateId = serverCertificateId;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeServerCertificatesRequest build() {
return new DescribeServerCertificatesRequest(this);
}
}
/**
*
* {@link DescribeServerCertificatesRequest} extends {@link TeaModel}
*
* <p>DescribeServerCertificatesRequest</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;
/**
* <p>The tag key of the resource. You can specify up to 20 tag keys.</p>
* <p>The tag key cannot be an empty string. The tag key must be 1 to 64 characters in length and cannot start with <code>aliyun</code> or <code>acs</code>:. The tag key cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value of the resource. You can specify up to 20 tag values. The tag value cannot be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. The tag value cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeServerCertificatesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeServerCertificatesResponse} extends {@link TeaModel}
*
* <p>DescribeServerCertificatesResponse</p>
*/
public class DescribeServerCertificatesResponse 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 DescribeServerCertificatesResponseBody body;
private DescribeServerCertificatesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeServerCertificatesResponse 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 DescribeServerCertificatesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeServerCertificatesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeServerCertificatesResponseBody body);
@Override
DescribeServerCertificatesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeServerCertificatesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeServerCertificatesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeServerCertificatesResponse 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(DescribeServerCertificatesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeServerCertificatesResponse build() {
return new DescribeServerCertificatesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeServerCertificatesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeServerCertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeServerCertificatesResponseBody</p>
*/
public class DescribeServerCertificatesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ServerCertificates")
private ServerCertificates serverCertificates;
private DescribeServerCertificatesResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.serverCertificates = builder.serverCertificates;
}
public static Builder builder() {
return new Builder();
}
public static DescribeServerCertificatesResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return serverCertificates
*/
public ServerCertificates getServerCertificates() {
return this.serverCertificates;
}
public static final class Builder {
private String requestId;
private ServerCertificates serverCertificates;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The server certificates.</p>
*/
public Builder serverCertificates(ServerCertificates serverCertificates) {
this.serverCertificates = serverCertificates;
return this;
}
public DescribeServerCertificatesResponseBody build() {
return new DescribeServerCertificatesResponseBody(this);
}
}
/**
*
* {@link DescribeServerCertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeServerCertificatesResponseBody</p>
*/
public static class SubjectAlternativeNames extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SubjectAlternativeName")
private java.util.List<String> subjectAlternativeName;
private SubjectAlternativeNames(Builder builder) {
this.subjectAlternativeName = builder.subjectAlternativeName;
}
public static Builder builder() {
return new Builder();
}
public static SubjectAlternativeNames create() {
return builder().build();
}
/**
* @return subjectAlternativeName
*/
public java.util.List<String> getSubjectAlternativeName() {
return this.subjectAlternativeName;
}
public static final class Builder {
private java.util.List<String> subjectAlternativeName;
/**
* SubjectAlternativeName.
*/
public Builder subjectAlternativeName(java.util.List<String> subjectAlternativeName) {
this.subjectAlternativeName = subjectAlternativeName;
return this;
}
public SubjectAlternativeNames build() {
return new SubjectAlternativeNames(this);
}
}
}
/**
*
* {@link DescribeServerCertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeServerCertificatesResponseBody</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;
/**
* <p>The tag keys of the resource.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeServerCertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeServerCertificatesResponseBody</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;
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeServerCertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeServerCertificatesResponseBody</p>
*/
public static class ServerCertificate extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliCloudCertificateId")
private String aliCloudCertificateId;
@com.aliyun.core.annotation.NameInMap("AliCloudCertificateName")
private String aliCloudCertificateName;
@com.aliyun.core.annotation.NameInMap("CommonName")
private String commonName;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("CreateTimeStamp")
private Long createTimeStamp;
@com.aliyun.core.annotation.NameInMap("ExpireTime")
private String expireTime;
@com.aliyun.core.annotation.NameInMap("ExpireTimeStamp")
private Long expireTimeStamp;
@com.aliyun.core.annotation.NameInMap("Fingerprint")
private String fingerprint;
@com.aliyun.core.annotation.NameInMap("IsAliCloudCertificate")
private Integer isAliCloudCertificate;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("ServerCertificateId")
private String serverCertificateId;
@com.aliyun.core.annotation.NameInMap("ServerCertificateName")
private String serverCertificateName;
@com.aliyun.core.annotation.NameInMap("SubjectAlternativeNames")
private SubjectAlternativeNames subjectAlternativeNames;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
private ServerCertificate(Builder builder) {
this.aliCloudCertificateId = builder.aliCloudCertificateId;
this.aliCloudCertificateName = builder.aliCloudCertificateName;
this.commonName = builder.commonName;
this.createTime = builder.createTime;
this.createTimeStamp = builder.createTimeStamp;
this.expireTime = builder.expireTime;
this.expireTimeStamp = builder.expireTimeStamp;
this.fingerprint = builder.fingerprint;
this.isAliCloudCertificate = builder.isAliCloudCertificate;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.serverCertificateId = builder.serverCertificateId;
this.serverCertificateName = builder.serverCertificateName;
this.subjectAlternativeNames = builder.subjectAlternativeNames;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static ServerCertificate create() {
return builder().build();
}
/**
* @return aliCloudCertificateId
*/
public String getAliCloudCertificateId() {
return this.aliCloudCertificateId;
}
/**
* @return aliCloudCertificateName
*/
public String getAliCloudCertificateName() {
return this.aliCloudCertificateName;
}
/**
* @return commonName
*/
public String getCommonName() {
return this.commonName;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return createTimeStamp
*/
public Long getCreateTimeStamp() {
return this.createTimeStamp;
}
/**
* @return expireTime
*/
public String getExpireTime() {
return this.expireTime;
}
/**
* @return expireTimeStamp
*/
public Long getExpireTimeStamp() {
return this.expireTimeStamp;
}
/**
* @return fingerprint
*/
public String getFingerprint() {
return this.fingerprint;
}
/**
* @return isAliCloudCertificate
*/
public Integer getIsAliCloudCertificate() {
return this.isAliCloudCertificate;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return serverCertificateId
*/
public String getServerCertificateId() {
return this.serverCertificateId;
}
/**
* @return serverCertificateName
*/
public String getServerCertificateName() {
return this.serverCertificateName;
}
/**
* @return subjectAlternativeNames
*/
public SubjectAlternativeNames getSubjectAlternativeNames() {
return this.subjectAlternativeNames;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
public static final class Builder {
private String aliCloudCertificateId;
private String aliCloudCertificateName;
private String commonName;
private String createTime;
private Long createTimeStamp;
private String expireTime;
private Long expireTimeStamp;
private String fingerprint;
private Integer isAliCloudCertificate;
private String regionId;
private String resourceGroupId;
private String serverCertificateId;
private String serverCertificateName;
private SubjectAlternativeNames subjectAlternativeNames;
private Tags tags;
/**
* <p>The ID of the server certificate from Alibaba Cloud Certificate Management Service.</p>
*
* <strong>example:</strong>
* <p>7309********_15d97e7709a_71445759hr_789289731</p>
*/
public Builder aliCloudCertificateId(String aliCloudCertificateId) {
this.aliCloudCertificateId = aliCloudCertificateId;
return this;
}
/**
* <p>The name of the server certificate from Alibaba Cloud Certificate Management Service.</p>
*
* <strong>example:</strong>
* <p>testcertkey</p>
*/
public Builder aliCloudCertificateName(String aliCloudCertificateName) {
this.aliCloudCertificateName = aliCloudCertificateName;
return this;
}
/**
* <p>The domain name of the server certificate. The domain name is specified in the <code>CommonName</code> field.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder commonName(String commonName) {
this.commonName = commonName;
return this;
}
/**
* <p>The time when the server certificate was uploaded.</p>
*
* <strong>example:</strong>
* <p>2021-08-31T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The timestamp when the server certificate was uploaded.</p>
*
* <strong>example:</strong>
* <p>1504147745000</p>
*/
public Builder createTimeStamp(Long createTimeStamp) {
this.createTimeStamp = createTimeStamp;
return this;
}
/**
* <p>The time when the server certificate expires.</p>
*
* <strong>example:</strong>
* <p>2023-01-26T23:59:59Z</p>
*/
public Builder expireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* <p>The timestamp when the server certificate expires.</p>
*
* <strong>example:</strong>
* <p>15041477450</p>
*/
public Builder expireTimeStamp(Long expireTimeStamp) {
this.expireTimeStamp = expireTimeStamp;
return this;
}
/**
* <p>The fingerprint of the server certificate.</p>
*
* <strong>example:</strong>
* <p>68:08:1a:f8:2c:97:69:a3:a1:e6:16:41:4b:ca:4f:5d:ee:a5:ef:0d</p>
*/
public Builder fingerprint(String fingerprint) {
this.fingerprint = fingerprint;
return this;
}
/**
* <p>Indicates whether the server certificate is from Alibaba Cloud Certificate Management Service. 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 isAliCloudCertificate(Integer isAliCloudCertificate) {
this.isAliCloudCertificate = isAliCloudCertificate;
return this;
}
/**
* <p>The region ID of the server certificate.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-atstuj3rtop****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The server certificate ID.</p>
*
* <strong>example:</strong>
* <p>123157********_166f8204689_1714763408_709981430-cn-east-hangzhou-02</p>
*/
public Builder serverCertificateId(String serverCertificateId) {
this.serverCertificateId = serverCertificateId;
return this;
}
/**
* <p>The name of the server certificate.</p>
*
* <strong>example:</strong>
* <p>slb</p>
*/
public Builder serverCertificateName(String serverCertificateName) {
this.serverCertificateName = serverCertificateName;
return this;
}
/**
* <p>The alternative domain names of the server certificate. The alternative domain names are specified in the Subject Alternative Name field of the server certificate.</p>
*/
public Builder subjectAlternativeNames(SubjectAlternativeNames subjectAlternativeNames) {
this.subjectAlternativeNames = subjectAlternativeNames;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
public ServerCertificate build() {
return new ServerCertificate(this);
}
}
}
/**
*
* {@link DescribeServerCertificatesResponseBody} extends {@link TeaModel}
*
* <p>DescribeServerCertificatesResponseBody</p>
*/
public static class ServerCertificates extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ServerCertificate")
private java.util.List<ServerCertificate> serverCertificate;
private ServerCertificates(Builder builder) {
this.serverCertificate = builder.serverCertificate;
}
public static Builder builder() {
return new Builder();
}
public static ServerCertificates create() {
return builder().build();
}
/**
* @return serverCertificate
*/
public java.util.List<ServerCertificate> getServerCertificate() {
return this.serverCertificate;
}
public static final class Builder {
private java.util.List<ServerCertificate> serverCertificate;
/**
* ServerCertificate.
*/
public Builder serverCertificate(java.util.List<ServerCertificate> serverCertificate) {
this.serverCertificate = serverCertificate;
return this;
}
public ServerCertificates build() {
return new ServerCertificates(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeTagsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeTagsRequest} extends {@link RequestModel}
*
* <p>DescribeTagsRequest</p>
*/
public class DescribeTagsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DistinctKey")
private Boolean distinctKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@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("Tags")
private String tags;
private DescribeTagsRequest(Builder builder) {
super(builder);
this.distinctKey = builder.distinctKey;
this.loadBalancerId = builder.loadBalancerId;
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.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static DescribeTagsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return distinctKey
*/
public Boolean getDistinctKey() {
return this.distinctKey;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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 tags
*/
public String getTags() {
return this.tags;
}
public static final class Builder extends Request.Builder<DescribeTagsRequest, Builder> {
private Boolean distinctKey;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String tags;
private Builder() {
super();
}
private Builder(DescribeTagsRequest request) {
super(request);
this.distinctKey = request.distinctKey;
this.loadBalancerId = request.loadBalancerId;
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.tags = request.tags;
}
/**
* <p>Specifies whether the tags contain distinct keys.</p>
* <p>Valid values: true and false.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder distinctKey(Boolean distinctKey) {
this.putQueryParameter("DistinctKey", distinctKey);
this.distinctKey = distinctKey;
return this;
}
/**
* <p>The SLB instance ID.</p>
*
* <strong>example:</strong>
* <p>lb-bp1kuzybm******</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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. Minimum value: 1. 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. Default value: 50. Maximum value: 100.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the Server Load Balancer (SLB) instance.</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 tags that you want to query.</p>
*
* <strong>example:</strong>
* <p>[{"TagKey":"Key1","TagValue":"Value1"},{"TagKey":"Key2","TagValue":"Value2"}]</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
@Override
public DescribeTagsRequest build() {
return new DescribeTagsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeTagsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeTagsResponse} extends {@link TeaModel}
*
* <p>DescribeTagsResponse</p>
*/
public class DescribeTagsResponse 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 DescribeTagsResponseBody body;
private DescribeTagsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeTagsResponse 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 DescribeTagsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeTagsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeTagsResponseBody body);
@Override
DescribeTagsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeTagsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeTagsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeTagsResponse 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(DescribeTagsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeTagsResponse build() {
return new DescribeTagsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeTagsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeTagsResponseBody</p>
*/
public class DescribeTagsResponseBody 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("TagSets")
private TagSets tagSets;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeTagsResponseBody(Builder builder) {
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.tagSets = builder.tagSets;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeTagsResponseBody create() {
return builder().build();
}
/**
* @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 tagSets
*/
public TagSets getTagSets() {
return this.tagSets;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private TagSets tagSets;
private Integer totalCount;
/**
* <p>The number of the returned page. Minimum value: 1. Default value: 1.</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. Default value: 50. Maximum value: 100.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The tags that are queried.</p>
*/
public Builder tagSets(TagSets tagSets) {
this.tagSets = tagSets;
return this;
}
/**
* <p>The number of instances returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeTagsResponseBody build() {
return new DescribeTagsResponseBody(this);
}
}
/**
*
* {@link DescribeTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeTagsResponseBody</p>
*/
public static class TagSet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceCount")
private Integer instanceCount;
@com.aliyun.core.annotation.NameInMap("TagKey")
private String tagKey;
@com.aliyun.core.annotation.NameInMap("TagValue")
private String tagValue;
private TagSet(Builder builder) {
this.instanceCount = builder.instanceCount;
this.tagKey = builder.tagKey;
this.tagValue = builder.tagValue;
}
public static Builder builder() {
return new Builder();
}
public static TagSet create() {
return builder().build();
}
/**
* @return instanceCount
*/
public Integer getInstanceCount() {
return this.instanceCount;
}
/**
* @return tagKey
*/
public String getTagKey() {
return this.tagKey;
}
/**
* @return tagValue
*/
public String getTagValue() {
return this.tagValue;
}
public static final class Builder {
private Integer instanceCount;
private String tagKey;
private String tagValue;
/**
* <p>The number of instances to which the tag is added.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder instanceCount(Integer instanceCount) {
this.instanceCount = instanceCount;
return this;
}
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>api</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public TagSet build() {
return new TagSet(this);
}
}
}
/**
*
* {@link DescribeTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeTagsResponseBody</p>
*/
public static class TagSets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TagSet")
private java.util.List<TagSet> tagSet;
private TagSets(Builder builder) {
this.tagSet = builder.tagSet;
}
public static Builder builder() {
return new Builder();
}
public static TagSets create() {
return builder().build();
}
/**
* @return tagSet
*/
public java.util.List<TagSet> getTagSet() {
return this.tagSet;
}
public static final class Builder {
private java.util.List<TagSet> tagSet;
/**
* TagSet.
*/
public Builder tagSet(java.util.List<TagSet> tagSet) {
this.tagSet = tagSet;
return this;
}
public TagSets build() {
return new TagSets(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeVServerGroupAttributeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeVServerGroupAttributeRequest} extends {@link RequestModel}
*
* <p>DescribeVServerGroupAttributeRequest</p>
*/
public class DescribeVServerGroupAttributeRequest 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("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("VServerGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String vServerGroupId;
private DescribeVServerGroupAttributeRequest(Builder builder) {
super(builder);
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vServerGroupId = builder.vServerGroupId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeVServerGroupAttributeRequest 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 regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
public static final class Builder extends Request.Builder<DescribeVServerGroupAttributeRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vServerGroupId;
private Builder() {
super();
}
private Builder(DescribeVServerGroupAttributeRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vServerGroupId = request.vServerGroupId;
}
/**
* 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 Classic Load Balancer (CLB) instance.</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 vServer group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6****</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.putQueryParameter("VServerGroupId", vServerGroupId);
this.vServerGroupId = vServerGroupId;
return this;
}
@Override
public DescribeVServerGroupAttributeRequest build() {
return new DescribeVServerGroupAttributeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeVServerGroupAttributeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeVServerGroupAttributeResponse} extends {@link TeaModel}
*
* <p>DescribeVServerGroupAttributeResponse</p>
*/
public class DescribeVServerGroupAttributeResponse 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 DescribeVServerGroupAttributeResponseBody body;
private DescribeVServerGroupAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeVServerGroupAttributeResponse 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 DescribeVServerGroupAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeVServerGroupAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeVServerGroupAttributeResponseBody body);
@Override
DescribeVServerGroupAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeVServerGroupAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeVServerGroupAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeVServerGroupAttributeResponse 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(DescribeVServerGroupAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeVServerGroupAttributeResponse build() {
return new DescribeVServerGroupAttributeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeVServerGroupAttributeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeVServerGroupAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupAttributeResponseBody</p>
*/
public class DescribeVServerGroupAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackendServers")
private BackendServers backendServers;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
@com.aliyun.core.annotation.NameInMap("VServerGroupName")
private String vServerGroupName;
private DescribeVServerGroupAttributeResponseBody(Builder builder) {
this.backendServers = builder.backendServers;
this.createTime = builder.createTime;
this.loadBalancerId = builder.loadBalancerId;
this.requestId = builder.requestId;
this.tags = builder.tags;
this.vServerGroupId = builder.vServerGroupId;
this.vServerGroupName = builder.vServerGroupName;
}
public static Builder builder() {
return new Builder();
}
public static DescribeVServerGroupAttributeResponseBody create() {
return builder().build();
}
/**
* @return backendServers
*/
public BackendServers getBackendServers() {
return this.backendServers;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
/**
* @return vServerGroupName
*/
public String getVServerGroupName() {
return this.vServerGroupName;
}
public static final class Builder {
private BackendServers backendServers;
private String createTime;
private String loadBalancerId;
private String requestId;
private Tags tags;
private String vServerGroupId;
private String vServerGroupName;
/**
* <p>The backend servers.</p>
*/
public Builder backendServers(BackendServers backendServers) {
this.backendServers = backendServers;
return this;
}
/**
* <p>The time when the CLB instance was created. The time follows the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2022-08-31T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-jfakd****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The tags of the backend server.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The ID of the vServer group.</p>
*
* <strong>example:</strong>
* <p>rsp-cige6****</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
/**
* <p>The name of the vServer group.</p>
*
* <strong>example:</strong>
* <p>Group1</p>
*/
public Builder vServerGroupName(String vServerGroupName) {
this.vServerGroupName = vServerGroupName;
return this;
}
public DescribeVServerGroupAttributeResponseBody build() {
return new DescribeVServerGroupAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeVServerGroupAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupAttributeResponseBody</p>
*/
public static class BackendServer extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("ServerId")
private String serverId;
@com.aliyun.core.annotation.NameInMap("ServerIp")
private String serverIp;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Weight")
private Integer weight;
private BackendServer(Builder builder) {
this.description = builder.description;
this.port = builder.port;
this.serverId = builder.serverId;
this.serverIp = builder.serverIp;
this.type = builder.type;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static BackendServer create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return serverId
*/
public String getServerId() {
return this.serverId;
}
/**
* @return serverIp
*/
public String getServerIp() {
return this.serverIp;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder {
private String description;
private Integer port;
private String serverId;
private String serverIp;
private String type;
private Integer weight;
/**
* <p>The description of the server group.</p>
* <blockquote>
* <p> This parameter is not returned if the Description parameter is not specified in the request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Server Group Description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The port that is used by the backend server.</p>
*
* <strong>example:</strong>
* <p>90</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The ID of the backend server.</p>
*
* <strong>example:</strong>
* <p>vm-233</p>
*/
public Builder serverId(String serverId) {
this.serverId = serverId;
return this;
}
/**
* <p>The IP address of the backend server.</p>
*
* <strong>example:</strong>
* <p>192.XX.XX.11</p>
*/
public Builder serverIp(String serverIp) {
this.serverIp = serverIp;
return this;
}
/**
* <p>The type of backend server. Valid values:</p>
* <ul>
* <li><strong>ecs</strong>: ECS instance</li>
* <li><strong>eni</strong>: ENI</li>
* <li><strong>eci</strong>: elastic container instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>ecs</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The weight of the backend server.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder weight(Integer weight) {
this.weight = weight;
return this;
}
public BackendServer build() {
return new BackendServer(this);
}
}
}
/**
*
* {@link DescribeVServerGroupAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupAttributeResponseBody</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;
/**
* BackendServer.
*/
public Builder backendServer(java.util.List<BackendServer> backendServer) {
this.backendServer = backendServer;
return this;
}
public BackendServers build() {
return new BackendServers(this);
}
}
}
/**
*
* {@link DescribeVServerGroupAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupAttributeResponseBody</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;
/**
* <p>The tag key. Valid values of N: <strong>1</strong> to <strong>20</strong>. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 64 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value. Valid values of N: <strong>1</strong> to <strong>20</strong>. 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>TestValue</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeVServerGroupAttributeResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupAttributeResponseBody</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;
/**
* 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeVServerGroupsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeVServerGroupsRequest} extends {@link RequestModel}
*
* <p>DescribeVServerGroupsRequest</p>
*/
public class DescribeVServerGroupsRequest 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("IncludeListener")
private Boolean includeListener;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IncludeRule")
private Boolean includeRule;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@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("Tag")
private java.util.List<Tag> tag;
private DescribeVServerGroupsRequest(Builder builder) {
super(builder);
this.description = builder.description;
this.includeListener = builder.includeListener;
this.includeRule = builder.includeRule;
this.loadBalancerId = builder.loadBalancerId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeVServerGroupsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return includeListener
*/
public Boolean getIncludeListener() {
return this.includeListener;
}
/**
* @return includeRule
*/
public Boolean getIncludeRule() {
return this.includeRule;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @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 tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<DescribeVServerGroupsRequest, Builder> {
private String description;
private Boolean includeListener;
private Boolean includeRule;
private String loadBalancerId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(DescribeVServerGroupsRequest request) {
super(request);
this.description = request.description;
this.includeListener = request.includeListener;
this.includeRule = request.includeRule;
this.loadBalancerId = request.loadBalancerId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
}
/**
* <p>The name of the vServer group.</p>
*
* <strong>example:</strong>
* <p>Group3</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>Specifies whether to return information about the associated listeners. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong> (default): no</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder includeListener(Boolean includeListener) {
this.putQueryParameter("IncludeListener", includeListener);
this.includeListener = includeListener;
return this;
}
/**
* <p>Specifies whether to return the forwarding rules associated with the vServer groups. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong> (default): no</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder includeRule(Boolean includeRule) {
this.putQueryParameter("IncludeRule", includeRule);
this.includeRule = includeRule;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1o94dp5i6ea*******</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
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 Classic Load Balancer (CLB) instance.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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 tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeVServerGroupsRequest build() {
return new DescribeVServerGroupsRequest(this);
}
}
/**
*
* {@link DescribeVServerGroupsRequest} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsRequest</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;
/**
* <p>The key of tag N. Valid values of N: 1 to 20. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 64 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs</code>:.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. Valid values of N: 1 to 20. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. The tag value cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>TestValue</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeVServerGroupsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeVServerGroupsResponse} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponse</p>
*/
public class DescribeVServerGroupsResponse 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 DescribeVServerGroupsResponseBody body;
private DescribeVServerGroupsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeVServerGroupsResponse 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 DescribeVServerGroupsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeVServerGroupsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeVServerGroupsResponseBody body);
@Override
DescribeVServerGroupsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeVServerGroupsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeVServerGroupsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeVServerGroupsResponse 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(DescribeVServerGroupsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeVServerGroupsResponse build() {
return new DescribeVServerGroupsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeVServerGroupsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeVServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponseBody</p>
*/
public class DescribeVServerGroupsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VServerGroups")
private VServerGroups vServerGroups;
private DescribeVServerGroupsResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.vServerGroups = builder.vServerGroups;
}
public static Builder builder() {
return new Builder();
}
public static DescribeVServerGroupsResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vServerGroups
*/
public VServerGroups getVServerGroups() {
return this.vServerGroups;
}
public static final class Builder {
private String requestId;
private VServerGroups vServerGroups;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The backend servers.</p>
*/
public Builder vServerGroups(VServerGroups vServerGroups) {
this.vServerGroups = vServerGroups;
return this;
}
public DescribeVServerGroupsResponseBody build() {
return new DescribeVServerGroupsResponseBody(this);
}
}
/**
*
* {@link DescribeVServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponseBody</p>
*/
public static class Listener extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
private Listener(Builder builder) {
this.port = builder.port;
this.protocol = builder.protocol;
}
public static Builder builder() {
return new Builder();
}
public static Listener create() {
return builder().build();
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
public static final class Builder {
private Integer port;
private String protocol;
/**
* <p>The listener port.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The listener protocol. Valid values: <strong>tcp</strong>, <strong>udp</strong>, <strong>http</strong>, and <strong>https</strong>.</p>
*
* <strong>example:</strong>
* <p>tcp</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
public Listener build() {
return new Listener(this);
}
}
}
/**
*
* {@link DescribeVServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponseBody</p>
*/
public static class Listeners extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Listener")
private java.util.List<Listener> listener;
private Listeners(Builder builder) {
this.listener = builder.listener;
}
public static Builder builder() {
return new Builder();
}
public static Listeners create() {
return builder().build();
}
/**
* @return listener
*/
public java.util.List<Listener> getListener() {
return this.listener;
}
public static final class Builder {
private java.util.List<Listener> listener;
/**
* Listener.
*/
public Builder listener(java.util.List<Listener> listener) {
this.listener = listener;
return this;
}
public Listeners build() {
return new Listeners(this);
}
}
}
/**
*
* {@link DescribeVServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponseBody</p>
*/
public static class Rule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("RuleId")
private String ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("Url")
private String url;
private Rule(Builder builder) {
this.domain = builder.domain;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.url = builder.url;
}
public static Builder builder() {
return new Builder();
}
public static Rule create() {
return builder().build();
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return url
*/
public String getUrl() {
return this.url;
}
public static final class Builder {
private String domain;
private String ruleId;
private String ruleName;
private String url;
/**
* <p>The requested domain name.</p>
*
* <strong>example:</strong>
* <p><a href="http://www.example.com">www.example.com</a></p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* <p>The ID of the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>rule-a3x3pg1yohq3lq****</p>
*/
public Builder ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The request URL.</p>
*
* <strong>example:</strong>
* <p>/example</p>
*/
public Builder url(String url) {
this.url = url;
return this;
}
public Rule build() {
return new Rule(this);
}
}
}
/**
*
* {@link DescribeVServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponseBody</p>
*/
public static class Rules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Rule")
private java.util.List<Rule> rule;
private Rules(Builder builder) {
this.rule = builder.rule;
}
public static Builder builder() {
return new Builder();
}
public static Rules create() {
return builder().build();
}
/**
* @return rule
*/
public java.util.List<Rule> getRule() {
return this.rule;
}
public static final class Builder {
private java.util.List<Rule> rule;
/**
* Rule.
*/
public Builder rule(java.util.List<Rule> rule) {
this.rule = rule;
return this;
}
public Rules build() {
return new Rules(this);
}
}
}
/**
*
* {@link DescribeVServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponseBody</p>
*/
public static class AssociatedObjects extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Listeners")
private Listeners listeners;
@com.aliyun.core.annotation.NameInMap("Rules")
private Rules rules;
private AssociatedObjects(Builder builder) {
this.listeners = builder.listeners;
this.rules = builder.rules;
}
public static Builder builder() {
return new Builder();
}
public static AssociatedObjects create() {
return builder().build();
}
/**
* @return listeners
*/
public Listeners getListeners() {
return this.listeners;
}
/**
* @return rules
*/
public Rules getRules() {
return this.rules;
}
public static final class Builder {
private Listeners listeners;
private Rules rules;
/**
* <p>The listeners.</p>
*/
public Builder listeners(Listeners listeners) {
this.listeners = listeners;
return this;
}
/**
* <p>The forwarding rules.</p>
*/
public Builder rules(Rules rules) {
this.rules = rules;
return this;
}
public AssociatedObjects build() {
return new AssociatedObjects(this);
}
}
}
/**
*
* {@link DescribeVServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponseBody</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;
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>TestValue</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeVServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponseBody</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;
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeVServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponseBody</p>
*/
public static class VServerGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociatedObjects")
private AssociatedObjects associatedObjects;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("ServerCount")
private Long serverCount;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("VServerGroupId")
private String vServerGroupId;
@com.aliyun.core.annotation.NameInMap("VServerGroupName")
private String vServerGroupName;
private VServerGroup(Builder builder) {
this.associatedObjects = builder.associatedObjects;
this.createTime = builder.createTime;
this.serverCount = builder.serverCount;
this.tags = builder.tags;
this.vServerGroupId = builder.vServerGroupId;
this.vServerGroupName = builder.vServerGroupName;
}
public static Builder builder() {
return new Builder();
}
public static VServerGroup create() {
return builder().build();
}
/**
* @return associatedObjects
*/
public AssociatedObjects getAssociatedObjects() {
return this.associatedObjects;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return serverCount
*/
public Long getServerCount() {
return this.serverCount;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return vServerGroupId
*/
public String getVServerGroupId() {
return this.vServerGroupId;
}
/**
* @return vServerGroupName
*/
public String getVServerGroupName() {
return this.vServerGroupName;
}
public static final class Builder {
private AssociatedObjects associatedObjects;
private String createTime;
private Long serverCount;
private Tags tags;
private String vServerGroupId;
private String vServerGroupName;
/**
* <p>The associated resources.</p>
*/
public Builder associatedObjects(AssociatedObjects associatedObjects) {
this.associatedObjects = associatedObjects;
return this;
}
/**
* <p>The time when the CLB instance was created. The time follows the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2022-08-31T02:49:05Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The number of servers.</p>
* <p>This parameter is unavailable by default. To use this parameter, submit a ticket or contact your account manager.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder serverCount(Long serverCount) {
this.serverCount = serverCount;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The server group ID.</p>
*
* <strong>example:</strong>
* <p>rsp-0bfuc*****</p>
*/
public Builder vServerGroupId(String vServerGroupId) {
this.vServerGroupId = vServerGroupId;
return this;
}
/**
* <p>The server group name.</p>
*
* <strong>example:</strong>
* <p>Group3</p>
*/
public Builder vServerGroupName(String vServerGroupName) {
this.vServerGroupName = vServerGroupName;
return this;
}
public VServerGroup build() {
return new VServerGroup(this);
}
}
}
/**
*
* {@link DescribeVServerGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeVServerGroupsResponseBody</p>
*/
public static class VServerGroups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("VServerGroup")
private java.util.List<VServerGroup> vServerGroup;
private VServerGroups(Builder builder) {
this.vServerGroup = builder.vServerGroup;
}
public static Builder builder() {
return new Builder();
}
public static VServerGroups create() {
return builder().build();
}
/**
* @return vServerGroup
*/
public java.util.List<VServerGroup> getVServerGroup() {
return this.vServerGroup;
}
public static final class Builder {
private java.util.List<VServerGroup> vServerGroup;
/**
* VServerGroup.
*/
public Builder vServerGroup(java.util.List<VServerGroup> vServerGroup) {
this.vServerGroup = vServerGroup;
return this;
}
public VServerGroups build() {
return new VServerGroups(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeZonesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeZonesRequest} extends {@link RequestModel}
*
* <p>DescribeZonesRequest</p>
*/
public class DescribeZonesRequest 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("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 DescribeZonesRequest(Builder builder) {
super(builder);
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 DescribeZonesRequest 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 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<DescribeZonesRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeZonesRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The logon name of the RAM user.</p>
*
* <strong>example:</strong>
* <p><a href="mailto:testuser@aliyun.com">testuser@aliyun.com</a></p>
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the VPC belongs.</p>
*
* <strong>example:</strong>
* <p>1171915672241348</p>
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the Server Load Balancer (SLB) instance.</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>ResourceOwnerAccount</p>
*
* <strong>example:</strong>
* <p><a href="mailto:cmdb@5397832129092425.onaliyun.com">cmdb@5397832129092425.onaliyun.com</a></p>
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* <p>The ID of the asset owner.</p>
*
* <strong>example:</strong>
* <p>1592622395492712</p>
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeZonesRequest build() {
return new DescribeZonesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeZonesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeZonesResponse} extends {@link TeaModel}
*
* <p>DescribeZonesResponse</p>
*/
public class DescribeZonesResponse 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 DescribeZonesResponseBody body;
private DescribeZonesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeZonesResponse 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 DescribeZonesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeZonesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeZonesResponseBody body);
@Override
DescribeZonesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeZonesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeZonesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeZonesResponse 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(DescribeZonesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeZonesResponse build() {
return new DescribeZonesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/DescribeZonesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 DescribeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeZonesResponseBody</p>
*/
public class DescribeZonesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Zones")
private Zones zones;
private DescribeZonesResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.zones = builder.zones;
}
public static Builder builder() {
return new Builder();
}
public static DescribeZonesResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return zones
*/
public Zones getZones() {
return this.zones;
}
public static final class Builder {
private String requestId;
private Zones zones;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A48D35FF-440A-4BC0-A4A2-A9BF69B7E43A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The zones.</p>
*/
public Builder zones(Zones zones) {
this.zones = zones;
return this;
}
public DescribeZonesResponseBody build() {
return new DescribeZonesResponseBody(this);
}
}
/**
*
* {@link DescribeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeZonesResponseBody</p>
*/
public static class SlaveZone extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private SlaveZone(Builder builder) {
this.localName = builder.localName;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static SlaveZone create() {
return builder().build();
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String localName;
private String zoneId;
/**
* <p>The name of the secondary zone.</p>
*
* <strong>example:</strong>
* <p>Queries zones in a specified region.</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The ID of the secondary zone.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-g</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public SlaveZone build() {
return new SlaveZone(this);
}
}
}
/**
*
* {@link DescribeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeZonesResponseBody</p>
*/
public static class SlaveZones extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SlaveZone")
private java.util.List<SlaveZone> slaveZone;
private SlaveZones(Builder builder) {
this.slaveZone = builder.slaveZone;
}
public static Builder builder() {
return new Builder();
}
public static SlaveZones create() {
return builder().build();
}
/**
* @return slaveZone
*/
public java.util.List<SlaveZone> getSlaveZone() {
return this.slaveZone;
}
public static final class Builder {
private java.util.List<SlaveZone> slaveZone;
/**
* SlaveZone.
*/
public Builder slaveZone(java.util.List<SlaveZone> slaveZone) {
this.slaveZone = slaveZone;
return this;
}
public SlaveZones build() {
return new SlaveZones(this);
}
}
}
/**
*
* {@link DescribeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeZonesResponseBody</p>
*/
public static class Zone extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("SlaveZones")
private SlaveZones slaveZones;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private Zone(Builder builder) {
this.localName = builder.localName;
this.slaveZones = builder.slaveZones;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static Zone create() {
return builder().build();
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return slaveZones
*/
public SlaveZones getSlaveZones() {
return this.slaveZones;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String localName;
private SlaveZones slaveZones;
private String zoneId;
/**
* <p>The name of the zone.</p>
*
* <strong>example:</strong>
* <p>The list of secondary zones.</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The secondary zones.</p>
*/
public Builder slaveZones(SlaveZones slaveZones) {
this.slaveZones = slaveZones;
return this;
}
/**
* <p>The ID of the zone.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public Zone build() {
return new Zone(this);
}
}
}
/**
*
* {@link DescribeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeZonesResponseBody</p>
*/
public static class Zones extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Zone")
private java.util.List<Zone> zone;
private Zones(Builder builder) {
this.zone = builder.zone;
}
public static Builder builder() {
return new Builder();
}
public static Zones create() {
return builder().build();
}
/**
* @return zone
*/
public java.util.List<Zone> getZone() {
return this.zone;
}
public static final class Builder {
private java.util.List<Zone> zone;
/**
* Zone.
*/
public Builder zone(java.util.List<Zone> zone) {
this.zone = zone;
return this;
}
public Zones build() {
return new Zones(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/EnableHighDefinationMonitorRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 EnableHighDefinationMonitorRequest} extends {@link RequestModel}
*
* <p>EnableHighDefinationMonitorRequest</p>
*/
public class EnableHighDefinationMonitorRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LogProject")
@com.aliyun.core.annotation.Validation(required = true)
private String logProject;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LogStore")
@com.aliyun.core.annotation.Validation(required = true)
private String logStore;
@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("Tags")
private String tags;
private EnableHighDefinationMonitorRequest(Builder builder) {
super(builder);
this.logProject = builder.logProject;
this.logStore = builder.logStore;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static EnableHighDefinationMonitorRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return logProject
*/
public String getLogProject() {
return this.logProject;
}
/**
* @return logStore
*/
public String getLogStore() {
return this.logStore;
}
/**
* @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 tags
*/
public String getTags() {
return this.tags;
}
public static final class Builder extends Request.Builder<EnableHighDefinationMonitorRequest, Builder> {
private String logProject;
private String logStore;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String tags;
private Builder() {
super();
}
private Builder(EnableHighDefinationMonitorRequest request) {
super(request);
this.logProject = request.logProject;
this.logStore = request.logStore;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tags = request.tags;
}
/**
* <p>The name of the project of Log Service. The name must be 4 to 63 characters in length, and can contain digits and lowercase letters. It must start and end with a digit or a letter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-project</p>
*/
public Builder logProject(String logProject) {
this.putQueryParameter("LogProject", logProject);
this.logProject = logProject;
return this;
}
/**
* <p>The name of the Logstore of Log Service. The name must be 2 to 64 characters in length and can contain digits, lowercase letters, hyphens (-) and underscores (_). It must start and end with a digit or a letter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-log-store</p>
*/
public Builder logStore(String logStore) {
this.putQueryParameter("LogStore", logStore);
this.logStore = logStore;
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 Classic Load Balancer (CLB) instance is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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 tags of the logs. The tags must be key-value pairs that are contained in a JSON dictionary.</p>
*
* <strong>example:</strong>
* <p>[{"tagKey":"Key1","tagValue":"Value1"}]</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
@Override
public EnableHighDefinationMonitorRequest build() {
return new EnableHighDefinationMonitorRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/EnableHighDefinationMonitorResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 EnableHighDefinationMonitorResponse} extends {@link TeaModel}
*
* <p>EnableHighDefinationMonitorResponse</p>
*/
public class EnableHighDefinationMonitorResponse 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 EnableHighDefinationMonitorResponseBody body;
private EnableHighDefinationMonitorResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static EnableHighDefinationMonitorResponse 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 EnableHighDefinationMonitorResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<EnableHighDefinationMonitorResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(EnableHighDefinationMonitorResponseBody body);
@Override
EnableHighDefinationMonitorResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<EnableHighDefinationMonitorResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private EnableHighDefinationMonitorResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(EnableHighDefinationMonitorResponse 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(EnableHighDefinationMonitorResponseBody body) {
this.body = body;
return this;
}
@Override
public EnableHighDefinationMonitorResponse build() {
return new EnableHighDefinationMonitorResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/EnableHighDefinationMonitorResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 EnableHighDefinationMonitorResponseBody} extends {@link TeaModel}
*
* <p>EnableHighDefinationMonitorResponseBody</p>
*/
public class EnableHighDefinationMonitorResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private String success;
private EnableHighDefinationMonitorResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static EnableHighDefinationMonitorResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public String getSuccess() {
return this.success;
}
public static final class Builder {
private String requestId;
private String success;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>2F398FF5-B349-5C01-8638-8E9A0BF1DBE6</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>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(String success) {
this.success = success;
return this;
}
public EnableHighDefinationMonitorResponseBody build() {
return new EnableHighDefinationMonitorResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ListTLSCipherPoliciesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ListTLSCipherPoliciesRequest} extends {@link RequestModel}
*
* <p>ListTLSCipherPoliciesRequest</p>
*/
public class ListTLSCipherPoliciesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IncludeListener")
private Boolean includeListener;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxItems")
private Integer maxItems;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@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("TLSCipherPolicyId")
private String TLSCipherPolicyId;
private ListTLSCipherPoliciesRequest(Builder builder) {
super(builder);
this.includeListener = builder.includeListener;
this.maxItems = builder.maxItems;
this.name = builder.name;
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.TLSCipherPolicyId = builder.TLSCipherPolicyId;
}
public static Builder builder() {
return new Builder();
}
public static ListTLSCipherPoliciesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return includeListener
*/
public Boolean getIncludeListener() {
return this.includeListener;
}
/**
* @return maxItems
*/
public Integer getMaxItems() {
return this.maxItems;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @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 TLSCipherPolicyId
*/
public String getTLSCipherPolicyId() {
return this.TLSCipherPolicyId;
}
public static final class Builder extends Request.Builder<ListTLSCipherPoliciesRequest, Builder> {
private Boolean includeListener;
private Integer maxItems;
private String name;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String TLSCipherPolicyId;
private Builder() {
super();
}
private Builder(ListTLSCipherPoliciesRequest request) {
super(request);
this.includeListener = request.includeListener;
this.maxItems = request.maxItems;
this.name = request.name;
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.TLSCipherPolicyId = request.TLSCipherPolicyId;
}
/**
* <p>Specifies whether to return the information about the associated listeners. Valid values:</p>
* <ul>
* <li><strong>true</strong>: returns the information about the associated listeners.</li>
* <li><strong>false</strong> (default): does not return the information about the associated listeners.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder includeListener(Boolean includeListener) {
this.putQueryParameter("IncludeListener", includeListener);
this.includeListener = includeListener;
return this;
}
/**
* <p>The maximum number of TLS policies to be queried in this call. Valid values: <strong>1</strong> to <strong>100</strong>. If you do not set this parameter, the default value <strong>20</strong> is used.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder maxItems(Integer maxItems) {
this.putQueryParameter("MaxItems", maxItems);
this.maxItems = maxItems;
return this;
}
/**
* <p>The name of the TLS policy. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.</p>
*
* <strong>example:</strong>
* <p>TLSPolicy-test****</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The token that is used for the next query. Valid values:</p>
* <ul>
* <li>If this is your first query or no next query is to be sent, ignore this parameter.</li>
* <li>If a next query is to be sent, set the value to the value of NextToken that is returned from the last call.</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 ID of the region where the Classic Load Balancer (CLB) instance is deployed.</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 TLS policy.</p>
*
* <strong>example:</strong>
* <p>tls-bp17elso1h323r****</p>
*/
public Builder TLSCipherPolicyId(String TLSCipherPolicyId) {
this.putQueryParameter("TLSCipherPolicyId", TLSCipherPolicyId);
this.TLSCipherPolicyId = TLSCipherPolicyId;
return this;
}
@Override
public ListTLSCipherPoliciesRequest build() {
return new ListTLSCipherPoliciesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ListTLSCipherPoliciesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ListTLSCipherPoliciesResponse} extends {@link TeaModel}
*
* <p>ListTLSCipherPoliciesResponse</p>
*/
public class ListTLSCipherPoliciesResponse 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 ListTLSCipherPoliciesResponseBody body;
private ListTLSCipherPoliciesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListTLSCipherPoliciesResponse 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 ListTLSCipherPoliciesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListTLSCipherPoliciesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListTLSCipherPoliciesResponseBody body);
@Override
ListTLSCipherPoliciesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListTLSCipherPoliciesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListTLSCipherPoliciesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListTLSCipherPoliciesResponse 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(ListTLSCipherPoliciesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListTLSCipherPoliciesResponse build() {
return new ListTLSCipherPoliciesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ListTLSCipherPoliciesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ListTLSCipherPoliciesResponseBody} extends {@link TeaModel}
*
* <p>ListTLSCipherPoliciesResponseBody</p>
*/
public class ListTLSCipherPoliciesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IsTruncated")
private Boolean isTruncated;
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TLSCipherPolicies")
private java.util.List<TLSCipherPolicies> TLSCipherPolicies;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private ListTLSCipherPoliciesResponseBody(Builder builder) {
this.isTruncated = builder.isTruncated;
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.TLSCipherPolicies = builder.TLSCipherPolicies;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListTLSCipherPoliciesResponseBody create() {
return builder().build();
}
/**
* @return isTruncated
*/
public Boolean getIsTruncated() {
return this.isTruncated;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return TLSCipherPolicies
*/
public java.util.List<TLSCipherPolicies> getTLSCipherPolicies() {
return this.TLSCipherPolicies;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Boolean isTruncated;
private String nextToken;
private String requestId;
private java.util.List<TLSCipherPolicies> TLSCipherPolicies;
private Integer totalCount;
/**
* <p>Indicates whether the current page is the last page. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The current page is the last page.</li>
* <li><strong>false</strong>: The current page is not the last page.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder isTruncated(Boolean isTruncated) {
this.isTruncated = isTruncated;
return this;
}
/**
* <p>The token that is used for the next query. Valid values:</p>
* <ul>
* <li>If <strong>NextToken</strong> is empty, it indicates that no next query is to be sent.</li>
* <li>If <strong>NextToken</strong> is not empty, the value indicates the token that is used for the next query.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The list of TLS policies.</p>
*/
public Builder TLSCipherPolicies(java.util.List<TLSCipherPolicies> TLSCipherPolicies) {
this.TLSCipherPolicies = TLSCipherPolicies;
return this;
}
/**
* <p>The total number of TLS policies returned.</p>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public ListTLSCipherPoliciesResponseBody build() {
return new ListTLSCipherPoliciesResponseBody(this);
}
}
/**
*
* {@link ListTLSCipherPoliciesResponseBody} extends {@link TeaModel}
*
* <p>ListTLSCipherPoliciesResponseBody</p>
*/
public static class RelateListeners extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
private RelateListeners(Builder builder) {
this.loadBalancerId = builder.loadBalancerId;
this.port = builder.port;
this.protocol = builder.protocol;
}
public static Builder builder() {
return new Builder();
}
public static RelateListeners create() {
return builder().build();
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
public static final class Builder {
private String loadBalancerId;
private Integer port;
private String protocol;
/**
* <p>The ID of the CLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-bp1b6c719dfa08ex****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The listening port. Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The listening protocol. Valid values:</p>
* <ul>
* <li><strong>TCP</strong></li>
* <li><strong>UDP</strong></li>
* <li><strong>HTTP</strong></li>
* <li><strong>HTTPS</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>HTTPS</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
public RelateListeners build() {
return new RelateListeners(this);
}
}
}
/**
*
* {@link ListTLSCipherPoliciesResponseBody} extends {@link TeaModel}
*
* <p>ListTLSCipherPoliciesResponseBody</p>
*/
public static class TLSCipherPolicies extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ciphers")
private java.util.List<String> ciphers;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RelateListeners")
private java.util.List<RelateListeners> relateListeners;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TLSVersions")
private java.util.List<String> TLSVersions;
private TLSCipherPolicies(Builder builder) {
this.ciphers = builder.ciphers;
this.createTime = builder.createTime;
this.instanceId = builder.instanceId;
this.name = builder.name;
this.relateListeners = builder.relateListeners;
this.status = builder.status;
this.TLSVersions = builder.TLSVersions;
}
public static Builder builder() {
return new Builder();
}
public static TLSCipherPolicies create() {
return builder().build();
}
/**
* @return ciphers
*/
public java.util.List<String> getCiphers() {
return this.ciphers;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return relateListeners
*/
public java.util.List<RelateListeners> getRelateListeners() {
return this.relateListeners;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return TLSVersions
*/
public java.util.List<String> getTLSVersions() {
return this.TLSVersions;
}
public static final class Builder {
private java.util.List<String> ciphers;
private Long createTime;
private String instanceId;
private String name;
private java.util.List<RelateListeners> relateListeners;
private String status;
private java.util.List<String> TLSVersions;
/**
* <p>The cipher suites supported by the TLS version.</p>
* <p>TLS 1.0 and TLS 1.1 support the following cipher suites:</p>
* <ul>
* <li>ECDHE-ECDSA-AES128-SHA</li>
* <li>ECDHE-ECDSA-AES256-SHA</li>
* <li>ECDHE-RSA-AES128-SHA</li>
* <li>ECDHE-RSA-AES256-SHA</li>
* <li>AES128-SHA AES256-SHA</li>
* <li>DES-CBC3-SHA</li>
* </ul>
* <p>TLS 1.2 supports the following cipher suites:</p>
* <ul>
* <li>ECDHE-ECDSA-AES128-SHA</li>
* <li>ECDHE-ECDSA-AES256-SHA</li>
* <li>ECDHE-RSA-AES128-SHA</li>
* <li>ECDHE-RSA-AES256-SHA</li>
* <li>AES128-SHA AES256-SHA</li>
* <li>DES-CBC3-SHA</li>
* <li>ECDHE-ECDSA-AES128-GCM-SHA256</li>
* <li>ECDHE-ECDSA-AES256-GCM-SHA384</li>
* <li>ECDHE-ECDSA-AES128-SHA256</li>
* <li>ECDHE-ECDSA-AES256-SHA384</li>
* <li>ECDHE-RSA-AES128-GCM-SHA256</li>
* <li>ECDHE-RSA-AES256-GCM-SHA384</li>
* <li>ECDHE-RSA-AES128-SHA256</li>
* <li>ECDHE-RSA-AES256-SHA384</li>
* <li>AES128-GCM-SHA256</li>
* <li>AES256-GCM-SHA384</li>
* <li>AES128-SHA256 AES256-SHA256</li>
* </ul>
* <p>TLS 1.3 supports the following cipher suites:</p>
* <ul>
* <li>TLS_AES_128_GCM_SHA256</li>
* <li>TLS_AES_256_GCM_SHA384</li>
* <li>TLS_CHACHA20_POLY1305_SHA256</li>
* <li>TLS_AES_128_CCM_SHA256</li>
* <li>TLS_AES_128_CCM_8_SHA256</li>
* </ul>
*/
public Builder ciphers(java.util.List<String> ciphers) {
this.ciphers = ciphers;
return this;
}
/**
* <p>The timestamp generated when the TLS policy is created.</p>
*
* <strong>example:</strong>
* <p>1608273800000</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the TLS policy.</p>
*
* <strong>example:</strong>
* <p>tls-bp17elso1h323r****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the TLS policy.</p>
*
* <strong>example:</strong>
* <p>TLSPolicy-test****</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The list of associated listeners.</p>
*/
public Builder relateListeners(java.util.List<RelateListeners> relateListeners) {
this.relateListeners = relateListeners;
return this;
}
/**
* <p>The status of the TLS policy. Valid values:</p>
* <ul>
* <li><strong>configuring</strong>: The TLS policy is being configured.</li>
* <li><strong>normal</strong>: The TLS policy works as expected.</li>
* </ul>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The version of the TLS protocol.</p>
*/
public Builder TLSVersions(java.util.List<String> TLSVersions) {
this.TLSVersions = TLSVersions;
return this;
}
public TLSCipherPolicies build() {
return new TLSCipherPolicies(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ListTagResourcesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ListTagResourcesRequest} extends {@link RequestModel}
*
* <p>ListTagResourcesRequest</p>
*/
public class ListTagResourcesRequest extends Request {
@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("ResourceId")
private java.util.List<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")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private ListTagResourcesRequest(Builder builder) {
super(builder);
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceId = builder.resourceId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.resourceType = builder.resourceType;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static ListTagResourcesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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 resourceId
*/
public java.util.List<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 tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<ListTagResourcesRequest, Builder> {
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private java.util.List<String> resourceId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String resourceType;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(ListTagResourcesRequest request) {
super(request);
this.nextToken = request.nextToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceId = request.resourceId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.resourceType = request.resourceType;
this.tag = request.tag;
}
/**
* <p>The token that determines the start point of the query. Valid values:</p>
* <ul>
* <li>If this is your first query or no subsequent query is to be sent, ignore this parameter.</li>
* <li>If a subsequent query is to be sent, set the parameter to the value of NextToken that is returned from the last call.</li>
* </ul>
*
* <strong>example:</strong>
* <p>caeba0bbb2be03f84eb48b699f0a****</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 CLB instance.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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 resource ID. You can specify up to 20 resources.</p>
* <blockquote>
* <p> The value of <strong>ResourceId</strong> of a <strong>listener</strong> is <strong>LoadBalancerId_Listener protocol_Port</strong>, where LoadBalancerId is the ID of the CLB instance and port is the listener port. Example: lb-bp1qnnvj18yy6h****_http_80.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>lb-bp1qnnvj18yy6h******</p>
*/
public Builder resourceId(java.util.List<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 resource. Valid values:</p>
* <ul>
* <li><strong>instance</strong>: a CLB instance</li>
* <li><strong>certificate</strong>: a certificate</li>
* <li><strong>acl</strong>: an access control list (ACL)</li>
* <li><strong>listener</strong>: a listener</li>
* <li><strong>vservergroup</strong>: a vServer group</li>
* <li><strong>masterslaveservergroup</strong>: a primary/secondary server group</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>instance</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public ListTagResourcesRequest build() {
return new ListTagResourcesRequest(this);
}
}
/**
*
* {@link ListTagResourcesRequest} extends {@link TeaModel}
*
* <p>ListTagResourcesRequest</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;
/**
* <p>The tag key of the resource. You can specify up to 20 tag keys.</p>
* <p>The tag key cannot be an empty string. The tag key must be 1 to 64 characters in length and cannot start with <code>aliyun</code> or <code>acs:</code>. The tag key 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 of the resource. You can specify up to 20 tag values. The tag value cannot be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. The tag value 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-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ListTagResourcesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ListTagResourcesResponse} extends {@link TeaModel}
*
* <p>ListTagResourcesResponse</p>
*/
public class ListTagResourcesResponse 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 ListTagResourcesResponseBody body;
private ListTagResourcesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListTagResourcesResponse 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 ListTagResourcesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListTagResourcesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListTagResourcesResponseBody body);
@Override
ListTagResourcesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListTagResourcesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListTagResourcesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListTagResourcesResponse 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(ListTagResourcesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListTagResourcesResponse build() {
return new ListTagResourcesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ListTagResourcesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ListTagResourcesResponseBody} extends {@link TeaModel}
*
* <p>ListTagResourcesResponseBody</p>
*/
public class ListTagResourcesResponseBody 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("TagResources")
private TagResources tagResources;
private ListTagResourcesResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.tagResources = builder.tagResources;
}
public static Builder builder() {
return new Builder();
}
public static ListTagResourcesResponseBody create() {
return builder().build();
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return tagResources
*/
public TagResources getTagResources() {
return this.tagResources;
}
public static final class Builder {
private String nextToken;
private String requestId;
private TagResources tagResources;
/**
* <p>The token that determines the start point of the query. Valid values:</p>
* <ul>
* <li>If <strong>NextToken</strong> is empty, it indicates that no subsequent 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>caeba0bbb2be03f84eb48b699f0a****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>DE65F6B7-7566-4802-9007-96F2494AC512</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The resources to which the tags are added.</p>
*/
public Builder tagResources(TagResources tagResources) {
this.tagResources = tagResources;
return this;
}
public ListTagResourcesResponseBody build() {
return new ListTagResourcesResponseBody(this);
}
}
/**
*
* {@link ListTagResourcesResponseBody} extends {@link TeaModel}
*
* <p>ListTagResourcesResponseBody</p>
*/
public static class TagResource 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("TagKey")
private String tagKey;
@com.aliyun.core.annotation.NameInMap("TagValue")
private String tagValue;
private TagResource(Builder builder) {
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.tagKey = builder.tagKey;
this.tagValue = builder.tagValue;
}
public static Builder builder() {
return new Builder();
}
public static TagResource create() {
return builder().build();
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return tagKey
*/
public String getTagKey() {
return this.tagKey;
}
/**
* @return tagValue
*/
public String getTagValue() {
return this.tagValue;
}
public static final class Builder {
private String resourceId;
private String resourceType;
private String tagKey;
private String tagValue;
/**
* <p>The resource ID.</p>
*
* <strong>example:</strong>
* <p>lb-bp16qjewdsunr4****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The resource type.</p>
*
* <strong>example:</strong>
* <p>instance</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public TagResource build() {
return new TagResource(this);
}
}
}
/**
*
* {@link ListTagResourcesResponseBody} extends {@link TeaModel}
*
* <p>ListTagResourcesResponseBody</p>
*/
public static class TagResources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TagResource")
private java.util.List<TagResource> tagResource;
private TagResources(Builder builder) {
this.tagResource = builder.tagResource;
}
public static Builder builder() {
return new Builder();
}
public static TagResources create() {
return builder().build();
}
/**
* @return tagResource
*/
public java.util.List<TagResource> getTagResource() {
return this.tagResource;
}
public static final class Builder {
private java.util.List<TagResource> tagResource;
/**
* TagResource.
*/
public Builder tagResource(java.util.List<TagResource> tagResource) {
this.tagResource = tagResource;
return this;
}
public TagResources build() {
return new TagResources(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ModifyHighDefinationMonitorRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ModifyHighDefinationMonitorRequest} extends {@link RequestModel}
*
* <p>ModifyHighDefinationMonitorRequest</p>
*/
public class ModifyHighDefinationMonitorRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LogProject")
@com.aliyun.core.annotation.Validation(required = true)
private String logProject;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LogStore")
@com.aliyun.core.annotation.Validation(required = true)
private String logStore;
@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 ModifyHighDefinationMonitorRequest(Builder builder) {
super(builder);
this.logProject = builder.logProject;
this.logStore = builder.logStore;
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 ModifyHighDefinationMonitorRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return logProject
*/
public String getLogProject() {
return this.logProject;
}
/**
* @return logStore
*/
public String getLogStore() {
return this.logStore;
}
/**
* @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<ModifyHighDefinationMonitorRequest, Builder> {
private String logProject;
private String logStore;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(ModifyHighDefinationMonitorRequest request) {
super(request);
this.logProject = request.logProject;
this.logStore = request.logStore;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The new name of the project of Log Service. The name must be 4 to 63 characters in length, and can contain digits and lowercase letters. It must start and end with a digit or a letter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-project</p>
*/
public Builder logProject(String logProject) {
this.putQueryParameter("LogProject", logProject);
this.logProject = logProject;
return this;
}
/**
* <p>The new name of the Logstore of Log Service. The name must be 2 to 64 characters in length and can contain digits, lowercase letters, hyphens (-) and underscores (_). It must start and end with a digit or a letter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>my-log-store</p>
*/
public Builder logStore(String logStore) {
this.putQueryParameter("LogStore", logStore);
this.logStore = logStore;
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 Classic Load Balancer (CLB) instance is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/27584.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 ModifyHighDefinationMonitorRequest build() {
return new ModifyHighDefinationMonitorRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ModifyHighDefinationMonitorResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ModifyHighDefinationMonitorResponse} extends {@link TeaModel}
*
* <p>ModifyHighDefinationMonitorResponse</p>
*/
public class ModifyHighDefinationMonitorResponse 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 ModifyHighDefinationMonitorResponseBody body;
private ModifyHighDefinationMonitorResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ModifyHighDefinationMonitorResponse 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 ModifyHighDefinationMonitorResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ModifyHighDefinationMonitorResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ModifyHighDefinationMonitorResponseBody body);
@Override
ModifyHighDefinationMonitorResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ModifyHighDefinationMonitorResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ModifyHighDefinationMonitorResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ModifyHighDefinationMonitorResponse 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(ModifyHighDefinationMonitorResponseBody body) {
this.body = body;
return this;
}
@Override
public ModifyHighDefinationMonitorResponse build() {
return new ModifyHighDefinationMonitorResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ModifyHighDefinationMonitorResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ModifyHighDefinationMonitorResponseBody} extends {@link TeaModel}
*
* <p>ModifyHighDefinationMonitorResponseBody</p>
*/
public class ModifyHighDefinationMonitorResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private String success;
private ModifyHighDefinationMonitorResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static ModifyHighDefinationMonitorResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public String getSuccess() {
return this.success;
}
public static final class Builder {
private String requestId;
private String success;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>8B9DB03B-ED39-5DB8-9C9F-1ED5F548D61E</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>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(String success) {
this.success = success;
return this;
}
public ModifyHighDefinationMonitorResponseBody build() {
return new ModifyHighDefinationMonitorResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ModifyLoadBalancerInstanceChargeTypeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ModifyLoadBalancerInstanceChargeTypeRequest} extends {@link RequestModel}
*
* <p>ModifyLoadBalancerInstanceChargeTypeRequest</p>
*/
public class ModifyLoadBalancerInstanceChargeTypeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Bandwidth")
@com.aliyun.core.annotation.Validation(maximum = 5000, minimum = 1)
private Integer bandwidth;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceChargeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerSpec")
private String loadBalancerSpec;
@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 ModifyLoadBalancerInstanceChargeTypeRequest(Builder builder) {
super(builder);
this.bandwidth = builder.bandwidth;
this.instanceChargeType = builder.instanceChargeType;
this.internetChargeType = builder.internetChargeType;
this.loadBalancerId = builder.loadBalancerId;
this.loadBalancerSpec = builder.loadBalancerSpec;
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 ModifyLoadBalancerInstanceChargeTypeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return loadBalancerSpec
*/
public String getLoadBalancerSpec() {
return this.loadBalancerSpec;
}
/**
* @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<ModifyLoadBalancerInstanceChargeTypeRequest, Builder> {
private Integer bandwidth;
private String instanceChargeType;
private String internetChargeType;
private String loadBalancerId;
private String loadBalancerSpec;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(ModifyLoadBalancerInstanceChargeTypeRequest request) {
super(request);
this.bandwidth = request.bandwidth;
this.instanceChargeType = request.instanceChargeType;
this.internetChargeType = request.internetChargeType;
this.loadBalancerId = request.loadBalancerId;
this.loadBalancerSpec = request.loadBalancerSpec;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The maximum bandwidth of the Internet-facing CLB instance that is billed on a pay-by-bandwidth basis.</p>
* <p>You do not need to set this parameter. The metering method of Internet data transfer for pay-by-LCU instances supports only pay-by-traffic.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.putQueryParameter("Bandwidth", bandwidth);
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The metering method of the instance after the change.</p>
* <p>Valid value: <strong>PayByCLCU</strong>. Only pay-by-LCU is supported.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>PayByCLCU</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.putQueryParameter("InstanceChargeType", instanceChargeType);
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The metering method of Internet data transfer after the change.</p>
* <p>Valid value: <strong>paybytraffic</strong>.</p>
* <blockquote>
* <ul>
* <li>If the value of the <strong>InstanceChargeType</strong> parameter is set to <strong>PayByCLCU</strong>, only pay-by-data-transfer is supported.</li>
* <li>When you change the metering method, the new metering method takes effect at 00:00:00 the next day.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>paybytraffic</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.putQueryParameter("InternetChargeType", internetChargeType);
this.internetChargeType = internetChargeType;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1b3jus5hpenznuu****</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The specification of the CLB instance.</p>
* <p>You do not need to set this parameter. For pay-as-you-go CLB instances, you can only change the metering method from pay-by-specification to pay-by-LCU. You cannot change the metering method from pay-by-LCU to pay-by-specification.</p>
*
* <strong>example:</strong>
* <p>slb.s1.small</p>
*/
public Builder loadBalancerSpec(String loadBalancerSpec) {
this.putQueryParameter("LoadBalancerSpec", loadBalancerSpec);
this.loadBalancerSpec = loadBalancerSpec;
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 CLB instance.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/25609.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 ModifyLoadBalancerInstanceChargeTypeRequest build() {
return new ModifyLoadBalancerInstanceChargeTypeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ModifyLoadBalancerInstanceChargeTypeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ModifyLoadBalancerInstanceChargeTypeResponse} extends {@link TeaModel}
*
* <p>ModifyLoadBalancerInstanceChargeTypeResponse</p>
*/
public class ModifyLoadBalancerInstanceChargeTypeResponse 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 ModifyLoadBalancerInstanceChargeTypeResponseBody body;
private ModifyLoadBalancerInstanceChargeTypeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ModifyLoadBalancerInstanceChargeTypeResponse 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 ModifyLoadBalancerInstanceChargeTypeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ModifyLoadBalancerInstanceChargeTypeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ModifyLoadBalancerInstanceChargeTypeResponseBody body);
@Override
ModifyLoadBalancerInstanceChargeTypeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ModifyLoadBalancerInstanceChargeTypeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ModifyLoadBalancerInstanceChargeTypeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ModifyLoadBalancerInstanceChargeTypeResponse 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(ModifyLoadBalancerInstanceChargeTypeResponseBody body) {
this.body = body;
return this;
}
@Override
public ModifyLoadBalancerInstanceChargeTypeResponse build() {
return new ModifyLoadBalancerInstanceChargeTypeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ModifyLoadBalancerInstanceChargeTypeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ModifyLoadBalancerInstanceChargeTypeResponseBody} extends {@link TeaModel}
*
* <p>ModifyLoadBalancerInstanceChargeTypeResponseBody</p>
*/
public class ModifyLoadBalancerInstanceChargeTypeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ModifyLoadBalancerInstanceChargeTypeResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ModifyLoadBalancerInstanceChargeTypeResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>365F4154-92F6-4AE4-92F8-7FF34B540710</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ModifyLoadBalancerInstanceChargeTypeResponseBody build() {
return new ModifyLoadBalancerInstanceChargeTypeResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515 | java-sources/com/aliyun/alibabacloud-slb20140515/1.0.7/com/aliyun/sdk/service/slb20140515/models/ModifyLoadBalancerInstanceSpecRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.slb20140515.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 ModifyLoadBalancerInstanceSpecRequest} extends {@link RequestModel}
*
* <p>ModifyLoadBalancerInstanceSpecRequest</p>
*/
public class ModifyLoadBalancerInstanceSpecRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoPay")
private Boolean autoPay;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerSpec")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerSpec;
@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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private ModifyLoadBalancerInstanceSpecRequest(Builder builder) {
super(builder);
this.autoPay = builder.autoPay;
this.loadBalancerId = builder.loadBalancerId;
this.loadBalancerSpec = builder.loadBalancerSpec;
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 ModifyLoadBalancerInstanceSpecRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return autoPay
*/
public Boolean getAutoPay() {
return this.autoPay;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return loadBalancerSpec
*/
public String getLoadBalancerSpec() {
return this.loadBalancerSpec;
}
/**
* @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<ModifyLoadBalancerInstanceSpecRequest, Builder> {
private Boolean autoPay;
private String loadBalancerId;
private String loadBalancerSpec;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(ModifyLoadBalancerInstanceSpecRequest request) {
super(request);
this.autoPay = request.autoPay;
this.loadBalancerId = request.loadBalancerId;
this.loadBalancerSpec = request.loadBalancerSpec;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>Specifies whether to enable automatic payment. Valid values:</p>
* <ul>
* <li><strong>true</strong>: automatically completes the payment.</li>
* <li><strong>false</strong> (default): If you select this option, you must complete the payment in the Order Center.</li>
* </ul>
* <blockquote>
* <p>This parameter takes effect only for subscription instances.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoPay(Boolean autoPay) {
this.putQueryParameter("AutoPay", autoPay);
this.autoPay = autoPay;
return this;
}
/**
* <p>The ID of the CLB instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>lb-bp1b6c719df*********</p>
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* <p>The specification of the CLB instance. Valid values:</p>
* <ul>
* <li><strong>slb.s1.small</strong></li>
* <li><strong>slb.s2.small</strong></li>
* <li><strong>slb.s2.medium</strong></li>
* <li><strong>slb.s3.small</strong></li>
* <li><strong>slb.s3.medium</strong></li>
* <li><strong>slb.s3.large</strong></li>
* </ul>
* <p>The specifications available vary by region. For more information about the specifications, see <a href="https://help.aliyun.com/document_detail/85931.html">High-performance CLB instance</a>.</p>
* <blockquote>
* <p>When you switch a shared-resource CLB instance to a high-performance CLB instance, your service may be interrupted for 10 to 30 seconds. We recommend that you modify the specification during off-peak hours or use Alibaba Cloud DNS to schedule your workloads to another CLB instance before you modify the specification.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>slb.s2.small</p>
*/
public Builder loadBalancerSpec(String loadBalancerSpec) {
this.putQueryParameter("LoadBalancerSpec", loadBalancerSpec);
this.loadBalancerSpec = loadBalancerSpec;
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 CLB instance.</p>
* <p>You can query the region ID from the <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a> list or by calling the <a href="https://help.aliyun.com/document_detail/27584.html">DescribeRegions</a> operation.</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 ModifyLoadBalancerInstanceSpecRequest build() {
return new ModifyLoadBalancerInstanceSpecRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.