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/ModifyLoadBalancerInstanceSpecResponse.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 ModifyLoadBalancerInstanceSpecResponse} extends {@link TeaModel} * * <p>ModifyLoadBalancerInstanceSpecResponse</p> */ public class ModifyLoadBalancerInstanceSpecResponse 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 ModifyLoadBalancerInstanceSpecResponseBody body; private ModifyLoadBalancerInstanceSpecResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyLoadBalancerInstanceSpecResponse 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 ModifyLoadBalancerInstanceSpecResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyLoadBalancerInstanceSpecResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyLoadBalancerInstanceSpecResponseBody body); @Override ModifyLoadBalancerInstanceSpecResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyLoadBalancerInstanceSpecResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyLoadBalancerInstanceSpecResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyLoadBalancerInstanceSpecResponse 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(ModifyLoadBalancerInstanceSpecResponseBody body) { this.body = body; return this; } @Override public ModifyLoadBalancerInstanceSpecResponse build() { return new ModifyLoadBalancerInstanceSpecResponse(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/ModifyLoadBalancerInstanceSpecResponseBody.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 ModifyLoadBalancerInstanceSpecResponseBody} extends {@link TeaModel} * * <p>ModifyLoadBalancerInstanceSpecResponseBody</p> */ public class ModifyLoadBalancerInstanceSpecResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("OrderId") private Long orderId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyLoadBalancerInstanceSpecResponseBody(Builder builder) { this.orderId = builder.orderId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyLoadBalancerInstanceSpecResponseBody create() { return builder().build(); } /** * @return orderId */ public Long getOrderId() { return this.orderId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Long orderId; private String requestId; /** * <p>The order ID of the subscription CLB instance.</p> * * <strong>example:</strong> * <p>201429619788910</p> */ public Builder orderId(Long orderId) { this.orderId = orderId; 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 ModifyLoadBalancerInstanceSpecResponseBody build() { return new ModifyLoadBalancerInstanceSpecResponseBody(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/ModifyLoadBalancerInternetSpecRequest.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 ModifyLoadBalancerInternetSpecRequest} extends {@link RequestModel} * * <p>ModifyLoadBalancerInternetSpecRequest</p> */ public class ModifyLoadBalancerInternetSpecRequest 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("Bandwidth") @com.aliyun.core.annotation.Validation(maximum = 5000, minimum = 1) private Integer bandwidth; @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("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 ModifyLoadBalancerInternetSpecRequest(Builder builder) { super(builder); this.autoPay = builder.autoPay; this.bandwidth = builder.bandwidth; this.internetChargeType = builder.internetChargeType; 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 ModifyLoadBalancerInternetSpecRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return autoPay */ public Boolean getAutoPay() { return this.autoPay; } /** * @return bandwidth */ public Integer getBandwidth() { return this.bandwidth; } /** * @return internetChargeType */ public String getInternetChargeType() { return this.internetChargeType; } /** * @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<ModifyLoadBalancerInternetSpecRequest, Builder> { private Boolean autoPay; private Integer bandwidth; private String internetChargeType; private String loadBalancerId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyLoadBalancerInternetSpecRequest request) { super(request); this.autoPay = request.autoPay; this.bandwidth = request.bandwidth; this.internetChargeType = request.internetChargeType; 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>Specifies whether to automatically pay the subscription fee of the Internet-facing CLB instance. Valid values:</p> * <ul> * <li><strong>true</strong>: enables automatic payments. This is the default value.</li> * <li><strong>false</strong>: disables automatic payment. You must complete the payment in Order Center.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder autoPay(Boolean autoPay) { this.putQueryParameter("AutoPay", autoPay); this.autoPay = autoPay; return this; } /** * <p>The maximum bandwidth of the Internet-facing CLB instance that uses the pay-by-bandwidth metering method. Unit: Mbit/s.</p> * <p>Valid values: <strong>1 to 5000</strong>. The maximum bandwidth varies based on the region where the CLB instance is created.****</p> * <blockquote> * <p> You do not need to specify this parameter if you set <strong>InternetChargeType</strong> to <strong>paybytraffic</strong> (pay-by-data-transfer).</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder bandwidth(Integer bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The metering method of the Internet-facing CLB instance. 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>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>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> * * <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 ModifyLoadBalancerInternetSpecRequest build() { return new ModifyLoadBalancerInternetSpecRequest(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/ModifyLoadBalancerInternetSpecResponse.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 ModifyLoadBalancerInternetSpecResponse} extends {@link TeaModel} * * <p>ModifyLoadBalancerInternetSpecResponse</p> */ public class ModifyLoadBalancerInternetSpecResponse 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 ModifyLoadBalancerInternetSpecResponseBody body; private ModifyLoadBalancerInternetSpecResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyLoadBalancerInternetSpecResponse 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 ModifyLoadBalancerInternetSpecResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyLoadBalancerInternetSpecResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyLoadBalancerInternetSpecResponseBody body); @Override ModifyLoadBalancerInternetSpecResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyLoadBalancerInternetSpecResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyLoadBalancerInternetSpecResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyLoadBalancerInternetSpecResponse 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(ModifyLoadBalancerInternetSpecResponseBody body) { this.body = body; return this; } @Override public ModifyLoadBalancerInternetSpecResponse build() { return new ModifyLoadBalancerInternetSpecResponse(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/ModifyLoadBalancerInternetSpecResponseBody.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 ModifyLoadBalancerInternetSpecResponseBody} extends {@link TeaModel} * * <p>ModifyLoadBalancerInternetSpecResponseBody</p> */ public class ModifyLoadBalancerInternetSpecResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("OrderId") private Long orderId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyLoadBalancerInternetSpecResponseBody(Builder builder) { this.orderId = builder.orderId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyLoadBalancerInternetSpecResponseBody create() { return builder().build(); } /** * @return orderId */ public Long getOrderId() { return this.orderId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Long orderId; private String requestId; /** * <p>The order ID of the subscription CLB instance.</p> * * <strong>example:</strong> * <p>20142961978****</p> */ public Builder orderId(Long orderId) { this.orderId = orderId; 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; } public ModifyLoadBalancerInternetSpecResponseBody build() { return new ModifyLoadBalancerInternetSpecResponseBody(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/ModifyLoadBalancerPayTypeRequest.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 ModifyLoadBalancerPayTypeRequest} extends {@link RequestModel} * * <p>ModifyLoadBalancerPayTypeRequest</p> */ public class ModifyLoadBalancerPayTypeRequest 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("Duration") private Integer duration; @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("PayType") private String payType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PricingCycle") private String pricingCycle; @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 ModifyLoadBalancerPayTypeRequest(Builder builder) { super(builder); this.autoPay = builder.autoPay; this.duration = builder.duration; this.loadBalancerId = builder.loadBalancerId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.payType = builder.payType; this.pricingCycle = builder.pricingCycle; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyLoadBalancerPayTypeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return autoPay */ public Boolean getAutoPay() { return this.autoPay; } /** * @return duration */ public Integer getDuration() { return this.duration; } /** * @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 payType */ public String getPayType() { return this.payType; } /** * @return pricingCycle */ public String getPricingCycle() { return this.pricingCycle; } /** * @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<ModifyLoadBalancerPayTypeRequest, Builder> { private Boolean autoPay; private Integer duration; private String loadBalancerId; private String ownerAccount; private Long ownerId; private String payType; private String pricingCycle; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyLoadBalancerPayTypeRequest request) { super(request); this.autoPay = request.autoPay; this.duration = request.duration; this.loadBalancerId = request.loadBalancerId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.payType = request.payType; this.pricingCycle = request.pricingCycle; 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>: yes</li> * <li><strong>false</strong> (default): no</li> * </ul> * <blockquote> * <p> This parameter is valid only when the <code>PayType</code> parameter is set to <strong>PrePay</strong>. This parameter is valid only for pay-as-you-go 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 subscription duration.</p> * <ul> * <li>If <strong>PricingCycle</strong> is set to <strong>month</strong>, the valid values are <strong>1</strong> to <strong>9</strong>.</li> * <li>If <strong>PricingCycle</strong> is set to <strong>year</strong>, the valid values are <strong>1</strong> to <strong>3</strong>.</li> * </ul> * <blockquote> * <p> This parameter is valid only when the <strong>PayType</strong> parameter is set to <strong>PrePay</strong>. This parameter is valid only for pay-as-you-go instances.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder duration(Integer duration) { this.putQueryParameter("Duration", duration); this.duration = duration; 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 billing method of the CLB instance. Valid values:</p> * <ul> * <li><strong>PayOnDemand</strong> (default): pay-as-you-go</li> * </ul> * <p>To change the billing method of a pay-as-you-go CLB instance to subscription, you must set the parameter to <strong>PrePay</strong>. In addition, the previous billing method of the CLB instance must be <strong>PayOnDemand</strong>.</p> * * <strong>example:</strong> * <p>PrePay</p> */ public Builder payType(String payType) { this.putQueryParameter("PayType", payType); this.payType = payType; return this; } /** * <p>The billing cycle.</p> * <p>Valid values: <strong>year</strong> and <strong>month</strong>.</p> * <blockquote> * <p> This parameter is valid only when the <strong>PayType</strong> parameter is set to <strong>PrePay</strong>. This parameter is valid only for pay-as-you-go instances.</p> * </blockquote> * * <strong>example:</strong> * <p>month</p> */ public Builder pricingCycle(String pricingCycle) { this.putQueryParameter("PricingCycle", pricingCycle); this.pricingCycle = pricingCycle; return this; } /** * <p>The ID of the region where the CLB instance is deployed.</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> * <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 ModifyLoadBalancerPayTypeRequest build() { return new ModifyLoadBalancerPayTypeRequest(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/ModifyLoadBalancerPayTypeResponse.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 ModifyLoadBalancerPayTypeResponse} extends {@link TeaModel} * * <p>ModifyLoadBalancerPayTypeResponse</p> */ public class ModifyLoadBalancerPayTypeResponse 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 ModifyLoadBalancerPayTypeResponseBody body; private ModifyLoadBalancerPayTypeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyLoadBalancerPayTypeResponse 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 ModifyLoadBalancerPayTypeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyLoadBalancerPayTypeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyLoadBalancerPayTypeResponseBody body); @Override ModifyLoadBalancerPayTypeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyLoadBalancerPayTypeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyLoadBalancerPayTypeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyLoadBalancerPayTypeResponse 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(ModifyLoadBalancerPayTypeResponseBody body) { this.body = body; return this; } @Override public ModifyLoadBalancerPayTypeResponse build() { return new ModifyLoadBalancerPayTypeResponse(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/ModifyLoadBalancerPayTypeResponseBody.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 ModifyLoadBalancerPayTypeResponseBody} extends {@link TeaModel} * * <p>ModifyLoadBalancerPayTypeResponseBody</p> */ public class ModifyLoadBalancerPayTypeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("OrderId") private Long orderId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyLoadBalancerPayTypeResponseBody(Builder builder) { this.orderId = builder.orderId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyLoadBalancerPayTypeResponseBody create() { return builder().build(); } /** * @return orderId */ public Long getOrderId() { return this.orderId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Long orderId; private String requestId; /** * <p>The order ID of the subscription CLB instance.</p> * * <strong>example:</strong> * <p>20212961978891</p> */ public Builder orderId(Long orderId) { this.orderId = orderId; 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; } public ModifyLoadBalancerPayTypeResponseBody build() { return new ModifyLoadBalancerPayTypeResponseBody(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/ModifyVServerGroupBackendServersRequest.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 ModifyVServerGroupBackendServersRequest} extends {@link RequestModel} * * <p>ModifyVServerGroupBackendServersRequest</p> */ public class ModifyVServerGroupBackendServersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewBackendServers") private String newBackendServers; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OldBackendServers") private String oldBackendServers; @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 ModifyVServerGroupBackendServersRequest(Builder builder) { super(builder); this.newBackendServers = builder.newBackendServers; this.oldBackendServers = builder.oldBackendServers; 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 ModifyVServerGroupBackendServersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return newBackendServers */ public String getNewBackendServers() { return this.newBackendServers; } /** * @return oldBackendServers */ public String getOldBackendServers() { return this.oldBackendServers; } /** * @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<ModifyVServerGroupBackendServersRequest, Builder> { private String newBackendServers; private String oldBackendServers; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vServerGroupId; private Builder() { super(); } private Builder(ModifyVServerGroupBackendServersRequest request) { super(request); this.newBackendServers = request.newBackendServers; this.oldBackendServers = request.oldBackendServers; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.vServerGroupId = request.vServerGroupId; } /** * <p>The backend servers that you want to add to the vServer group. Configure the following parameters:</p> * <ul> * <li><p><strong>ServerId</strong>: required. The IDs of the backend servers. Specify the IDs in a string. You can specify the IDs of ECS instances, ENIs, and elastic container instances. If you set <strong>ServerId</strong> to the IDs of ENIs or elastic container instances, you must configure the <strong>Type</strong> parameter.</p> * </li> * <li><p><strong>Weight</strong>: the weight of the backend server. Valid values: <strong>0</strong> to <strong>100</strong>. Default value: <strong>100</strong>. If you set the weight of a backend server to 0, no requests are forwarded to the backend server.</p> * </li> * <li><p><strong>Description</strong>: optional. The description of the backend servers. Specify the description in a string. The description must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/). periods (.), and underscores (_).</p> * </li> * <li><p><strong>Type</strong>: the type of the backend server. Valid values:</p> * <ul> * <li><strong>ecs</strong> (default): ECS instance</li> * <li><strong>eni</strong>: ENI</li> * <li><strong>eci</strong>: elastic container instance</li> * </ul> * </li> * </ul> * <blockquote> * <p> You can specify ENIs and elastic container instances as backend servers only for high-performance SLB instances.</p> * </blockquote> * <ul> * <li><strong>ServerIp</strong>: the IP address of the ENI or elastic container instance.</li> * <li><strong>Port</strong>: the backend port.</li> * </ul> * <p>Examples:</p> * <ul> * <li><p>Add an ECS instance:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;i-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;ecs&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</code></p> * </li> * <li><p>Add an ENI:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</code></p> * </li> * <li><p>Add an ENI with multiple IP addresses:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; },{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>172.166.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; }]</code></p> * </li> * <li><p>Add an elastic container instance</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eci-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eci&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-114&quot; }]</code></p> * </li> * </ul> * <blockquote> * <p> You can add only running backend servers to SLB instances. You can specify at most 20 backend servers in each call.</p> * </blockquote> * * <strong>example:</strong> * <p>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;<code>192.168.**.**</code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; },{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;<code>172.166.**.**</code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; }]</p> */ public Builder newBackendServers(String newBackendServers) { this.putQueryParameter("NewBackendServers", newBackendServers); this.newBackendServers = newBackendServers; return this; } /** * <p>The backend servers that you want to replace. Configure the following parameters:</p> * <ul> * <li><p><strong>ServerId</strong>: required. The IDs of the backend servers. Specify the IDs in a string. You can specify the IDs of Elastic Compute Service (ECS) instances, elastic network interfaces (ENIs), and elastic container instances. If you set <strong>ServerId</strong> to the IDs of ENIs or elastic container instances, you must configure the <strong>Type</strong> parameter.</p> * </li> * <li><p><strong>Weight</strong>: the weight of the backend server. Valid values: <strong>0</strong> to <strong>100</strong>. Default value: <strong>100</strong>. If you set the weight of a backend server to 0, no requests are forwarded to the backend server.</p> * </li> * <li><p><strong>Description</strong>: optional. The description of the backend servers. Specify the description in a string. The description must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/). periods (.), and underscores (_).</p> * </li> * <li><p><strong>Type</strong>: the type of the backend server. Valid values:</p> * <ul> * <li><strong>ecs</strong> (default): ECS instance</li> * <li><strong>eni</strong>: ENI</li> * <li><strong>eci</strong>: elastic container instance</li> * </ul> * </li> * </ul> * <blockquote> * <p> You can specify ENIs and elastic container instances as backend servers only for high-performance SLB instances.</p> * </blockquote> * <ul> * <li><strong>ServerIp</strong>: the IP address of the ENI or elastic container instance.</li> * <li><strong>Port</strong>: the backend port.</li> * </ul> * <p>Examples:</p> * <ul> * <li><p>Add an ECS instance:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;i-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;ecs&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</code></p> * </li> * <li><p>Add an ENI:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</code></p> * </li> * <li><p>Add an ENI with multiple IP addresses:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; },{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>172.166.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; }]</code></p> * </li> * <li><p>Add an elastic container instance</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eci-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eci&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-114&quot; }]</code></p> * </li> * </ul> * <blockquote> * <p> You can add only running backend servers to SLB instances. You can specify at most 20 backend servers in each call.</p> * </blockquote> * * <strong>example:</strong> * <p>[{ &quot;ServerId&quot;: &quot;i-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;ecs&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</p> */ public Builder oldBackendServers(String oldBackendServers) { this.putQueryParameter("OldBackendServers", oldBackendServers); this.oldBackendServers = oldBackendServers; 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>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-cige6j****</p> */ public Builder vServerGroupId(String vServerGroupId) { this.putQueryParameter("VServerGroupId", vServerGroupId); this.vServerGroupId = vServerGroupId; return this; } @Override public ModifyVServerGroupBackendServersRequest build() { return new ModifyVServerGroupBackendServersRequest(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/ModifyVServerGroupBackendServersResponse.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 ModifyVServerGroupBackendServersResponse} extends {@link TeaModel} * * <p>ModifyVServerGroupBackendServersResponse</p> */ public class ModifyVServerGroupBackendServersResponse 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 ModifyVServerGroupBackendServersResponseBody body; private ModifyVServerGroupBackendServersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVServerGroupBackendServersResponse 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 ModifyVServerGroupBackendServersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVServerGroupBackendServersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVServerGroupBackendServersResponseBody body); @Override ModifyVServerGroupBackendServersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVServerGroupBackendServersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVServerGroupBackendServersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVServerGroupBackendServersResponse 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(ModifyVServerGroupBackendServersResponseBody body) { this.body = body; return this; } @Override public ModifyVServerGroupBackendServersResponse build() { return new ModifyVServerGroupBackendServersResponse(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/ModifyVServerGroupBackendServersResponseBody.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 ModifyVServerGroupBackendServersResponseBody} extends {@link TeaModel} * * <p>ModifyVServerGroupBackendServersResponseBody</p> */ public class ModifyVServerGroupBackendServersResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BackendServers") private BackendServers backendServers; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("VServerGroupId") private String vServerGroupId; private ModifyVServerGroupBackendServersResponseBody(Builder builder) { this.backendServers = builder.backendServers; this.requestId = builder.requestId; this.vServerGroupId = builder.vServerGroupId; } public static Builder builder() { return new Builder(); } public static ModifyVServerGroupBackendServersResponseBody create() { return builder().build(); } /** * @return backendServers */ public BackendServers getBackendServers() { return this.backendServers; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return vServerGroupId */ public String getVServerGroupId() { return this.vServerGroupId; } public static final class Builder { private BackendServers backendServers; private String requestId; private String vServerGroupId; /** * <p>The backend servers.</p> */ public Builder backendServers(BackendServers backendServers) { this.backendServers = backendServers; 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 ID of the vServer group.</p> * * <strong>example:</strong> * <p>rsp-cige6j****</p> */ public Builder vServerGroupId(String vServerGroupId) { this.vServerGroupId = vServerGroupId; return this; } public ModifyVServerGroupBackendServersResponseBody build() { return new ModifyVServerGroupBackendServersResponseBody(this); } } /** * * {@link ModifyVServerGroupBackendServersResponseBody} extends {@link TeaModel} * * <p>ModifyVServerGroupBackendServersResponseBody</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("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.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 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 type; private Integer weight; /** * <p>The description of the backend server.</p> * * <strong>example:</strong> * <p>Backend server 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>70</p> */ public Builder port(Integer port) { this.port = port; return this; } /** * <p>The ID of the ECS instance or ENI.</p> * * <strong>example:</strong> * <p>i-bp1ge5hrp****</p> */ public Builder serverId(String serverId) { this.serverId = serverId; return this; } /** * <p>The type of backend server. Valid values:</p> * <ul> * <li><strong>ecs</strong> (default): 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 ModifyVServerGroupBackendServersResponseBody} extends {@link TeaModel} * * <p>ModifyVServerGroupBackendServersResponseBody</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/MoveResourceGroupRequest.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 MoveResourceGroupRequest} extends {@link RequestModel} * * <p>MoveResourceGroupRequest</p> */ public class MoveResourceGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewResourceGroupId") @com.aliyun.core.annotation.Validation(required = true) private String newResourceGroupId; @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("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("access_key_id") private String accessKeyId; private MoveResourceGroupRequest(Builder builder) { super(builder); this.newResourceGroupId = builder.newResourceGroupId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.resourceType = builder.resourceType; this.accessKeyId = builder.accessKeyId; } public static Builder builder() { return new Builder(); } public static MoveResourceGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return newResourceGroupId */ public String getNewResourceGroupId() { return this.newResourceGroupId; } /** * @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 resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return accessKeyId */ public String getAccessKeyId() { return this.accessKeyId; } public static final class Builder extends Request.Builder<MoveResourceGroupRequest, Builder> { private String newResourceGroupId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private String accessKeyId; private Builder() { super(); } private Builder(MoveResourceGroupRequest request) { super(request); this.newResourceGroupId = request.newResourceGroupId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; this.accessKeyId = request.accessKeyId; } /** * <p>The ID of the resource group to which you want to move the resource.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>rg-aek2rpsek5h****</p> */ public Builder newResourceGroupId(String newResourceGroupId) { this.putQueryParameter("NewResourceGroupId", newResourceGroupId); this.newResourceGroupId = newResourceGroupId; 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-beijing</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-aek2dmxj56z****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>The resource ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-uf6ghek7ds2btzt65****</p> */ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The type of the resource. Valid values:</p> * <ul> * <li><strong>loadbalancer</strong>: a CLB instance</li> * <li><strong>certificate</strong>: a certificate</li> * <li><strong>acl</strong>: an access control list (ACL)</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>loadbalancer</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The AccessKey ID provided by Alibaba Cloud.</p> * * <strong>example:</strong> * <p>LTAI5tPmFGUpmyWwD8gp****</p> */ public Builder accessKeyId(String accessKeyId) { this.putQueryParameter("access_key_id", accessKeyId); this.accessKeyId = accessKeyId; return this; } @Override public MoveResourceGroupRequest build() { return new MoveResourceGroupRequest(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/MoveResourceGroupResponse.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 MoveResourceGroupResponse} extends {@link TeaModel} * * <p>MoveResourceGroupResponse</p> */ public class MoveResourceGroupResponse 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 MoveResourceGroupResponseBody body; private MoveResourceGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static MoveResourceGroupResponse 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 MoveResourceGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<MoveResourceGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(MoveResourceGroupResponseBody body); @Override MoveResourceGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<MoveResourceGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private MoveResourceGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(MoveResourceGroupResponse 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(MoveResourceGroupResponseBody body) { this.body = body; return this; } @Override public MoveResourceGroupResponse build() { return new MoveResourceGroupResponse(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/MoveResourceGroupResponseBody.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 MoveResourceGroupResponseBody} extends {@link TeaModel} * * <p>MoveResourceGroupResponseBody</p> */ public class MoveResourceGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private MoveResourceGroupResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static MoveResourceGroupResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>18CAE30A-79CF-544C-86DB-EB36C739642E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public MoveResourceGroupResponseBody build() { return new MoveResourceGroupResponseBody(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/RemoveAccessControlListEntryRequest.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 RemoveAccessControlListEntryRequest} extends {@link RequestModel} * * <p>RemoveAccessControlListEntryRequest</p> */ public class RemoveAccessControlListEntryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclEntrys") private String aclEntrys; @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("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 RemoveAccessControlListEntryRequest(Builder builder) { super(builder); this.aclEntrys = builder.aclEntrys; this.aclId = builder.aclId; 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 RemoveAccessControlListEntryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclEntrys */ public String getAclEntrys() { return this.aclEntrys; } /** * @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 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<RemoveAccessControlListEntryRequest, Builder> { private String aclEntrys; private String aclId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(RemoveAccessControlListEntryRequest request) { super(request); this.aclEntrys = request.aclEntrys; this.aclId = request.aclId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The IP entries that you want to remove from the network ACL. Valid values:</p> * <ul> * <li><strong>entry</strong>: the IP address or CIDR block that you want to remove from the network ACL. Separate multiple IP addresses or CIDR blocks with commas (,).</li> * <li><strong>comment</strong>: the description of the network ACL.</li> * </ul> * * <strong>example:</strong> * <p>[{&quot;entry&quot;:&quot;10.0.10.0/24&quot;,&quot;comment&quot;:&quot;privaterule1&quot;}]</p> */ public Builder aclEntrys(String aclEntrys) { this.putQueryParameter("AclEntrys", aclEntrys); this.aclEntrys = aclEntrys; return this; } /** * <p>The ID of the network ACL.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>acl-bp1l0kk4gxce43k******</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 ID of the region where the network ACL is created.</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 RemoveAccessControlListEntryRequest build() { return new RemoveAccessControlListEntryRequest(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/RemoveAccessControlListEntryResponse.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 RemoveAccessControlListEntryResponse} extends {@link TeaModel} * * <p>RemoveAccessControlListEntryResponse</p> */ public class RemoveAccessControlListEntryResponse 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 RemoveAccessControlListEntryResponseBody body; private RemoveAccessControlListEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RemoveAccessControlListEntryResponse 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 RemoveAccessControlListEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RemoveAccessControlListEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RemoveAccessControlListEntryResponseBody body); @Override RemoveAccessControlListEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RemoveAccessControlListEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RemoveAccessControlListEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RemoveAccessControlListEntryResponse 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(RemoveAccessControlListEntryResponseBody body) { this.body = body; return this; } @Override public RemoveAccessControlListEntryResponse build() { return new RemoveAccessControlListEntryResponse(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/RemoveAccessControlListEntryResponseBody.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 RemoveAccessControlListEntryResponseBody} extends {@link TeaModel} * * <p>RemoveAccessControlListEntryResponseBody</p> */ public class RemoveAccessControlListEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RemoveAccessControlListEntryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RemoveAccessControlListEntryResponseBody 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>988CB45E-1643-48C0-87B4-928DDF77EA49</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public RemoveAccessControlListEntryResponseBody build() { return new RemoveAccessControlListEntryResponseBody(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/RemoveBackendServersRequest.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 RemoveBackendServersRequest} extends {@link RequestModel} * * <p>RemoveBackendServersRequest</p> */ public class RemoveBackendServersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackendServers") @com.aliyun.core.annotation.Validation(required = true) private String backendServers; @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 RemoveBackendServersRequest(Builder builder) { super(builder); this.backendServers = builder.backendServers; 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 RemoveBackendServersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return backendServers */ public String getBackendServers() { return this.backendServers; } /** * @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<RemoveBackendServersRequest, Builder> { private String backendServers; private String loadBalancerId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(RemoveBackendServersRequest request) { super(request); this.backendServers = request.backendServers; 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 backend servers that you want to remove.</p> * <ul> * <li><p><strong>ServerId</strong>: The IDs of the backend servers. Set the value to a string. This parameter is required.</p> * </li> * <li><p><strong>Type</strong>: 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> * </li> * <li><p><strong>Weight</strong>: the weight of the backend server. Valid values: <strong>0</strong> to <strong>100</strong>. Set the value to an integer.</p> * </li> * </ul> * <p>You can specify at most 20 backend servers in each call. Examples:</p> * <ul> * <li>Remove ECS instances:</li> * </ul> * <p><code>[{&quot;ServerId&quot;:&quot;i-bp1fq61enf4loa5i****&quot;, &quot;Type&quot;: &quot;ecs&quot;,&quot;Weight&quot;:&quot;100&quot;}]</code></p> * <ul> * <li>Remove ENIs:</li> * </ul> * <p><code>[{&quot;ServerId&quot;:&quot;eni-2ze1sdp5****&quot;,&quot;Type&quot;: &quot;eni&quot;,&quot;Weight&quot;:&quot;100&quot;}]</code></p> * <ul> * <li>Remove elastic container instances:</li> * </ul> * <p><code>[{&quot;ServerId&quot;:&quot;eci-2ze1sdp5****&quot;,&quot;Type&quot;: &quot;eci&quot;,&quot;Weight&quot;:&quot;100&quot;}]</code></p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[{&quot;ServerId&quot;:&quot;i-bp1fq61enf4loa5i****&quot;, &quot;Type&quot;: &quot;ecs&quot;,&quot;Weight&quot;:&quot;100&quot;}]</p> */ public Builder backendServers(String backendServers) { this.putQueryParameter("BackendServers", backendServers); this.backendServers = backendServers; return this; } /** * <p>The ID of the CLB instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-bp15lbk8uja8rvm4a****</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> * * <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 RemoveBackendServersRequest build() { return new RemoveBackendServersRequest(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/RemoveBackendServersResponse.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 RemoveBackendServersResponse} extends {@link TeaModel} * * <p>RemoveBackendServersResponse</p> */ public class RemoveBackendServersResponse 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 RemoveBackendServersResponseBody body; private RemoveBackendServersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RemoveBackendServersResponse 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 RemoveBackendServersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RemoveBackendServersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RemoveBackendServersResponseBody body); @Override RemoveBackendServersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RemoveBackendServersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RemoveBackendServersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RemoveBackendServersResponse 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(RemoveBackendServersResponseBody body) { this.body = body; return this; } @Override public RemoveBackendServersResponse build() { return new RemoveBackendServersResponse(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/RemoveBackendServersResponseBody.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 RemoveBackendServersResponseBody} extends {@link TeaModel} * * <p>RemoveBackendServersResponseBody</p> */ public class RemoveBackendServersResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BackendServers") private BackendServers backendServers; @com.aliyun.core.annotation.NameInMap("LoadBalancerId") private String loadBalancerId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RemoveBackendServersResponseBody(Builder builder) { this.backendServers = builder.backendServers; this.loadBalancerId = builder.loadBalancerId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RemoveBackendServersResponseBody create() { return builder().build(); } /** * @return backendServers */ public BackendServers getBackendServers() { return this.backendServers; } /** * @return loadBalancerId */ public String getLoadBalancerId() { return this.loadBalancerId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private BackendServers backendServers; private String loadBalancerId; private String requestId; /** * <p>The backend servers.</p> */ public Builder backendServers(BackendServers backendServers) { this.backendServers = backendServers; return this; } /** * <p>The ID of the CLB instance.</p> * * <strong>example:</strong> * <p>lb-bp15lbk8uja8rvm4a****</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; } public RemoveBackendServersResponseBody build() { return new RemoveBackendServersResponseBody(this); } } /** * * {@link RemoveBackendServersResponseBody} extends {@link TeaModel} * * <p>RemoveBackendServersResponseBody</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("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.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 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 type; private Integer weight; /** * <p>The description of the server group.</p> * * <strong>example:</strong> * <p>BackendServer1</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The ID of the backend server.</p> * * <strong>example:</strong> * <p>i-bp1fq61enf4loa5i****</p> */ public Builder serverId(String serverId) { this.serverId = serverId; 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 instances</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. Valid values: <strong>0 to 100</strong>.</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 RemoveBackendServersResponseBody} extends {@link TeaModel} * * <p>RemoveBackendServersResponseBody</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/RemoveListenerWhiteListItemRequest.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 RemoveListenerWhiteListItemRequest} extends {@link RequestModel} * * <p>RemoveListenerWhiteListItemRequest</p> */ public class RemoveListenerWhiteListItemRequest 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("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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceItems") @com.aliyun.core.annotation.Validation(required = true) private String sourceItems; private RemoveListenerWhiteListItemRequest(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; this.sourceItems = builder.sourceItems; } public static Builder builder() { return new Builder(); } public static RemoveListenerWhiteListItemRequest 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; } /** * @return sourceItems */ public String getSourceItems() { return this.sourceItems; } public static final class Builder extends Request.Builder<RemoveListenerWhiteListItemRequest, 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 String sourceItems; private Builder() { super(); } private Builder(RemoveListenerWhiteListItemRequest 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; this.sourceItems = request.sourceItems; } /** * <p>The listening port.</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 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 CLB instance.</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 call the <a href="https://help.aliyun.com/document_detail/27584.html">DescribeRegions</a> operation to query the most recent region list.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The list of IP addresses or CIDR blocks that you want to remove from the whitelist. Separate multiple IP addresses or CIDR blocks with commas (,).</p> * <blockquote> * <p> If all IP addresses are removed from the whitelist, the listener does not forward requests.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder sourceItems(String sourceItems) { this.putQueryParameter("SourceItems", sourceItems); this.sourceItems = sourceItems; return this; } @Override public RemoveListenerWhiteListItemRequest build() { return new RemoveListenerWhiteListItemRequest(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/RemoveListenerWhiteListItemResponse.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 RemoveListenerWhiteListItemResponse} extends {@link TeaModel} * * <p>RemoveListenerWhiteListItemResponse</p> */ public class RemoveListenerWhiteListItemResponse 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 RemoveListenerWhiteListItemResponseBody body; private RemoveListenerWhiteListItemResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RemoveListenerWhiteListItemResponse 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 RemoveListenerWhiteListItemResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RemoveListenerWhiteListItemResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RemoveListenerWhiteListItemResponseBody body); @Override RemoveListenerWhiteListItemResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RemoveListenerWhiteListItemResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RemoveListenerWhiteListItemResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RemoveListenerWhiteListItemResponse 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(RemoveListenerWhiteListItemResponseBody body) { this.body = body; return this; } @Override public RemoveListenerWhiteListItemResponse build() { return new RemoveListenerWhiteListItemResponse(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/RemoveListenerWhiteListItemResponseBody.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 RemoveListenerWhiteListItemResponseBody} extends {@link TeaModel} * * <p>RemoveListenerWhiteListItemResponseBody</p> */ public class RemoveListenerWhiteListItemResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RemoveListenerWhiteListItemResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RemoveListenerWhiteListItemResponseBody 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>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public RemoveListenerWhiteListItemResponseBody build() { return new RemoveListenerWhiteListItemResponseBody(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/RemoveTagsRequest.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 RemoveTagsRequest} extends {@link RequestModel} * * <p>RemoveTagsRequest</p> */ public class RemoveTagsRequest 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") @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") @com.aliyun.core.annotation.Validation(required = true) private String tags; private RemoveTagsRequest(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; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static RemoveTagsRequest 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; } /** * @return tags */ public String getTags() { return this.tags; } public static final class Builder extends Request.Builder<RemoveTagsRequest, Builder> { private String loadBalancerId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String tags; private Builder() { super(); } private Builder(RemoveTagsRequest 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; this.tags = request.tags; } /** * <p>The SLB instance ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-bp1l5j******</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 Server Load Balancer (SLB) instance is created.</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; } /** * <p>A list of tags to be removed.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[{&quot;TagKey&quot;:&quot;Key1&quot;,&quot;TagValue&quot;:&quot;Value1&quot;},{&quot;TagKey&quot;:&quot;Key2&quot;,&quot;TagValue&quot;:&quot;Value2&quot;}]</p> */ public Builder tags(String tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public RemoveTagsRequest build() { return new RemoveTagsRequest(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/RemoveTagsResponse.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 RemoveTagsResponse} extends {@link TeaModel} * * <p>RemoveTagsResponse</p> */ public class RemoveTagsResponse 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 RemoveTagsResponseBody body; private RemoveTagsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RemoveTagsResponse 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 RemoveTagsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RemoveTagsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RemoveTagsResponseBody body); @Override RemoveTagsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RemoveTagsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RemoveTagsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RemoveTagsResponse 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(RemoveTagsResponseBody body) { this.body = body; return this; } @Override public RemoveTagsResponse build() { return new RemoveTagsResponse(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/RemoveTagsResponseBody.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 RemoveTagsResponseBody} extends {@link TeaModel} * * <p>RemoveTagsResponseBody</p> */ public class RemoveTagsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RemoveTagsResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RemoveTagsResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <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 RemoveTagsResponseBody build() { return new RemoveTagsResponseBody(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/RemoveVServerGroupBackendServersRequest.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 RemoveVServerGroupBackendServersRequest} extends {@link RequestModel} * * <p>RemoveVServerGroupBackendServersRequest</p> */ public class RemoveVServerGroupBackendServersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackendServers") @com.aliyun.core.annotation.Validation(required = true) private String backendServers; @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 RemoveVServerGroupBackendServersRequest(Builder builder) { super(builder); this.backendServers = builder.backendServers; 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 RemoveVServerGroupBackendServersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return backendServers */ public String getBackendServers() { return this.backendServers; } /** * @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<RemoveVServerGroupBackendServersRequest, Builder> { private String backendServers; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vServerGroupId; private Builder() { super(); } private Builder(RemoveVServerGroupBackendServersRequest request) { super(request); this.backendServers = request.backendServers; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.vServerGroupId = request.vServerGroupId; } /** * <p>The backend servers that you want to remove. Configure the following parameters:</p> * <ul> * <li><p><strong>ServerId</strong>: Required. The ID of the backend server. Specify the value in a string. You can specify the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. If you set <strong>ServerId</strong> to the ID of an ENI or an elastic container instance, you must configure the <strong>Type</strong> parameter.</p> * </li> * <li><p><strong>Weight</strong>: the weight of the backend server. Valid values: <strong>0</strong> to <strong>100</strong>. Default value: <strong>100</strong>. If you set the weight of a backend server to 0, no requests are forwarded to the backend server.</p> * </li> * <li><p><strong>Description</strong>: Optional. The description of the backend server. Specify the value in a string. The description must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).</p> * </li> * <li><p><strong>Type</strong>: the type of the 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> * </li> * </ul> * <blockquote> * <p> You can specify ENIs and elastic container instances as backend servers only for high-performance SLB instances.</p> * </blockquote> * <ul> * <li><strong>ServerIp</strong>: the IP address of an ENI or an elastic container instance.</li> * <li><strong>Port</strong>: the backend port.</li> * </ul> * <p>Examples:</p> * <ul> * <li><p>Add ECS instances:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;i-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;ecs&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</code></p> * </li> * <li><p>Add ENIs:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</code></p> * </li> * <li><p>Add ENIs with multiple IP addresses:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; },{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>172.166.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; }]</code></p> * </li> * <li><p>Add elastic container instances:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eci-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eci&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-114&quot; }]</code></p> * </li> * </ul> * <blockquote> * <p> You can add only running backend servers to SLB instances. You can specify at most 20 backend servers.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;<code>192.168.**.**</code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; },{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;<code>172.166.**.**</code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; }]</p> */ public Builder backendServers(String backendServers) { this.putQueryParameter("BackendServers", backendServers); this.backendServers = backendServers; 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 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 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 RemoveVServerGroupBackendServersRequest build() { return new RemoveVServerGroupBackendServersRequest(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/RemoveVServerGroupBackendServersResponse.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 RemoveVServerGroupBackendServersResponse} extends {@link TeaModel} * * <p>RemoveVServerGroupBackendServersResponse</p> */ public class RemoveVServerGroupBackendServersResponse 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 RemoveVServerGroupBackendServersResponseBody body; private RemoveVServerGroupBackendServersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RemoveVServerGroupBackendServersResponse 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 RemoveVServerGroupBackendServersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RemoveVServerGroupBackendServersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RemoveVServerGroupBackendServersResponseBody body); @Override RemoveVServerGroupBackendServersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RemoveVServerGroupBackendServersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RemoveVServerGroupBackendServersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RemoveVServerGroupBackendServersResponse 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(RemoveVServerGroupBackendServersResponseBody body) { this.body = body; return this; } @Override public RemoveVServerGroupBackendServersResponse build() { return new RemoveVServerGroupBackendServersResponse(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/RemoveVServerGroupBackendServersResponseBody.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 RemoveVServerGroupBackendServersResponseBody} extends {@link TeaModel} * * <p>RemoveVServerGroupBackendServersResponseBody</p> */ public class RemoveVServerGroupBackendServersResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BackendServers") private BackendServers backendServers; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("VServerGroupId") private String vServerGroupId; private RemoveVServerGroupBackendServersResponseBody(Builder builder) { this.backendServers = builder.backendServers; this.requestId = builder.requestId; this.vServerGroupId = builder.vServerGroupId; } public static Builder builder() { return new Builder(); } public static RemoveVServerGroupBackendServersResponseBody create() { return builder().build(); } /** * @return backendServers */ public BackendServers getBackendServers() { return this.backendServers; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return vServerGroupId */ public String getVServerGroupId() { return this.vServerGroupId; } public static final class Builder { private BackendServers backendServers; private String requestId; private String vServerGroupId; /** * <p>The backend servers.</p> */ public Builder backendServers(BackendServers backendServers) { this.backendServers = backendServers; 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 ID of the vServer group.</p> * * <strong>example:</strong> * <p>rsp-cige6j****</p> */ public Builder vServerGroupId(String vServerGroupId) { this.vServerGroupId = vServerGroupId; return this; } public RemoveVServerGroupBackendServersResponseBody build() { return new RemoveVServerGroupBackendServersResponseBody(this); } } /** * * {@link RemoveVServerGroupBackendServersResponseBody} extends {@link TeaModel} * * <p>RemoveVServerGroupBackendServersResponseBody</p> */ public static class BackendServer extends TeaModel { @com.aliyun.core.annotation.NameInMap("Port") private Integer port; @com.aliyun.core.annotation.NameInMap("ServerId") private String serverId; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("Weight") private Integer weight; private BackendServer(Builder builder) { this.port = builder.port; this.serverId = builder.serverId; this.type = builder.type; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static BackendServer create() { return builder().build(); } /** * @return port */ public Integer getPort() { return this.port; } /** * @return serverId */ public String getServerId() { return this.serverId; } /** * @return type */ public String getType() { return this.type; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder { private Integer port; private String serverId; private String type; private Integer weight; /** * <p>The port that is used by the backend server.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder port(Integer port) { this.port = port; return this; } /** * <p>The ID of the backend server.</p> * * <strong>example:</strong> * <p>vm-230</p> */ public Builder serverId(String serverId) { this.serverId = serverId; return this; } /** * <p>The type of the backend server. Valid values:</p> * <ul> * <li><strong>ecs</strong> (default): 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 RemoveVServerGroupBackendServersResponseBody} extends {@link TeaModel} * * <p>RemoveVServerGroupBackendServersResponseBody</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/SetAccessControlListAttributeRequest.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 SetAccessControlListAttributeRequest} extends {@link RequestModel} * * <p>SetAccessControlListAttributeRequest</p> */ public class SetAccessControlListAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclId") @com.aliyun.core.annotation.Validation(required = true) private String aclId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclName") @com.aliyun.core.annotation.Validation(required = true) private String aclName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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 SetAccessControlListAttributeRequest(Builder builder) { super(builder); this.aclId = builder.aclId; this.aclName = builder.aclName; 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 SetAccessControlListAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclId */ public String getAclId() { return this.aclId; } /** * @return aclName */ public String getAclName() { return this.aclName; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return 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<SetAccessControlListAttributeRequest, Builder> { private String aclId; private String aclName; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(SetAccessControlListAttributeRequest request) { super(request); this.aclId = request.aclId; this.aclName = request.aclName; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The ACL ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>acl-bp1l0kk4gxce43k******</p> */ public Builder aclId(String aclId) { this.putQueryParameter("AclId", aclId); this.aclId = aclId; return this; } /** * <p>The ACL name.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>test1</p> */ public Builder aclName(String aclName) { this.putQueryParameter("AclName", aclName); this.aclName = aclName; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The 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; } /** * 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 SetAccessControlListAttributeRequest build() { return new SetAccessControlListAttributeRequest(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/SetAccessControlListAttributeResponse.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 SetAccessControlListAttributeResponse} extends {@link TeaModel} * * <p>SetAccessControlListAttributeResponse</p> */ public class SetAccessControlListAttributeResponse 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 SetAccessControlListAttributeResponseBody body; private SetAccessControlListAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetAccessControlListAttributeResponse 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 SetAccessControlListAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetAccessControlListAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetAccessControlListAttributeResponseBody body); @Override SetAccessControlListAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetAccessControlListAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetAccessControlListAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetAccessControlListAttributeResponse 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(SetAccessControlListAttributeResponseBody body) { this.body = body; return this; } @Override public SetAccessControlListAttributeResponse build() { return new SetAccessControlListAttributeResponse(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/SetAccessControlListAttributeResponseBody.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 SetAccessControlListAttributeResponseBody} extends {@link TeaModel} * * <p>SetAccessControlListAttributeResponseBody</p> */ public class SetAccessControlListAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetAccessControlListAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetAccessControlListAttributeResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>988CB45E-1643-48C0-87B4-928DDF77EA49</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetAccessControlListAttributeResponseBody build() { return new SetAccessControlListAttributeResponseBody(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/SetAccessLogsDownloadAttributeRequest.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 SetAccessLogsDownloadAttributeRequest} extends {@link RequestModel} * * <p>SetAccessLogsDownloadAttributeRequest</p> */ public class SetAccessLogsDownloadAttributeRequest 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("LogsDownloadAttributes") @com.aliyun.core.annotation.Validation(required = true) private String logsDownloadAttributes; @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 SetAccessLogsDownloadAttributeRequest(Builder builder) { super(builder); this.loadBalancerId = builder.loadBalancerId; this.logsDownloadAttributes = builder.logsDownloadAttributes; 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 SetAccessLogsDownloadAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return loadBalancerId */ public String getLoadBalancerId() { return this.loadBalancerId; } /** * @return logsDownloadAttributes */ public String getLogsDownloadAttributes() { return this.logsDownloadAttributes; } /** * @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<SetAccessLogsDownloadAttributeRequest, Builder> { private String loadBalancerId; private String logsDownloadAttributes; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String tags; private Builder() { super(); } private Builder(SetAccessLogsDownloadAttributeRequest request) { super(request); this.loadBalancerId = request.loadBalancerId; this.logsDownloadAttributes = request.logsDownloadAttributes; 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 ID of the CLB instance.</p> * * <strong>example:</strong> * <p>lb-bp1b6c719dfa08ex*****</p> */ public Builder loadBalancerId(String loadBalancerId) { this.putQueryParameter("LoadBalancerId", loadBalancerId); this.loadBalancerId = loadBalancerId; return this; } /** * <p>The access log forwarding rule. Parameters:</p> * <ul> * <li><strong>LogProject</strong>: the name of the project of Simple Log Service.</li> * <li><strong>LogStore</strong>: the name of the Logstore of Simple Log Service.</li> * <li><strong>LoadBalancerId</strong>: the ID of the CLB instance.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[{&quot;logProject&quot;:&quot;my-project&quot;, &quot;LogStore&quot;:&quot;my-log-store&quot;, &quot;LoadBalancerId&quot;:&quot;lb-uf68ps3rekbljmdb0****&quot;}]</p> */ public Builder logsDownloadAttributes(String logsDownloadAttributes) { this.putQueryParameter("LogsDownloadAttributes", logsDownloadAttributes); this.logsDownloadAttributes = logsDownloadAttributes; 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; } /** * 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>[{&quot;tagKey&quot;:&quot;Key1&quot;,&quot;tagValue&quot;:&quot;Value1&quot;}]</p> */ public Builder tags(String tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public SetAccessLogsDownloadAttributeRequest build() { return new SetAccessLogsDownloadAttributeRequest(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/SetAccessLogsDownloadAttributeResponse.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 SetAccessLogsDownloadAttributeResponse} extends {@link TeaModel} * * <p>SetAccessLogsDownloadAttributeResponse</p> */ public class SetAccessLogsDownloadAttributeResponse 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 SetAccessLogsDownloadAttributeResponseBody body; private SetAccessLogsDownloadAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetAccessLogsDownloadAttributeResponse 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 SetAccessLogsDownloadAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetAccessLogsDownloadAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetAccessLogsDownloadAttributeResponseBody body); @Override SetAccessLogsDownloadAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetAccessLogsDownloadAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetAccessLogsDownloadAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetAccessLogsDownloadAttributeResponse 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(SetAccessLogsDownloadAttributeResponseBody body) { this.body = body; return this; } @Override public SetAccessLogsDownloadAttributeResponse build() { return new SetAccessLogsDownloadAttributeResponse(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/SetAccessLogsDownloadAttributeResponseBody.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 SetAccessLogsDownloadAttributeResponseBody} extends {@link TeaModel} * * <p>SetAccessLogsDownloadAttributeResponseBody</p> */ public class SetAccessLogsDownloadAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetAccessLogsDownloadAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetAccessLogsDownloadAttributeResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>9DEC9C28-AB05-4DDF-9A78-6B08EC9C****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetAccessLogsDownloadAttributeResponseBody build() { return new SetAccessLogsDownloadAttributeResponseBody(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/SetBackendServersRequest.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 SetBackendServersRequest} extends {@link RequestModel} * * <p>SetBackendServersRequest</p> */ public class SetBackendServersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackendServers") private String backendServers; @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 SetBackendServersRequest(Builder builder) { super(builder); this.backendServers = builder.backendServers; 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 SetBackendServersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return backendServers */ public String getBackendServers() { return this.backendServers; } /** * @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<SetBackendServersRequest, Builder> { private String backendServers; private String loadBalancerId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(SetBackendServersRequest request) { super(request); this.backendServers = request.backendServers; 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 backend servers that you want to add. Configure the following parameters:</p> * <ul> * <li><p><strong>ServerId</strong>: Required. The ID of the backend server. Specify the value in a string. You can specify the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. If you set <strong>ServerId</strong> to the ID of an ENI or an elastic container instance, you must configure the <strong>Type</strong> parameter.</p> * </li> * <li><p><strong>Weight</strong>: the weight of the backend server. Valid values: <strong>0</strong> to <strong>100</strong>. Default value: <strong>100</strong>. If you set the weight of a backend server to 0, no requests are forwarded to the backend server.</p> * </li> * <li><p><strong>Description</strong>: Optional. The description of the backend server. Specify the value in a string. The description must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).</p> * </li> * <li><p><strong>Type</strong>: the type of the backend server. Valid values:</p> * <ul> * <li><strong>ecs</strong> (default): ECS instance</li> * <li><strong>eni</strong>: ENI</li> * <li><strong>eci</strong>: elastic container instance</li> * </ul> * </li> * </ul> * <blockquote> * <p> You can specify ENIs and elastic container instances as backend servers only for high-performance CLB instances.</p> * </blockquote> * <ul> * <li><strong>ServerIp</strong>: the IP address of the ENI or elastic container instance.</li> * <li><strong>Port</strong>: the backend port.</li> * </ul> * <p>Examples:</p> * <ul> * <li><p>ECS instance:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;i-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;ecs&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</code></p> * </li> * <li><p>ENI:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</code></p> * </li> * <li><p>ENI with multiple IP addresses:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; },{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>172.166.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; }]</code></p> * </li> * <li><p>Elastic container instance:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eci-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eci&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-114&quot; }]</code></p> * </li> * </ul> * <blockquote> * <p> You can add only running backend servers to a CLB instance. You can specify at most 20 backend servers in each call.</p> * </blockquote> * * <strong>example:</strong> * <p>[{ &quot;ServerId&quot;: &quot;ecs-******FmYAXG&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;ecs&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</p> */ public Builder backendServers(String backendServers) { this.putQueryParameter("BackendServers", backendServers); this.backendServers = backendServers; return this; } /** * <p>The ID of the CLB instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-bp1qjwo61pqz3a******</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> * * <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 SetBackendServersRequest build() { return new SetBackendServersRequest(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/SetBackendServersResponse.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 SetBackendServersResponse} extends {@link TeaModel} * * <p>SetBackendServersResponse</p> */ public class SetBackendServersResponse 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 SetBackendServersResponseBody body; private SetBackendServersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetBackendServersResponse 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 SetBackendServersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetBackendServersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetBackendServersResponseBody body); @Override SetBackendServersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetBackendServersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetBackendServersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetBackendServersResponse 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(SetBackendServersResponseBody body) { this.body = body; return this; } @Override public SetBackendServersResponse build() { return new SetBackendServersResponse(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/SetBackendServersResponseBody.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 SetBackendServersResponseBody} extends {@link TeaModel} * * <p>SetBackendServersResponseBody</p> */ public class SetBackendServersResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BackendServers") private BackendServers backendServers; @com.aliyun.core.annotation.NameInMap("LoadBalancerId") private String loadBalancerId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetBackendServersResponseBody(Builder builder) { this.backendServers = builder.backendServers; this.loadBalancerId = builder.loadBalancerId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetBackendServersResponseBody create() { return builder().build(); } /** * @return backendServers */ public BackendServers getBackendServers() { return this.backendServers; } /** * @return loadBalancerId */ public String getLoadBalancerId() { return this.loadBalancerId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private BackendServers backendServers; private String loadBalancerId; private String requestId; /** * <p>The backend servers.</p> */ public Builder backendServers(BackendServers backendServers) { this.backendServers = backendServers; return this; } /** * <p>The ID of the CLB instance.</p> * * <strong>example:</strong> * <p>lb-bp1qjwo61pqz3a******</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; } public SetBackendServersResponseBody build() { return new SetBackendServersResponseBody(this); } } /** * * {@link SetBackendServersResponseBody} extends {@link TeaModel} * * <p>SetBackendServersResponseBody</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("Type") private String type; @com.aliyun.core.annotation.NameInMap("Weight") private String weight; private BackendServer(Builder builder) { this.description = builder.description; this.serverId = builder.serverId; 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 type */ public String getType() { return this.type; } /** * @return weight */ public String getWeight() { return this.weight; } public static final class Builder { private String description; private String serverId; private String type; private String weight; /** * <p>The description of the backend server.</p> * * <strong>example:</strong> * <p>backend server</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The ID of the server group.</p> * * <strong>example:</strong> * <p>eni-hhshhs****</p> */ public Builder serverId(String serverId) { this.serverId = serverId; return this; } /** * <p>The type of backend server. Valid values:</p> * <ul> * <li><strong>ecs</strong> (default): ECS instance</li> * <li><strong>eni</strong>: ENI</li> * <li><strong>eci</strong>: elastic container instance</li> * </ul> * * <strong>example:</strong> * <p>eni</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(String weight) { this.weight = weight; return this; } public BackendServer build() { return new BackendServer(this); } } } /** * * {@link SetBackendServersResponseBody} extends {@link TeaModel} * * <p>SetBackendServersResponseBody</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/SetCACertificateNameRequest.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 SetCACertificateNameRequest} extends {@link RequestModel} * * <p>SetCACertificateNameRequest</p> */ public class SetCACertificateNameRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CACertificateId") @com.aliyun.core.annotation.Validation(required = true) private String CACertificateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CACertificateName") @com.aliyun.core.annotation.Validation(required = true) private String CACertificateName; @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 SetCACertificateNameRequest(Builder builder) { super(builder); this.CACertificateId = builder.CACertificateId; this.CACertificateName = builder.CACertificateName; 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 SetCACertificateNameRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return CACertificateId */ public String getCACertificateId() { return this.CACertificateId; } /** * @return CACertificateName */ public String getCACertificateName() { return this.CACertificateName; } /** * @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<SetCACertificateNameRequest, Builder> { private String CACertificateId; private String CACertificateName; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(SetCACertificateNameRequest request) { super(request); this.CACertificateId = request.CACertificateId; this.CACertificateName = request.CACertificateName; 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 CA certificate.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>139a0******-cn-east-hangzhou-01</p> */ public Builder CACertificateId(String CACertificateId) { this.putQueryParameter("CACertificateId", CACertificateId); this.CACertificateId = CACertificateId; return this; } /** * <p>The CA certificate name.</p> * <p>The name must be 1 to 80 character in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>mycacert02</p> */ public Builder CACertificateName(String CACertificateName) { this.putQueryParameter("CACertificateName", CACertificateName); this.CACertificateName = CACertificateName; 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 certificate.</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 SetCACertificateNameRequest build() { return new SetCACertificateNameRequest(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/SetCACertificateNameResponse.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 SetCACertificateNameResponse} extends {@link TeaModel} * * <p>SetCACertificateNameResponse</p> */ public class SetCACertificateNameResponse 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 SetCACertificateNameResponseBody body; private SetCACertificateNameResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetCACertificateNameResponse 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 SetCACertificateNameResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetCACertificateNameResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetCACertificateNameResponseBody body); @Override SetCACertificateNameResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetCACertificateNameResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetCACertificateNameResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetCACertificateNameResponse 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(SetCACertificateNameResponseBody body) { this.body = body; return this; } @Override public SetCACertificateNameResponse build() { return new SetCACertificateNameResponse(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/SetCACertificateNameResponseBody.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 SetCACertificateNameResponseBody} extends {@link TeaModel} * * <p>SetCACertificateNameResponseBody</p> */ public class SetCACertificateNameResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetCACertificateNameResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetCACertificateNameResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>CEF72CEB-54B6-4AE8-B225-F876FE7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetCACertificateNameResponseBody build() { return new SetCACertificateNameResponseBody(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/SetDomainExtensionAttributeRequest.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 SetDomainExtensionAttributeRequest} extends {@link RequestModel} * * <p>SetDomainExtensionAttributeRequest</p> */ public class SetDomainExtensionAttributeRequest 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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ServerCertificateId") private String serverCertificateId; private SetDomainExtensionAttributeRequest(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; this.serverCertificateId = builder.serverCertificateId; } public static Builder builder() { return new Builder(); } public static SetDomainExtensionAttributeRequest 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; } /** * @return serverCertificateId */ public String getServerCertificateId() { return this.serverCertificateId; } public static final class Builder extends Request.Builder<SetDomainExtensionAttributeRequest, Builder> { private String domainExtensionId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String serverCertificateId; private Builder() { super(); } private Builder(SetDomainExtensionAttributeRequest 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; this.serverCertificateId = request.serverCertificateId; } /** * <p>The ID of the domain name that is associated with the additional certificate to be replaced.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>de-bp1rp7ta*****</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 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 ID of the new certificate.</p> * * <strong>example:</strong> * <p>1231579xxxxxxxx_166f8204689_1714763408_709981xxx</p> */ public Builder serverCertificateId(String serverCertificateId) { this.putQueryParameter("ServerCertificateId", serverCertificateId); this.serverCertificateId = serverCertificateId; return this; } @Override public SetDomainExtensionAttributeRequest build() { return new SetDomainExtensionAttributeRequest(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/SetDomainExtensionAttributeResponse.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 SetDomainExtensionAttributeResponse} extends {@link TeaModel} * * <p>SetDomainExtensionAttributeResponse</p> */ public class SetDomainExtensionAttributeResponse 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 SetDomainExtensionAttributeResponseBody body; private SetDomainExtensionAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetDomainExtensionAttributeResponse 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 SetDomainExtensionAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetDomainExtensionAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetDomainExtensionAttributeResponseBody body); @Override SetDomainExtensionAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetDomainExtensionAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetDomainExtensionAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetDomainExtensionAttributeResponse 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(SetDomainExtensionAttributeResponseBody body) { this.body = body; return this; } @Override public SetDomainExtensionAttributeResponse build() { return new SetDomainExtensionAttributeResponse(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/SetDomainExtensionAttributeResponseBody.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 SetDomainExtensionAttributeResponseBody} extends {@link TeaModel} * * <p>SetDomainExtensionAttributeResponseBody</p> */ public class SetDomainExtensionAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetDomainExtensionAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetDomainExtensionAttributeResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>149A2470-F010-4437-BF68-343D5099C19D</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetDomainExtensionAttributeResponseBody build() { return new SetDomainExtensionAttributeResponseBody(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/SetListenerAccessControlStatusRequest.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 SetListenerAccessControlStatusRequest} extends {@link RequestModel} * * <p>SetListenerAccessControlStatusRequest</p> */ public class SetListenerAccessControlStatusRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccessControlStatus") @com.aliyun.core.annotation.Validation(required = true) private String accessControlStatus; @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("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 SetListenerAccessControlStatusRequest(Builder builder) { super(builder); this.accessControlStatus = builder.accessControlStatus; 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 SetListenerAccessControlStatusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accessControlStatus */ public String getAccessControlStatus() { return this.accessControlStatus; } /** * @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<SetListenerAccessControlStatusRequest, Builder> { private String accessControlStatus; 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(SetListenerAccessControlStatusRequest request) { super(request); this.accessControlStatus = request.accessControlStatus; 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>Specifies whether to enable the whitelist. Valid values:</p> * <ul> * <li><strong>open_white_list</strong>: enables the whitelist.</li> * <li><strong>close</strong>: disables the whitelist.</li> * </ul> * <blockquote> * <p> After the whitelist is enabled, if no IP address is added to the whitelist, the CLB instance does not distribute network traffic.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>open_white_list</p> */ public Builder accessControlStatus(String accessControlStatus) { this.putQueryParameter("AccessControlStatus", accessControlStatus); this.accessControlStatus = accessControlStatus; return this; } /** * <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 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 CLB instance.</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 call the <a href="https://help.aliyun.com/document_detail/27584.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 SetListenerAccessControlStatusRequest build() { return new SetListenerAccessControlStatusRequest(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/SetListenerAccessControlStatusResponse.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 SetListenerAccessControlStatusResponse} extends {@link TeaModel} * * <p>SetListenerAccessControlStatusResponse</p> */ public class SetListenerAccessControlStatusResponse 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 SetListenerAccessControlStatusResponseBody body; private SetListenerAccessControlStatusResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetListenerAccessControlStatusResponse 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 SetListenerAccessControlStatusResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetListenerAccessControlStatusResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetListenerAccessControlStatusResponseBody body); @Override SetListenerAccessControlStatusResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetListenerAccessControlStatusResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetListenerAccessControlStatusResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetListenerAccessControlStatusResponse 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(SetListenerAccessControlStatusResponseBody body) { this.body = body; return this; } @Override public SetListenerAccessControlStatusResponse build() { return new SetListenerAccessControlStatusResponse(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/SetListenerAccessControlStatusResponseBody.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 SetListenerAccessControlStatusResponseBody} extends {@link TeaModel} * * <p>SetListenerAccessControlStatusResponseBody</p> */ public class SetListenerAccessControlStatusResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetListenerAccessControlStatusResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetListenerAccessControlStatusResponseBody 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>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetListenerAccessControlStatusResponseBody build() { return new SetListenerAccessControlStatusResponseBody(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/SetLoadBalancerDeleteProtectionRequest.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 SetLoadBalancerDeleteProtectionRequest} extends {@link RequestModel} * * <p>SetLoadBalancerDeleteProtectionRequest</p> */ public class SetLoadBalancerDeleteProtectionRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DeleteProtection") @com.aliyun.core.annotation.Validation(required = true) private String deleteProtection; @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 SetLoadBalancerDeleteProtectionRequest(Builder builder) { super(builder); this.deleteProtection = builder.deleteProtection; 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 SetLoadBalancerDeleteProtectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return deleteProtection */ public String getDeleteProtection() { return this.deleteProtection; } /** * @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<SetLoadBalancerDeleteProtectionRequest, Builder> { private String deleteProtection; private String loadBalancerId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(SetLoadBalancerDeleteProtectionRequest request) { super(request); this.deleteProtection = request.deleteProtection; 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>Specify whether to enable or disable deletion protection for the SLB instance.</p> * <p>Valid values: <strong>on and off</strong>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>off</p> */ public Builder deleteProtection(String deleteProtection) { this.putQueryParameter("DeleteProtection", deleteProtection); this.deleteProtection = deleteProtection; return this; } /** * <p>The ID of the SLB instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-bp1b6c719dfa08e*****</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 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 region IDs.</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 SetLoadBalancerDeleteProtectionRequest build() { return new SetLoadBalancerDeleteProtectionRequest(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/SetLoadBalancerDeleteProtectionResponse.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 SetLoadBalancerDeleteProtectionResponse} extends {@link TeaModel} * * <p>SetLoadBalancerDeleteProtectionResponse</p> */ public class SetLoadBalancerDeleteProtectionResponse 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 SetLoadBalancerDeleteProtectionResponseBody body; private SetLoadBalancerDeleteProtectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetLoadBalancerDeleteProtectionResponse 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 SetLoadBalancerDeleteProtectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetLoadBalancerDeleteProtectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetLoadBalancerDeleteProtectionResponseBody body); @Override SetLoadBalancerDeleteProtectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetLoadBalancerDeleteProtectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetLoadBalancerDeleteProtectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetLoadBalancerDeleteProtectionResponse 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(SetLoadBalancerDeleteProtectionResponseBody body) { this.body = body; return this; } @Override public SetLoadBalancerDeleteProtectionResponse build() { return new SetLoadBalancerDeleteProtectionResponse(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/SetLoadBalancerDeleteProtectionResponseBody.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 SetLoadBalancerDeleteProtectionResponseBody} extends {@link TeaModel} * * <p>SetLoadBalancerDeleteProtectionResponseBody</p> */ public class SetLoadBalancerDeleteProtectionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetLoadBalancerDeleteProtectionResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetLoadBalancerDeleteProtectionResponseBody 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>791D8B68-AE0F-4174-AF54-088C8B3C5D54</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetLoadBalancerDeleteProtectionResponseBody build() { return new SetLoadBalancerDeleteProtectionResponseBody(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/SetLoadBalancerHTTPListenerAttributeRequest.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 SetLoadBalancerHTTPListenerAttributeRequest} extends {@link RequestModel} * * <p>SetLoadBalancerHTTPListenerAttributeRequest</p> */ public class SetLoadBalancerHTTPListenerAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclId") private String aclId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclStatus") private String aclStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclType") private String aclType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") @com.aliyun.core.annotation.Validation(maximum = 5120) private Integer bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Cookie") private String cookie; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CookieTimeout") @com.aliyun.core.annotation.Validation(maximum = 86400, minimum = 1) private Integer cookieTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Gzip") private String gzip; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheck") private String healthCheck; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort") @com.aliyun.core.annotation.Validation(maximum = 65535) private Integer healthCheckConnectPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckDomain") private String healthCheckDomain; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode") private String healthCheckHttpCode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckInterval") @com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1) private Integer healthCheckInterval; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckMethod") private String healthCheckMethod; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckTimeout") @com.aliyun.core.annotation.Validation(maximum = 300, minimum = 1) private Integer healthCheckTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckURI") private String healthCheckURI; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthyThreshold") @com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1) private Integer healthyThreshold; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IdleTimeout") @com.aliyun.core.annotation.Validation(maximum = 9999, minimum = 1) private Integer idleTimeout; @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("RequestTimeout") @com.aliyun.core.annotation.Validation(maximum = 9999, minimum = 1) private Integer requestTimeout; @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("Scheduler") private String scheduler; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StickySession") private String stickySession; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StickySessionType") private String stickySessionType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UnhealthyThreshold") @com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1) private Integer unhealthyThreshold; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VServerGroup") private String vServerGroup; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VServerGroupId") private String vServerGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor") private String xForwardedFor; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientSrcPort") private String xForwardedForClientSrcPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBID") private String xForwardedForSLBID; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBIP") private String xForwardedForSLBIP; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBPORT") private String xForwardedForSLBPORT; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor_proto") private String xForwardedForProto; private SetLoadBalancerHTTPListenerAttributeRequest(Builder builder) { super(builder); this.aclId = builder.aclId; this.aclStatus = builder.aclStatus; this.aclType = builder.aclType; this.bandwidth = builder.bandwidth; this.cookie = builder.cookie; this.cookieTimeout = builder.cookieTimeout; this.description = builder.description; 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.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.requestTimeout = builder.requestTimeout; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.scheduler = builder.scheduler; this.stickySession = builder.stickySession; this.stickySessionType = builder.stickySessionType; this.unhealthyThreshold = builder.unhealthyThreshold; this.vServerGroup = builder.vServerGroup; 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 SetLoadBalancerHTTPListenerAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclId */ public String getAclId() { return this.aclId; } /** * @return aclStatus */ public String getAclStatus() { return this.aclStatus; } /** * @return aclType */ public String getAclType() { return this.aclType; } /** * @return 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 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 ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestTimeout */ public Integer getRequestTimeout() { return this.requestTimeout; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @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 vServerGroup */ public String getVServerGroup() { return this.vServerGroup; } /** * @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 extends Request.Builder<SetLoadBalancerHTTPListenerAttributeRequest, Builder> { private String aclId; private String aclStatus; private String aclType; private Integer bandwidth; private String cookie; private Integer cookieTimeout; private String description; 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 ownerAccount; private Long ownerId; private String regionId; private Integer requestTimeout; private String resourceOwnerAccount; private Long resourceOwnerId; private String scheduler; private String stickySession; private String stickySessionType; private Integer unhealthyThreshold; private String vServerGroup; private String vServerGroupId; private String xForwardedFor; private String xForwardedForClientSrcPort; private String xForwardedForSLBID; private String xForwardedForSLBIP; private String xForwardedForSLBPORT; private String xForwardedForProto; private Builder() { super(); } private Builder(SetLoadBalancerHTTPListenerAttributeRequest request) { super(request); this.aclId = request.aclId; this.aclStatus = request.aclStatus; this.aclType = request.aclType; this.bandwidth = request.bandwidth; this.cookie = request.cookie; this.cookieTimeout = request.cookieTimeout; this.description = request.description; this.gzip = request.gzip; this.healthCheck = request.healthCheck; this.healthCheckConnectPort = request.healthCheckConnectPort; this.healthCheckDomain = request.healthCheckDomain; this.healthCheckHttpCode = request.healthCheckHttpCode; this.healthCheckInterval = request.healthCheckInterval; this.healthCheckMethod = request.healthCheckMethod; this.healthCheckTimeout = request.healthCheckTimeout; this.healthCheckURI = request.healthCheckURI; this.healthyThreshold = request.healthyThreshold; this.idleTimeout = request.idleTimeout; this.listenerPort = request.listenerPort; this.loadBalancerId = request.loadBalancerId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.requestTimeout = request.requestTimeout; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.scheduler = request.scheduler; this.stickySession = request.stickySession; this.stickySessionType = request.stickySessionType; this.unhealthyThreshold = request.unhealthyThreshold; this.vServerGroup = request.vServerGroup; this.vServerGroupId = request.vServerGroupId; this.xForwardedFor = request.xForwardedFor; this.xForwardedForClientSrcPort = request.xForwardedForClientSrcPort; this.xForwardedForSLBID = request.xForwardedForSLBID; this.xForwardedForSLBIP = request.xForwardedForSLBIP; this.xForwardedForSLBPORT = request.xForwardedForSLBPORT; this.xForwardedForProto = request.xForwardedForProto; } /** * <p>The ID of the access control list (ACL) that is associated with the listener.</p> * <blockquote> * <p>This parameter is required when <strong>AclStatus</strong> is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>123</p> */ public Builder aclId(String aclId) { this.putQueryParameter("AclId", aclId); this.aclId = aclId; return this; } /** * <p>Specifies whether to enable access control. Valid values:</p> * <ul> * <li><strong>on</strong></li> * <li><strong>off</strong></li> * </ul> * * <strong>example:</strong> * <p>off</p> */ public Builder aclStatus(String aclStatus) { this.putQueryParameter("AclStatus", aclStatus); this.aclStatus = aclStatus; return this; } /** * <p>The 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. Risks may occur if a whitelist is improperly 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 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 addresses are added to the blacklist, the listener forwards all requests.</p> * <blockquote> * <p>This parameter takes effect when the value of <strong>AclStatus</strong> is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>white</p> */ public Builder aclType(String aclType) { this.putQueryParameter("AclType", aclType); this.aclType = aclType; return this; } /** * <p>The maximum bandwidth of the listener. Unit: Mbit/s. Set the value to</p> * <ul> * <li><strong>-1</strong>: For a pay-by-data-transfer Internet-facing CLB instance, this value specifies that the bandwidth of the listener is unlimited.</li> * </ul> * * <strong>example:</strong> * <p>-1</p> */ public Builder bandwidth(Integer bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The cookie that is configured on the server.</p> * <p>The cookie must be 1 to 200 characters in length, and can contain ASCII characters and digits. It cannot contain commas (,), semicolons (;), or spaces. It cannot start with a dollar sign ($).</p> * <blockquote> * <p>This parameter is required when <strong>StickySession</strong> is set to <strong>on</strong> and <strong>StickySessionType</strong> is set to <strong>server</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>B490B5EBF6F3CD402E515D22BCDA****</p> */ public Builder cookie(String cookie) { this.putQueryParameter("Cookie", cookie); this.cookie = cookie; return this; } /** * <p>The timeout period of a cookie.</p> * <p>Valid values: <strong>1</strong> to <strong>86400</strong>. Unit: seconds.</p> * <blockquote> * <p>This parameter is required when <strong>StickySession</strong> is set to <strong>on</strong> and <strong>StickySessionType</strong> is set to <strong>insert</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>500</p> */ public Builder cookieTimeout(Integer cookieTimeout) { this.putQueryParameter("CookieTimeout", cookieTimeout); this.cookieTimeout = cookieTimeout; return this; } /** * <p>The description of the listener.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>Specifies whether to enable <code>GZIP</code> compression 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.putQueryParameter("Gzip", gzip); this.gzip = gzip; return this; } /** * <p>Specifies whether to enable the health check feature. 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.putQueryParameter("HealthCheck", healthCheck); this.healthCheck = healthCheck; return this; } /** * <p>The port that is used for health checks.</p> * <p>Valid values: <strong>1</strong> to <strong>65535</strong>.</p> * <blockquote> * <p>This parameter takes effect only if you set <strong>HealthCheck</strong> to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>8080</p> */ public Builder healthCheckConnectPort(Integer healthCheckConnectPort) { this.putQueryParameter("HealthCheckConnectPort", 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 a backend server. If you specify **$_ip <strong>or</strong> ignore HealthCheckDomain**, CLB uses the private IP addresses of backend servers as the health check domain names.</li> * <li><strong>domain</strong>: The domain name must be 1 to 80 characters in length, and can contain letters, digits, periods (.), and hyphens (-).</li> * </ul> * <blockquote> * <p>The parameter takes effect only if you set <strong>HealthCheck</strong> to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>172.XX.XX.16</p> */ public Builder healthCheckDomain(String healthCheckDomain) { this.putQueryParameter("HealthCheckDomain", healthCheckDomain); this.healthCheckDomain = healthCheckDomain; return this; } /** * <p>The HTTP status code for a successful health check. Separate multiple HTTP status codes with commas (,).</p> * <p>Valid values: <strong>http_2xx</strong>, <strong>http_3xx</strong>, <strong>http_4xx</strong>, and <strong>http_5xx</strong>.</p> * <blockquote> * <p> The parameter takes effect only if you set <strong>HealthCheck</strong> to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>http_2xx,http_3xx</p> */ public Builder healthCheckHttpCode(String healthCheckHttpCode) { this.putQueryParameter("HealthCheckHttpCode", healthCheckHttpCode); this.healthCheckHttpCode = healthCheckHttpCode; return this; } /** * <p>The interval at which health checks are performed.</p> * <p>Valid values: <strong>1</strong> to <strong>50</strong>. Unit: seconds.</p> * <blockquote> * <p> The parameter takes effect only if you set <strong>HealthCheck</strong> to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>5</p> */ public Builder healthCheckInterval(Integer healthCheckInterval) { this.putQueryParameter("HealthCheckInterval", healthCheckInterval); this.healthCheckInterval = healthCheckInterval; return this; } /** * <p>The health check method that is used in HTTP health checks. Valid values: <strong>head</strong> and <strong>get</strong>.</p> * <blockquote> * <p>The parameter takes effect only if you set <strong>HealthCheck</strong> to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>get</p> */ public Builder healthCheckMethod(String healthCheckMethod) { this.putQueryParameter("HealthCheckMethod", healthCheckMethod); this.healthCheckMethod = healthCheckMethod; 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. This parameter takes effect only if the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p> * <p>Valid values: <strong>1</strong> to <strong>300</strong>. Unit: seconds.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder healthCheckTimeout(Integer healthCheckTimeout) { this.putQueryParameter("HealthCheckTimeout", healthCheckTimeout); this.healthCheckTimeout = healthCheckTimeout; return this; } /** * <p>The Uniform Resource Identifier (URI) that you want to use for health checks.</p> * <p>The URI must be 1 to 80 characters in length, and can contain letters, digits, and the following characters: - / . % ? # &amp; The URI must start with a forward slash (/) but cannot be a single forward slash (/).</p> * <blockquote> * <p>The parameter takes effect only if you set <strong>HealthCheck</strong> to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>/test/index.html</p> */ public Builder healthCheckURI(String healthCheckURI) { this.putQueryParameter("HealthCheckURI", 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 status is changed from <strong>fail</strong> to <strong>success</strong>.</p> * <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p> * <blockquote> * <p>The parameter takes effect only if you set <strong>HealthCheck</strong> to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>4</p> */ public Builder healthyThreshold(Integer healthyThreshold) { this.putQueryParameter("HealthyThreshold", healthyThreshold); this.healthyThreshold = healthyThreshold; return this; } /** * <p>The timeout period of an idle connection. Unit: seconds. Valid values: <strong>1 to 60</strong>. Default value: <strong>15</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>12</p> */ public Builder idleTimeout(Integer idleTimeout) { this.putQueryParameter("IdleTimeout", idleTimeout); this.idleTimeout = idleTimeout; return this; } /** * <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-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 CLB instance.</p> * <p>You can query the region ID from the <a href="https://help.aliyun.com/document_detail/27585.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; } /** * <p>The timeout period of a request. Unit: seconds. Valid values: <strong>1 to 180</strong>. Default value: <strong>60</strong>.</p> * <p>If no response is received from the backend server within the request timeout period, CLB returns an HTTP 504 error code to the client.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder requestTimeout(Integer requestTimeout) { this.putQueryParameter("RequestTimeout", requestTimeout); this.requestTimeout = requestTimeout; 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 scheduling 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><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.putQueryParameter("Scheduler", scheduler); this.scheduler = scheduler; return this; } /** * <p>Specifies whether to enable session persistence. 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.putQueryParameter("StickySession", 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.</li> * </ul> * <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 contains this cookie, and the listener distributes the request to the recorded backend server.</p> * <ul> * <li><strong>server</strong>: rewrites a cookie.</li> * </ul> * <p>When CLB detects a user-defined cookie, CLB overwrites the original cookie with the user-defined cookie. The next request from the client carries the user-defined cookie, and the listener forwards the request to the recorded backend server.</p> * <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.putQueryParameter("StickySessionType", 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 status is changed from <strong>success</strong> to <strong>fail</strong>.</p> * <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p> * <blockquote> * <p>The parameter takes effect only if you set <strong>HealthCheck</strong> to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>4</p> */ public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.putQueryParameter("UnhealthyThreshold", unhealthyThreshold); this.unhealthyThreshold = unhealthyThreshold; return this; } /** * <p>Specifies whether to use a vServer group. Valid values:</p> * <ul> * <li><strong>on</strong></li> * <li><strong>off</strong></li> * </ul> * * <strong>example:</strong> * <p>on</p> */ public Builder vServerGroup(String vServerGroup) { this.putQueryParameter("VServerGroup", vServerGroup); this.vServerGroup = vServerGroup; return this; } /** * <p>The ID of the vServer group.</p> * * <strong>example:</strong> * <p>rsp-cige6j*****</p> */ public Builder vServerGroupId(String vServerGroupId) { this.putQueryParameter("VServerGroupId", vServerGroupId); this.vServerGroupId = vServerGroupId; return this; } /** * <p>Specifies whether to use the <code>X-Forwarded-For</code> header to preserve client IP addresses. Valid values:</p> * <ul> * <li><strong>on</strong> (default)</li> * <li><strong>off</strong></li> * </ul> * * <strong>example:</strong> * <p>on</p> */ public Builder xForwardedFor(String xForwardedFor) { this.putQueryParameter("XForwardedFor", xForwardedFor); this.xForwardedFor = xForwardedFor; return this; } /** * <p>Specifies whether to use the <code>XForwardedFor_ClientSrcPort</code> header 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.putQueryParameter("XForwardedFor_ClientSrcPort", xForwardedForClientSrcPort); this.xForwardedForClientSrcPort = xForwardedForClientSrcPort; return this; } /** * <p>Specifies whether to use the <code>SLB-ID</code> header 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.putQueryParameter("XForwardedFor_SLBID", xForwardedForSLBID); this.xForwardedForSLBID = xForwardedForSLBID; return this; } /** * <p>Specifies whether to use the <code>SLB-IP</code> header to retrieve the virtual IP address (VIP) 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.putQueryParameter("XForwardedFor_SLBIP", xForwardedForSLBIP); this.xForwardedForSLBIP = xForwardedForSLBIP; return this; } /** * <p>Specifies whether to use the <code>XForwardedFor_SLBPORT</code> header 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.putQueryParameter("XForwardedFor_SLBPORT", xForwardedForSLBPORT); this.xForwardedForSLBPORT = xForwardedForSLBPORT; return this; } /** * <p>Specifies whether to use the <code>X-Forwarded-Proto</code> header 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.putQueryParameter("XForwardedFor_proto", xForwardedForProto); this.xForwardedForProto = xForwardedForProto; return this; } @Override public SetLoadBalancerHTTPListenerAttributeRequest build() { return new SetLoadBalancerHTTPListenerAttributeRequest(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/SetLoadBalancerHTTPListenerAttributeResponse.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 SetLoadBalancerHTTPListenerAttributeResponse} extends {@link TeaModel} * * <p>SetLoadBalancerHTTPListenerAttributeResponse</p> */ public class SetLoadBalancerHTTPListenerAttributeResponse 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 SetLoadBalancerHTTPListenerAttributeResponseBody body; private SetLoadBalancerHTTPListenerAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetLoadBalancerHTTPListenerAttributeResponse 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 SetLoadBalancerHTTPListenerAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetLoadBalancerHTTPListenerAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetLoadBalancerHTTPListenerAttributeResponseBody body); @Override SetLoadBalancerHTTPListenerAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetLoadBalancerHTTPListenerAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetLoadBalancerHTTPListenerAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetLoadBalancerHTTPListenerAttributeResponse 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(SetLoadBalancerHTTPListenerAttributeResponseBody body) { this.body = body; return this; } @Override public SetLoadBalancerHTTPListenerAttributeResponse build() { return new SetLoadBalancerHTTPListenerAttributeResponse(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/SetLoadBalancerHTTPListenerAttributeResponseBody.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 SetLoadBalancerHTTPListenerAttributeResponseBody} extends {@link TeaModel} * * <p>SetLoadBalancerHTTPListenerAttributeResponseBody</p> */ public class SetLoadBalancerHTTPListenerAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetLoadBalancerHTTPListenerAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetLoadBalancerHTTPListenerAttributeResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetLoadBalancerHTTPListenerAttributeResponseBody build() { return new SetLoadBalancerHTTPListenerAttributeResponseBody(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/SetLoadBalancerHTTPSListenerAttributeRequest.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 SetLoadBalancerHTTPSListenerAttributeRequest} extends {@link RequestModel} * * <p>SetLoadBalancerHTTPSListenerAttributeRequest</p> */ public class SetLoadBalancerHTTPSListenerAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclId") private String aclId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclStatus") private String aclStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclType") private String aclType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") @com.aliyun.core.annotation.Validation(maximum = 5120) private Integer bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CACertificateId") private String CACertificateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Cookie") private String cookie; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CookieTimeout") @com.aliyun.core.annotation.Validation(maximum = 86400, minimum = 1) private Integer cookieTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableHttp2") private String enableHttp2; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Gzip") private String gzip; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheck") private String healthCheck; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort") @com.aliyun.core.annotation.Validation(maximum = 65535) private Integer healthCheckConnectPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckDomain") private String healthCheckDomain; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode") private String healthCheckHttpCode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckInterval") @com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1) private Integer healthCheckInterval; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckMethod") private String healthCheckMethod; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckTimeout") @com.aliyun.core.annotation.Validation(maximum = 300, minimum = 1) private Integer healthCheckTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckURI") private String healthCheckURI; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthyThreshold") @com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1) private Integer healthyThreshold; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IdleTimeout") @com.aliyun.core.annotation.Validation(maximum = 9999, minimum = 1) private Integer idleTimeout; @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("RequestTimeout") @com.aliyun.core.annotation.Validation(maximum = 9999, minimum = 1) private Integer requestTimeout; @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("Scheduler") private String scheduler; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ServerCertificateId") private String serverCertificateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StickySession") private String stickySession; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StickySessionType") private String stickySessionType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TLSCipherPolicy") private String TLSCipherPolicy; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UnhealthyThreshold") @com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1) private Integer unhealthyThreshold; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VServerGroup") private String vServerGroup; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VServerGroupId") private String vServerGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor") private String xForwardedFor; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor_ClientSrcPort") private String xForwardedForClientSrcPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBID") private String xForwardedForSLBID; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBIP") private String xForwardedForSLBIP; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor_SLBPORT") private String xForwardedForSLBPORT; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("XForwardedFor_proto") private String xForwardedForProto; private SetLoadBalancerHTTPSListenerAttributeRequest(Builder builder) { super(builder); this.aclId = builder.aclId; this.aclStatus = builder.aclStatus; this.aclType = builder.aclType; this.bandwidth = builder.bandwidth; this.CACertificateId = builder.CACertificateId; this.cookie = builder.cookie; this.cookieTimeout = builder.cookieTimeout; this.description = builder.description; 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.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.requestTimeout = builder.requestTimeout; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.scheduler = builder.scheduler; this.serverCertificateId = builder.serverCertificateId; this.stickySession = builder.stickySession; this.stickySessionType = builder.stickySessionType; this.TLSCipherPolicy = builder.TLSCipherPolicy; this.unhealthyThreshold = builder.unhealthyThreshold; this.vServerGroup = builder.vServerGroup; 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 SetLoadBalancerHTTPSListenerAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclId */ public String getAclId() { return this.aclId; } /** * @return aclStatus */ public String getAclStatus() { return this.aclStatus; } /** * @return aclType */ public String getAclType() { return this.aclType; } /** * @return 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 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 ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestTimeout */ public Integer getRequestTimeout() { return this.requestTimeout; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return scheduler */ public String getScheduler() { return this.scheduler; } /** * @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 vServerGroup */ public String getVServerGroup() { return this.vServerGroup; } /** * @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 extends Request.Builder<SetLoadBalancerHTTPSListenerAttributeRequest, Builder> { private String aclId; private String aclStatus; private String aclType; private Integer bandwidth; private String CACertificateId; private String cookie; private Integer cookieTimeout; private String description; 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 ownerAccount; private Long ownerId; private String regionId; private Integer requestTimeout; private String resourceOwnerAccount; private Long resourceOwnerId; private String scheduler; private String serverCertificateId; private String stickySession; private String stickySessionType; private String TLSCipherPolicy; private Integer unhealthyThreshold; private String vServerGroup; private String vServerGroupId; private String xForwardedFor; private String xForwardedForClientSrcPort; private String xForwardedForSLBID; private String xForwardedForSLBIP; private String xForwardedForSLBPORT; private String xForwardedForProto; private Builder() { super(); } private Builder(SetLoadBalancerHTTPSListenerAttributeRequest request) { super(request); this.aclId = request.aclId; this.aclStatus = request.aclStatus; this.aclType = request.aclType; this.bandwidth = request.bandwidth; this.CACertificateId = request.CACertificateId; this.cookie = request.cookie; this.cookieTimeout = request.cookieTimeout; this.description = request.description; this.enableHttp2 = request.enableHttp2; this.gzip = request.gzip; this.healthCheck = request.healthCheck; this.healthCheckConnectPort = request.healthCheckConnectPort; this.healthCheckDomain = request.healthCheckDomain; this.healthCheckHttpCode = request.healthCheckHttpCode; this.healthCheckInterval = request.healthCheckInterval; this.healthCheckMethod = request.healthCheckMethod; this.healthCheckTimeout = request.healthCheckTimeout; this.healthCheckURI = request.healthCheckURI; this.healthyThreshold = request.healthyThreshold; this.idleTimeout = request.idleTimeout; this.listenerPort = request.listenerPort; this.loadBalancerId = request.loadBalancerId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.requestTimeout = request.requestTimeout; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.scheduler = request.scheduler; this.serverCertificateId = request.serverCertificateId; this.stickySession = request.stickySession; this.stickySessionType = request.stickySessionType; this.TLSCipherPolicy = request.TLSCipherPolicy; this.unhealthyThreshold = request.unhealthyThreshold; this.vServerGroup = request.vServerGroup; this.vServerGroupId = request.vServerGroupId; this.xForwardedFor = request.xForwardedFor; this.xForwardedForClientSrcPort = request.xForwardedForClientSrcPort; this.xForwardedForSLBID = request.xForwardedForSLBID; this.xForwardedForSLBIP = request.xForwardedForSLBIP; this.xForwardedForSLBPORT = request.xForwardedForSLBPORT; this.xForwardedForProto = request.xForwardedForProto; } /** * <p>The ID of the network access control list (ACL) that is associated with the listener.</p> * <p>This parameter is required if <strong>AclStatus</strong> is set to <strong>on</strong>.</p> * * <strong>example:</strong> * <p>nacl-a2do9e413e0spzasx****</p> */ public Builder aclId(String aclId) { this.putQueryParameter("AclId", aclId); this.aclId = aclId; return this; } /** * <p>Specifies whether to enable access control. Valid values:</p> * <ul> * <li><strong>on</strong>: enables access control</li> * <li><strong>off</strong>: disables access control</li> * </ul> * * <strong>example:</strong> * <p>off</p> */ public Builder aclStatus(String aclStatus) { this.putQueryParameter("AclStatus", aclStatus); this.aclStatus = aclStatus; return this; } /** * <p>The type of network 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 where you want to allow only specific IP addresses to access an application. Your business may be adversely affected if the whitelist is not set properly. After a whitelist is configured, only IP addresses in the whitelist can access the CLB listener.</p> * <p>If no IP address is added to the whitelist, the CLB 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 denied. Blacklists apply to scenarios where you want to deny access from specified IP addresses to an application.</p> * <p>If no IP address is added to the blacklist, the listener forwards all requests.</p> * </li> * </ul> * <blockquote> * <p> This parameter takes effect only when <strong>AclStatus</strong> is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>white</p> */ public Builder aclType(String aclType) { this.putQueryParameter("AclType", aclType); this.aclType = aclType; return this; } /** * <p>The maximum bandwidth of the listener. Unit: Mbit/s.</p> * <p>Valid values:</p> * <ul> * <li><strong>-1</strong>: If you set the value to -1, the bandwidth of the listener is unlimited.</li> * </ul> * * <strong>example:</strong> * <p>-1</p> */ public Builder bandwidth(Integer bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The ID of the CA certificate.</p> * <ul> * <li>If both the CA certificate and the server certificate are uploaded, mutual authentication is used.</li> * <li>If you upload only the server certificate, one-way authentication is used.</li> * </ul> * * <strong>example:</strong> * <p>139a00604ad-cn-east-****</p> */ public Builder CACertificateId(String CACertificateId) { this.putQueryParameter("CACertificateId", CACertificateId); this.CACertificateId = CACertificateId; return this; } /** * <p>The cookie that you want to configure for the server.</p> * <p>The cookie must be 1 to 200 characters in length, and can contain only ASCII letters and digits. It cannot contain commas (,), semicolons (;), or space characters. It cannot start with a dollar sign ($).</p> * <blockquote> * <p> This parameter is required when you set the <strong>StickySession</strong> parameter to <strong>on</strong> and the <strong>StickySessionType</strong> parameter to <strong>server</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>B490B5EBF6F3CD4****</p> */ public Builder cookie(String cookie) { this.putQueryParameter("Cookie", cookie); this.cookie = cookie; return this; } /** * <p>The timeout period of the cookie. Unit: seconds.</p> * <p>Valid values: <strong>1</strong> to <strong>86400</strong>.</p> * <blockquote> * <p> This parameter is required if the <strong>StickySession</strong> parameter is set to <strong>on</strong> and the <strong>StickySessionType</strong> parameter is set to <strong>insert</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>500</p> */ public Builder cookieTimeout(Integer cookieTimeout) { this.putQueryParameter("CookieTimeout", cookieTimeout); this.cookieTimeout = cookieTimeout; return this; } /** * <p>The description of the listener. * The name must be 1 to 256 characters in length and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).</p> * * <strong>example:</strong> * <p>Listener1</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>Specifies whether to use <code>HTTP 2.0</code>. 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 enableHttp2(String enableHttp2) { this.putQueryParameter("EnableHttp2", enableHttp2); this.enableHttp2 = enableHttp2; return this; } /** * <p>Specifies whether to enable <code>Gzip</code> compression to compress specific types of files. 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 gzip(String gzip) { this.putQueryParameter("Gzip", gzip); this.gzip = gzip; return this; } /** * <p>Specifies whether to enable health checks. 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.putQueryParameter("HealthCheck", healthCheck); this.healthCheck = healthCheck; return this; } /** * <p>The port that is used for health checks.</p> * <p>Valid values: <strong>1</strong> to <strong>65535</strong>.</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.putQueryParameter("HealthCheckConnectPort", 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 a backend server. If you do not set this parameter or set the parameter to $_ip, the CLB instance uses the private IP address of each backend server as the domain name for health checks.</li> * <li><strong>domain</strong>: The domain name must be 1 to 80 characters in length, and can contain letters, digits, periods (.),and hyphens (-).</li> * </ul> * <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>172.XX.XX.16</p> */ public Builder healthCheckDomain(String healthCheckDomain) { this.putQueryParameter("HealthCheckDomain", healthCheckDomain); this.healthCheckDomain = healthCheckDomain; return this; } /** * <p>The HTTP status code of a successful health check. Separate multiple HTTP status codes with commas (,).</p> * <p>Valid values: <strong>http_2xx</strong>, <strong>http_3xx</strong>, <strong>http_4xx</strong>, and <strong>http_5xx</strong>.</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>http_2xx,http_3xx</p> */ public Builder healthCheckHttpCode(String healthCheckHttpCode) { this.putQueryParameter("HealthCheckHttpCode", healthCheckHttpCode); this.healthCheckHttpCode = healthCheckHttpCode; return this; } /** * <p>The interval between two consecutive health checks. Unit: seconds.</p> * <p>Valid values: <strong>1</strong> to <strong>50</strong>.</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>5</p> */ public Builder healthCheckInterval(Integer healthCheckInterval) { this.putQueryParameter("HealthCheckInterval", healthCheckInterval); this.healthCheckInterval = healthCheckInterval; return this; } /** * <p>The HTTP method that is used for health checks. Valid values: <strong>head</strong> and <strong>get</strong>.</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>get</p> */ public Builder healthCheckMethod(String healthCheckMethod) { this.putQueryParameter("HealthCheckMethod", healthCheckMethod); this.healthCheckMethod = healthCheckMethod; 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 Valid values: <strong>1</strong> to <strong>300</strong>.</p> * <blockquote> * <p> This parameter takes effect only if the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>3</p> */ public Builder healthCheckTimeout(Integer healthCheckTimeout) { this.putQueryParameter("HealthCheckTimeout", healthCheckTimeout); this.healthCheckTimeout = healthCheckTimeout; return this; } /** * <p>The URL that is used for health checks.</p> * <p>The URL must be 1 to 80 characters in length and can contain letters, digits, and the following characters: - / . % ? # &amp;. The URL must not be a single forward slash (/) but it must start with a forward slash (/).</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>/test/index.html</p> */ public Builder healthCheckURI(String healthCheckURI) { this.putQueryParameter("HealthCheckURI", healthCheckURI); this.healthCheckURI = healthCheckURI; return this; } /** * <p>The number of health checks that an unhealthy backend server must consecutively pass before it can be declared healthy (from <strong>fail</strong> to <strong>success</strong>).</p> * <p>Valid values: <strong>2</strong> to <strong>10</strong>.</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>4</p> */ public Builder healthyThreshold(Integer healthyThreshold) { this.putQueryParameter("HealthyThreshold", healthyThreshold); this.healthyThreshold = healthyThreshold; return this; } /** * <p>The timeout period of an idle connection. Unit: seconds. Valid values: <strong>1 to 60</strong>. Default value: <strong>15</strong>.</p> * <p>If no request is received within the specified timeout period, CLB closes the connection. When another request is received, CLB establishes a new connection.</p> * * <strong>example:</strong> * <p>23</p> */ public Builder idleTimeout(Integer idleTimeout) { this.putQueryParameter("IdleTimeout", idleTimeout); this.idleTimeout = idleTimeout; return this; } /** * <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 ID of the CLB instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-sjhfdji****</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>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; } /** * <p>The timeout period of a request. Unit: seconds. Valid values: <strong>1 to 180</strong>. Default value: <strong>60</strong>.</p> * <p>If no response is received from the backend server during the request timeout period, CLB sends an HTTP 504 error code to the client.</p> * * <strong>example:</strong> * <p>223</p> */ public Builder requestTimeout(Integer requestTimeout) { this.putQueryParameter("RequestTimeout", requestTimeout); this.requestTimeout = requestTimeout; 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 scheduling 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><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.putQueryParameter("Scheduler", scheduler); this.scheduler = scheduler; return this; } /** * <p>The ID of the server certificate.</p> * * <strong>example:</strong> * <p>idkp-123-cn-te****</p> */ public Builder serverCertificateId(String serverCertificateId) { this.putQueryParameter("ServerCertificateId", serverCertificateId); this.serverCertificateId = serverCertificateId; return this; } /** * <p>Specifies whether to enable session persistence. 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 stickySession(String stickySession) { this.putQueryParameter("StickySession", stickySession); this.stickySession = stickySession; return this; } /** * <p>The method that is used to handle a cookie. Valid values:</p> * <ul> * <li><p><strong>insert</strong>: inserts a cookie.</p> * <p>CLB inserts a cookie (SERVERID) into the first HTTP or HTTPS response 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 will contain the user-defined cookie, and the listener will distribute this request to the recorded backend server.</p> * </li> * </ul> * <blockquote> * <p> This parameter is required if the <strong>StickySession</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>insert</p> */ public Builder stickySessionType(String stickySessionType) { this.putQueryParameter("StickySessionType", stickySessionType); this.stickySessionType = stickySessionType; return this; } /** * <p>The Transport Layer Security (TLS) security policy. Each security policy contains TLS protocol versions and cipher suites available for HTTPS.</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_2</p> */ public Builder TLSCipherPolicy(String TLSCipherPolicy) { this.putQueryParameter("TLSCipherPolicy", TLSCipherPolicy); this.TLSCipherPolicy = TLSCipherPolicy; return this; } /** * <p>The number of health checks that a healthy backend server must consecutively fail before it can be declared unhealthy (from <strong>success</strong> to <strong>fail</strong>).</p> * <p>Valid values: <strong>2</strong> to <strong>10</strong>.</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>4</p> */ public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.putQueryParameter("UnhealthyThreshold", unhealthyThreshold); this.unhealthyThreshold = unhealthyThreshold; return this; } /** * <p>Specifies whether to use a vServer group. 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 vServerGroup(String vServerGroup) { this.putQueryParameter("VServerGroup", vServerGroup); this.vServerGroup = vServerGroup; return this; } /** * <p>The ID of the vServer group.</p> * * <strong>example:</strong> * <p>rsp-cige6j****</p> */ public Builder vServerGroupId(String vServerGroupId) { this.putQueryParameter("VServerGroupId", vServerGroupId); this.vServerGroupId = vServerGroupId; return this; } /** * <p>Specifies whether to use the <code>X-Forwarded-For</code> header to retrieve client IP addresses. 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 xForwardedFor(String xForwardedFor) { this.putQueryParameter("XForwardedFor", xForwardedFor); this.xForwardedFor = xForwardedFor; return this; } /** * <p>Specifies whether to use the <code>XForwardedFor_ClientSrcPort</code> header 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.putQueryParameter("XForwardedFor_ClientSrcPort", xForwardedForClientSrcPort); this.xForwardedForClientSrcPort = xForwardedForClientSrcPort; return this; } /** * <p>Specifies whether to use the <code>SLB-ID</code> header to retrieve the ID of the CLB instance. 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 xForwardedForSLBID(String xForwardedForSLBID) { this.putQueryParameter("XForwardedFor_SLBID", xForwardedForSLBID); this.xForwardedForSLBID = xForwardedForSLBID; return this; } /** * <p>Specifies whether to use the <code>SLB-IP</code> header to obtain the virtual IP address (VIP) requested by the client. 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 xForwardedForSLBIP(String xForwardedForSLBIP) { this.putQueryParameter("XForwardedFor_SLBIP", xForwardedForSLBIP); this.xForwardedForSLBIP = xForwardedForSLBIP; return this; } /** * <p>Specifies whether to use the <code>XForwardedFor_SLBPORT</code> header 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.putQueryParameter("XForwardedFor_SLBPORT", xForwardedForSLBPORT); this.xForwardedForSLBPORT = xForwardedForSLBPORT; return this; } /** * <p>Specifies whether to use the <code>X-Forwarded-Proto</code> header to retrieve the listener protocol. 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 xForwardedForProto(String xForwardedForProto) { this.putQueryParameter("XForwardedFor_proto", xForwardedForProto); this.xForwardedForProto = xForwardedForProto; return this; } @Override public SetLoadBalancerHTTPSListenerAttributeRequest build() { return new SetLoadBalancerHTTPSListenerAttributeRequest(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/SetLoadBalancerHTTPSListenerAttributeResponse.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 SetLoadBalancerHTTPSListenerAttributeResponse} extends {@link TeaModel} * * <p>SetLoadBalancerHTTPSListenerAttributeResponse</p> */ public class SetLoadBalancerHTTPSListenerAttributeResponse 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 SetLoadBalancerHTTPSListenerAttributeResponseBody body; private SetLoadBalancerHTTPSListenerAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetLoadBalancerHTTPSListenerAttributeResponse 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 SetLoadBalancerHTTPSListenerAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetLoadBalancerHTTPSListenerAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetLoadBalancerHTTPSListenerAttributeResponseBody body); @Override SetLoadBalancerHTTPSListenerAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetLoadBalancerHTTPSListenerAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetLoadBalancerHTTPSListenerAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetLoadBalancerHTTPSListenerAttributeResponse 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(SetLoadBalancerHTTPSListenerAttributeResponseBody body) { this.body = body; return this; } @Override public SetLoadBalancerHTTPSListenerAttributeResponse build() { return new SetLoadBalancerHTTPSListenerAttributeResponse(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/SetLoadBalancerHTTPSListenerAttributeResponseBody.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 SetLoadBalancerHTTPSListenerAttributeResponseBody} extends {@link TeaModel} * * <p>SetLoadBalancerHTTPSListenerAttributeResponseBody</p> */ public class SetLoadBalancerHTTPSListenerAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetLoadBalancerHTTPSListenerAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetLoadBalancerHTTPSListenerAttributeResponseBody 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>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetLoadBalancerHTTPSListenerAttributeResponseBody build() { return new SetLoadBalancerHTTPSListenerAttributeResponseBody(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/SetLoadBalancerModificationProtectionRequest.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 SetLoadBalancerModificationProtectionRequest} extends {@link RequestModel} * * <p>SetLoadBalancerModificationProtectionRequest</p> */ public class SetLoadBalancerModificationProtectionRequest 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("ModificationProtectionReason") private String modificationProtectionReason; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ModificationProtectionStatus") @com.aliyun.core.annotation.Validation(required = true) private String modificationProtectionStatus; @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 SetLoadBalancerModificationProtectionRequest(Builder builder) { super(builder); this.loadBalancerId = builder.loadBalancerId; this.modificationProtectionReason = builder.modificationProtectionReason; this.modificationProtectionStatus = builder.modificationProtectionStatus; 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 SetLoadBalancerModificationProtectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return loadBalancerId */ public String getLoadBalancerId() { return this.loadBalancerId; } /** * @return modificationProtectionReason */ public String getModificationProtectionReason() { return this.modificationProtectionReason; } /** * @return modificationProtectionStatus */ public String getModificationProtectionStatus() { return this.modificationProtectionStatus; } /** * @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<SetLoadBalancerModificationProtectionRequest, Builder> { private String loadBalancerId; private String modificationProtectionReason; private String modificationProtectionStatus; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(SetLoadBalancerModificationProtectionRequest request) { super(request); this.loadBalancerId = request.loadBalancerId; this.modificationProtectionReason = request.modificationProtectionReason; this.modificationProtectionStatus = request.modificationProtectionStatus; 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 CLB instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-bp1b6c719dfa08e*****</p> */ public Builder loadBalancerId(String loadBalancerId) { this.putQueryParameter("LoadBalancerId", loadBalancerId); this.loadBalancerId = loadBalancerId; return this; } /** * <p>The reason why the configuration read-only mode is enabled. The value must be 1 to 80 characters in length. It must start with a letter and can contain letters, digits, periods (.), underscores (_), and hyphens (-).</p> * <blockquote> * <p> This parameter is valid only if the <strong>ModificationProtectionStatus</strong> parameter is set to <strong>ConsoleProtection</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>Configuration change</p> */ public Builder modificationProtectionReason(String modificationProtectionReason) { this.putQueryParameter("ModificationProtectionReason", modificationProtectionReason); this.modificationProtectionReason = modificationProtectionReason; return this; } /** * <p>Specifies whether to enable the configuration read-only mode. Valid values:</p> * <ul> * <li><strong>NonProtection</strong>: disables the configuration read-only mode. After you disable the configuration read-only mode, the value of <strong>ModificationProtectionReason</strong> is cleared.</li> * <li><strong>ConsoleProtection</strong>: enables the configuration read-only mode.</li> * </ul> * <blockquote> * <p> If you set this parameter to <strong>ConsoleProtection</strong>, you cannot use the CLB console to modify instance configurations. However, you can call API operations to modify instance configurations.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ConsoleProtection</p> */ public Builder modificationProtectionStatus(String modificationProtectionStatus) { this.putQueryParameter("ModificationProtectionStatus", modificationProtectionStatus); this.modificationProtectionStatus = modificationProtectionStatus; 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; } /** * 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 SetLoadBalancerModificationProtectionRequest build() { return new SetLoadBalancerModificationProtectionRequest(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/SetLoadBalancerModificationProtectionResponse.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 SetLoadBalancerModificationProtectionResponse} extends {@link TeaModel} * * <p>SetLoadBalancerModificationProtectionResponse</p> */ public class SetLoadBalancerModificationProtectionResponse 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 SetLoadBalancerModificationProtectionResponseBody body; private SetLoadBalancerModificationProtectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetLoadBalancerModificationProtectionResponse 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 SetLoadBalancerModificationProtectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetLoadBalancerModificationProtectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetLoadBalancerModificationProtectionResponseBody body); @Override SetLoadBalancerModificationProtectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetLoadBalancerModificationProtectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetLoadBalancerModificationProtectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetLoadBalancerModificationProtectionResponse 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(SetLoadBalancerModificationProtectionResponseBody body) { this.body = body; return this; } @Override public SetLoadBalancerModificationProtectionResponse build() { return new SetLoadBalancerModificationProtectionResponse(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/SetLoadBalancerModificationProtectionResponseBody.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 SetLoadBalancerModificationProtectionResponseBody} extends {@link TeaModel} * * <p>SetLoadBalancerModificationProtectionResponseBody</p> */ public class SetLoadBalancerModificationProtectionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetLoadBalancerModificationProtectionResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetLoadBalancerModificationProtectionResponseBody 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>791D8B68-AE0F-4174-AF54-088C8B3C5D54</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetLoadBalancerModificationProtectionResponseBody build() { return new SetLoadBalancerModificationProtectionResponseBody(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/SetLoadBalancerNameRequest.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 SetLoadBalancerNameRequest} extends {@link RequestModel} * * <p>SetLoadBalancerNameRequest</p> */ public class SetLoadBalancerNameRequest 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("LoadBalancerName") @com.aliyun.core.annotation.Validation(required = true) private String loadBalancerName; @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 SetLoadBalancerNameRequest(Builder builder) { super(builder); this.loadBalancerId = builder.loadBalancerId; this.loadBalancerName = builder.loadBalancerName; 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 SetLoadBalancerNameRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return loadBalancerId */ public String getLoadBalancerId() { return this.loadBalancerId; } /** * @return loadBalancerName */ public String getLoadBalancerName() { return this.loadBalancerName; } /** * @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<SetLoadBalancerNameRequest, Builder> { private String loadBalancerId; private String loadBalancerName; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(SetLoadBalancerNameRequest request) { super(request); this.loadBalancerId = request.loadBalancerId; this.loadBalancerName = request.loadBalancerName; 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 CLB instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-bp1b6c719dfa08e******</p> */ public Builder loadBalancerId(String loadBalancerId) { this.putQueryParameter("LoadBalancerId", loadBalancerId); this.loadBalancerId = loadBalancerId; return this; } /** * <p>The new name of the CLB instance.</p> * <p>The name must be 1 to 80 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>test1</p> */ public Builder loadBalancerName(String loadBalancerName) { this.putQueryParameter("LoadBalancerName", loadBalancerName); this.loadBalancerName = loadBalancerName; 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="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 SetLoadBalancerNameRequest build() { return new SetLoadBalancerNameRequest(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/SetLoadBalancerNameResponse.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 SetLoadBalancerNameResponse} extends {@link TeaModel} * * <p>SetLoadBalancerNameResponse</p> */ public class SetLoadBalancerNameResponse 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 SetLoadBalancerNameResponseBody body; private SetLoadBalancerNameResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetLoadBalancerNameResponse 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 SetLoadBalancerNameResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetLoadBalancerNameResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetLoadBalancerNameResponseBody body); @Override SetLoadBalancerNameResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetLoadBalancerNameResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetLoadBalancerNameResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetLoadBalancerNameResponse 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(SetLoadBalancerNameResponseBody body) { this.body = body; return this; } @Override public SetLoadBalancerNameResponse build() { return new SetLoadBalancerNameResponse(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/SetLoadBalancerNameResponseBody.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 SetLoadBalancerNameResponseBody} extends {@link TeaModel} * * <p>SetLoadBalancerNameResponseBody</p> */ public class SetLoadBalancerNameResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetLoadBalancerNameResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetLoadBalancerNameResponseBody 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>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetLoadBalancerNameResponseBody build() { return new SetLoadBalancerNameResponseBody(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/SetLoadBalancerStatusRequest.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 SetLoadBalancerStatusRequest} extends {@link RequestModel} * * <p>SetLoadBalancerStatusRequest</p> */ public class SetLoadBalancerStatusRequest 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("LoadBalancerStatus") @com.aliyun.core.annotation.Validation(required = true) private String loadBalancerStatus; @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 SetLoadBalancerStatusRequest(Builder builder) { super(builder); this.loadBalancerId = builder.loadBalancerId; this.loadBalancerStatus = builder.loadBalancerStatus; 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 SetLoadBalancerStatusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return loadBalancerId */ public String getLoadBalancerId() { return this.loadBalancerId; } /** * @return loadBalancerStatus */ public String getLoadBalancerStatus() { return this.loadBalancerStatus; } /** * @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<SetLoadBalancerStatusRequest, Builder> { private String loadBalancerId; private String loadBalancerStatus; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(SetLoadBalancerStatusRequest request) { super(request); this.loadBalancerId = request.loadBalancerId; this.loadBalancerStatus = request.loadBalancerStatus; 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 CLB instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-bp1b6c719dfa08e******</p> */ public Builder loadBalancerId(String loadBalancerId) { this.putQueryParameter("LoadBalancerId", loadBalancerId); this.loadBalancerId = loadBalancerId; return this; } /** * <p>The state of the CLB instance. Valid values: <strong>active</strong> and <strong>inactive</strong>.</p> * <ul> * <li><p><strong>active</strong> (default)</p> * <p>If a CLB instance is in the <strong>active</strong> state, listeners of the CLB instance can forward traffic based on forwarding rules.</p> * <p>By default, newly created CLB instances are in the <strong>active</strong> state.</p> * </li> * <li><p><strong>inactive</strong></p> * <p>If a CLB instance is in the <strong>inactive</strong> state, listeners of the CLB instance do not forward traffic.</p> * </li> * </ul> * <blockquote> * <p> If all listeners of a CLB instance are deleted, the CLB instance automatically switches to the <strong>inactive</strong> state.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>active</p> */ public Builder loadBalancerStatus(String loadBalancerStatus) { this.putQueryParameter("LoadBalancerStatus", loadBalancerStatus); this.loadBalancerStatus = loadBalancerStatus; 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 query region IDs 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 SetLoadBalancerStatusRequest build() { return new SetLoadBalancerStatusRequest(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/SetLoadBalancerStatusResponse.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 SetLoadBalancerStatusResponse} extends {@link TeaModel} * * <p>SetLoadBalancerStatusResponse</p> */ public class SetLoadBalancerStatusResponse 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 SetLoadBalancerStatusResponseBody body; private SetLoadBalancerStatusResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetLoadBalancerStatusResponse 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 SetLoadBalancerStatusResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetLoadBalancerStatusResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetLoadBalancerStatusResponseBody body); @Override SetLoadBalancerStatusResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetLoadBalancerStatusResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetLoadBalancerStatusResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetLoadBalancerStatusResponse 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(SetLoadBalancerStatusResponseBody body) { this.body = body; return this; } @Override public SetLoadBalancerStatusResponse build() { return new SetLoadBalancerStatusResponse(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/SetLoadBalancerStatusResponseBody.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 SetLoadBalancerStatusResponseBody} extends {@link TeaModel} * * <p>SetLoadBalancerStatusResponseBody</p> */ public class SetLoadBalancerStatusResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetLoadBalancerStatusResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetLoadBalancerStatusResponseBody 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>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetLoadBalancerStatusResponseBody build() { return new SetLoadBalancerStatusResponseBody(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/SetLoadBalancerTCPListenerAttributeRequest.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 SetLoadBalancerTCPListenerAttributeRequest} extends {@link RequestModel} * * <p>SetLoadBalancerTCPListenerAttributeRequest</p> */ public class SetLoadBalancerTCPListenerAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclId") private String aclId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclStatus") private String aclStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclType") private String aclType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") @com.aliyun.core.annotation.Validation(maximum = 5120) private Integer bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ConnectionDrain") private String connectionDrain; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ConnectionDrainTimeout") private Integer connectionDrainTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EstablishedTimeout") @com.aliyun.core.annotation.Validation(maximum = 900, minimum = 10) private Integer establishedTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort") @com.aliyun.core.annotation.Validation(maximum = 65535, minimum = 1) private Integer healthCheckConnectPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckConnectTimeout") @com.aliyun.core.annotation.Validation(maximum = 300, minimum = 1) private Integer healthCheckConnectTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckDomain") private String healthCheckDomain; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode") private String healthCheckHttpCode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckInterval") @com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1) private Integer healthCheckInterval; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckSwitch") private String healthCheckSwitch; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckType") private String healthCheckType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckURI") private String healthCheckURI; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthyThreshold") @com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1) private Integer healthyThreshold; @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("MasterSlaveServerGroup") private String masterSlaveServerGroup; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupId") 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("PersistenceTimeout") @com.aliyun.core.annotation.Validation(maximum = 3600) private Integer persistenceTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ProxyProtocolV2Enabled") private Boolean proxyProtocolV2Enabled; @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("Scheduler") private String scheduler; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SynProxy") private String synProxy; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UnhealthyThreshold") @com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1) private Integer unhealthyThreshold; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VServerGroup") private String vServerGroup; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VServerGroupId") private String vServerGroupId; private SetLoadBalancerTCPListenerAttributeRequest(Builder builder) { super(builder); this.aclId = builder.aclId; this.aclStatus = builder.aclStatus; this.aclType = builder.aclType; this.bandwidth = builder.bandwidth; this.connectionDrain = builder.connectionDrain; this.connectionDrainTimeout = builder.connectionDrainTimeout; this.description = builder.description; this.establishedTimeout = builder.establishedTimeout; this.healthCheckConnectPort = builder.healthCheckConnectPort; this.healthCheckConnectTimeout = builder.healthCheckConnectTimeout; this.healthCheckDomain = builder.healthCheckDomain; this.healthCheckHttpCode = builder.healthCheckHttpCode; this.healthCheckInterval = builder.healthCheckInterval; this.healthCheckSwitch = builder.healthCheckSwitch; this.healthCheckType = builder.healthCheckType; this.healthCheckURI = builder.healthCheckURI; this.healthyThreshold = builder.healthyThreshold; this.listenerPort = builder.listenerPort; this.loadBalancerId = builder.loadBalancerId; this.masterSlaveServerGroup = builder.masterSlaveServerGroup; this.masterSlaveServerGroupId = builder.masterSlaveServerGroupId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.persistenceTimeout = builder.persistenceTimeout; this.proxyProtocolV2Enabled = builder.proxyProtocolV2Enabled; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.scheduler = builder.scheduler; this.synProxy = builder.synProxy; this.unhealthyThreshold = builder.unhealthyThreshold; this.vServerGroup = builder.vServerGroup; this.vServerGroupId = builder.vServerGroupId; } public static Builder builder() { return new Builder(); } public static SetLoadBalancerTCPListenerAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclId */ public String getAclId() { return this.aclId; } /** * @return aclStatus */ public String getAclStatus() { return this.aclStatus; } /** * @return aclType */ public String getAclType() { return this.aclType; } /** * @return 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 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 healthCheckSwitch */ public String getHealthCheckSwitch() { return this.healthCheckSwitch; } /** * @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 masterSlaveServerGroup */ public String getMasterSlaveServerGroup() { return this.masterSlaveServerGroup; } /** * @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 persistenceTimeout */ public Integer getPersistenceTimeout() { return this.persistenceTimeout; } /** * @return proxyProtocolV2Enabled */ public Boolean getProxyProtocolV2Enabled() { return this.proxyProtocolV2Enabled; } /** * @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 scheduler */ public String getScheduler() { return this.scheduler; } /** * @return synProxy */ public String getSynProxy() { return this.synProxy; } /** * @return unhealthyThreshold */ public Integer getUnhealthyThreshold() { return this.unhealthyThreshold; } /** * @return vServerGroup */ public String getVServerGroup() { return this.vServerGroup; } /** * @return vServerGroupId */ public String getVServerGroupId() { return this.vServerGroupId; } public static final class Builder extends Request.Builder<SetLoadBalancerTCPListenerAttributeRequest, Builder> { private String aclId; private String aclStatus; private String aclType; private Integer bandwidth; private String connectionDrain; private Integer connectionDrainTimeout; private String description; private Integer establishedTimeout; private Integer healthCheckConnectPort; private Integer healthCheckConnectTimeout; private String healthCheckDomain; private String healthCheckHttpCode; private Integer healthCheckInterval; private String healthCheckSwitch; private String healthCheckType; private String healthCheckURI; private Integer healthyThreshold; private Integer listenerPort; private String loadBalancerId; private String masterSlaveServerGroup; private String masterSlaveServerGroupId; private String ownerAccount; private Long ownerId; private Integer persistenceTimeout; private Boolean proxyProtocolV2Enabled; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String scheduler; private String synProxy; private Integer unhealthyThreshold; private String vServerGroup; private String vServerGroupId; private Builder() { super(); } private Builder(SetLoadBalancerTCPListenerAttributeRequest request) { super(request); this.aclId = request.aclId; this.aclStatus = request.aclStatus; this.aclType = request.aclType; this.bandwidth = request.bandwidth; this.connectionDrain = request.connectionDrain; this.connectionDrainTimeout = request.connectionDrainTimeout; this.description = request.description; this.establishedTimeout = request.establishedTimeout; this.healthCheckConnectPort = request.healthCheckConnectPort; this.healthCheckConnectTimeout = request.healthCheckConnectTimeout; this.healthCheckDomain = request.healthCheckDomain; this.healthCheckHttpCode = request.healthCheckHttpCode; this.healthCheckInterval = request.healthCheckInterval; this.healthCheckSwitch = request.healthCheckSwitch; this.healthCheckType = request.healthCheckType; this.healthCheckURI = request.healthCheckURI; this.healthyThreshold = request.healthyThreshold; this.listenerPort = request.listenerPort; this.loadBalancerId = request.loadBalancerId; this.masterSlaveServerGroup = request.masterSlaveServerGroup; this.masterSlaveServerGroupId = request.masterSlaveServerGroupId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.persistenceTimeout = request.persistenceTimeout; this.proxyProtocolV2Enabled = request.proxyProtocolV2Enabled; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.scheduler = request.scheduler; this.synProxy = request.synProxy; this.unhealthyThreshold = request.unhealthyThreshold; this.vServerGroup = request.vServerGroup; this.vServerGroupId = request.vServerGroupId; } /** * <p>The ID of the network access control list (ACL) that is associated with the listener.</p> * <p>If <strong>AclStatus</strong> is set to <strong>on</strong>, this parameter is required.</p> * * <strong>example:</strong> * <p>12333</p> */ public Builder aclId(String aclId) { this.putQueryParameter("AclId", aclId); this.aclId = aclId; return this; } /** * <p>Specifies whether to enable access control. 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.putQueryParameter("AclStatus", aclStatus); this.aclStatus = aclStatus; return this; } /** * <p>The type of the network 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 where you want to allow only specific IP addresses to access an application. Your service may be adversely affected if the allowlist 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 ACL are rejected. Blacklists apply to scenarios where 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 required.</p> * </blockquote> * * <strong>example:</strong> * <p>white</p> */ public Builder aclType(String aclType) { this.putQueryParameter("AclType", aclType); this.aclType = aclType; return this; } /** * <p>The maximum bandwidth of the listener. Unit: Mbit/s. Valid values: <strong>-1</strong> and <strong>1</strong> to <strong>5120</strong>.</p> * <ul> * <li><strong>-1</strong>: For a pay-by-data-transfer Internet-facing CLB instance, you can set this parameter to <strong>-1</strong>, which specifies unlimited bandwidth.</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 the maximum bandwidth values of all listeners cannot exceed the maximum bandwidth of the CLB instance.</li> * </ul> * * <strong>example:</strong> * <p>43</p> */ public Builder bandwidth(Integer bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>Specifies whether to enable connection draining. 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.putQueryParameter("ConnectionDrain", connectionDrain); this.connectionDrain = connectionDrain; return this; } /** * <p>The timeout period of connection draining. This parameter is required if <strong>ConnectionDrain</strong> is set to <strong>on</strong>. Unit: seconds.</p> * <p>Valid values: <strong>10</strong> to <strong>900</strong>.</p> * * <strong>example:</strong> * <p>300</p> */ public Builder connectionDrainTimeout(Integer connectionDrainTimeout) { this.putQueryParameter("ConnectionDrainTimeout", connectionDrainTimeout); this.connectionDrainTimeout = connectionDrainTimeout; return this; } /** * <p>The name of the listener.</p> * <p>The name must be 1 to 256 characters in length and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).</p> * * <strong>example:</strong> * <p>tcp_80</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The timeout period of a connection. Unit: seconds. Valid values: <strong>10</strong> to <strong>900</strong>.</p> * * <strong>example:</strong> * <p>500</p> */ public Builder establishedTimeout(Integer establishedTimeout) { this.putQueryParameter("EstablishedTimeout", establishedTimeout); this.establishedTimeout = establishedTimeout; return this; } /** * <p>The port that is used for health checks. Valid values: <strong>1</strong> to <strong>65535</strong>.</p> * <p>If you do not set this parameter, the port specified by the <strong>BackendServerPort</strong> parameter is used.</p> * * <strong>example:</strong> * <p>8080</p> */ public Builder healthCheckConnectPort(Integer healthCheckConnectPort) { this.putQueryParameter("HealthCheckConnectPort", healthCheckConnectPort); this.healthCheckConnectPort = healthCheckConnectPort; return this; } /** * <p>The timeout period of a health check.</p> * <p>If a backend ECS instance does not return a health check response within the specified timeout period, the server fails the health check.</p> * <p>Valid values: <strong>1</strong> to <strong>300</strong>. Unit: seconds.</p> * <blockquote> * <p> If the value of the <strong>HealthCheckConnectTimeout</strong> parameter is smaller than that of the <strong>HealthCheckInterval</strong> parameter, the timeout period specified by the <strong>HCTimeout</strong> parameter is ignored and the period of time specified by the <strong>HealthCheckInterval</strong> parameter is used as the timeout period.</p> * </blockquote> * * <strong>example:</strong> * <p>100</p> */ public Builder healthCheckConnectTimeout(Integer healthCheckConnectTimeout) { this.putQueryParameter("HealthCheckConnectTimeout", healthCheckConnectTimeout); this.healthCheckConnectTimeout = healthCheckConnectTimeout; return this; } /** * <p>The domain name that is used for health checks. You can set this parameter when the TCP listener requires HTTP health checks. If you do not set this parameter, TCP health checks are performed.</p> * <ul> * <li><p><strong>$_ip</strong>: the private IP addresses of the backend servers.</p> * <p>If you do not set the HealthCheckHost parameter or set the parameter to $SERVER_IP, the CLB instance uses the private IP addresses of backend servers for health checks.</p> * </li> * <li><p><strong>domain</strong>: The domain name is 1 to 80 characters in length, and can contain letters, digits, periods (.), and hyphens (-).</p> * </li> * </ul> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder healthCheckDomain(String healthCheckDomain) { this.putQueryParameter("HealthCheckDomain", healthCheckDomain); this.healthCheckDomain = healthCheckDomain; return this; } /** * <p>The HTTP status code for a successful health check. Separate multiple HTTP status codes with commas (,).</p> * <p>Valid values: <strong>http_2xx</strong>, <strong>http_3xx</strong>, <strong>http_4xx</strong>, and <strong>http_5xx</strong>.</p> * * <strong>example:</strong> * <p>http_2xx</p> */ public Builder healthCheckHttpCode(String healthCheckHttpCode) { this.putQueryParameter("HealthCheckHttpCode", healthCheckHttpCode); this.healthCheckHttpCode = healthCheckHttpCode; return this; } /** * <p>The interval between two consecutive health checks. Unit: seconds.</p> * <p>Valid values: <strong>1</strong> to <strong>50</strong>.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder healthCheckInterval(Integer healthCheckInterval) { this.putQueryParameter("HealthCheckInterval", healthCheckInterval); this.healthCheckInterval = healthCheckInterval; return this; } /** * <p>Specifies whether to enable the health check feature. 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 healthCheckSwitch(String healthCheckSwitch) { this.putQueryParameter("HealthCheckSwitch", healthCheckSwitch); this.healthCheckSwitch = healthCheckSwitch; return this; } /** * <p>The type of the health check. Valid values: <strong>tcp</strong> and <strong>http</strong>.</p> * * <strong>example:</strong> * <p>tcp</p> */ public Builder healthCheckType(String healthCheckType) { this.putQueryParameter("HealthCheckType", healthCheckType); this.healthCheckType = healthCheckType; return this; } /** * <p>The URI that is used for health checks. The URI 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 (&amp;). The URI must start with a forward slash (/) but cannot be a single forward slash (/).</p> * <p>You can set this parameter when the TCP listener requires HTTP health checks.</p> * <p>If you do not set this parameter, TCP health checks are performed.</p> * * <strong>example:</strong> * <p>/test/index.html</p> */ public Builder healthCheckURI(String healthCheckURI) { this.putQueryParameter("HealthCheckURI", 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 status is changed 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.putQueryParameter("HealthyThreshold", healthyThreshold); this.healthyThreshold = healthyThreshold; return this; } /** * <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; } /** * <p>Specifies whether to use a primary/secondary server group. Valid values:</p> * <ul> * <li><strong>on</strong>: yes</li> * <li><strong>off</strong>: no</li> * </ul> * <p>You cannot set both <strong>VserverGroup</strong> and <strong>MasterSlaveServerGroup</strong> to <strong>on</strong>.</p> * * <strong>example:</strong> * <p>on</p> */ public Builder masterSlaveServerGroup(String masterSlaveServerGroup) { this.putQueryParameter("MasterSlaveServerGroup", masterSlaveServerGroup); this.masterSlaveServerGroup = masterSlaveServerGroup; return this; } /** * <p>The ID of the primary/secondary server group.</p> * <blockquote> * <p> You can set only one of the VServerGroupId and MasterSlaveServerGroupId parameters.</p> * </blockquote> * * <strong>example:</strong> * <p>rsp-cige****</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 timeout period of session persistence. Valid values: <strong>0</strong> to <strong>3600</strong>. Unit: seconds.</p> * <p>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.putQueryParameter("PersistenceTimeout", persistenceTimeout); this.persistenceTimeout = persistenceTimeout; return this; } /** * <p>Specifies whether to use the Proxy protocol 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.putQueryParameter("ProxyProtocolV2Enabled", proxyProtocolV2Enabled); this.proxyProtocolV2Enabled = proxyProtocolV2Enabled; 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="~~DescribeRegions~~">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; } /** * <p>The scheduling 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><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> * </blockquote> * <ul> * <li>Only high-performance CLB instances support the <strong>sch</strong> and <strong>tch</strong> algorithms.</li> * <li>CLB does not support converting the <strong>wrr</strong> and <strong>rr</strong> algorithms to sch or tch. You cannot switch the hash algorithm from one to another.</li> * </ul> * * <strong>example:</strong> * <p>wrr</p> */ public Builder scheduler(String scheduler) { this.putQueryParameter("Scheduler", scheduler); this.scheduler = scheduler; return this; } /** * <p>Specifies whether to enable the SynProxy feature of CLB for protection. Valid values:</p> * <ul> * <li><strong>enable</strong>: yes</li> * <li><strong>disable</strong>: no</li> * </ul> * <p>We recommend that you use the default value of this parameter.</p> * * <strong>example:</strong> * <p>enable</p> */ public Builder synProxy(String synProxy) { this.putQueryParameter("SynProxy", synProxy); this.synProxy = synProxy; 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 status is changed 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.putQueryParameter("UnhealthyThreshold", unhealthyThreshold); this.unhealthyThreshold = unhealthyThreshold; return this; } /** * <p>Specifies whether to use a vServer group. Valid values:</p> * <ul> * <li><strong>on</strong>: yes</li> * <li><strong>off</strong>: no</li> * </ul> * <blockquote> * <p> You cannot set both <strong>VserverGroup</strong> and <strong>MasterSlaveServerGroup</strong> to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>on</p> */ public Builder vServerGroup(String vServerGroup) { this.putQueryParameter("VServerGroup", vServerGroup); this.vServerGroup = vServerGroup; return this; } /** * <p>The ID of the vServer group.</p> * * <strong>example:</strong> * <p>rsp-cige6j5****</p> */ public Builder vServerGroupId(String vServerGroupId) { this.putQueryParameter("VServerGroupId", vServerGroupId); this.vServerGroupId = vServerGroupId; return this; } @Override public SetLoadBalancerTCPListenerAttributeRequest build() { return new SetLoadBalancerTCPListenerAttributeRequest(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/SetLoadBalancerTCPListenerAttributeResponse.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 SetLoadBalancerTCPListenerAttributeResponse} extends {@link TeaModel} * * <p>SetLoadBalancerTCPListenerAttributeResponse</p> */ public class SetLoadBalancerTCPListenerAttributeResponse 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 SetLoadBalancerTCPListenerAttributeResponseBody body; private SetLoadBalancerTCPListenerAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetLoadBalancerTCPListenerAttributeResponse 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 SetLoadBalancerTCPListenerAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetLoadBalancerTCPListenerAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetLoadBalancerTCPListenerAttributeResponseBody body); @Override SetLoadBalancerTCPListenerAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetLoadBalancerTCPListenerAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetLoadBalancerTCPListenerAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetLoadBalancerTCPListenerAttributeResponse 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(SetLoadBalancerTCPListenerAttributeResponseBody body) { this.body = body; return this; } @Override public SetLoadBalancerTCPListenerAttributeResponse build() { return new SetLoadBalancerTCPListenerAttributeResponse(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/SetLoadBalancerTCPListenerAttributeResponseBody.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 SetLoadBalancerTCPListenerAttributeResponseBody} extends {@link TeaModel} * * <p>SetLoadBalancerTCPListenerAttributeResponseBody</p> */ public class SetLoadBalancerTCPListenerAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetLoadBalancerTCPListenerAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetLoadBalancerTCPListenerAttributeResponseBody 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>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetLoadBalancerTCPListenerAttributeResponseBody build() { return new SetLoadBalancerTCPListenerAttributeResponseBody(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/SetLoadBalancerUDPListenerAttributeRequest.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 SetLoadBalancerUDPListenerAttributeRequest} extends {@link RequestModel} * * <p>SetLoadBalancerUDPListenerAttributeRequest</p> */ public class SetLoadBalancerUDPListenerAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclId") private String aclId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclStatus") private String aclStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclType") private String aclType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") @com.aliyun.core.annotation.Validation(maximum = 5120) private Integer bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort") @com.aliyun.core.annotation.Validation(maximum = 65535, minimum = 1) private Integer healthCheckConnectPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckConnectTimeout") @com.aliyun.core.annotation.Validation(maximum = 300, minimum = 1) private Integer healthCheckConnectTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckInterval") @com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1) private Integer healthCheckInterval; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckSwitch") private String healthCheckSwitch; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthyThreshold") @com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1) private Integer healthyThreshold; @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("MasterSlaveServerGroup") private String masterSlaveServerGroup; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MasterSlaveServerGroupId") 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("ProxyProtocolV2Enabled") private Boolean proxyProtocolV2Enabled; @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("Scheduler") private String scheduler; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UnhealthyThreshold") @com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1) private Integer unhealthyThreshold; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VServerGroup") private String vServerGroup; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VServerGroupId") private String vServerGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("healthCheckExp") private String healthCheckExp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("healthCheckReq") private String healthCheckReq; private SetLoadBalancerUDPListenerAttributeRequest(Builder builder) { super(builder); this.aclId = builder.aclId; this.aclStatus = builder.aclStatus; this.aclType = builder.aclType; this.bandwidth = builder.bandwidth; this.description = builder.description; this.healthCheckConnectPort = builder.healthCheckConnectPort; this.healthCheckConnectTimeout = builder.healthCheckConnectTimeout; this.healthCheckInterval = builder.healthCheckInterval; this.healthCheckSwitch = builder.healthCheckSwitch; this.healthyThreshold = builder.healthyThreshold; this.listenerPort = builder.listenerPort; this.loadBalancerId = builder.loadBalancerId; this.masterSlaveServerGroup = builder.masterSlaveServerGroup; this.masterSlaveServerGroupId = builder.masterSlaveServerGroupId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.proxyProtocolV2Enabled = builder.proxyProtocolV2Enabled; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.scheduler = builder.scheduler; this.unhealthyThreshold = builder.unhealthyThreshold; this.vServerGroup = builder.vServerGroup; this.vServerGroupId = builder.vServerGroupId; this.healthCheckExp = builder.healthCheckExp; this.healthCheckReq = builder.healthCheckReq; } public static Builder builder() { return new Builder(); } public static SetLoadBalancerUDPListenerAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclId */ public String getAclId() { return this.aclId; } /** * @return aclStatus */ public String getAclStatus() { return this.aclStatus; } /** * @return aclType */ public String getAclType() { return this.aclType; } /** * @return bandwidth */ public Integer getBandwidth() { return this.bandwidth; } /** * @return description */ public String getDescription() { return this.description; } /** * @return healthCheckConnectPort */ public Integer getHealthCheckConnectPort() { return this.healthCheckConnectPort; } /** * @return healthCheckConnectTimeout */ public Integer getHealthCheckConnectTimeout() { return this.healthCheckConnectTimeout; } /** * @return healthCheckInterval */ public Integer getHealthCheckInterval() { return this.healthCheckInterval; } /** * @return healthCheckSwitch */ public String getHealthCheckSwitch() { return this.healthCheckSwitch; } /** * @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 masterSlaveServerGroup */ public String getMasterSlaveServerGroup() { return this.masterSlaveServerGroup; } /** * @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 proxyProtocolV2Enabled */ public Boolean getProxyProtocolV2Enabled() { return this.proxyProtocolV2Enabled; } /** * @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 scheduler */ public String getScheduler() { return this.scheduler; } /** * @return unhealthyThreshold */ public Integer getUnhealthyThreshold() { return this.unhealthyThreshold; } /** * @return vServerGroup */ public String getVServerGroup() { return this.vServerGroup; } /** * @return vServerGroupId */ public String getVServerGroupId() { return this.vServerGroupId; } /** * @return healthCheckExp */ public String getHealthCheckExp() { return this.healthCheckExp; } /** * @return healthCheckReq */ public String getHealthCheckReq() { return this.healthCheckReq; } public static final class Builder extends Request.Builder<SetLoadBalancerUDPListenerAttributeRequest, Builder> { private String aclId; private String aclStatus; private String aclType; private Integer bandwidth; private String description; private Integer healthCheckConnectPort; private Integer healthCheckConnectTimeout; private Integer healthCheckInterval; private String healthCheckSwitch; private Integer healthyThreshold; private Integer listenerPort; private String loadBalancerId; private String masterSlaveServerGroup; private String masterSlaveServerGroupId; private String ownerAccount; private Long ownerId; private Boolean proxyProtocolV2Enabled; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String scheduler; private Integer unhealthyThreshold; private String vServerGroup; private String vServerGroupId; private String healthCheckExp; private String healthCheckReq; private Builder() { super(); } private Builder(SetLoadBalancerUDPListenerAttributeRequest request) { super(request); this.aclId = request.aclId; this.aclStatus = request.aclStatus; this.aclType = request.aclType; this.bandwidth = request.bandwidth; this.description = request.description; this.healthCheckConnectPort = request.healthCheckConnectPort; this.healthCheckConnectTimeout = request.healthCheckConnectTimeout; this.healthCheckInterval = request.healthCheckInterval; this.healthCheckSwitch = request.healthCheckSwitch; this.healthyThreshold = request.healthyThreshold; this.listenerPort = request.listenerPort; this.loadBalancerId = request.loadBalancerId; this.masterSlaveServerGroup = request.masterSlaveServerGroup; this.masterSlaveServerGroupId = request.masterSlaveServerGroupId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.proxyProtocolV2Enabled = request.proxyProtocolV2Enabled; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.scheduler = request.scheduler; this.unhealthyThreshold = request.unhealthyThreshold; this.vServerGroup = request.vServerGroup; this.vServerGroupId = request.vServerGroupId; this.healthCheckExp = request.healthCheckExp; this.healthCheckReq = request.healthCheckReq; } /** * <p>The ID of the network access control list (ACL) that is associated with the listener.</p> * <blockquote> * <p> If <strong>AclStatus</strong> is set to <strong>on</strong>, this parameter is required.</p> * </blockquote> * * <strong>example:</strong> * <p>off</p> */ public Builder aclId(String aclId) { this.putQueryParameter("AclId", aclId); this.aclId = aclId; return this; } /** * <p>Specifies whether to enable access control. 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.putQueryParameter("AclStatus", aclStatus); this.aclStatus = aclStatus; return this; } /** * <p>The type of the network 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 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. 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 denied. Blacklists apply to scenarios where 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 required.</p> * </blockquote> * * <strong>example:</strong> * <p>white</p> */ public Builder aclType(String aclType) { this.putQueryParameter("AclType", aclType); this.aclType = aclType; 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, you can set this parameter to <strong>-1</strong>. This way, 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 bandwidth limits that you set for 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.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The name of the listener.</p> * <p>The name must be 1 to 256 characters in length and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).</p> * * <strong>example:</strong> * <p>udp_80</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The port that is used for health checks.</p> * <p>Valid values: <strong>1</strong> to <strong>65535</strong>.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder healthCheckConnectPort(Integer healthCheckConnectPort) { this.putQueryParameter("HealthCheckConnectPort", healthCheckConnectPort); this.healthCheckConnectPort = healthCheckConnectPort; return this; } /** * <p>The timeout period of a health check. If a backend server, such as an Elastic Compute Service (ECS) instance, does not return a health check response within the specified timeout period, the server fails the health check. Unit: seconds.</p> * <p>Valid values: <strong>1</strong> to <strong>300</strong>.</p> * <blockquote> * <p> If the value of the <strong>HealthCheckConnectTimeout</strong> parameter is smaller than that of the <strong>HealthCheckInterval</strong> parameter, the timeout period specified by the <strong>HealthCheckConnectTimeout</strong> parameter is ignored and the period of time specified by the <strong>HealthCheckInterval</strong> parameter is used as the timeout period.</p> * </blockquote> * * <strong>example:</strong> * <p>100</p> */ public Builder healthCheckConnectTimeout(Integer healthCheckConnectTimeout) { this.putQueryParameter("HealthCheckConnectTimeout", healthCheckConnectTimeout); this.healthCheckConnectTimeout = healthCheckConnectTimeout; return this; } /** * <p>The interval at which health checks are performed. Unit: seconds.</p> * <p>Valid values: <strong>1</strong> to <strong>50</strong>.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder healthCheckInterval(Integer healthCheckInterval) { this.putQueryParameter("HealthCheckInterval", healthCheckInterval); this.healthCheckInterval = healthCheckInterval; return this; } /** * <p>Specifies whether to enable the health check feature. Valid values:</p> * <ul> * <li><strong>on</strong> (default): yes</li> * <li><strong>off</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>on</p> */ public Builder healthCheckSwitch(String healthCheckSwitch) { this.putQueryParameter("HealthCheckSwitch", healthCheckSwitch); this.healthCheckSwitch = healthCheckSwitch; return this; } /** * <p>The number of times that an unhealthy backend server must consecutively pass health checks before it can be declared healthy (from <strong>fail</strong> to <strong>success</strong>).</p> * <p>Valid values: <strong>1</strong> to <strong>10</strong>.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder healthyThreshold(Integer healthyThreshold) { this.putQueryParameter("HealthyThreshold", healthyThreshold); this.healthyThreshold = healthyThreshold; return this; } /** * <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-bp1rtfnodmywb43ecu4sf-c****</p> */ public Builder loadBalancerId(String loadBalancerId) { this.putQueryParameter("LoadBalancerId", loadBalancerId); this.loadBalancerId = loadBalancerId; return this; } /** * <p>Specifies whether to use a primary/secondary server group. Valid values:</p> * <ul> * <li><strong>on</strong>: yes</li> * <li><strong>off</strong>: no</li> * </ul> * <blockquote> * <p> You cannot set <strong>VserverGroup</strong> and <strong>MasterSlaveServerGroup</strong> both to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>on</p> */ public Builder masterSlaveServerGroup(String masterSlaveServerGroup) { this.putQueryParameter("MasterSlaveServerGroup", masterSlaveServerGroup); this.masterSlaveServerGroup = masterSlaveServerGroup; return this; } /** * <p>The ID of the primary/secondary server group.</p> * <blockquote> * <p> You cannot specify both VServerGroupId and MasterSlaveServerGroupId.</p> * </blockquote> * * <strong>example:</strong> * <p>rsp-0bfuc****</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>Specifies whether to use the Proxy protocol to pass client IP addresses to backend servers. 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 proxyProtocolV2Enabled(Boolean proxyProtocolV2Enabled) { this.putQueryParameter("ProxyProtocolV2Enabled", proxyProtocolV2Enabled); this.proxyProtocolV2Enabled = proxyProtocolV2Enabled; return this; } /** * <p>The region ID of the CLB instance.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * * <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 scheduling algorithm. Valid values:</p> * <ul> * <li><p><strong>wrr</strong>: Backend servers with higher weights receive more requests than those with lower weights.</p> * <p>If two backend servers have the same weight, the backend server that has fewer connections is expected to receive more requests.</p> * </li> * <li><p><strong>rr</strong>: Requests are distributed to backend servers in sequence.</p> * </li> * <li><p><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.</p> * </li> * <li><p><strong>tch</strong>: specifies consistent hashing that is based on the following parameters: source IP address, destination IP address, source port, and destination port. Requests that contain the same preceding information are distributed to the same backend server.</p> * </li> * <li><p><strong>qch</strong>: specifies consistent hashing that is based on QUIC connection IDs. Requests that contain the same QUIC connection ID are distributed to the same backend server.</p> * </li> * </ul> * <blockquote> * </blockquote> * <ul> * <li>Only high-performance CLB instances support <strong>sch</strong>, <strong>tch</strong>, and <strong>qch</strong>.</li> * <li>You cannot switch the algorithm used by a CLB instance from <strong>wrr</strong> or <strong>rr</strong> to consistent hashing or from consistent hashing to weighted round robin or round robin.</li> * </ul> * * <strong>example:</strong> * <p>wrr</p> */ public Builder scheduler(String scheduler) { this.putQueryParameter("Scheduler", scheduler); this.scheduler = scheduler; 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 status is changed from <strong>success</strong> to <strong>fail</strong>.</p> * <p>Valid values: <strong>1</strong> to <strong>10</strong>.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.putQueryParameter("UnhealthyThreshold", unhealthyThreshold); this.unhealthyThreshold = unhealthyThreshold; return this; } /** * <p>Specifies whether to use a vServer group. Valid values:</p> * <ul> * <li><strong>on</strong>: yes</li> * <li><strong>off</strong>: no</li> * </ul> * <blockquote> * <p> You cannot set both <strong>VserverGroup</strong> and <strong>MasterSlaveServerGroup</strong> to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>on</p> */ public Builder vServerGroup(String vServerGroup) { this.putQueryParameter("VServerGroup", vServerGroup); this.vServerGroup = vServerGroup; return this; } /** * <p>The ID of the vServer group.</p> * * <strong>example:</strong> * <p>rsp-cige6****</p> */ public Builder vServerGroupId(String vServerGroupId) { this.putQueryParameter("VServerGroupId", vServerGroupId); this.vServerGroupId = vServerGroupId; return this; } /** * <p>The response string for UDP listener health checks. The string must be 1 to 64 characters in length and can contain only letters and digits.</p> * * <strong>example:</strong> * <p>ok</p> */ public Builder healthCheckExp(String healthCheckExp) { this.putQueryParameter("healthCheckExp", healthCheckExp); this.healthCheckExp = healthCheckExp; return this; } /** * <p>The request string for UDP listener health checks. The string must be 1 to 64 characters in length and can contain only letters and digits.</p> * * <strong>example:</strong> * <p>hello</p> */ public Builder healthCheckReq(String healthCheckReq) { this.putQueryParameter("healthCheckReq", healthCheckReq); this.healthCheckReq = healthCheckReq; return this; } @Override public SetLoadBalancerUDPListenerAttributeRequest build() { return new SetLoadBalancerUDPListenerAttributeRequest(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/SetLoadBalancerUDPListenerAttributeResponse.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 SetLoadBalancerUDPListenerAttributeResponse} extends {@link TeaModel} * * <p>SetLoadBalancerUDPListenerAttributeResponse</p> */ public class SetLoadBalancerUDPListenerAttributeResponse 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 SetLoadBalancerUDPListenerAttributeResponseBody body; private SetLoadBalancerUDPListenerAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetLoadBalancerUDPListenerAttributeResponse 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 SetLoadBalancerUDPListenerAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetLoadBalancerUDPListenerAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetLoadBalancerUDPListenerAttributeResponseBody body); @Override SetLoadBalancerUDPListenerAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetLoadBalancerUDPListenerAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetLoadBalancerUDPListenerAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetLoadBalancerUDPListenerAttributeResponse 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(SetLoadBalancerUDPListenerAttributeResponseBody body) { this.body = body; return this; } @Override public SetLoadBalancerUDPListenerAttributeResponse build() { return new SetLoadBalancerUDPListenerAttributeResponse(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/SetLoadBalancerUDPListenerAttributeResponseBody.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 SetLoadBalancerUDPListenerAttributeResponseBody} extends {@link TeaModel} * * <p>SetLoadBalancerUDPListenerAttributeResponseBody</p> */ public class SetLoadBalancerUDPListenerAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetLoadBalancerUDPListenerAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetLoadBalancerUDPListenerAttributeResponseBody 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>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetLoadBalancerUDPListenerAttributeResponseBody build() { return new SetLoadBalancerUDPListenerAttributeResponseBody(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/SetRuleRequest.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 SetRuleRequest} extends {@link RequestModel} * * <p>SetRuleRequest</p> */ public class SetRuleRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Cookie") private String cookie; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CookieTimeout") @com.aliyun.core.annotation.Validation(maximum = 86400, minimum = 1) private Integer cookieTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheck") private String healthCheck; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckConnectPort") @com.aliyun.core.annotation.Validation(maximum = 65535, minimum = 1) private Integer healthCheckConnectPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckDomain") private String healthCheckDomain; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckHttpCode") private String healthCheckHttpCode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckInterval") @com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1) private Integer healthCheckInterval; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckTimeout") @com.aliyun.core.annotation.Validation(maximum = 300, minimum = 1) private Integer healthCheckTimeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckURI") private String healthCheckURI; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthyThreshold") @com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1) private Integer healthyThreshold; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ListenerSync") private String listenerSync; @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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleName") private String ruleName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Scheduler") private String scheduler; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StickySession") private String stickySession; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StickySessionType") private String stickySessionType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UnhealthyThreshold") @com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1) private Integer unhealthyThreshold; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VServerGroupId") private String vServerGroupId; private SetRuleRequest(Builder builder) { super(builder); this.cookie = builder.cookie; this.cookieTimeout = builder.cookieTimeout; 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.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; 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.vServerGroupId = builder.vServerGroupId; } public static Builder builder() { return new Builder(); } public static SetRuleRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cookie */ public String getCookie() { return this.cookie; } /** * @return cookieTimeout */ public Integer getCookieTimeout() { return this.cookieTimeout; } /** * @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 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; } /** * @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 vServerGroupId */ public String getVServerGroupId() { return this.vServerGroupId; } public static final class Builder extends Request.Builder<SetRuleRequest, Builder> { private String cookie; private Integer cookieTimeout; 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 ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String ruleId; private String ruleName; private String scheduler; private String stickySession; private String stickySessionType; private Integer unhealthyThreshold; private String vServerGroupId; private Builder() { super(); } private Builder(SetRuleRequest request) { super(request); this.cookie = request.cookie; this.cookieTimeout = request.cookieTimeout; this.healthCheck = request.healthCheck; this.healthCheckConnectPort = request.healthCheckConnectPort; this.healthCheckDomain = request.healthCheckDomain; this.healthCheckHttpCode = request.healthCheckHttpCode; this.healthCheckInterval = request.healthCheckInterval; this.healthCheckTimeout = request.healthCheckTimeout; this.healthCheckURI = request.healthCheckURI; this.healthyThreshold = request.healthyThreshold; this.listenerSync = request.listenerSync; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.ruleId = request.ruleId; this.ruleName = request.ruleName; this.scheduler = request.scheduler; this.stickySession = request.stickySession; this.stickySessionType = request.stickySessionType; this.unhealthyThreshold = request.unhealthyThreshold; this.vServerGroupId = request.vServerGroupId; } /** * <p>The cookie that is configured on the server.</p> * <p>The cookie must be 1 to 200 characters in length and can contain only ASCII characters and digits. It cannot contain commas (,), semicolons (;), or space characters. It cannot start with a dollar sign ($).</p> * <blockquote> * <p> This parameter is required and takes effect if <strong>StickySession</strong> is set to <strong>on</strong> and <strong>StickySessionType</strong> is set to <strong>server</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>23ffsa</p> */ public Builder cookie(String cookie) { this.putQueryParameter("Cookie", cookie); this.cookie = cookie; return this; } /** * <p>The timeout period of a cookie. Unit: seconds. Valid values: <strong>1</strong> to <strong>86400</strong>.</p> * <blockquote> * <p> This parameter is required and takes effect if <strong>StickySession</strong> is set to <strong>on</strong> and <strong>StickySessionType</strong> is set to <strong>insert</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>123</p> */ public Builder cookieTimeout(Integer cookieTimeout) { this.putQueryParameter("CookieTimeout", cookieTimeout); this.cookieTimeout = cookieTimeout; return this; } /** * <p>Specifies whether to enable the health check feature. Valid values:</p> * <ul> * <li><strong>on</strong>: yes</li> * <li><strong>off</strong>: no</li> * </ul> * <blockquote> * <p> This parameter is required and takes effect if the <strong>ListenerSync</strong> parameter is set to <strong>off</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>off</p> */ public Builder healthCheck(String healthCheck) { this.putQueryParameter("HealthCheck", healthCheck); this.healthCheck = healthCheck; return this; } /** * <p>The port that is used for health checks. Valid values: <strong>1</strong> to <strong>65535</strong>.</p> * <blockquote> * <p> This parameter takes effect when the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>80</p> */ public Builder healthCheckConnectPort(Integer healthCheckConnectPort) { this.putQueryParameter("HealthCheckConnectPort", 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 a backend server. 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 for health checks.</li> * <li><strong>domain</strong>: The domain name must be 1 to 80 characters in length, and can contain letters, digits, periods (.), and hyphens (-).</li> * </ul> * <blockquote> * <p> This parameter takes effect if the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>$_ip</p> */ public Builder healthCheckDomain(String healthCheckDomain) { this.putQueryParameter("HealthCheckDomain", healthCheckDomain); this.healthCheckDomain = healthCheckDomain; return this; } /** * <p>The HTTP status code for a successful health check. Multiple HTTP status codes are separated by commas (,).</p> * <p>Valid values: <strong>http_2xx</strong>, <strong>http_3xx</strong>, <strong>http_4xx</strong>, and <strong>http_5xx</strong>.</p> * <blockquote> * <p> This parameter is required and takes effect if the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>http_2xx</p> */ public Builder healthCheckHttpCode(String healthCheckHttpCode) { this.putQueryParameter("HealthCheckHttpCode", healthCheckHttpCode); this.healthCheckHttpCode = healthCheckHttpCode; return this; } /** * <p>The interval between two consecutive health checks. Unit: seconds. Valid values: <strong>1</strong> to <strong>50</strong>.</p> * <blockquote> * <p> This parameter is required and takes effect if the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder healthCheckInterval(Integer healthCheckInterval) { this.putQueryParameter("HealthCheckInterval", healthCheckInterval); this.healthCheckInterval = healthCheckInterval; return this; } /** * <p>The timeout period of a health check response. If a backend server, such as an Elastic Compute Service (ECS) instance, does not return a health check response within the specified timeout period, the server fails the health check. Unit: seconds. Valid values: <strong>1</strong> to <strong>300</strong>.</p> * <blockquote> * <p> This parameter is required and takes effect if the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder healthCheckTimeout(Integer healthCheckTimeout) { this.putQueryParameter("HealthCheckTimeout", healthCheckTimeout); this.healthCheckTimeout = healthCheckTimeout; return this; } /** * <p>The URI that is used for health checks.</p> * <blockquote> * <p> This parameter is required and takes effect if the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>/example</p> */ public Builder healthCheckURI(String healthCheckURI) { this.putQueryParameter("HealthCheckURI", 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 status is changed from <strong>fail</strong> to <strong>success</strong>.</p> * <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p> * <blockquote> * <p> This parameter is required and takes effect if the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>4</p> */ public Builder healthyThreshold(Integer healthyThreshold) { this.putQueryParameter("HealthyThreshold", healthyThreshold); this.healthyThreshold = healthyThreshold; return this; } /** * <p>Specifies whether to use the scheduling algorithm, session persistence, and health check configurations of the listener. Valid values:</p> * <ul> * <li><strong>on</strong>: uses the configurations of the listener.</li> * <li><strong>off</strong>: does not use the configurations of the listener. You can customize the health check and session persistence configurations for the forwarding rule.</li> * </ul> * * <strong>example:</strong> * <p>off</p> */ public Builder listenerSync(String listenerSync) { this.putQueryParameter("ListenerSync", listenerSync); this.listenerSync = listenerSync; 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 ID of the forwarding rule.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>rule-3ejhkt****</p> */ public Builder ruleId(String ruleId) { this.putQueryParameter("RuleId", ruleId); this.ruleId = ruleId; return this; } /** * <p>The name of the forwarding rule. The name must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).</p> * <blockquote> * <p>On the same listener, the forwarding rule names must be unique.</p> * </blockquote> * * <strong>example:</strong> * <p>doctest</p> */ public Builder ruleName(String ruleName) { this.putQueryParameter("RuleName", ruleName); this.ruleName = ruleName; 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> * </ul> * <blockquote> * <p> This parameter is required and takes effect if the <strong>ListenerSync</strong> parameter is set to <strong>off</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>wrr</p> */ public Builder scheduler(String scheduler) { this.putQueryParameter("Scheduler", scheduler); this.scheduler = scheduler; return this; } /** * <p>Specifies whether to enable session persistence. Valid values:</p> * <ul> * <li><strong>on</strong>: yes</li> * <li><strong>off</strong>: no</li> * </ul> * <p>This parameter is required and takes effect if the <strong>ListenerSync</strong> parameter is set to <strong>off</strong>.</p> * * <strong>example:</strong> * <p>off</p> */ public Builder stickySession(String stickySession) { this.putQueryParameter("StickySession", stickySession); this.stickySession = stickySession; return this; } /** * <p>The method that is used to handle a cookie. Valid values:</p> * <ul> * <li><p><strong>insert</strong>: inserts a cookie.</p> * <p>CLB inserts the backend server ID as a cookie into the first HTTP or HTTPS response 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 will contain the user-defined cookie, and the listener will distribute this request to the recorded backend server.</p> * </li> * </ul> * <blockquote> * <p> This parameter is required and takes effect if the <strong>StickySession</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>insert</p> */ public Builder stickySessionType(String stickySessionType) { this.putQueryParameter("StickySessionType", 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 status is changed from <strong>success</strong> to <strong>fail</strong>.</p> * <p>Valid values: <strong>2</strong> to <strong>10</strong>.</p> * <blockquote> * <p> This parameter is required and takes effect if the <strong>HealthCheck</strong> parameter is set to <strong>on</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>4</p> */ public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.putQueryParameter("UnhealthyThreshold", unhealthyThreshold); this.unhealthyThreshold = unhealthyThreshold; return this; } /** * <p>The ID of the vServer group that is associated with the forwarding rule.</p> * * <strong>example:</strong> * <p>rsp-cige6****</p> */ public Builder vServerGroupId(String vServerGroupId) { this.putQueryParameter("VServerGroupId", vServerGroupId); this.vServerGroupId = vServerGroupId; return this; } @Override public SetRuleRequest build() { return new SetRuleRequest(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/SetRuleResponse.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 SetRuleResponse} extends {@link TeaModel} * * <p>SetRuleResponse</p> */ public class SetRuleResponse 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 SetRuleResponseBody body; private SetRuleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetRuleResponse 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 SetRuleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetRuleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetRuleResponseBody body); @Override SetRuleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetRuleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetRuleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetRuleResponse 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(SetRuleResponseBody body) { this.body = body; return this; } @Override public SetRuleResponse build() { return new SetRuleResponse(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/SetRuleResponseBody.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 SetRuleResponseBody} extends {@link TeaModel} * * <p>SetRuleResponseBody</p> */ public class SetRuleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetRuleResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetRuleResponseBody 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 SetRuleResponseBody build() { return new SetRuleResponseBody(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/SetServerCertificateNameRequest.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 SetServerCertificateNameRequest} extends {@link RequestModel} * * <p>SetServerCertificateNameRequest</p> */ public class SetServerCertificateNameRequest 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("ServerCertificateId") @com.aliyun.core.annotation.Validation(required = true) private String serverCertificateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ServerCertificateName") @com.aliyun.core.annotation.Validation(required = true) private String serverCertificateName; private SetServerCertificateNameRequest(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.serverCertificateId = builder.serverCertificateId; this.serverCertificateName = builder.serverCertificateName; } public static Builder builder() { return new Builder(); } public static SetServerCertificateNameRequest 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 serverCertificateId */ public String getServerCertificateId() { return this.serverCertificateId; } /** * @return serverCertificateName */ public String getServerCertificateName() { return this.serverCertificateName; } public static final class Builder extends Request.Builder<SetServerCertificateNameRequest, Builder> { private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String serverCertificateId; private String serverCertificateName; private Builder() { super(); } private Builder(SetServerCertificateNameRequest request) { super(request); this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.serverCertificateId = request.serverCertificateId; this.serverCertificateName = request.serverCertificateName; } /** * 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. 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; } /** * <p>The ID of the server certificate.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>139a0******-cn-east-hangzhou-01</p> */ public Builder serverCertificateId(String serverCertificateId) { this.putQueryParameter("ServerCertificateId", serverCertificateId); this.serverCertificateId = serverCertificateId; return this; } /** * <p>The name of the third-party server certificate that you want to upload. The name must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), underscores (_), and asterisks (*).</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder serverCertificateName(String serverCertificateName) { this.putQueryParameter("ServerCertificateName", serverCertificateName); this.serverCertificateName = serverCertificateName; return this; } @Override public SetServerCertificateNameRequest build() { return new SetServerCertificateNameRequest(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/SetServerCertificateNameResponse.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 SetServerCertificateNameResponse} extends {@link TeaModel} * * <p>SetServerCertificateNameResponse</p> */ public class SetServerCertificateNameResponse 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 SetServerCertificateNameResponseBody body; private SetServerCertificateNameResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetServerCertificateNameResponse 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 SetServerCertificateNameResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetServerCertificateNameResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetServerCertificateNameResponseBody body); @Override SetServerCertificateNameResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetServerCertificateNameResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetServerCertificateNameResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetServerCertificateNameResponse 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(SetServerCertificateNameResponseBody body) { this.body = body; return this; } @Override public SetServerCertificateNameResponse build() { return new SetServerCertificateNameResponse(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/SetServerCertificateNameResponseBody.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 SetServerCertificateNameResponseBody} extends {@link TeaModel} * * <p>SetServerCertificateNameResponseBody</p> */ public class SetServerCertificateNameResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SetServerCertificateNameResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SetServerCertificateNameResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>CEF72CEB-54B6-4AE8-B225-F876FE7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SetServerCertificateNameResponseBody build() { return new SetServerCertificateNameResponseBody(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/SetTLSCipherPolicyAttributeRequest.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 SetTLSCipherPolicyAttributeRequest} extends {@link RequestModel} * * <p>SetTLSCipherPolicyAttributeRequest</p> */ public class SetTLSCipherPolicyAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ciphers") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> ciphers; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") @com.aliyun.core.annotation.Validation(required = true) private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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") @com.aliyun.core.annotation.Validation(required = true) private String TLSCipherPolicyId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TLSVersions") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> TLSVersions; private SetTLSCipherPolicyAttributeRequest(Builder builder) { super(builder); this.ciphers = builder.ciphers; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.TLSCipherPolicyId = builder.TLSCipherPolicyId; this.TLSVersions = builder.TLSVersions; } public static Builder builder() { return new Builder(); } public static SetTLSCipherPolicyAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ciphers */ public java.util.List<String> getCiphers() { return this.ciphers; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return 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; } /** * @return TLSVersions */ public java.util.List<String> getTLSVersions() { return this.TLSVersions; } public static final class Builder extends Request.Builder<SetTLSCipherPolicyAttributeRequest, Builder> { private java.util.List<String> ciphers; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String TLSCipherPolicyId; private java.util.List<String> TLSVersions; private Builder() { super(); } private Builder(SetTLSCipherPolicyAttributeRequest request) { super(request); this.ciphers = request.ciphers; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.TLSCipherPolicyId = request.TLSCipherPolicyId; this.TLSVersions = request.TLSVersions; } /** * <p>The cipher suites supported by the TLS version.</p> * <p>The specified cipher suites must be supported by at least one TLS protocol version that you specify. For example, if you set the TLSVersions parameter to TLSv1.3, you must specify cipher suites that are supported by this protocol 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> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>DES-CBC3-SHA</p> */ public Builder ciphers(java.util.List<String> ciphers) { this.putQueryParameter("Ciphers", ciphers); this.ciphers = ciphers; 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> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>tls-policy*****-test</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The 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/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> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>tls-bp1lp2076qx4e******bridp</p> */ public Builder TLSCipherPolicyId(String TLSCipherPolicyId) { this.putQueryParameter("TLSCipherPolicyId", TLSCipherPolicyId); this.TLSCipherPolicyId = TLSCipherPolicyId; return this; } /** * <p>The version of the TLS protocol. Valid values: <strong>TLSv1.0</strong>, <strong>TLSv1.1</strong>, <strong>TLSv1.2</strong>, and <strong>TLSv1.3</strong>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>TLSv1.0</p> */ public Builder TLSVersions(java.util.List<String> TLSVersions) { this.putQueryParameter("TLSVersions", TLSVersions); this.TLSVersions = TLSVersions; return this; } @Override public SetTLSCipherPolicyAttributeRequest build() { return new SetTLSCipherPolicyAttributeRequest(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/SetTLSCipherPolicyAttributeResponse.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 SetTLSCipherPolicyAttributeResponse} extends {@link TeaModel} * * <p>SetTLSCipherPolicyAttributeResponse</p> */ public class SetTLSCipherPolicyAttributeResponse 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 SetTLSCipherPolicyAttributeResponseBody body; private SetTLSCipherPolicyAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetTLSCipherPolicyAttributeResponse 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 SetTLSCipherPolicyAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetTLSCipherPolicyAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetTLSCipherPolicyAttributeResponseBody body); @Override SetTLSCipherPolicyAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetTLSCipherPolicyAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetTLSCipherPolicyAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetTLSCipherPolicyAttributeResponse 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(SetTLSCipherPolicyAttributeResponseBody body) { this.body = body; return this; } @Override public SetTLSCipherPolicyAttributeResponse build() { return new SetTLSCipherPolicyAttributeResponse(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/SetTLSCipherPolicyAttributeResponseBody.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 SetTLSCipherPolicyAttributeResponseBody} extends {@link TeaModel} * * <p>SetTLSCipherPolicyAttributeResponseBody</p> */ public class SetTLSCipherPolicyAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TaskId") private String taskId; private SetTLSCipherPolicyAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; this.taskId = builder.taskId; } public static Builder builder() { return new Builder(); } public static SetTLSCipherPolicyAttributeResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return taskId */ public String getTaskId() { return this.taskId; } public static final class Builder { private String requestId; private String taskId; /** * <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 ID of the asynchronous task.</p> * * <strong>example:</strong> * <p>72dcd26b-f12d-4c27-b3af****-18f6aed5</p> */ public Builder taskId(String taskId) { this.taskId = taskId; return this; } public SetTLSCipherPolicyAttributeResponseBody build() { return new SetTLSCipherPolicyAttributeResponseBody(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/SetVServerGroupAttributeRequest.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 SetVServerGroupAttributeRequest} extends {@link RequestModel} * * <p>SetVServerGroupAttributeRequest</p> */ public class SetVServerGroupAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackendServers") private String backendServers; @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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VServerGroupName") private String vServerGroupName; private SetVServerGroupAttributeRequest(Builder builder) { super(builder); this.backendServers = builder.backendServers; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.vServerGroupId = builder.vServerGroupId; this.vServerGroupName = builder.vServerGroupName; } public static Builder builder() { return new Builder(); } public static SetVServerGroupAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return backendServers */ public String getBackendServers() { return this.backendServers; } /** * @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; } /** * @return vServerGroupName */ public String getVServerGroupName() { return this.vServerGroupName; } public static final class Builder extends Request.Builder<SetVServerGroupAttributeRequest, Builder> { private String backendServers; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vServerGroupId; private String vServerGroupName; private Builder() { super(); } private Builder(SetVServerGroupAttributeRequest request) { super(request); this.backendServers = request.backendServers; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.vServerGroupId = request.vServerGroupId; this.vServerGroupName = request.vServerGroupName; } /** * <p>The backend servers. This operation only can be used to modify the weights of backend servers and names of vServer groups. Configure the following parameters:</p> * <ul> * <li><p><strong>ServerId</strong>: Required. The ID of the backend server. Specify the value in a string. You can specify the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. If you set <strong>ServerId</strong> to the ID of an ENI or an elastic container instance, you must configure the <strong>Type</strong> parameter.</p> * </li> * <li><p><strong>Weight</strong>: the weight of the backend server. Valid values: <strong>0</strong> to <strong>100</strong>. Default value: <strong>100</strong>. If you set the weight of a backend server to 0, no requests are forwarded to the backend server.</p> * </li> * <li><p><strong>Description</strong>: Optional. The description of the backend server. Specify the value in a string. The description must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).</p> * </li> * <li><p><strong>Type</strong>: the type of the backend server. Valid values:</p> * <ul> * <li><strong>ecs</strong> (default): ECS instance</li> * <li><strong>eni</strong>: ENI</li> * <li><strong>eci</strong>: elastic container instance</li> * </ul> * </li> * </ul> * <blockquote> * <p> You can specify ENIs and elastic container instances as backend servers only for high-performance CLB instances.</p> * </blockquote> * <ul> * <li><strong>ServerIp</strong>: the IP address of an ENI or an elastic container instance.</li> * <li><strong>Port</strong>: the backend port.</li> * </ul> * <p>Examples:</p> * <ul> * <li><p>Add ECS instances:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;i-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;ecs&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</code></p> * </li> * <li><p>Add ENIs:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; }]</code></p> * </li> * <li><p>Add ENIs with multiple IP addresses:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; },{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;</code>172.166.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; }]</code></p> * </li> * <li><p>Add elastic container instances:</p> * <p><code>[{ &quot;ServerId&quot;: &quot;eci-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eci&quot;, &quot;ServerIp&quot;: &quot;</code>192.168.<strong>.</strong><code>&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-114&quot; }]</code></p> * </li> * </ul> * <blockquote> * <p> You can add only running backend servers to SLB instances. You can specify at most 20 backend servers in each call.</p> * </blockquote> * * <strong>example:</strong> * <p>[{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;192.XX.XX.6&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-112&quot; },{ &quot;ServerId&quot;: &quot;eni-xxxxxxxxx&quot;, &quot;Weight&quot;: &quot;100&quot;, &quot;Type&quot;: &quot;eni&quot;, &quot;ServerIp&quot;: &quot;172.XX.XX.6&quot;, &quot;Port&quot;:&quot;80&quot;,&quot;Description&quot;:&quot;test-113&quot; }]</p> */ public Builder backendServers(String backendServers) { this.putQueryParameter("BackendServers", backendServers); this.backendServers = backendServers; 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 Server Load Balancer (SLB) instance, which cannot be modified.</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 vServer group ID, which cannot be modified.</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; } /** * <p>The vServer group name. You can specify a name.</p> * * <strong>example:</strong> * <p>Group1</p> */ public Builder vServerGroupName(String vServerGroupName) { this.putQueryParameter("VServerGroupName", vServerGroupName); this.vServerGroupName = vServerGroupName; return this; } @Override public SetVServerGroupAttributeRequest build() { return new SetVServerGroupAttributeRequest(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/SetVServerGroupAttributeResponse.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 SetVServerGroupAttributeResponse} extends {@link TeaModel} * * <p>SetVServerGroupAttributeResponse</p> */ public class SetVServerGroupAttributeResponse 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 SetVServerGroupAttributeResponseBody body; private SetVServerGroupAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetVServerGroupAttributeResponse 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 SetVServerGroupAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetVServerGroupAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetVServerGroupAttributeResponseBody body); @Override SetVServerGroupAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetVServerGroupAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetVServerGroupAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetVServerGroupAttributeResponse 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(SetVServerGroupAttributeResponseBody body) { this.body = body; return this; } @Override public SetVServerGroupAttributeResponse build() { return new SetVServerGroupAttributeResponse(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/SetVServerGroupAttributeResponseBody.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 SetVServerGroupAttributeResponseBody} extends {@link TeaModel} * * <p>SetVServerGroupAttributeResponseBody</p> */ public class SetVServerGroupAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BackendServers") private BackendServers backendServers; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("VServerGroupId") private String vServerGroupId; @com.aliyun.core.annotation.NameInMap("VServerGroupName") private String vServerGroupName; private SetVServerGroupAttributeResponseBody(Builder builder) { this.backendServers = builder.backendServers; this.requestId = builder.requestId; this.vServerGroupId = builder.vServerGroupId; this.vServerGroupName = builder.vServerGroupName; } public static Builder builder() { return new Builder(); } public static SetVServerGroupAttributeResponseBody create() { return builder().build(); } /** * @return backendServers */ public BackendServers getBackendServers() { return this.backendServers; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @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 requestId; private String vServerGroupId; private String vServerGroupName; /** * <p>The backend servers.</p> */ public Builder backendServers(BackendServers backendServers) { this.backendServers = backendServers; 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 server group ID.</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 SetVServerGroupAttributeResponseBody build() { return new SetVServerGroupAttributeResponseBody(this); } } /** * * {@link SetVServerGroupAttributeResponseBody} extends {@link TeaModel} * * <p>SetVServerGroupAttributeResponseBody</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("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.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 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 type; private Integer weight; /** * <p>The description of the server group.</p> * * <strong>example:</strong> * <p>Backend 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>70</p> */ public Builder port(Integer port) { this.port = port; return this; } /** * <p>The ID of the backend server.</p> * * <strong>example:</strong> * <p>i-bp1ek6yd7jvkx****</p> */ public Builder serverId(String serverId) { this.serverId = serverId; return this; } /** * <p>The type of backend server. Valid values:</p> * <ul> * <li><strong>ecs</strong> (default): 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 SetVServerGroupAttributeResponseBody} extends {@link TeaModel} * * <p>SetVServerGroupAttributeResponseBody</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/StartLoadBalancerListenerRequest.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 StartLoadBalancerListenerRequest} extends {@link RequestModel} * * <p>StartLoadBalancerListenerRequest</p> */ public class StartLoadBalancerListenerRequest 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("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 StartLoadBalancerListenerRequest(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 StartLoadBalancerListenerRequest 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<StartLoadBalancerListenerRequest, 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(StartLoadBalancerListenerRequest 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 used by 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-bp13jaf5qli5*********</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 CLB instance is created.</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> * * <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 StartLoadBalancerListenerRequest build() { return new StartLoadBalancerListenerRequest(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/StartLoadBalancerListenerResponse.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 StartLoadBalancerListenerResponse} extends {@link TeaModel} * * <p>StartLoadBalancerListenerResponse</p> */ public class StartLoadBalancerListenerResponse 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 StartLoadBalancerListenerResponseBody body; private StartLoadBalancerListenerResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static StartLoadBalancerListenerResponse 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 StartLoadBalancerListenerResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<StartLoadBalancerListenerResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(StartLoadBalancerListenerResponseBody body); @Override StartLoadBalancerListenerResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<StartLoadBalancerListenerResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private StartLoadBalancerListenerResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(StartLoadBalancerListenerResponse 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(StartLoadBalancerListenerResponseBody body) { this.body = body; return this; } @Override public StartLoadBalancerListenerResponse build() { return new StartLoadBalancerListenerResponse(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/StartLoadBalancerListenerResponseBody.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 StartLoadBalancerListenerResponseBody} extends {@link TeaModel} * * <p>StartLoadBalancerListenerResponseBody</p> */ public class StartLoadBalancerListenerResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private StartLoadBalancerListenerResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static StartLoadBalancerListenerResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public StartLoadBalancerListenerResponseBody build() { return new StartLoadBalancerListenerResponseBody(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/StopLoadBalancerListenerRequest.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 StopLoadBalancerListenerRequest} extends {@link RequestModel} * * <p>StopLoadBalancerListenerRequest</p> */ public class StopLoadBalancerListenerRequest 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("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 StopLoadBalancerListenerRequest(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 StopLoadBalancerListenerRequest 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<StopLoadBalancerListenerRequest, 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(StopLoadBalancerListenerRequest 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 used by 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-bp13jaf5qli5xmg******</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 to which the SLB instance belongs.</p> * <p>To query the region ID, refer to the list of <a href="https://help.aliyun.com/document_detail/40654.html">regions and zones</a> or call <a href="https://help.aliyun.com/document_detail/25609.html">DescribeRegions</a>.</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 StopLoadBalancerListenerRequest build() { return new StopLoadBalancerListenerRequest(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/StopLoadBalancerListenerResponse.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 StopLoadBalancerListenerResponse} extends {@link TeaModel} * * <p>StopLoadBalancerListenerResponse</p> */ public class StopLoadBalancerListenerResponse 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 StopLoadBalancerListenerResponseBody body; private StopLoadBalancerListenerResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static StopLoadBalancerListenerResponse 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 StopLoadBalancerListenerResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<StopLoadBalancerListenerResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(StopLoadBalancerListenerResponseBody body); @Override StopLoadBalancerListenerResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<StopLoadBalancerListenerResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private StopLoadBalancerListenerResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(StopLoadBalancerListenerResponse 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(StopLoadBalancerListenerResponseBody body) { this.body = body; return this; } @Override public StopLoadBalancerListenerResponse build() { return new StopLoadBalancerListenerResponse(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/StopLoadBalancerListenerResponseBody.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 StopLoadBalancerListenerResponseBody} extends {@link TeaModel} * * <p>StopLoadBalancerListenerResponseBody</p> */ public class StopLoadBalancerListenerResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private StopLoadBalancerListenerResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static StopLoadBalancerListenerResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public StopLoadBalancerListenerResponseBody build() { return new StopLoadBalancerListenerResponseBody(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/TagResourcesRequest.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 TagResourcesRequest} extends {@link RequestModel} * * <p>TagResourcesRequest</p> */ public class TagResourcesRequest 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("ResourceId") @com.aliyun.core.annotation.Validation(required = true) 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") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<Tag> tag; private TagResourcesRequest(Builder builder) { super(builder); 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 TagResourcesRequest 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 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<TagResourcesRequest, Builder> { 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(TagResourcesRequest request) { super(request); 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; } /** * 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 created.</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. You can specify at most 20 resources.</p> * <blockquote> * <p> Set <strong>ResourceId</strong> of the <strong>listener</strong> to <strong>LoadBalancerId_Listener protocol_Port</strong>. Set LoadBalancerId to the ID of the SLB instance, and Port to the listener port. Example: lb-bp1snb10sbml4****_http_80.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-bp16qjewdsunr41m1****</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 Server Load Balancer (SLB) 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> * <p>This parameter is required.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public TagResourcesRequest build() { return new TagResourcesRequest(this); } } /** * * {@link TagResourcesRequest} extends {@link TeaModel} * * <p>TagResourcesRequest</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. 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>. 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. You can specify up to 20 tag values. The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length and cannot 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/TagResourcesResponse.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 TagResourcesResponse} extends {@link TeaModel} * * <p>TagResourcesResponse</p> */ public class TagResourcesResponse 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 TagResourcesResponseBody body; private TagResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static TagResourcesResponse 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 TagResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<TagResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(TagResourcesResponseBody body); @Override TagResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<TagResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private TagResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(TagResourcesResponse 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(TagResourcesResponseBody body) { this.body = body; return this; } @Override public TagResourcesResponse build() { return new TagResourcesResponse(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/TagResourcesResponseBody.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 TagResourcesResponseBody} extends {@link TeaModel} * * <p>TagResourcesResponseBody</p> */ public class TagResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private TagResourcesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static TagResourcesResponseBody 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>C46FF5A8-C5F0-4024-8262-B16B639225A0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public TagResourcesResponseBody build() { return new TagResourcesResponseBody(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/UntagResourcesRequest.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 UntagResourcesRequest} extends {@link RequestModel} * * <p>UntagResourcesRequest</p> */ public class UntagResourcesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("All") private Boolean all; @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") @com.aliyun.core.annotation.Validation(required = true) 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("TagKey") private java.util.List<String> tagKey; private UntagResourcesRequest(Builder builder) { super(builder); this.all = builder.all; 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.tagKey = builder.tagKey; } public static Builder builder() { return new Builder(); } public static UntagResourcesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return all */ public Boolean getAll() { return this.all; } /** * @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 tagKey */ public java.util.List<String> getTagKey() { return this.tagKey; } public static final class Builder extends Request.Builder<UntagResourcesRequest, Builder> { private Boolean all; 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<String> tagKey; private Builder() { super(); } private Builder(UntagResourcesRequest request) { super(request); this.all = request.all; 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.tagKey = request.tagKey; } /** * <p>Specifies whether to remove all tags from the specified resource. This parameter takes effect only if <strong>TagKey.N</strong> is empty.</p> * <p>Valid values: <strong>true</strong> and <strong>false</strong>.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder all(Boolean all) { this.putQueryParameter("All", all); this.all = all; 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; } /** * <p>The ID of the resource. You can specify at most 20 resources.</p> * <blockquote> * <p> Set <strong>ResourceId</strong> of the <strong>listener</strong> to <strong>LoadBalancerId_Listener protocol_Port</strong>. Set LoadBalancerId to the ID of the CLB instance, and Port to the listener port.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>lb-bp16qjewdsunr41m1****</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 resource. Valid values:</p> * <ul> * <li><strong>instance</strong>: CLB instance</li> * <li><strong>certificate</strong>: certificate</li> * <li><strong>acl</strong>: access control list (ACL)</li> * <li><strong>listener</strong>: listener</li> * <li><strong>vservergroup</strong>: vServer group</li> * <li><strong>masterslaveservergroup</strong>: 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 tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 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> * <blockquote> * <p> If you do not specify <strong>TagKey</strong>, all tags are removed from the instance.</p> * </blockquote> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder tagKey(java.util.List<String> tagKey) { this.putQueryParameter("TagKey", tagKey); this.tagKey = tagKey; return this; } @Override public UntagResourcesRequest build() { return new UntagResourcesRequest(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/UntagResourcesResponse.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 UntagResourcesResponse} extends {@link TeaModel} * * <p>UntagResourcesResponse</p> */ public class UntagResourcesResponse 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 UntagResourcesResponseBody body; private UntagResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UntagResourcesResponse 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 UntagResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UntagResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UntagResourcesResponseBody body); @Override UntagResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UntagResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UntagResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UntagResourcesResponse 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(UntagResourcesResponseBody body) { this.body = body; return this; } @Override public UntagResourcesResponse build() { return new UntagResourcesResponse(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/UntagResourcesResponseBody.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 UntagResourcesResponseBody} extends {@link TeaModel} * * <p>UntagResourcesResponseBody</p> */ public class UntagResourcesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private UntagResourcesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static UntagResourcesResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C46FF5A8-C5F0-4024-8262-B16B639225A0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public UntagResourcesResponseBody build() { return new UntagResourcesResponseBody(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/UploadCACertificateRequest.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 UploadCACertificateRequest} extends {@link RequestModel} * * <p>UploadCACertificateRequest</p> */ public class UploadCACertificateRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CACertificate") @com.aliyun.core.annotation.Validation(required = true) private String CACertificate; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CACertificateName") private String CACertificateName; @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 UploadCACertificateRequest(Builder builder) { super(builder); this.CACertificate = builder.CACertificate; this.CACertificateName = builder.CACertificateName; 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 UploadCACertificateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return CACertificate */ public String getCACertificate() { return this.CACertificate; } /** * @return CACertificateName */ public String getCACertificateName() { return this.CACertificateName; } /** * @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<UploadCACertificateRequest, Builder> { private String CACertificate; private String CACertificateName; 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(UploadCACertificateRequest request) { super(request); this.CACertificate = request.CACertificate; this.CACertificateName = request.CACertificateName; 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 information about the CA certificate.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder CACertificate(String CACertificate) { this.putQueryParameter("CACertificate", CACertificate); this.CACertificate = CACertificate; return this; } /** * <p>The CA certificate name.</p> * * <strong>example:</strong> * <p>mycacert01</p> */ public Builder CACertificateName(String CACertificateName) { this.putQueryParameter("CACertificateName", CACertificateName); this.CACertificateName = CACertificateName; 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/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; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-atstuj3rto*****</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> * * <strong>example:</strong> * <p>UploadCACertificate</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public UploadCACertificateRequest build() { return new UploadCACertificateRequest(this); } } /** * * {@link UploadCACertificateRequest} extends {@link TeaModel} * * <p>UploadCACertificateRequest</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</strong> to <strong>20</strong>. The tag key cannot be an empty string. The tag key can be up 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>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. The tag value must be 1 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>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/UploadCACertificateResponse.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 UploadCACertificateResponse} extends {@link TeaModel} * * <p>UploadCACertificateResponse</p> */ public class UploadCACertificateResponse 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 UploadCACertificateResponseBody body; private UploadCACertificateResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UploadCACertificateResponse 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 UploadCACertificateResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UploadCACertificateResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UploadCACertificateResponseBody body); @Override UploadCACertificateResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UploadCACertificateResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UploadCACertificateResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UploadCACertificateResponse 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(UploadCACertificateResponseBody body) { this.body = body; return this; } @Override public UploadCACertificateResponse build() { return new UploadCACertificateResponse(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/UploadCACertificateResponseBody.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 UploadCACertificateResponseBody} extends {@link TeaModel} * * <p>UploadCACertificateResponseBody</p> */ public class UploadCACertificateResponseBody 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("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; private UploadCACertificateResponseBody(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.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; } public static Builder builder() { return new Builder(); } public static UploadCACertificateResponseBody 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 requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } 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 requestId; private String resourceGroupId; /** * <p>The ID of the CA certificate.</p> * * <strong>example:</strong> * <p>139a0******-cn-east-hangzhou-01</p> */ public Builder CACertificateId(String CACertificateId) { this.CACertificateId = CACertificateId; return this; } /** * <p>The CA certificate name.</p> * * <strong>example:</strong> * <p>mycacert01</p> */ public Builder CACertificateName(String CACertificateName) { this.CACertificateName = CACertificateName; return this; } /** * <p>The domain name on the CA certificate.</p> * * <strong>example:</strong> * <p>.example.com</p> */ public Builder commonName(String commonName) { this.commonName = commonName; return this; } /** * <p>The time when the CA certificate was created.</p> * * <strong>example:</strong> * <p>2017-08-31T02:49:05Z</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The timestamp when the CA certificate was created.</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.</p> * * <strong>example:</strong> * <p>2024-11-21T06:04:25Z</p> */ public Builder expireTime(String expireTime) { this.expireTime = expireTime; return this; } /** * <p>The timestamp when the server certificate expires.</p> * * <strong>example:</strong> * <p>1732169065000</p> */ public Builder expireTimeStamp(Long expireTimeStamp) { this.expireTimeStamp = expireTimeStamp; return this; } /** * <p>The fingerprint of the server certificate.</p> * * <strong>example:</strong> * <p>02:DF:AB:ED</p> */ public Builder fingerprint(String fingerprint) { this.fingerprint = fingerprint; 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 ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-atstuj3rt******</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } public UploadCACertificateResponseBody build() { return new UploadCACertificateResponseBody(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/UploadServerCertificateRequest.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 UploadServerCertificateRequest} extends {@link RequestModel} * * <p>UploadServerCertificateRequest</p> */ public class UploadServerCertificateRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AliCloudCertificateId") private String aliCloudCertificateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AliCloudCertificateName") private String aliCloudCertificateName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AliCloudCertificateRegionId") private String aliCloudCertificateRegionId; @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("PrivateKey") private String privateKey; @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("ServerCertificate") private String serverCertificate; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ServerCertificateName") private String serverCertificateName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private UploadServerCertificateRequest(Builder builder) { super(builder); this.aliCloudCertificateId = builder.aliCloudCertificateId; this.aliCloudCertificateName = builder.aliCloudCertificateName; this.aliCloudCertificateRegionId = builder.aliCloudCertificateRegionId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.privateKey = builder.privateKey; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.serverCertificate = builder.serverCertificate; this.serverCertificateName = builder.serverCertificateName; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static UploadServerCertificateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aliCloudCertificateId */ public String getAliCloudCertificateId() { return this.aliCloudCertificateId; } /** * @return aliCloudCertificateName */ public String getAliCloudCertificateName() { return this.aliCloudCertificateName; } /** * @return aliCloudCertificateRegionId */ public String getAliCloudCertificateRegionId() { return this.aliCloudCertificateRegionId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return privateKey */ public String getPrivateKey() { return this.privateKey; } /** * @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 serverCertificate */ public String getServerCertificate() { return this.serverCertificate; } /** * @return serverCertificateName */ public String getServerCertificateName() { return this.serverCertificateName; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<UploadServerCertificateRequest, Builder> { private String aliCloudCertificateId; private String aliCloudCertificateName; private String aliCloudCertificateRegionId; private String ownerAccount; private Long ownerId; private String privateKey; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private String serverCertificate; private String serverCertificateName; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(UploadServerCertificateRequest request) { super(request); this.aliCloudCertificateId = request.aliCloudCertificateId; this.aliCloudCertificateName = request.aliCloudCertificateName; this.aliCloudCertificateRegionId = request.aliCloudCertificateRegionId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.privateKey = request.privateKey; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.serverCertificate = request.serverCertificate; this.serverCertificateName = request.serverCertificateName; this.tag = request.tag; } /** * <p>AliCloud certificate ID.</p> * * <strong>example:</strong> * <p>775****</p> */ public Builder aliCloudCertificateId(String aliCloudCertificateId) { this.putQueryParameter("AliCloudCertificateId", aliCloudCertificateId); this.aliCloudCertificateId = aliCloudCertificateId; return this; } /** * <p>AliCloud certificate name.</p> * * <strong>example:</strong> * <p>cloudcertificate</p> */ public Builder aliCloudCertificateName(String aliCloudCertificateName) { this.putQueryParameter("AliCloudCertificateName", aliCloudCertificateName); this.aliCloudCertificateName = aliCloudCertificateName; return this; } /** * <p>The region ID of AliCloud certificate.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder aliCloudCertificateRegionId(String aliCloudCertificateRegionId) { this.putQueryParameter("AliCloudCertificateRegionId", aliCloudCertificateRegionId); this.aliCloudCertificateRegionId = aliCloudCertificateRegionId; 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 private key of the certificate.</p> * * <strong>example:</strong> * <p>-----BEGIN RSA PRIVATE KEY----- MIIEogIB****** -----END RSA PRIVATE KEY-----</p> */ public Builder privateKey(String privateKey) { this.putQueryParameter("PrivateKey", privateKey); this.privateKey = privateKey; 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 group ID.</p> * * <strong>example:</strong> * <p>rg-atstuj3rto****</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 to be uploaded.</p> * * <strong>example:</strong> * <p>-----BEGIN CERTIFICATE----- MIIGDTCC****** -----END CERTIFICATE-----</p> */ public Builder serverCertificate(String serverCertificate) { this.putQueryParameter("ServerCertificate", serverCertificate); this.serverCertificate = serverCertificate; return this; } /** * <p>The name of the server certificate.</p> * <p>The name must be 1 to 80 characters in length. It must start with an English letter. It can contain letters, numbers, periods (.), underscores (_), and hyphens (-).</p> * * <strong>example:</strong> * <p>mycert01</p> */ public Builder serverCertificateName(String serverCertificateName) { this.putQueryParameter("ServerCertificateName", serverCertificateName); this.serverCertificateName = serverCertificateName; 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 UploadServerCertificateRequest build() { return new UploadServerCertificateRequest(this); } } /** * * {@link UploadServerCertificateRequest} extends {@link TeaModel} * * <p>UploadServerCertificateRequest</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>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/UploadServerCertificateResponse.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 UploadServerCertificateResponse} extends {@link TeaModel} * * <p>UploadServerCertificateResponse</p> */ public class UploadServerCertificateResponse 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 UploadServerCertificateResponseBody body; private UploadServerCertificateResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static UploadServerCertificateResponse 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 UploadServerCertificateResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<UploadServerCertificateResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(UploadServerCertificateResponseBody body); @Override UploadServerCertificateResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<UploadServerCertificateResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private UploadServerCertificateResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(UploadServerCertificateResponse 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(UploadServerCertificateResponseBody body) { this.body = body; return this; } @Override public UploadServerCertificateResponse build() { return new UploadServerCertificateResponse(this); } } }