index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteFirewallTemplateRulesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteFirewallTemplateRulesResponse} extends {@link TeaModel} * * <p>DeleteFirewallTemplateRulesResponse</p> */ public class DeleteFirewallTemplateRulesResponse 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 DeleteFirewallTemplateRulesResponseBody body; private DeleteFirewallTemplateRulesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteFirewallTemplateRulesResponse 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 DeleteFirewallTemplateRulesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteFirewallTemplateRulesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteFirewallTemplateRulesResponseBody body); @Override DeleteFirewallTemplateRulesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteFirewallTemplateRulesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteFirewallTemplateRulesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteFirewallTemplateRulesResponse 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(DeleteFirewallTemplateRulesResponseBody body) { this.body = body; return this; } @Override public DeleteFirewallTemplateRulesResponse build() { return new DeleteFirewallTemplateRulesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteFirewallTemplateRulesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteFirewallTemplateRulesResponseBody} extends {@link TeaModel} * * <p>DeleteFirewallTemplateRulesResponseBody</p> */ public class DeleteFirewallTemplateRulesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteFirewallTemplateRulesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteFirewallTemplateRulesResponseBody 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>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteFirewallTemplateRulesResponseBody build() { return new DeleteFirewallTemplateRulesResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteFirewallTemplatesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteFirewallTemplatesRequest} extends {@link RequestModel} * * <p>DeleteFirewallTemplatesRequest</p> */ public class DeleteFirewallTemplatesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FirewallTemplateId") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> firewallTemplateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DeleteFirewallTemplatesRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.firewallTemplateId = builder.firewallTemplateId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteFirewallTemplatesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return firewallTemplateId */ public java.util.List<String> getFirewallTemplateId() { return this.firewallTemplateId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteFirewallTemplatesRequest, Builder> { private String clientToken; private java.util.List<String> firewallTemplateId; private String regionId; private Builder() { super(); } private Builder(DeleteFirewallTemplatesRequest request) { super(request); this.clientToken = request.clientToken; this.firewallTemplateId = request.firewallTemplateId; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The <strong>token</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The IDs of the firewall templates.</p> * <p>This parameter is required.</p> */ public Builder firewallTemplateId(java.util.List<String> firewallTemplateId) { this.putQueryParameter("FirewallTemplateId", firewallTemplateId); this.firewallTemplateId = firewallTemplateId; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DeleteFirewallTemplatesRequest build() { return new DeleteFirewallTemplatesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteFirewallTemplatesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteFirewallTemplatesResponse} extends {@link TeaModel} * * <p>DeleteFirewallTemplatesResponse</p> */ public class DeleteFirewallTemplatesResponse 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 DeleteFirewallTemplatesResponseBody body; private DeleteFirewallTemplatesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteFirewallTemplatesResponse 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 DeleteFirewallTemplatesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteFirewallTemplatesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteFirewallTemplatesResponseBody body); @Override DeleteFirewallTemplatesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteFirewallTemplatesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteFirewallTemplatesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteFirewallTemplatesResponse 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(DeleteFirewallTemplatesResponseBody body) { this.body = body; return this; } @Override public DeleteFirewallTemplatesResponse build() { return new DeleteFirewallTemplatesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteFirewallTemplatesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteFirewallTemplatesResponseBody} extends {@link TeaModel} * * <p>DeleteFirewallTemplatesResponseBody</p> */ public class DeleteFirewallTemplatesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteFirewallTemplatesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteFirewallTemplatesResponseBody 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>20758A-585D-4A41-A9B2-28DA8F4****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteFirewallTemplatesResponseBody build() { return new DeleteFirewallTemplatesResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteInstanceKeyPairRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteInstanceKeyPairRequest} extends {@link RequestModel} * * <p>DeleteInstanceKeyPairRequest</p> */ public class DeleteInstanceKeyPairRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DeleteInstanceKeyPairRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteInstanceKeyPairRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteInstanceKeyPairRequest, Builder> { private String clientToken; private String instanceId; private String regionId; private Builder() { super(); } private Builder(DeleteInstanceKeyPairRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The value of <strong>ClientToken</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ace0706b2ac4454d984295a94213****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DeleteInstanceKeyPairRequest build() { return new DeleteInstanceKeyPairRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteInstanceKeyPairResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteInstanceKeyPairResponse} extends {@link TeaModel} * * <p>DeleteInstanceKeyPairResponse</p> */ public class DeleteInstanceKeyPairResponse 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 DeleteInstanceKeyPairResponseBody body; private DeleteInstanceKeyPairResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteInstanceKeyPairResponse 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 DeleteInstanceKeyPairResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteInstanceKeyPairResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteInstanceKeyPairResponseBody body); @Override DeleteInstanceKeyPairResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteInstanceKeyPairResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteInstanceKeyPairResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteInstanceKeyPairResponse 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(DeleteInstanceKeyPairResponseBody body) { this.body = body; return this; } @Override public DeleteInstanceKeyPairResponse build() { return new DeleteInstanceKeyPairResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteInstanceKeyPairResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteInstanceKeyPairResponseBody} extends {@link TeaModel} * * <p>DeleteInstanceKeyPairResponseBody</p> */ public class DeleteInstanceKeyPairResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteInstanceKeyPairResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteInstanceKeyPairResponseBody 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>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteInstanceKeyPairResponseBody build() { return new DeleteInstanceKeyPairResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteKeyPairsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteKeyPairsRequest} extends {@link RequestModel} * * <p>DeleteKeyPairsRequest</p> */ public class DeleteKeyPairsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("KeyPairNames") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> keyPairNames; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DeleteKeyPairsRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.keyPairNames = builder.keyPairNames; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteKeyPairsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return keyPairNames */ public java.util.List<String> getKeyPairNames() { return this.keyPairNames; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteKeyPairsRequest, Builder> { private String clientToken; private java.util.List<String> keyPairNames; private String regionId; private Builder() { super(); } private Builder(DeleteKeyPairsRequest request) { super(request); this.clientToken = request.clientToken; this.keyPairNames = request.keyPairNames; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The <strong>token</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The names of the SSH key pairs. The name must be 2 to 64 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter and cannot start with http:// or https://. You can specify the names of a maximum of 50 SSH key pairs.</p> * <p>This parameter is required.</p> */ public Builder keyPairNames(java.util.List<String> keyPairNames) { this.putQueryParameter("KeyPairNames", keyPairNames); this.keyPairNames = keyPairNames; return this; } /** * <p>The region ID of the simple application servers. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DeleteKeyPairsRequest build() { return new DeleteKeyPairsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteKeyPairsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteKeyPairsResponse} extends {@link TeaModel} * * <p>DeleteKeyPairsResponse</p> */ public class DeleteKeyPairsResponse 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 DeleteKeyPairsResponseBody body; private DeleteKeyPairsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteKeyPairsResponse 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 DeleteKeyPairsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteKeyPairsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteKeyPairsResponseBody body); @Override DeleteKeyPairsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteKeyPairsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteKeyPairsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteKeyPairsResponse 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(DeleteKeyPairsResponseBody body) { this.body = body; return this; } @Override public DeleteKeyPairsResponse build() { return new DeleteKeyPairsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteKeyPairsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteKeyPairsResponseBody} extends {@link TeaModel} * * <p>DeleteKeyPairsResponseBody</p> */ public class DeleteKeyPairsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteKeyPairsResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteKeyPairsResponseBody 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>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteKeyPairsResponseBody build() { return new DeleteKeyPairsResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteSnapshotRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteSnapshotRequest} extends {@link RequestModel} * * <p>DeleteSnapshotRequest</p> */ public class DeleteSnapshotRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SnapshotId") @com.aliyun.core.annotation.Validation(required = true) private String snapshotId; private DeleteSnapshotRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.regionId = builder.regionId; this.snapshotId = builder.snapshotId; } public static Builder builder() { return new Builder(); } public static DeleteSnapshotRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return snapshotId */ public String getSnapshotId() { return this.snapshotId; } public static final class Builder extends Request.Builder<DeleteSnapshotRequest, Builder> { private String clientToken; private String regionId; private String snapshotId; private Builder() { super(); } private Builder(DeleteSnapshotRequest request) { super(request); this.clientToken = request.clientToken; this.regionId = request.regionId; this.snapshotId = request.snapshotId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The value of <strong>ClientToken</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The region ID of the snapshot.</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 snapshot ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>s-bp16oazlsold4dks****</p> */ public Builder snapshotId(String snapshotId) { this.putQueryParameter("SnapshotId", snapshotId); this.snapshotId = snapshotId; return this; } @Override public DeleteSnapshotRequest build() { return new DeleteSnapshotRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteSnapshotResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteSnapshotResponse} extends {@link TeaModel} * * <p>DeleteSnapshotResponse</p> */ public class DeleteSnapshotResponse 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 DeleteSnapshotResponseBody body; private DeleteSnapshotResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteSnapshotResponse 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 DeleteSnapshotResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteSnapshotResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteSnapshotResponseBody body); @Override DeleteSnapshotResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteSnapshotResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteSnapshotResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteSnapshotResponse 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(DeleteSnapshotResponseBody body) { this.body = body; return this; } @Override public DeleteSnapshotResponse build() { return new DeleteSnapshotResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteSnapshotResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteSnapshotResponseBody} extends {@link TeaModel} * * <p>DeleteSnapshotResponseBody</p> */ public class DeleteSnapshotResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteSnapshotResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteSnapshotResponseBody 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>20758A-585D-4A41-A9B2-28DA8F4F534F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteSnapshotResponseBody build() { return new DeleteSnapshotResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteSnapshotsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteSnapshotsRequest} extends {@link RequestModel} * * <p>DeleteSnapshotsRequest</p> */ public class DeleteSnapshotsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SnapshotIds") @com.aliyun.core.annotation.Validation(required = true) private String snapshotIds; private DeleteSnapshotsRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.regionId = builder.regionId; this.snapshotIds = builder.snapshotIds; } public static Builder builder() { return new Builder(); } public static DeleteSnapshotsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return snapshotIds */ public String getSnapshotIds() { return this.snapshotIds; } public static final class Builder extends Request.Builder<DeleteSnapshotsRequest, Builder> { private String clientToken; private String regionId; private String snapshotIds; private Builder() { super(); } private Builder(DeleteSnapshotsRequest request) { super(request); this.clientToken = request.clientToken; this.regionId = request.regionId; this.snapshotIds = request.snapshotIds; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The value of <strong>ClientToken</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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 snapshot IDs. The value can be a JSON array that consists of up to 100 snapshot IDs. Separate multiple snapshot IDs with commas (,).</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[&quot;s-bp16oazlsold4dks****&quot;, &quot;s-bp16oazlsold4abc****&quot;]</p> */ public Builder snapshotIds(String snapshotIds) { this.putQueryParameter("SnapshotIds", snapshotIds); this.snapshotIds = snapshotIds; return this; } @Override public DeleteSnapshotsRequest build() { return new DeleteSnapshotsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteSnapshotsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteSnapshotsResponse} extends {@link TeaModel} * * <p>DeleteSnapshotsResponse</p> */ public class DeleteSnapshotsResponse 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 DeleteSnapshotsResponseBody body; private DeleteSnapshotsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteSnapshotsResponse 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 DeleteSnapshotsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteSnapshotsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteSnapshotsResponseBody body); @Override DeleteSnapshotsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteSnapshotsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteSnapshotsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteSnapshotsResponse 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(DeleteSnapshotsResponseBody body) { this.body = body; return this; } @Override public DeleteSnapshotsResponse build() { return new DeleteSnapshotsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DeleteSnapshotsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteSnapshotsResponseBody} extends {@link TeaModel} * * <p>DeleteSnapshotsResponseBody</p> */ public class DeleteSnapshotsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteSnapshotsResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteSnapshotsResponseBody 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>C2DE174B-7196-5778-A00D-6EA2601B****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteSnapshotsResponseBody build() { return new DeleteSnapshotsResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCloudAssistantAttributesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudAssistantAttributesRequest} extends {@link RequestModel} * * <p>DescribeCloudAssistantAttributesRequest</p> */ public class DescribeCloudAssistantAttributesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceIds") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> instanceIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeCloudAssistantAttributesRequest(Builder builder) { super(builder); this.instanceIds = builder.instanceIds; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeCloudAssistantAttributesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceIds */ public java.util.List<String> getInstanceIds() { return this.instanceIds; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeCloudAssistantAttributesRequest, Builder> { private java.util.List<String> instanceIds; private Integer pageNumber; private Integer pageSize; private String regionId; private Builder() { super(); } private Builder(DescribeCloudAssistantAttributesRequest request) { super(request); this.instanceIds = request.instanceIds; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; } /** * <p>The IDs of the simple application servers.</p> * <p>This parameter is required.</p> */ public Builder instanceIds(java.util.List<String> instanceIds) { String instanceIdsShrink = shrink(instanceIds, "InstanceIds", "json"); this.putQueryParameter("InstanceIds", instanceIdsShrink); this.instanceIds = instanceIds; return this; } /** * <p>The page number.</p> * <p>Pages start from page 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the specified simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DescribeCloudAssistantAttributesRequest build() { return new DescribeCloudAssistantAttributesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCloudAssistantAttributesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudAssistantAttributesResponse} extends {@link TeaModel} * * <p>DescribeCloudAssistantAttributesResponse</p> */ public class DescribeCloudAssistantAttributesResponse 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 DescribeCloudAssistantAttributesResponseBody body; private DescribeCloudAssistantAttributesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCloudAssistantAttributesResponse 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 DescribeCloudAssistantAttributesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCloudAssistantAttributesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCloudAssistantAttributesResponseBody body); @Override DescribeCloudAssistantAttributesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCloudAssistantAttributesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCloudAssistantAttributesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCloudAssistantAttributesResponse 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(DescribeCloudAssistantAttributesResponseBody body) { this.body = body; return this; } @Override public DescribeCloudAssistantAttributesResponse build() { return new DescribeCloudAssistantAttributesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCloudAssistantAttributesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudAssistantAttributesResponseBody} extends {@link TeaModel} * * <p>DescribeCloudAssistantAttributesResponseBody</p> */ public class DescribeCloudAssistantAttributesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CloudAssistant") private java.util.List<CloudAssistant> cloudAssistant; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeCloudAssistantAttributesResponseBody(Builder builder) { this.cloudAssistant = builder.cloudAssistant; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeCloudAssistantAttributesResponseBody create() { return builder().build(); } /** * @return cloudAssistant */ public java.util.List<CloudAssistant> getCloudAssistant() { return this.cloudAssistant; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<CloudAssistant> cloudAssistant; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; /** * <p>The Command Assistant information.</p> */ public Builder cloudAssistant(java.util.List<CloudAssistant> cloudAssistant) { this.cloudAssistant = cloudAssistant; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeCloudAssistantAttributesResponseBody build() { return new DescribeCloudAssistantAttributesResponseBody(this); } } /** * * {@link DescribeCloudAssistantAttributesResponseBody} extends {@link TeaModel} * * <p>DescribeCloudAssistantAttributesResponseBody</p> */ public static class CloudAssistant extends TeaModel { @com.aliyun.core.annotation.NameInMap("ActiveTaskCount") private Long activeTaskCount; @com.aliyun.core.annotation.NameInMap("CloudAssistantStatus") private String cloudAssistantStatus; @com.aliyun.core.annotation.NameInMap("CloudAssistantVersion") private String cloudAssistantVersion; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InvocationCount") private Long invocationCount; @com.aliyun.core.annotation.NameInMap("LastHeartbeatTime") private String lastHeartbeatTime; @com.aliyun.core.annotation.NameInMap("LastInvokedTime") private String lastInvokedTime; @com.aliyun.core.annotation.NameInMap("OSType") private String OSType; @com.aliyun.core.annotation.NameInMap("SupportSessionManager") private Boolean supportSessionManager; private CloudAssistant(Builder builder) { this.activeTaskCount = builder.activeTaskCount; this.cloudAssistantStatus = builder.cloudAssistantStatus; this.cloudAssistantVersion = builder.cloudAssistantVersion; this.instanceId = builder.instanceId; this.invocationCount = builder.invocationCount; this.lastHeartbeatTime = builder.lastHeartbeatTime; this.lastInvokedTime = builder.lastInvokedTime; this.OSType = builder.OSType; this.supportSessionManager = builder.supportSessionManager; } public static Builder builder() { return new Builder(); } public static CloudAssistant create() { return builder().build(); } /** * @return activeTaskCount */ public Long getActiveTaskCount() { return this.activeTaskCount; } /** * @return cloudAssistantStatus */ public String getCloudAssistantStatus() { return this.cloudAssistantStatus; } /** * @return cloudAssistantVersion */ public String getCloudAssistantVersion() { return this.cloudAssistantVersion; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return invocationCount */ public Long getInvocationCount() { return this.invocationCount; } /** * @return lastHeartbeatTime */ public String getLastHeartbeatTime() { return this.lastHeartbeatTime; } /** * @return lastInvokedTime */ public String getLastInvokedTime() { return this.lastInvokedTime; } /** * @return OSType */ public String getOSType() { return this.OSType; } /** * @return supportSessionManager */ public Boolean getSupportSessionManager() { return this.supportSessionManager; } public static final class Builder { private Long activeTaskCount; private String cloudAssistantStatus; private String cloudAssistantVersion; private String instanceId; private Long invocationCount; private String lastHeartbeatTime; private String lastInvokedTime; private String OSType; private Boolean supportSessionManager; /** * <p>The number of active tasks in Command Assistant.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder activeTaskCount(Long activeTaskCount) { this.activeTaskCount = activeTaskCount; return this; } /** * <p>Indicates whether Command Assistant is running. Valid values:</p> * <p>true: Heartbeats are detected in the last 2 minutes.</p> * <p>false: Heartbeats are not detected in the last 2 minutes.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder cloudAssistantStatus(String cloudAssistantStatus) { this.cloudAssistantStatus = cloudAssistantStatus; return this; } /** * <p>The version number of the Command Assistant agent. Null is returned if the Command Assistant agent is not installed or is not running.</p> * * <strong>example:</strong> * <p>2.2.0.106</p> */ public Builder cloudAssistantVersion(String cloudAssistantVersion) { this.cloudAssistantVersion = cloudAssistantVersion; return this; } /** * <p>The ID of the simple application server.</p> * * <strong>example:</strong> * <p>85dbe3e7cc7b49e1a3df4af3bfa4ebbf</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The number of completed tasks in Command Assistant.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder invocationCount(Long invocationCount) { this.invocationCount = invocationCount; return this; } /** * <p>The time when the last heartbeat of Command Assistant was detected. The value is updated every minute on average. The interval can be 55, 60, or 65 seconds.</p> * * <strong>example:</strong> * <p>2021-03-15T09:00:00Z</p> */ public Builder lastHeartbeatTime(String lastHeartbeatTime) { this.lastHeartbeatTime = lastHeartbeatTime; return this; } /** * <p>The time when commands were last run.</p> * * <strong>example:</strong> * <p>2021-03-15T08:00:00Z</p> */ public Builder lastInvokedTime(String lastInvokedTime) { this.lastInvokedTime = lastInvokedTime; return this; } /** * <p>The OS type of the simple application server. Valid values:</p> * <ul> * <li>Windows</li> * <li>Linux</li> * <li>FreeBSD</li> * </ul> * * <strong>example:</strong> * <p>Linux</p> */ public Builder OSType(String OSType) { this.OSType = OSType; return this; } /** * <p>Indicates whether Command Assistant supports session management. If Command Assistant does not support session management, the version of the Command Assistant agent is too earlier. We recommend that you update your Command Assistant agent to the latest version.</p> * <p>To use the session management feature, you must make sure that the version of your Command Assistant agent meets one of the following requirements:</p> * <p>If your simple application server runs Linux, the version of the Command Assistant agent on the server must be 2.2.3.189 or later. If your simple application server runs Windows, the version of the Command Assistant agent on the server must be 2.1.3.189 or later.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder supportSessionManager(Boolean supportSessionManager) { this.supportSessionManager = supportSessionManager; return this; } public CloudAssistant build() { return new CloudAssistant(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCloudAssistantStatusRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudAssistantStatusRequest} extends {@link RequestModel} * * <p>DescribeCloudAssistantStatusRequest</p> */ public class DescribeCloudAssistantStatusRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceIds") private java.util.List<String> instanceIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeCloudAssistantStatusRequest(Builder builder) { super(builder); this.instanceIds = builder.instanceIds; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeCloudAssistantStatusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceIds */ public java.util.List<String> getInstanceIds() { return this.instanceIds; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeCloudAssistantStatusRequest, Builder> { private java.util.List<String> instanceIds; private Integer pageNumber; private Integer pageSize; private String regionId; private Builder() { super(); } private Builder(DescribeCloudAssistantStatusRequest request) { super(request); this.instanceIds = request.instanceIds; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; } /** * <p>The IDs of the simple application servers.</p> */ public Builder instanceIds(java.util.List<String> instanceIds) { String instanceIdsShrink = shrink(instanceIds, "InstanceIds", "json"); this.putQueryParameter("InstanceIds", instanceIdsShrink); this.instanceIds = instanceIds; return this; } /** * <p>The page number.</p> * <p>Pages start from page 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * <p>Maximum value: 50.</p> * <p>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the simple application servers.</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; } @Override public DescribeCloudAssistantStatusRequest build() { return new DescribeCloudAssistantStatusRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCloudAssistantStatusResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudAssistantStatusResponse} extends {@link TeaModel} * * <p>DescribeCloudAssistantStatusResponse</p> */ public class DescribeCloudAssistantStatusResponse 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 DescribeCloudAssistantStatusResponseBody body; private DescribeCloudAssistantStatusResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCloudAssistantStatusResponse 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 DescribeCloudAssistantStatusResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCloudAssistantStatusResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCloudAssistantStatusResponseBody body); @Override DescribeCloudAssistantStatusResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCloudAssistantStatusResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCloudAssistantStatusResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCloudAssistantStatusResponse 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(DescribeCloudAssistantStatusResponseBody body) { this.body = body; return this; } @Override public DescribeCloudAssistantStatusResponse build() { return new DescribeCloudAssistantStatusResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCloudAssistantStatusResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudAssistantStatusResponseBody} extends {@link TeaModel} * * <p>DescribeCloudAssistantStatusResponseBody</p> */ public class DescribeCloudAssistantStatusResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CloudAssistantStatus") private java.util.List<CloudAssistantStatus> cloudAssistantStatus; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeCloudAssistantStatusResponseBody(Builder builder) { this.cloudAssistantStatus = builder.cloudAssistantStatus; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeCloudAssistantStatusResponseBody create() { return builder().build(); } /** * @return cloudAssistantStatus */ public java.util.List<CloudAssistantStatus> getCloudAssistantStatus() { return this.cloudAssistantStatus; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<CloudAssistantStatus> cloudAssistantStatus; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; /** * <p>Indicates whether the Cloud Assistant client is installed on the server.</p> */ public Builder cloudAssistantStatus(java.util.List<CloudAssistantStatus> cloudAssistantStatus) { this.cloudAssistantStatus = cloudAssistantStatus; return this; } /** * <p>The page number.</p> * <p>Pages start from page 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * <p>Maximum value: 50.</p> * <p>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4F****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeCloudAssistantStatusResponseBody build() { return new DescribeCloudAssistantStatusResponseBody(this); } } /** * * {@link DescribeCloudAssistantStatusResponseBody} extends {@link TeaModel} * * <p>DescribeCloudAssistantStatusResponseBody</p> */ public static class CloudAssistantStatus extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("Status") private Boolean status; private CloudAssistantStatus(Builder builder) { this.instanceId = builder.instanceId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static CloudAssistantStatus create() { return builder().build(); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return status */ public Boolean getStatus() { return this.status; } public static final class Builder { private String instanceId; private Boolean status; /** * <p>The ID of the simple application server.</p> * * <strong>example:</strong> * <p>ace0706b2ac4454d984295a94213****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>Indicates whether the Cloud Assistant client is installed on the server.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder status(Boolean status) { this.status = status; return this; } public CloudAssistantStatus build() { return new CloudAssistantStatus(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCloudMonitorAgentStatusesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudMonitorAgentStatusesRequest} extends {@link RequestModel} * * <p>DescribeCloudMonitorAgentStatusesRequest</p> */ public class DescribeCloudMonitorAgentStatusesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceIds") @com.aliyun.core.annotation.Validation(required = true) private String instanceIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeCloudMonitorAgentStatusesRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceIds = builder.instanceIds; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeCloudMonitorAgentStatusesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceIds */ public String getInstanceIds() { return this.instanceIds; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeCloudMonitorAgentStatusesRequest, Builder> { private String clientToken; private String instanceIds; private String regionId; private Builder() { super(); } private Builder(DescribeCloudMonitorAgentStatusesRequest request) { super(request); this.clientToken = request.clientToken; this.instanceIds = request.instanceIds; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The value of <strong>ClientToken</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The IDs of the simple application servers. The value can be a JSON array that consists of up to 100 simple application server IDs. Separate multiple server IDs with commas (,).</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[&quot;2ad1ae67295445f598017499dc******&quot;,&quot;2ad1ae67295445f598017499dc******&quot;]</p> */ public Builder instanceIds(String instanceIds) { this.putQueryParameter("InstanceIds", instanceIds); this.instanceIds = instanceIds; return this; } /** * <p>The region ID of the simple application servers. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DescribeCloudMonitorAgentStatusesRequest build() { return new DescribeCloudMonitorAgentStatusesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCloudMonitorAgentStatusesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudMonitorAgentStatusesResponse} extends {@link TeaModel} * * <p>DescribeCloudMonitorAgentStatusesResponse</p> */ public class DescribeCloudMonitorAgentStatusesResponse 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 DescribeCloudMonitorAgentStatusesResponseBody body; private DescribeCloudMonitorAgentStatusesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCloudMonitorAgentStatusesResponse 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 DescribeCloudMonitorAgentStatusesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCloudMonitorAgentStatusesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCloudMonitorAgentStatusesResponseBody body); @Override DescribeCloudMonitorAgentStatusesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCloudMonitorAgentStatusesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCloudMonitorAgentStatusesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCloudMonitorAgentStatusesResponse 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(DescribeCloudMonitorAgentStatusesResponseBody body) { this.body = body; return this; } @Override public DescribeCloudMonitorAgentStatusesResponse build() { return new DescribeCloudMonitorAgentStatusesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCloudMonitorAgentStatusesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCloudMonitorAgentStatusesResponseBody} extends {@link TeaModel} * * <p>DescribeCloudMonitorAgentStatusesResponseBody</p> */ public class DescribeCloudMonitorAgentStatusesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceStatusList") private java.util.List<InstanceStatusList> instanceStatusList; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeCloudMonitorAgentStatusesResponseBody(Builder builder) { this.instanceStatusList = builder.instanceStatusList; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeCloudMonitorAgentStatusesResponseBody create() { return builder().build(); } /** * @return instanceStatusList */ public java.util.List<InstanceStatusList> getInstanceStatusList() { return this.instanceStatusList; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<InstanceStatusList> instanceStatusList; private String requestId; /** * <p>Indicates whether the Cloud Monitor agent was automatically installed on the simple application server.</p> */ public Builder instanceStatusList(java.util.List<InstanceStatusList> instanceStatusList) { this.instanceStatusList = instanceStatusList; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E1FEE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeCloudMonitorAgentStatusesResponseBody build() { return new DescribeCloudMonitorAgentStatusesResponseBody(this); } } /** * * {@link DescribeCloudMonitorAgentStatusesResponseBody} extends {@link TeaModel} * * <p>DescribeCloudMonitorAgentStatusesResponseBody</p> */ public static class InstanceStatusList extends TeaModel { @com.aliyun.core.annotation.NameInMap("AutoInstall") private Boolean autoInstall; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("Status") private String status; private InstanceStatusList(Builder builder) { this.autoInstall = builder.autoInstall; this.instanceId = builder.instanceId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static InstanceStatusList create() { return builder().build(); } /** * @return autoInstall */ public Boolean getAutoInstall() { return this.autoInstall; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private Boolean autoInstall; private String instanceId; private String status; /** * <p>Indicates whether the Cloud Monitor agent was automatically installed on the simple application server. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder autoInstall(Boolean autoInstall) { this.autoInstall = autoInstall; return this; } /** * <p>The ID of the simple application server.</p> * * <strong>example:</strong> * <p>c854dc6f07e74953830bb5808d0****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The running status of the Cloud Monitoring plug-in. Possible values are:</p> * <ul> * <li>running: Cloud Monitoring plug-in running.</li> * <li>stopped: Cloud Monitoring plug-in stopped.</li> * <li>installing: Cloud Monitoring plug-in installing.</li> * <li>install_faild: Cloud Monitoring plug-in installation failed.</li> * <li>abnormal: Cloud Monitoring plug-in installation abnormal.</li> * <li>not_installed: Cloud Monitoring plug-in not installed.</li> * </ul> * * <strong>example:</strong> * <p>running</p> */ public Builder status(String status) { this.status = status; return this; } public InstanceStatusList build() { return new InstanceStatusList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCommandInvocationsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCommandInvocationsRequest} extends {@link RequestModel} * * <p>DescribeCommandInvocationsRequest</p> */ public class DescribeCommandInvocationsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CommandId") private String commandId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CommandName") private String commandName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CommandType") private String commandType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InvocationStatus") private String invocationStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InvokeId") private String invokeId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private String pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private String pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeCommandInvocationsRequest(Builder builder) { super(builder); this.commandId = builder.commandId; this.commandName = builder.commandName; this.commandType = builder.commandType; this.instanceId = builder.instanceId; this.invocationStatus = builder.invocationStatus; this.invokeId = builder.invokeId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeCommandInvocationsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return commandId */ public String getCommandId() { return this.commandId; } /** * @return commandName */ public String getCommandName() { return this.commandName; } /** * @return commandType */ public String getCommandType() { return this.commandType; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return invocationStatus */ public String getInvocationStatus() { return this.invocationStatus; } /** * @return invokeId */ public String getInvokeId() { return this.invokeId; } /** * @return pageNumber */ public String getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public String getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeCommandInvocationsRequest, Builder> { private String commandId; private String commandName; private String commandType; private String instanceId; private String invocationStatus; private String invokeId; private String pageNumber; private String pageSize; private String regionId; private Builder() { super(); } private Builder(DescribeCommandInvocationsRequest request) { super(request); this.commandId = request.commandId; this.commandName = request.commandName; this.commandType = request.commandType; this.instanceId = request.instanceId; this.invocationStatus = request.invocationStatus; this.invokeId = request.invokeId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; } /** * <p>The command ID. You can call the <a href="https://help.aliyun.com/document_detail/64843.html">DescribeCommands</a> operation to query all available command IDs.</p> * * <strong>example:</strong> * <p>c-sh02yh0932w****</p> */ public Builder commandId(String commandId) { this.putQueryParameter("CommandId", commandId); this.commandId = commandId; return this; } /** * <p>The command name. If both CommandName and InstanceId are specified, CommandName does not take effect.</p> * * <strong>example:</strong> * <p>testName</p> */ public Builder commandName(String commandName) { this.putQueryParameter("CommandName", commandName); this.commandName = commandName; return this; } /** * <p>The command type. Valid values:</p> * <ul> * <li>RunBatScript: batch command, applicable to Windows instances</li> * <li>RunPowerShellScript: PowerShell command, applicable to Windows instances</li> * <li>RunShellScript: shell command, applicable to Linux instances</li> * </ul> * * <strong>example:</strong> * <p>RunPowerShellScript</p> */ public Builder commandType(String commandType) { this.putQueryParameter("CommandType", commandType); this.commandType = commandType; return this; } /** * <p>The ID of the simple application server.</p> * * <strong>example:</strong> * <p>ace0706b2ac4454d984295a94213****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The overall execution state of the command. The value of this parameter depends on the execution status of the command on all the involved instances. Valid values:</p> * <ul> * <li><p>Pending: The command is being verified or sent. When the execution state on at least one instance is Pending, the overall execution state is Pending.</p> * </li> * <li><p>Running: The command is being run on the instances. When the execution state on at least one instance is Running, the overall execution state is Running.</p> * </li> * <li><p>Success: When the execution state on at least one instance is Success and the execution state on other instances is Stopped or Success, the overall execution state is Success.</p> * <ul> * <li>Command that is set to run immediately: The command execution is complete, and the exit code is 0.</li> * </ul> * </li> * <li><p>Failed: When the execution state on all instances is Stopped or Failed, the overall execution state is Failed. When the execution state on an instance is one of the following values, Failed is returned as the overall execution state:</p> * <ul> * <li>Invalid: The command is invalid.</li> * <li>Aborted: The command fails to be sent.</li> * <li>Failed: The command execution is complete, and the exit code is not 0.</li> * <li>Timeout: The command execution times out.</li> * <li>Error: An error occurs when the command is being run.</li> * </ul> * </li> * <li><p>Stopping: The command task is being stopped. When the execution state on at least one instance is Stopping, the overall execution state is Stopping.</p> * </li> * <li><p>Stopped: The command task is stopped. When the execution state on all instances is Stopped, the overall execution state is Stopped. When the execution state on an instance is one of the following values, Stopped is returned as the overall execution state:</p> * <ul> * <li>Cancelled: The command task is canceled.</li> * <li>Terminated: The command task is terminated.</li> * </ul> * </li> * <li><p>PartialFailed: The command execution succeeds on some instances and fails on other instances. When the execution state on some instances is Success and the execution state on other instances is Failed or Stopped, the overall execution state is PartialFailed.</p> * </li> * </ul> * <blockquote> * <p> The value of the <code>InvokeStatus</code> response parameter is similar to the value of InvocationStatus. We recommend that you ignore InvokeStatus and check the value of InvocationStatus.</p> * </blockquote> * * <strong>example:</strong> * <p>Success</p> */ public Builder invocationStatus(String invocationStatus) { this.putQueryParameter("InvocationStatus", invocationStatus); this.invocationStatus = invocationStatus; return this; } /** * <p>The execution ID of the command.</p> * * <strong>example:</strong> * <p>t-hz02p9545t6****</p> */ public Builder invokeId(String invokeId) { this.putQueryParameter("InvokeId", invokeId); this.invokeId = invokeId; return this; } /** * <p>The page number. Pages start from 1. Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(String pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * <p>Maximum value: 50.</p> * <p>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(String pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DescribeCommandInvocationsRequest build() { return new DescribeCommandInvocationsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCommandInvocationsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCommandInvocationsResponse} extends {@link TeaModel} * * <p>DescribeCommandInvocationsResponse</p> */ public class DescribeCommandInvocationsResponse 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 DescribeCommandInvocationsResponseBody body; private DescribeCommandInvocationsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCommandInvocationsResponse 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 DescribeCommandInvocationsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCommandInvocationsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCommandInvocationsResponseBody body); @Override DescribeCommandInvocationsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCommandInvocationsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCommandInvocationsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCommandInvocationsResponse 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(DescribeCommandInvocationsResponseBody body) { this.body = body; return this; } @Override public DescribeCommandInvocationsResponse build() { return new DescribeCommandInvocationsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCommandInvocationsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCommandInvocationsResponseBody} extends {@link TeaModel} * * <p>DescribeCommandInvocationsResponseBody</p> */ public class DescribeCommandInvocationsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CommandInvocations") private java.util.List<CommandInvocations> commandInvocations; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeCommandInvocationsResponseBody(Builder builder) { this.commandInvocations = builder.commandInvocations; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeCommandInvocationsResponseBody create() { return builder().build(); } /** * @return commandInvocations */ public java.util.List<CommandInvocations> getCommandInvocations() { return this.commandInvocations; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<CommandInvocations> commandInvocations; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; /** * <p>The command executions.</p> */ public Builder commandInvocations(java.util.List<CommandInvocations> commandInvocations) { this.commandInvocations = commandInvocations; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeCommandInvocationsResponseBody build() { return new DescribeCommandInvocationsResponseBody(this); } } /** * * {@link DescribeCommandInvocationsResponseBody} extends {@link TeaModel} * * <p>DescribeCommandInvocationsResponseBody</p> */ public static class InvokeInstances extends TeaModel { @com.aliyun.core.annotation.NameInMap("ErrorCode") private String errorCode; @com.aliyun.core.annotation.NameInMap("ErrorInfo") private String errorInfo; @com.aliyun.core.annotation.NameInMap("ExitCode") private Long exitCode; @com.aliyun.core.annotation.NameInMap("FinishTime") private String finishTime; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InvocationStatus") private String invocationStatus; @com.aliyun.core.annotation.NameInMap("Output") private String output; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; private InvokeInstances(Builder builder) { this.errorCode = builder.errorCode; this.errorInfo = builder.errorInfo; this.exitCode = builder.exitCode; this.finishTime = builder.finishTime; this.instanceId = builder.instanceId; this.invocationStatus = builder.invocationStatus; this.output = builder.output; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static InvokeInstances create() { return builder().build(); } /** * @return errorCode */ public String getErrorCode() { return this.errorCode; } /** * @return errorInfo */ public String getErrorInfo() { return this.errorInfo; } /** * @return exitCode */ public Long getExitCode() { return this.exitCode; } /** * @return finishTime */ public String getFinishTime() { return this.finishTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return invocationStatus */ public String getInvocationStatus() { return this.invocationStatus; } /** * @return output */ public String getOutput() { return this.output; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder { private String errorCode; private String errorInfo; private Long exitCode; private String finishTime; private String instanceId; private String invocationStatus; private String output; private String startTime; /** * <p>The error code returned if the command failed to be sent or run.</p> * <ul> * <li>null: The command is run as expected.</li> * <li>InstanceNotExists: The specified instance does not exist or is released.</li> * <li>InstanceReleased: The instance is released when the command is being run.</li> * <li>InstanceNotRunning: The instance is not in the Running state when the command is being run.</li> * <li>CommandNotApplicable: The command is not applicable to the specified instance.</li> * <li>AccountNotExists: The specified account does not exist.</li> * <li>DirectoryNotExists: The specified directory does not exist.</li> * <li>BadCronExpression: The specified CRON expression for the execution schedule is invalid.</li> * <li>ClientNotRunning: Cloud Assistant Agent is not running.</li> * <li>ClientNotResponse: Cloud Assistant Agent does not respond to your request.</li> * <li>ClientIsUpgrading: Cloud Assistant Agent is being updated.</li> * <li>ClientNeedUpgrade: Cloud Assistant Agent needs to be updated.</li> * <li>DeliveryTimeout: The request to send the command timed out.</li> * <li>ExecutionTimeout: The command execution timed out.</li> * <li>ExecutionException: An exception occurred when the command was being run.</li> * <li>ExecutionInterrupted: The command execution is interrupted.</li> * <li>ExitCodeNonzero: The command execution is complete, and the exit code is not 0.</li> * </ul> * * <strong>example:</strong> * <p>InstanceNotExists</p> */ public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** * <p>The error message returned if the command failed to be sent or run. Valid values:</p> * <ul> * <li>null: The command is run as expected.</li> * <li>the specified instance does not exists: The specified instance does not exist or is released.</li> * <li>the instance has released when create task: The instance is released when the command is being run.</li> * <li>the instance is not running when create task: The instance is not in the Running state when the command is being run.</li> * <li>the command is not applicable: The command is not applicable to the specified instance.</li> * <li>the specified account does not exists: The specified account does not exist.</li> * <li>the specified directory does not exists: The specified directory does not exist.</li> * <li>the cron job expression is invalid: The specified CRON expression for the execution schedule is invalid.</li> * <li>the aliyun service is not running on the instance: Cloud Assistant Agent is not running.</li> * <li>the aliyun service in the instance does not response: Cloud Assistant Agent does not respond to your request.</li> * <li>the aliyun service in the instance is upgrading now: Cloud Assistant Agent is being updated.</li> * <li>the aliyun service in the instance need upgrade: Cloud Assistant Agent needs to be updated.</li> * <li>the command delivery has been timeout: The request to send the command timed out.</li> * <li>the command execution has been timeout: The command execution timed out.</li> * <li>the command execution got an exception: An exception occurred when the command was being run.</li> * <li>the command execution has been interrupted: The command execution is interrupted.</li> * <li>the command execution exit code is not zero: The command execution is complete, and the exit code is not 0.</li> * </ul> * * <strong>example:</strong> * <p>the specified instance does not exists</p> */ public Builder errorInfo(String errorInfo) { this.errorInfo = errorInfo; return this; } /** * <p>The exit code of the command.</p> * <ul> * <li>For Linux instances, the exit code is the exit code of the shell command.</li> * <li>For Windows instances, the exit code is the exit code of the batch or PowerShell command.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder exitCode(Long exitCode) { this.exitCode = exitCode; return this; } /** * <p>The end of the time range during which the command is run on the instance.</p> * * <strong>example:</strong> * <p>2023-04-03T02:42:29Z</p> */ public Builder finishTime(String finishTime) { this.finishTime = finishTime; return this; } /** * <p>The ID of the simple application server.</p> * * <strong>example:</strong> * <p>2445f4aecdac4b71ba2c7e3a7ccf****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The execution state of the command on a single instance. Valid values:</p> * <ul> * <li><p>Pending: The command is being verified or sent.</p> * </li> * <li><p>Invalid: The specified command type or parameter is invalid.</p> * </li> * <li><p>Aborted: The command failed to be sent to the instance. To send a command to an instance, make sure that the instance is in the Running state and the command is sent to the instance within 1 minute.</p> * </li> * <li><p>Running: The command is being run on the instance.</p> * </li> * <li><p>Success:</p> * <ul> * <li>Command that is set to run only once: The command execution is complete, and the exit code is 0.</li> * <li>Command that is set to run on a schedule: The previous command execution is complete, the exit code is 0, and the specified cycle ends.</li> * </ul> * </li> * <li><p>Failed:</p> * <ul> * <li>Command that is set to run only once: The command execution is complete, and the exit code is not 0.</li> * <li>Command that is set to run on a schedule: The previous command execution is complete, the exit code is not 0, and the specified cycle is about to end.</li> * </ul> * </li> * <li><p>Error: The command execution cannot proceed due to an exception.</p> * </li> * <li><p>Timeout: The command execution timed out.</p> * </li> * <li><p>Cancelled: The command execution is canceled, and the command is not started.</p> * </li> * <li><p>Stopping: The command task is being stopped.</p> * </li> * <li><p>Terminated: The command is terminated when it is being run.</p> * </li> * </ul> * * <strong>example:</strong> * <p>Running</p> */ public Builder invocationStatus(String invocationStatus) { this.invocationStatus = invocationStatus; return this; } /** * <p>The command output.</p> * * <strong>example:</strong> * <p>OutputMsg</p> */ public Builder output(String output) { this.output = output; return this; } /** * <p>The beginning of the time range during which the command is run on the instance.</p> * * <strong>example:</strong> * <p>2023-05-09T03:32:24Z</p> */ public Builder startTime(String startTime) { this.startTime = startTime; return this; } public InvokeInstances build() { return new InvokeInstances(this); } } } /** * * {@link DescribeCommandInvocationsResponseBody} extends {@link TeaModel} * * <p>DescribeCommandInvocationsResponseBody</p> */ public static class CommandInvocations extends TeaModel { @com.aliyun.core.annotation.NameInMap("CommandContent") private String commandContent; @com.aliyun.core.annotation.NameInMap("CommandDescription") private String commandDescription; @com.aliyun.core.annotation.NameInMap("CommandId") private String commandId; @com.aliyun.core.annotation.NameInMap("CommandName") private String commandName; @com.aliyun.core.annotation.NameInMap("CommandType") private String commandType; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("InvocationStatus") private String invocationStatus; @com.aliyun.core.annotation.NameInMap("InvokeId") private String invokeId; @com.aliyun.core.annotation.NameInMap("InvokeInstances") private java.util.List<InvokeInstances> invokeInstances; @com.aliyun.core.annotation.NameInMap("Parameters") private String parameters; @com.aliyun.core.annotation.NameInMap("Timeout") private Long timeout; @com.aliyun.core.annotation.NameInMap("Username") private String username; @com.aliyun.core.annotation.NameInMap("WorkingDir") private String workingDir; private CommandInvocations(Builder builder) { this.commandContent = builder.commandContent; this.commandDescription = builder.commandDescription; this.commandId = builder.commandId; this.commandName = builder.commandName; this.commandType = builder.commandType; this.creationTime = builder.creationTime; this.invocationStatus = builder.invocationStatus; this.invokeId = builder.invokeId; this.invokeInstances = builder.invokeInstances; this.parameters = builder.parameters; this.timeout = builder.timeout; this.username = builder.username; this.workingDir = builder.workingDir; } public static Builder builder() { return new Builder(); } public static CommandInvocations create() { return builder().build(); } /** * @return commandContent */ public String getCommandContent() { return this.commandContent; } /** * @return commandDescription */ public String getCommandDescription() { return this.commandDescription; } /** * @return commandId */ public String getCommandId() { return this.commandId; } /** * @return commandName */ public String getCommandName() { return this.commandName; } /** * @return commandType */ public String getCommandType() { return this.commandType; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return invocationStatus */ public String getInvocationStatus() { return this.invocationStatus; } /** * @return invokeId */ public String getInvokeId() { return this.invokeId; } /** * @return invokeInstances */ public java.util.List<InvokeInstances> getInvokeInstances() { return this.invokeInstances; } /** * @return parameters */ public String getParameters() { return this.parameters; } /** * @return timeout */ public Long getTimeout() { return this.timeout; } /** * @return username */ public String getUsername() { return this.username; } /** * @return workingDir */ public String getWorkingDir() { return this.workingDir; } public static final class Builder { private String commandContent; private String commandDescription; private String commandId; private String commandName; private String commandType; private String creationTime; private String invocationStatus; private String invokeId; private java.util.List<InvokeInstances> invokeInstances; private String parameters; private Long timeout; private String username; private String workingDir; /** * <p>The content of the command.</p> * * <strong>example:</strong> * <p>echo 123</p> */ public Builder commandContent(String commandContent) { this.commandContent = commandContent; return this; } /** * <p>The description of the command.</p> * * <strong>example:</strong> * <p>testDescription</p> */ public Builder commandDescription(String commandDescription) { this.commandDescription = commandDescription; return this; } /** * <p>The command ID.</p> * * <strong>example:</strong> * <p>c-hy0338xh28r****</p> */ public Builder commandId(String commandId) { this.commandId = commandId; return this; } /** * <p>The command name.</p> * * <strong>example:</strong> * <p>testCommandName</p> */ public Builder commandName(String commandName) { this.commandName = commandName; return this; } /** * <p>The command type.</p> * * <strong>example:</strong> * <p>RunShellScript</p> */ public Builder commandType(String commandType) { this.commandType = commandType; return this; } /** * <p>The time when the command was created.</p> * * <strong>example:</strong> * <p>2023-04-27T10:11:58</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The overall execution state of the command. Valid values:</p> * <ul> * <li>Pending: The command is being verified or sent.</li> * <li>Invalid: The specified command type or parameter is invalid.</li> * <li>Aborted: The command failed to be sent to the instances. To send a command to an instance, make sure that the instance is in the Running state and the command is sent to the instance within 1 minute.</li> * <li>Running: The command is being run on the instances.</li> * <li>Success: The command execution is complete, and the exit code is 0.</li> * <li>Failed: The command execution is complete, and the exit code is not 0.</li> * <li>Error: The command execution cannot proceed due to an exception.</li> * <li>Timeout: The command execution timed out.</li> * <li>Cancelled: The command execution is canceled, and the command is not started.</li> * <li>Stopping: The command in the Running state is being stopped.</li> * <li>Terminated: The command is terminated when it is being run.</li> * </ul> * * <strong>example:</strong> * <p>Success</p> */ public Builder invocationStatus(String invocationStatus) { this.invocationStatus = invocationStatus; return this; } /** * <p>The execution ID of the command.</p> * * <strong>example:</strong> * <p>t-hz0373jyzxt****</p> */ public Builder invokeId(String invokeId) { this.invokeId = invokeId; return this; } /** * <p>The instances on which the command is run.</p> */ public Builder invokeInstances(java.util.List<InvokeInstances> invokeInstances) { this.invokeInstances = invokeInstances; return this; } /** * <p>The custom parameters in the command. If no custom parameter exists in the command, the default value is {}.</p> * * <strong>example:</strong> * <p>{}</p> */ public Builder parameters(String parameters) { this.parameters = parameters; return this; } /** * <p>The timeout period. Unit: seconds.</p> * * <strong>example:</strong> * <p>60</p> */ public Builder timeout(Long timeout) { this.timeout = timeout; return this; } /** * <p>The username that is used to run the command.</p> * * <strong>example:</strong> * <p>root</p> */ public Builder username(String username) { this.username = username; return this; } /** * <p>The working directory of the command.</p> * * <strong>example:</strong> * <p>c:\wwwroot</p> */ public Builder workingDir(String workingDir) { this.workingDir = workingDir; return this; } public CommandInvocations build() { return new CommandInvocations(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCommandsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCommandsRequest} extends {@link RequestModel} * * <p>DescribeCommandsRequest</p> */ public class DescribeCommandsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CommandId") private String commandId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private String pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private String pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Provider") @com.aliyun.core.annotation.Validation(required = true) private String provider; @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("Tag") private java.util.List<Tag> tag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") private String type; private DescribeCommandsRequest(Builder builder) { super(builder); this.commandId = builder.commandId; this.name = builder.name; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.provider = builder.provider; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.tag = builder.tag; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static DescribeCommandsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return commandId */ public String getCommandId() { return this.commandId; } /** * @return name */ public String getName() { return this.name; } /** * @return pageNumber */ public String getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public String getPageSize() { return this.pageSize; } /** * @return provider */ public String getProvider() { return this.provider; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder<DescribeCommandsRequest, Builder> { private String commandId; private String name; private String pageNumber; private String pageSize; private String provider; private String regionId; private String resourceGroupId; private java.util.List<Tag> tag; private String type; private Builder() { super(); } private Builder(DescribeCommandsRequest request) { super(request); this.commandId = request.commandId; this.name = request.name; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.provider = request.provider; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.tag = request.tag; this.type = request.type; } /** * <p>The command ID.</p> * * <strong>example:</strong> * <p>c-sh02yh0932w****</p> */ public Builder commandId(String commandId) { this.putQueryParameter("CommandId", commandId); this.commandId = commandId; return this; } /** * <p>The command name. Fuzzy match is not supported.</p> * * <strong>example:</strong> * <p>testName</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * <p>The page number.</p> * <p>Pages start from 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(String pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * <p>Maximum value: 50.</p> * <p>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(String pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The provider of the common command. Take note of the following items:</p> * <ul> * <li>If you set this parameter to <code>AlibabaCloud</code>, all the common commands provided by Alibaba Cloud are queried.</li> * <li>If you set this parameter to <code>User</code>, all the custom commands created by you are queried.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>AlibabaCloud</p> */ public Builder provider(String provider) { this.putQueryParameter("Provider", provider); this.provider = provider; return this; } /** * <p>The region ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource group ID.</p> * * <strong>example:</strong> * <p>rg-aek2bti7cf7****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>The tags that are bound to the command.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The language type of the command. Valid values:</p> * <ul> * <li>RunBatScript: batch command, applicable to Windows instances</li> * <li>RunPowerShellScript: PowerShell command, applicable to Windows instances</li> * <li>RunShellScript: shell command, applicable to Linux instances</li> * </ul> * * <strong>example:</strong> * <p>RunShellScript</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public DescribeCommandsRequest build() { return new DescribeCommandsRequest(this); } } /** * * {@link DescribeCommandsRequest} extends {@link TeaModel} * * <p>DescribeCommandsRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * <p>The tag key of the command. A tag key can be 1 to 64 characters in length. Valid values of N: 1 to 20.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the command. A tag value can be up to 64 characters in length. Valid values of N: 1 to 20.</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-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCommandsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCommandsResponse} extends {@link TeaModel} * * <p>DescribeCommandsResponse</p> */ public class DescribeCommandsResponse 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 DescribeCommandsResponseBody body; private DescribeCommandsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeCommandsResponse 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 DescribeCommandsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeCommandsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeCommandsResponseBody body); @Override DescribeCommandsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeCommandsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeCommandsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeCommandsResponse 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(DescribeCommandsResponseBody body) { this.body = body; return this; } @Override public DescribeCommandsResponse build() { return new DescribeCommandsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeCommandsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeCommandsResponseBody} extends {@link TeaModel} * * <p>DescribeCommandsResponseBody</p> */ public class DescribeCommandsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Commands") private java.util.List<Commands> commands; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeCommandsResponseBody(Builder builder) { this.commands = builder.commands; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeCommandsResponseBody create() { return builder().build(); } /** * @return commands */ public java.util.List<Commands> getCommands() { return this.commands; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Commands> commands; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; /** * <p>The queried commands.</p> */ public Builder commands(java.util.List<Commands> commands) { this.commands = commands; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4F****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of commands.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeCommandsResponseBody build() { return new DescribeCommandsResponseBody(this); } } /** * * {@link DescribeCommandsResponseBody} extends {@link TeaModel} * * <p>DescribeCommandsResponseBody</p> */ public static class ParameterDefinitions extends TeaModel { @com.aliyun.core.annotation.NameInMap("DefaultValue") private String defaultValue; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("ParameterName") private String parameterName; @com.aliyun.core.annotation.NameInMap("PossibleValues") private java.util.List<String> possibleValues; @com.aliyun.core.annotation.NameInMap("Required") private Boolean required; private ParameterDefinitions(Builder builder) { this.defaultValue = builder.defaultValue; this.description = builder.description; this.parameterName = builder.parameterName; this.possibleValues = builder.possibleValues; this.required = builder.required; } public static Builder builder() { return new Builder(); } public static ParameterDefinitions create() { return builder().build(); } /** * @return defaultValue */ public String getDefaultValue() { return this.defaultValue; } /** * @return description */ public String getDescription() { return this.description; } /** * @return parameterName */ public String getParameterName() { return this.parameterName; } /** * @return possibleValues */ public java.util.List<String> getPossibleValues() { return this.possibleValues; } /** * @return required */ public Boolean getRequired() { return this.required; } public static final class Builder { private String defaultValue; private String description; private String parameterName; private java.util.List<String> possibleValues; private Boolean required; /** * <p>The default value of the custom parameter.</p> * * <strong>example:</strong> * <p><a href="https://aliyun-client-assist.oss-accelerate.aliyuncs.com/linux/aliyun_assist_latest.rpm">https://aliyun-client-assist.oss-accelerate.aliyuncs.com/linux/aliyun_assist_latest.rpm</a></p> */ public Builder defaultValue(String defaultValue) { this.defaultValue = defaultValue; return this; } /** * <p>The description of the custom parameter.</p> * * <strong>example:</strong> * <p>Command Assistant Agent Installation Package Path</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The name of the custom parameter.</p> * * <strong>example:</strong> * <p>DownloadUrl</p> */ public Builder parameterName(String parameterName) { this.parameterName = parameterName; return this; } /** * <p>The valid values of the custom parameter.</p> */ public Builder possibleValues(java.util.List<String> possibleValues) { this.possibleValues = possibleValues; return this; } /** * <p>Indicates whether the custom parameter is required. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * <p>Default value: false.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder required(Boolean required) { this.required = required; return this; } public ParameterDefinitions build() { return new ParameterDefinitions(this); } } } /** * * {@link DescribeCommandsResponseBody} extends {@link TeaModel} * * <p>DescribeCommandsResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * <p>The tag key of the command.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the command.</p> * * <strong>example:</strong> * <p>TestValue</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link DescribeCommandsResponseBody} extends {@link TeaModel} * * <p>DescribeCommandsResponseBody</p> */ public static class Commands extends TeaModel { @com.aliyun.core.annotation.NameInMap("CommandContent") private String commandContent; @com.aliyun.core.annotation.NameInMap("CommandId") private String commandId; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EnableParameter") private Boolean enableParameter; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("ParameterDefinitions") private java.util.List<ParameterDefinitions> parameterDefinitions; @com.aliyun.core.annotation.NameInMap("ParameterNames") private java.util.List<String> parameterNames; @com.aliyun.core.annotation.NameInMap("Provider") private String provider; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("Timeout") private Long timeout; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("WorkingDir") private String workingDir; private Commands(Builder builder) { this.commandContent = builder.commandContent; this.commandId = builder.commandId; this.creationTime = builder.creationTime; this.description = builder.description; this.enableParameter = builder.enableParameter; this.name = builder.name; this.parameterDefinitions = builder.parameterDefinitions; this.parameterNames = builder.parameterNames; this.provider = builder.provider; this.resourceGroupId = builder.resourceGroupId; this.tags = builder.tags; this.timeout = builder.timeout; this.type = builder.type; this.workingDir = builder.workingDir; } public static Builder builder() { return new Builder(); } public static Commands create() { return builder().build(); } /** * @return commandContent */ public String getCommandContent() { return this.commandContent; } /** * @return commandId */ public String getCommandId() { return this.commandId; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return enableParameter */ public Boolean getEnableParameter() { return this.enableParameter; } /** * @return name */ public String getName() { return this.name; } /** * @return parameterDefinitions */ public java.util.List<ParameterDefinitions> getParameterDefinitions() { return this.parameterDefinitions; } /** * @return parameterNames */ public java.util.List<String> getParameterNames() { return this.parameterNames; } /** * @return provider */ public String getProvider() { return this.provider; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return timeout */ public Long getTimeout() { return this.timeout; } /** * @return type */ public String getType() { return this.type; } /** * @return workingDir */ public String getWorkingDir() { return this.workingDir; } public static final class Builder { private String commandContent; private String commandId; private String creationTime; private String description; private Boolean enableParameter; private String name; private java.util.List<ParameterDefinitions> parameterDefinitions; private java.util.List<String> parameterNames; private String provider; private String resourceGroupId; private java.util.List<Tags> tags; private Long timeout; private String type; private String workingDir; /** * <p>The content of the command.</p> * * <strong>example:</strong> * <p>cat /etc/ssh/sshd_config</p> */ public Builder commandContent(String commandContent) { this.commandContent = commandContent; return this; } /** * <p>The command ID.</p> * * <strong>example:</strong> * <p>c-gov1k1tqwi9****</p> */ public Builder commandId(String commandId) { this.commandId = commandId; return this; } /** * <p>The time when the command was created.</p> * * <strong>example:</strong> * <p>2023-01-05T06:38:53Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the command.</p> * * <strong>example:</strong> * <p>testDescription</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>Indicates whether the custom parameter feature is enabled for the command.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder enableParameter(Boolean enableParameter) { this.enableParameter = enableParameter; return this; } /** * <p>The name of the command.</p> * * <strong>example:</strong> * <p>testName</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>Details of the custom parameter.</p> */ public Builder parameterDefinitions(java.util.List<ParameterDefinitions> parameterDefinitions) { this.parameterDefinitions = parameterDefinitions; return this; } /** * <p>The custom parameter names that are parsed from the command content specified when the command was created. The custom parameter names are returned in the list format. If the custom parameter feature is disabled, an empty list is returned.</p> */ public Builder parameterNames(java.util.List<String> parameterNames) { this.parameterNames = parameterNames; return this; } /** * <p>The provider of the command.</p> * * <strong>example:</strong> * <p>User</p> */ public Builder provider(String provider) { this.provider = provider; return this; } /** * <p>The resource group ID.</p> * * <strong>example:</strong> * <p>rg-aek2bti7cf7****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The tags that are bound to the command.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The timeout period of the command.</p> * * <strong>example:</strong> * <p>60</p> */ public Builder timeout(Long timeout) { this.timeout = timeout; return this; } /** * <p>The type of the command.</p> * * <strong>example:</strong> * <p>RunShellScript</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The execution path of the command.</p> * * <strong>example:</strong> * <p>/home</p> */ public Builder workingDir(String workingDir) { this.workingDir = workingDir; return this; } public Commands build() { return new Commands(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseErrorLogsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseErrorLogsRequest} extends {@link RequestModel} * * <p>DescribeDatabaseErrorLogsRequest</p> */ public class DescribeDatabaseErrorLogsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DatabaseInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String databaseInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") @com.aliyun.core.annotation.Validation(required = true) private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") @com.aliyun.core.annotation.Validation(required = true) private String startTime; private DescribeDatabaseErrorLogsRequest(Builder builder) { super(builder); this.databaseInstanceId = builder.databaseInstanceId; this.endTime = builder.endTime; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static DescribeDatabaseErrorLogsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return databaseInstanceId */ public String getDatabaseInstanceId() { return this.databaseInstanceId; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder extends Request.Builder<DescribeDatabaseErrorLogsRequest, Builder> { private String databaseInstanceId; private String endTime; private Integer pageNumber; private Integer pageSize; private String regionId; private String startTime; private Builder() { super(); } private Builder(DescribeDatabaseErrorLogsRequest request) { super(request); this.databaseInstanceId = request.databaseInstanceId; this.endTime = request.endTime; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.startTime = request.startTime; } /** * <p>The ID of the Simple Database Service instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>db-38263fa955774501a2ae1bdaed6f****</p> */ public Builder databaseInstanceId(String databaseInstanceId) { this.putQueryParameter("DatabaseInstanceId", databaseInstanceId); this.databaseInstanceId = databaseInstanceId; return this; } /** * <p>The end of the time range to query. Specify the time in the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. The end time must be later than the start time.</p> * <blockquote> * <p>The time displayed in the Simple Application Server console is in the format of UTC+8.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2022-09-08T04:04Z</p> */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>30</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the Simple Database Service instance.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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 beginning of the time range to query. Specify the time in the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.</p> * <blockquote> * <p>The time displayed in the Simple Application Server console is in the format of UTC+8.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2022-09-07T04:04Z</p> */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } @Override public DescribeDatabaseErrorLogsRequest build() { return new DescribeDatabaseErrorLogsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseErrorLogsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseErrorLogsResponse} extends {@link TeaModel} * * <p>DescribeDatabaseErrorLogsResponse</p> */ public class DescribeDatabaseErrorLogsResponse 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 DescribeDatabaseErrorLogsResponseBody body; private DescribeDatabaseErrorLogsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDatabaseErrorLogsResponse 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 DescribeDatabaseErrorLogsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDatabaseErrorLogsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDatabaseErrorLogsResponseBody body); @Override DescribeDatabaseErrorLogsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDatabaseErrorLogsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDatabaseErrorLogsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDatabaseErrorLogsResponse 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(DescribeDatabaseErrorLogsResponseBody body) { this.body = body; return this; } @Override public DescribeDatabaseErrorLogsResponse build() { return new DescribeDatabaseErrorLogsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseErrorLogsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseErrorLogsResponseBody} extends {@link TeaModel} * * <p>DescribeDatabaseErrorLogsResponseBody</p> */ public class DescribeDatabaseErrorLogsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ErrorLogs") private java.util.List<ErrorLogs> errorLogs; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeDatabaseErrorLogsResponseBody(Builder builder) { this.errorLogs = builder.errorLogs; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeDatabaseErrorLogsResponseBody create() { return builder().build(); } /** * @return errorLogs */ public java.util.List<ErrorLogs> getErrorLogs() { return this.errorLogs; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<ErrorLogs> errorLogs; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; /** * <p>The time when the error log entry was generated. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * <blockquote> * <p>The time displayed in the Simple Application Server console is in the format of UTC+8.</p> * </blockquote> */ public Builder errorLogs(java.util.List<ErrorLogs> errorLogs) { this.errorLogs = errorLogs; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>30</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeDatabaseErrorLogsResponseBody build() { return new DescribeDatabaseErrorLogsResponseBody(this); } } /** * * {@link DescribeDatabaseErrorLogsResponseBody} extends {@link TeaModel} * * <p>DescribeDatabaseErrorLogsResponseBody</p> */ public static class ErrorLogs extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("ErrorInfo") private String errorInfo; private ErrorLogs(Builder builder) { this.createTime = builder.createTime; this.errorInfo = builder.errorInfo; } public static Builder builder() { return new Builder(); } public static ErrorLogs create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return errorInfo */ public String getErrorInfo() { return this.errorInfo; } public static final class Builder { private String createTime; private String errorInfo; /** * <p>The time when the resource was created. The time follows the ISO 8601 standard in the <code>yyyy-MM-ddTHH:mm:ssZ</code> format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2022-09-08T12:11:04Z</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The error message returned.</p> * * <strong>example:</strong> * <p>spid52 DBCC TRACEON 3499, server process ID (SPID) 52. This is an informational message only; no user action is required</p> */ public Builder errorInfo(String errorInfo) { this.errorInfo = errorInfo; return this; } public ErrorLogs build() { return new ErrorLogs(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseInstanceMetricDataRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseInstanceMetricDataRequest} extends {@link RequestModel} * * <p>DescribeDatabaseInstanceMetricDataRequest</p> */ public class DescribeDatabaseInstanceMetricDataRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DatabaseInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String databaseInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") @com.aliyun.core.annotation.Validation(required = true) private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MetricName") @com.aliyun.core.annotation.Validation(required = true) private String metricName; @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("StartTime") @com.aliyun.core.annotation.Validation(required = true) private String startTime; private DescribeDatabaseInstanceMetricDataRequest(Builder builder) { super(builder); this.databaseInstanceId = builder.databaseInstanceId; this.endTime = builder.endTime; this.metricName = builder.metricName; this.regionId = builder.regionId; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static DescribeDatabaseInstanceMetricDataRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return databaseInstanceId */ public String getDatabaseInstanceId() { return this.databaseInstanceId; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return metricName */ public String getMetricName() { return this.metricName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder extends Request.Builder<DescribeDatabaseInstanceMetricDataRequest, Builder> { private String databaseInstanceId; private String endTime; private String metricName; private String regionId; private String startTime; private Builder() { super(); } private Builder(DescribeDatabaseInstanceMetricDataRequest request) { super(request); this.databaseInstanceId = request.databaseInstanceId; this.endTime = request.endTime; this.metricName = request.metricName; this.regionId = request.regionId; this.startTime = request.startTime; } /** * <p>The ID of the Simple Database Service instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>db-38263fa955774501a2ae1bdaed6f****</p> */ public Builder databaseInstanceId(String databaseInstanceId) { this.putQueryParameter("DatabaseInstanceId", databaseInstanceId); this.databaseInstanceId = databaseInstanceId; return this; } /** * <p>The end of the time range to query. Specify the time in the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.</p> * <blockquote> * <p>The time displayed in the Simple Application Server console is in the format of UTC+8.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2022-09-07T04:04Z</p> */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The name of the metric. Valid values:</p> * <ul> * <li>MySQL_MemCpuUsage: The CPU utilization and memory usage of the instance within the entire operating system.</li> * <li>MySQL_DetailedSpaceUsage: The total space usage, data space, log space, temporary space, and system space of the instance.</li> * <li>MySQL_Sessions : The total number of active connections.</li> * <li>MySQL_IOPS: The IOPS of the instance.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>MySQL_MemCpuUsage</p> */ public Builder metricName(String metricName) { this.putQueryParameter("MetricName", metricName); this.metricName = metricName; return this; } /** * <p>The region ID of the Simple Database Service instance. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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 beginning of the time range to query. Specify the time in the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.</p> * <blockquote> * <p>The time displayed in the Simple Application Server console is in the format of UTC+8.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2022-09-06T04:04Z</p> */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } @Override public DescribeDatabaseInstanceMetricDataRequest build() { return new DescribeDatabaseInstanceMetricDataRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseInstanceMetricDataResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseInstanceMetricDataResponse} extends {@link TeaModel} * * <p>DescribeDatabaseInstanceMetricDataResponse</p> */ public class DescribeDatabaseInstanceMetricDataResponse 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 DescribeDatabaseInstanceMetricDataResponseBody body; private DescribeDatabaseInstanceMetricDataResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDatabaseInstanceMetricDataResponse 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 DescribeDatabaseInstanceMetricDataResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDatabaseInstanceMetricDataResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDatabaseInstanceMetricDataResponseBody body); @Override DescribeDatabaseInstanceMetricDataResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDatabaseInstanceMetricDataResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDatabaseInstanceMetricDataResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDatabaseInstanceMetricDataResponse 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(DescribeDatabaseInstanceMetricDataResponseBody body) { this.body = body; return this; } @Override public DescribeDatabaseInstanceMetricDataResponse build() { return new DescribeDatabaseInstanceMetricDataResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseInstanceMetricDataResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseInstanceMetricDataResponseBody} extends {@link TeaModel} * * <p>DescribeDatabaseInstanceMetricDataResponseBody</p> */ public class DescribeDatabaseInstanceMetricDataResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DataFormat") private String dataFormat; @com.aliyun.core.annotation.NameInMap("MetricData") private String metricData; @com.aliyun.core.annotation.NameInMap("MetricName") private String metricName; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Unit") private String unit; private DescribeDatabaseInstanceMetricDataResponseBody(Builder builder) { this.dataFormat = builder.dataFormat; this.metricData = builder.metricData; this.metricName = builder.metricName; this.requestId = builder.requestId; this.unit = builder.unit; } public static Builder builder() { return new Builder(); } public static DescribeDatabaseInstanceMetricDataResponseBody create() { return builder().build(); } /** * @return dataFormat */ public String getDataFormat() { return this.dataFormat; } /** * @return metricData */ public String getMetricData() { return this.metricData; } /** * @return metricName */ public String getMetricName() { return this.metricName; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return unit */ public String getUnit() { return this.unit; } public static final class Builder { private String dataFormat; private String metricData; private String metricName; private String requestId; private String unit; /** * <p>The data format. Valid values:</p> * <ul> * <li>cpuusage&amp;memusage</li> * <li>active_session&amp;total_session</li> * <li>ins_size&amp;data_size&amp;log_size&amp;tmp_size&amp;other_size</li> * <li>io</li> * </ul> * * <strong>example:</strong> * <p>cpuusage&amp;memusage</p> */ public Builder dataFormat(String dataFormat) { this.dataFormat = dataFormat; return this; } /** * <p>The monitoring data.</p> * * <strong>example:</strong> * <p>[ { &quot;date&quot;: &quot; 2022-09-06T04:04:00Z&quot;,&quot;value&quot;:&quot;0.77&amp;3.69&quot; } ]</p> */ public Builder metricData(String metricData) { this.metricData = metricData; return this; } /** * <p>The name of the metric. Valid values:</p> * <ul> * <li>MySQL_MemCpuUsage: The CPU utilization and memory usage of the instance within the entire operating system.</li> * <li>MySQL_DetailedSpaceUsage: The total space usage, data space, log space, temporary space, and system space of the instance.</li> * <li>MySQL_Sessions : The total number of active connections.</li> * <li>MySQL_IOPS: The IOPS of the instance.</li> * </ul> * * <strong>example:</strong> * <p>MySQL_MemCpuUsage</p> */ public Builder metricName(String metricName) { this.metricName = metricName; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The unit of the monitoring metric.</p> * <ul> * <li>%</li> * <li>int</li> * <li>MB</li> * </ul> * * <strong>example:</strong> * <p>%</p> */ public Builder unit(String unit) { this.unit = unit; return this; } public DescribeDatabaseInstanceMetricDataResponseBody build() { return new DescribeDatabaseInstanceMetricDataResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseInstanceParametersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseInstanceParametersRequest} extends {@link RequestModel} * * <p>DescribeDatabaseInstanceParametersRequest</p> */ public class DescribeDatabaseInstanceParametersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DatabaseInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String databaseInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeDatabaseInstanceParametersRequest(Builder builder) { super(builder); this.databaseInstanceId = builder.databaseInstanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeDatabaseInstanceParametersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return databaseInstanceId */ public String getDatabaseInstanceId() { return this.databaseInstanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeDatabaseInstanceParametersRequest, Builder> { private String databaseInstanceId; private String regionId; private Builder() { super(); } private Builder(DescribeDatabaseInstanceParametersRequest request) { super(request); this.databaseInstanceId = request.databaseInstanceId; this.regionId = request.regionId; } /** * <p>The ID of the Simple Database Service instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>db-38263fa955774501a2ae1bdaed6f****</p> */ public Builder databaseInstanceId(String databaseInstanceId) { this.putQueryParameter("DatabaseInstanceId", databaseInstanceId); this.databaseInstanceId = databaseInstanceId; return this; } /** * <p>The region ID of the Simple Database Service instance. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DescribeDatabaseInstanceParametersRequest build() { return new DescribeDatabaseInstanceParametersRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseInstanceParametersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseInstanceParametersResponse} extends {@link TeaModel} * * <p>DescribeDatabaseInstanceParametersResponse</p> */ public class DescribeDatabaseInstanceParametersResponse 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 DescribeDatabaseInstanceParametersResponseBody body; private DescribeDatabaseInstanceParametersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDatabaseInstanceParametersResponse 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 DescribeDatabaseInstanceParametersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDatabaseInstanceParametersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDatabaseInstanceParametersResponseBody body); @Override DescribeDatabaseInstanceParametersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDatabaseInstanceParametersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDatabaseInstanceParametersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDatabaseInstanceParametersResponse 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(DescribeDatabaseInstanceParametersResponseBody body) { this.body = body; return this; } @Override public DescribeDatabaseInstanceParametersResponse build() { return new DescribeDatabaseInstanceParametersResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseInstanceParametersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseInstanceParametersResponseBody} extends {@link TeaModel} * * <p>DescribeDatabaseInstanceParametersResponseBody</p> */ public class DescribeDatabaseInstanceParametersResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ConfigParameters") private java.util.List<ConfigParameters> configParameters; @com.aliyun.core.annotation.NameInMap("Engine") private String engine; @com.aliyun.core.annotation.NameInMap("EngineVersion") private String engineVersion; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("RunningParameters") private java.util.List<RunningParameters> runningParameters; private DescribeDatabaseInstanceParametersResponseBody(Builder builder) { this.configParameters = builder.configParameters; this.engine = builder.engine; this.engineVersion = builder.engineVersion; this.requestId = builder.requestId; this.runningParameters = builder.runningParameters; } public static Builder builder() { return new Builder(); } public static DescribeDatabaseInstanceParametersResponseBody create() { return builder().build(); } /** * @return configParameters */ public java.util.List<ConfigParameters> getConfigParameters() { return this.configParameters; } /** * @return engine */ public String getEngine() { return this.engine; } /** * @return engineVersion */ public String getEngineVersion() { return this.engineVersion; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return runningParameters */ public java.util.List<RunningParameters> getRunningParameters() { return this.runningParameters; } public static final class Builder { private java.util.List<ConfigParameters> configParameters; private String engine; private String engineVersion; private String requestId; private java.util.List<RunningParameters> runningParameters; /** * <p>The range of ParameterValue.</p> * <blockquote> * <p>The value of CheckingCode varies based on the value of ParameterName.</p> * </blockquote> */ public Builder configParameters(java.util.List<ConfigParameters> configParameters) { this.configParameters = configParameters; return this; } /** * <p>The database engine that the instance runs. The value must be MySQL.</p> * * <strong>example:</strong> * <p>MySQL</p> */ public Builder engine(String engine) { this.engine = engine; return this; } /** * <p>The version of the database engine. Valid values:</p> * <ul> * <li>5.7: MySQL 5.7.</li> * <li>8.0: MySQL 8.0.</li> * </ul> * * <strong>example:</strong> * <p>5.5</p> */ public Builder engineVersion(String engineVersion) { this.engineVersion = engineVersion; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The range of ParameterValue.</p> * <blockquote> * <p>The value of CheckingCode varies based on the value of ParameterName.</p> * </blockquote> */ public Builder runningParameters(java.util.List<RunningParameters> runningParameters) { this.runningParameters = runningParameters; return this; } public DescribeDatabaseInstanceParametersResponseBody build() { return new DescribeDatabaseInstanceParametersResponseBody(this); } } /** * * {@link DescribeDatabaseInstanceParametersResponseBody} extends {@link TeaModel} * * <p>DescribeDatabaseInstanceParametersResponseBody</p> */ public static class ConfigParameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("CheckingCode") private String checkingCode; @com.aliyun.core.annotation.NameInMap("ForceModify") private String forceModify; @com.aliyun.core.annotation.NameInMap("ForceRestart") private String forceRestart; @com.aliyun.core.annotation.NameInMap("ParameterDescription") private String parameterDescription; @com.aliyun.core.annotation.NameInMap("ParameterName") private String parameterName; @com.aliyun.core.annotation.NameInMap("ParameterValue") private String parameterValue; private ConfigParameters(Builder builder) { this.checkingCode = builder.checkingCode; this.forceModify = builder.forceModify; this.forceRestart = builder.forceRestart; this.parameterDescription = builder.parameterDescription; this.parameterName = builder.parameterName; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static ConfigParameters create() { return builder().build(); } /** * @return checkingCode */ public String getCheckingCode() { return this.checkingCode; } /** * @return forceModify */ public String getForceModify() { return this.forceModify; } /** * @return forceRestart */ public String getForceRestart() { return this.forceRestart; } /** * @return parameterDescription */ public String getParameterDescription() { return this.parameterDescription; } /** * @return parameterName */ public String getParameterName() { return this.parameterName; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String checkingCode; private String forceModify; private String forceRestart; private String parameterDescription; private String parameterName; private String parameterValue; /** * <p>The check code that indicates the valid values of the parameter.</p> * * <strong>example:</strong> * <p>[1-65535]</p> */ public Builder checkingCode(String checkingCode) { this.checkingCode = checkingCode; return this; } /** * <p>Does it support modifying parameter values. Possible values:</p> * <ul> * <li><p>true:Support modifying parameter values.</p> * </li> * <li><p>false:Modifying parameter values is not supported.</p> * </li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder forceModify(String forceModify) { this.forceModify = forceModify; return this; } /** * <p>Specifies whether to forcibly restart the instance after parameters are modified. Valid values:</p> * <ul> * <li>true: forcibly restarts the instance. If a new parameter value takes effect only after the instance restarts, you must set this parameter to true. Otherwise, the new parameter value cannot take effect.</li> * <li>false: does not forcibly restart the instance.</li> * </ul> * <p>Default value: false.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder forceRestart(String forceRestart) { this.forceRestart = forceRestart; return this; } /** * <p>The description of the parameter.</p> * * <strong>example:</strong> * <p>Auto-increment columns are incremented by this</p> */ public Builder parameterDescription(String parameterDescription) { this.parameterDescription = parameterDescription; return this; } /** * <p>The name of the parameter.</p> * * <strong>example:</strong> * <p>auto_increment_increment</p> */ public Builder parameterName(String parameterName) { this.parameterName = parameterName; return this; } /** * <p>The value of the parameter.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public ConfigParameters build() { return new ConfigParameters(this); } } } /** * * {@link DescribeDatabaseInstanceParametersResponseBody} extends {@link TeaModel} * * <p>DescribeDatabaseInstanceParametersResponseBody</p> */ public static class RunningParameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("CheckingCode") private String checkingCode; @com.aliyun.core.annotation.NameInMap("ForceModify") private String forceModify; @com.aliyun.core.annotation.NameInMap("ForceRestart") private String forceRestart; @com.aliyun.core.annotation.NameInMap("ParameterDescription") private String parameterDescription; @com.aliyun.core.annotation.NameInMap("ParameterName") private String parameterName; @com.aliyun.core.annotation.NameInMap("ParameterValue") private String parameterValue; private RunningParameters(Builder builder) { this.checkingCode = builder.checkingCode; this.forceModify = builder.forceModify; this.forceRestart = builder.forceRestart; this.parameterDescription = builder.parameterDescription; this.parameterName = builder.parameterName; this.parameterValue = builder.parameterValue; } public static Builder builder() { return new Builder(); } public static RunningParameters create() { return builder().build(); } /** * @return checkingCode */ public String getCheckingCode() { return this.checkingCode; } /** * @return forceModify */ public String getForceModify() { return this.forceModify; } /** * @return forceRestart */ public String getForceRestart() { return this.forceRestart; } /** * @return parameterDescription */ public String getParameterDescription() { return this.parameterDescription; } /** * @return parameterName */ public String getParameterName() { return this.parameterName; } /** * @return parameterValue */ public String getParameterValue() { return this.parameterValue; } public static final class Builder { private String checkingCode; private String forceModify; private String forceRestart; private String parameterDescription; private String parameterName; private String parameterValue; /** * <p>The check code that indicates the valid values of the parameter.</p> * * <strong>example:</strong> * <p>[ON|OFF]</p> */ public Builder checkingCode(String checkingCode) { this.checkingCode = checkingCode; return this; } /** * <p>Does it support modifying parameter values. Possible values:</p> * <ul> * <li><p>true:Support modifying parameter values.</p> * </li> * <li><p>false:Modifying parameter values is not supported.</p> * </li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder forceModify(String forceModify) { this.forceModify = forceModify; return this; } /** * <p>Specifies whether to forcibly restart the instance after parameters are modified. Valid values:</p> * <ul> * <li>true: forcibly restarts the instance. If a new parameter value takes effect only after the instance restarts, you must set this parameter to true. Otherwise, the new parameter value cannot take effect.</li> * <li>false: does not forcibly restart the instance.</li> * </ul> * <p>Default value: false.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder forceRestart(String forceRestart) { this.forceRestart = forceRestart; return this; } /** * <p>The description of the parameter.</p> * * <strong>example:</strong> * <p>When this variable has a value of 1 (the default), the server automatically grants the EXECUTE and ALTER ROUTINE privileges to the creator of a stored routine, if the user cannot already execute and alter or drop the routine. (The ALTER ROUTINE privilege is required to drop the routine.) The server also automatically drops those privileges from the creator when the routine is dropped. If automatic_sp_privileges is 0, the server does not automatically add or drop these privileges.</p> */ public Builder parameterDescription(String parameterDescription) { this.parameterDescription = parameterDescription; return this; } /** * <p>The name of the parameter.</p> * * <strong>example:</strong> * <p>autocommit</p> */ public Builder parameterName(String parameterName) { this.parameterName = parameterName; return this; } /** * <p>The value of the parameter.</p> * * <strong>example:</strong> * <p>ON</p> */ public Builder parameterValue(String parameterValue) { this.parameterValue = parameterValue; return this; } public RunningParameters build() { return new RunningParameters(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseInstancesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseInstancesRequest} extends {@link RequestModel} * * <p>DescribeDatabaseInstancesRequest</p> */ public class DescribeDatabaseInstancesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DatabaseInstanceIds") private String databaseInstanceIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeDatabaseInstancesRequest(Builder builder) { super(builder); this.databaseInstanceIds = builder.databaseInstanceIds; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeDatabaseInstancesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return databaseInstanceIds */ public String getDatabaseInstanceIds() { return this.databaseInstanceIds; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeDatabaseInstancesRequest, Builder> { private String databaseInstanceIds; private Integer pageNumber; private Integer pageSize; private String regionId; private Builder() { super(); } private Builder(DescribeDatabaseInstancesRequest request) { super(request); this.databaseInstanceIds = request.databaseInstanceIds; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; } /** * <p>The IDs of the Simple Database Service instances. The value can be a JSON array that consists of up to 100 Simple Database Service instance IDs. Separate multiple instance IDs with commas (,).</p> * * <strong>example:</strong> * <p>[&quot;swasdb-xxx******&quot;,&quot;swasdb-yyy******&quot;]</p> */ public Builder databaseInstanceIds(String databaseInstanceIds) { this.putQueryParameter("DatabaseInstanceIds", databaseInstanceIds); this.databaseInstanceIds = databaseInstanceIds; return this; } /** * <p>The page number.</p> * <p>Pages start from page 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * <p>Maximum value: 100.</p> * <p>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the Simple Database Service instances.</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; } @Override public DescribeDatabaseInstancesRequest build() { return new DescribeDatabaseInstancesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseInstancesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseInstancesResponse} extends {@link TeaModel} * * <p>DescribeDatabaseInstancesResponse</p> */ public class DescribeDatabaseInstancesResponse 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 DescribeDatabaseInstancesResponseBody body; private DescribeDatabaseInstancesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDatabaseInstancesResponse 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 DescribeDatabaseInstancesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDatabaseInstancesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDatabaseInstancesResponseBody body); @Override DescribeDatabaseInstancesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDatabaseInstancesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDatabaseInstancesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDatabaseInstancesResponse 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(DescribeDatabaseInstancesResponseBody body) { this.body = body; return this; } @Override public DescribeDatabaseInstancesResponse build() { return new DescribeDatabaseInstancesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseInstancesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseInstancesResponseBody} extends {@link TeaModel} * * <p>DescribeDatabaseInstancesResponseBody</p> */ public class DescribeDatabaseInstancesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DatabaseInstances") private java.util.List<DatabaseInstances> databaseInstances; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeDatabaseInstancesResponseBody(Builder builder) { this.databaseInstances = builder.databaseInstances; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeDatabaseInstancesResponseBody create() { return builder().build(); } /** * @return databaseInstances */ public java.util.List<DatabaseInstances> getDatabaseInstances() { return this.databaseInstances; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<DatabaseInstances> databaseInstances; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; /** * <p>The information about the Simple Database Service instances.</p> */ public Builder databaseInstances(java.util.List<DatabaseInstances> databaseInstances) { this.databaseInstances = databaseInstances; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeDatabaseInstancesResponseBody build() { return new DescribeDatabaseInstancesResponseBody(this); } } /** * * {@link DescribeDatabaseInstancesResponseBody} extends {@link TeaModel} * * <p>DescribeDatabaseInstancesResponseBody</p> */ public static class DatabaseInstances extends TeaModel { @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.NameInMap("ChargeType") private String chargeType; @com.aliyun.core.annotation.NameInMap("Cpu") private String cpu; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("DatabaseInstanceEdition") private String databaseInstanceEdition; @com.aliyun.core.annotation.NameInMap("DatabaseInstanceId") private String databaseInstanceId; @com.aliyun.core.annotation.NameInMap("DatabaseInstanceName") private String databaseInstanceName; @com.aliyun.core.annotation.NameInMap("DatabaseInstanceStatus") private String databaseInstanceStatus; @com.aliyun.core.annotation.NameInMap("DatabaseVersion") private String databaseVersion; @com.aliyun.core.annotation.NameInMap("ExpiredTime") private String expiredTime; @com.aliyun.core.annotation.NameInMap("Memory") private String memory; @com.aliyun.core.annotation.NameInMap("PrivateConnection") private String privateConnection; @com.aliyun.core.annotation.NameInMap("PublicConnection") private String publicConnection; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("Storage") private Integer storage; @com.aliyun.core.annotation.NameInMap("SuperAccountName") private String superAccountName; private DatabaseInstances(Builder builder) { this.businessStatus = builder.businessStatus; this.chargeType = builder.chargeType; this.cpu = builder.cpu; this.creationTime = builder.creationTime; this.databaseInstanceEdition = builder.databaseInstanceEdition; this.databaseInstanceId = builder.databaseInstanceId; this.databaseInstanceName = builder.databaseInstanceName; this.databaseInstanceStatus = builder.databaseInstanceStatus; this.databaseVersion = builder.databaseVersion; this.expiredTime = builder.expiredTime; this.memory = builder.memory; this.privateConnection = builder.privateConnection; this.publicConnection = builder.publicConnection; this.regionId = builder.regionId; this.storage = builder.storage; this.superAccountName = builder.superAccountName; } public static Builder builder() { return new Builder(); } public static DatabaseInstances create() { return builder().build(); } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return chargeType */ public String getChargeType() { return this.chargeType; } /** * @return cpu */ public String getCpu() { return this.cpu; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return databaseInstanceEdition */ public String getDatabaseInstanceEdition() { return this.databaseInstanceEdition; } /** * @return databaseInstanceId */ public String getDatabaseInstanceId() { return this.databaseInstanceId; } /** * @return databaseInstanceName */ public String getDatabaseInstanceName() { return this.databaseInstanceName; } /** * @return databaseInstanceStatus */ public String getDatabaseInstanceStatus() { return this.databaseInstanceStatus; } /** * @return databaseVersion */ public String getDatabaseVersion() { return this.databaseVersion; } /** * @return expiredTime */ public String getExpiredTime() { return this.expiredTime; } /** * @return memory */ public String getMemory() { return this.memory; } /** * @return privateConnection */ public String getPrivateConnection() { return this.privateConnection; } /** * @return publicConnection */ public String getPublicConnection() { return this.publicConnection; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return storage */ public Integer getStorage() { return this.storage; } /** * @return superAccountName */ public String getSuperAccountName() { return this.superAccountName; } public static final class Builder { private String businessStatus; private String chargeType; private String cpu; private String creationTime; private String databaseInstanceEdition; private String databaseInstanceId; private String databaseInstanceName; private String databaseInstanceStatus; private String databaseVersion; private String expiredTime; private String memory; private String privateConnection; private String publicConnection; private String regionId; private Integer storage; private String superAccountName; /** * <p>The business status of the instance. Valid values:</p> * <ul> * <li>normal</li> * <li>expired</li> * <li>overdue</li> * </ul> * * <strong>example:</strong> * <p>normal</p> */ public Builder businessStatus(String businessStatus) { this.businessStatus = businessStatus; return this; } /** * <p>The billing method of the Simple Database Service instance. Set the value to PrePaid. This value indicates the subscription billing method.</p> * <p>Default value: PrePaid.</p> * * <strong>example:</strong> * <p>PrePaid</p> */ public Builder chargeType(String chargeType) { this.chargeType = chargeType; return this; } /** * <p>The number of vCPUs.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder cpu(String cpu) { this.cpu = cpu; return this; } /** * <p>The time when the instance was created. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2022-09-01T02:39:46Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The plan edition ID of the Simple Database Service instance. Valid values:</p> * <ul> * <li>swas.db.c1m1s25: CNY 35/month.</li> * <li>swas.db.c1m2s80: CNY 100/month.</li> * <li>swas.db.c2m4s120: CNY 200/month.</li> * <li>swas.db.c2m8s240: CNY 300/month.</li> * </ul> * * <strong>example:</strong> * <p>swas.db.c1m1s25</p> */ public Builder databaseInstanceEdition(String databaseInstanceEdition) { this.databaseInstanceEdition = databaseInstanceEdition; return this; } /** * <p>The ID of the Simple Database Service instance.</p> * * <strong>example:</strong> * <p>db-38263fa955774501a2ae1bdaed6f****</p> */ public Builder databaseInstanceId(String databaseInstanceId) { this.databaseInstanceId = databaseInstanceId; return this; } /** * <p>The name of the Simple Database Service instance.</p> */ public Builder databaseInstanceName(String databaseInstanceName) { this.databaseInstanceName = databaseInstanceName; return this; } /** * <p>The status of the Simple Database Service instance. Valid values:</p> * <ul> * <li>Pending: The instance is being created.</li> * <li>Restarting: The instance is being restarted.</li> * <li>Running: The instance is running.</li> * <li>Stopping: The instance is being stopped.</li> * <li>Stopped: The instance is stopped.</li> * <li>UPGRADING: The instance is being upgraded.</li> * <li>DISABLED: The instance is disabled.</li> * </ul> * * <strong>example:</strong> * <p>Running</p> */ public Builder databaseInstanceStatus(String databaseInstanceStatus) { this.databaseInstanceStatus = databaseInstanceStatus; return this; } /** * <p>The database engine version of the instance. Valid values:</p> * <ul> * <li>5.7: MySQL 5.7.</li> * <li>8.0: MySQL 8.0.</li> * </ul> * * <strong>example:</strong> * <p>5.7</p> */ public Builder databaseVersion(String databaseVersion) { this.databaseVersion = databaseVersion; return this; } /** * <p>The time when the instance expires. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * <blockquote> * <p> The time displayed in the Simple Application Server console is in the format of UTC+8.</p> * </blockquote> * * <strong>example:</strong> * <p>2022-10-01T16:00:00Z</p> */ public Builder expiredTime(String expiredTime) { this.expiredTime = expiredTime; return this; } /** * <p>The memory size of the instance. Unit: GB.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder memory(String memory) { this.memory = memory; return this; } /** * <p>The private endpoint.</p> * * <strong>example:</strong> * <p>rm-bp1d39opj7906****.mysql.rds.aliyuncs.com</p> */ public Builder privateConnection(String privateConnection) { this.privateConnection = privateConnection; return this; } /** * <p>The public endpoint.</p> * <blockquote> * <p> This parameter is displayed only after you apply for a public endpoint for the instance and a public endpoint is assigned to the instance. You can call <a href="https://help.aliyun.com/document_detail/451413.html">AllocatePublicConnection</a> to apply for a public endpoint for the instance.</p> * </blockquote> * * <strong>example:</strong> * <p>db-38263fa955774501a2ae1bdaed6f****.mysql.rds.aliyuncs.com</p> */ public Builder publicConnection(String publicConnection) { this.publicConnection = publicConnection; return this; } /** * <p>The region ID of the Simple Database Service instances.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The size of the enhanced SSD (ESSD). Unit: GB.</p> * * <strong>example:</strong> * <p>25</p> */ public Builder storage(Integer storage) { this.storage = storage; return this; } /** * <p>The name of the super administrator account of the Simple Database Service instance.</p> * * <strong>example:</strong> * <p>administrator</p> */ public Builder superAccountName(String superAccountName) { this.superAccountName = superAccountName; return this; } public DatabaseInstances build() { return new DatabaseInstances(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseSlowLogRecordsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseSlowLogRecordsRequest} extends {@link RequestModel} * * <p>DescribeDatabaseSlowLogRecordsRequest</p> */ public class DescribeDatabaseSlowLogRecordsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DatabaseInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String databaseInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") @com.aliyun.core.annotation.Validation(required = true) private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") @com.aliyun.core.annotation.Validation(required = true) private String startTime; private DescribeDatabaseSlowLogRecordsRequest(Builder builder) { super(builder); this.databaseInstanceId = builder.databaseInstanceId; this.endTime = builder.endTime; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static DescribeDatabaseSlowLogRecordsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return databaseInstanceId */ public String getDatabaseInstanceId() { return this.databaseInstanceId; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder extends Request.Builder<DescribeDatabaseSlowLogRecordsRequest, Builder> { private String databaseInstanceId; private String endTime; private Integer pageNumber; private Integer pageSize; private String regionId; private String startTime; private Builder() { super(); } private Builder(DescribeDatabaseSlowLogRecordsRequest request) { super(request); this.databaseInstanceId = request.databaseInstanceId; this.endTime = request.endTime; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.startTime = request.startTime; } /** * <p>The ID of the Simple Database Service instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>db-38263fa955774501a2ae1bdaed6f****</p> */ public Builder databaseInstanceId(String databaseInstanceId) { this.putQueryParameter("DatabaseInstanceId", databaseInstanceId); this.databaseInstanceId = databaseInstanceId; return this; } /** * <p>The end of the time range to query. The end time must be later than the start time. The interval between the start time and the end time must be less than 7 days.</p> * <p>Specify the time in the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.</p> * <blockquote> * <p>The time displayed in the Simple Application Server console is in the format of UTC+8.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2022-09-08T04:04:44Z</p> */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The page number.</p> * <p>Pages start from page 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Valid values: 30 to 100.</p> * <p>Maximum value: 100.</p> * <p>Default value: 30.</p> * * <strong>example:</strong> * <p>30</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the Simple Database Service instance. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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 beginning of the time range to query.</p> * <p>Specify the time in the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.</p> * <blockquote> * <p>The time displayed in the Simple Application Server console is in the format of UTC+8.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2022-09-07T04:04:44Z</p> */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } @Override public DescribeDatabaseSlowLogRecordsRequest build() { return new DescribeDatabaseSlowLogRecordsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseSlowLogRecordsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseSlowLogRecordsResponse} extends {@link TeaModel} * * <p>DescribeDatabaseSlowLogRecordsResponse</p> */ public class DescribeDatabaseSlowLogRecordsResponse 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 DescribeDatabaseSlowLogRecordsResponseBody body; private DescribeDatabaseSlowLogRecordsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeDatabaseSlowLogRecordsResponse 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 DescribeDatabaseSlowLogRecordsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeDatabaseSlowLogRecordsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeDatabaseSlowLogRecordsResponseBody body); @Override DescribeDatabaseSlowLogRecordsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeDatabaseSlowLogRecordsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeDatabaseSlowLogRecordsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeDatabaseSlowLogRecordsResponse 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(DescribeDatabaseSlowLogRecordsResponseBody body) { this.body = body; return this; } @Override public DescribeDatabaseSlowLogRecordsResponse build() { return new DescribeDatabaseSlowLogRecordsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeDatabaseSlowLogRecordsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeDatabaseSlowLogRecordsResponseBody} extends {@link TeaModel} * * <p>DescribeDatabaseSlowLogRecordsResponseBody</p> */ public class DescribeDatabaseSlowLogRecordsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Engine") private String engine; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("PhysicalIORead") private Long physicalIORead; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SlowLogs") private java.util.List<SlowLogs> slowLogs; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeDatabaseSlowLogRecordsResponseBody(Builder builder) { this.engine = builder.engine; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.physicalIORead = builder.physicalIORead; this.requestId = builder.requestId; this.slowLogs = builder.slowLogs; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeDatabaseSlowLogRecordsResponseBody create() { return builder().build(); } /** * @return engine */ public String getEngine() { return this.engine; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return physicalIORead */ public Long getPhysicalIORead() { return this.physicalIORead; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return slowLogs */ public java.util.List<SlowLogs> getSlowLogs() { return this.slowLogs; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private String engine; private Integer pageNumber; private Integer pageSize; private Long physicalIORead; private String requestId; private java.util.List<SlowLogs> slowLogs; private Integer totalCount; /** * <p>The database engine that the instance runs.</p> * * <strong>example:</strong> * <p>MySQL</p> */ public Builder engine(String engine) { this.engine = engine; return this; } /** * <p>The page number.</p> * <p>Pages start from page 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Valid values: 30 to 100.</p> * <p>Default value: 30.</p> * * <strong>example:</strong> * <p>30</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The number of logical reads.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder physicalIORead(Long physicalIORead) { this.physicalIORead = physicalIORead; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The slow query logs returned.</p> */ public Builder slowLogs(java.util.List<SlowLogs> slowLogs) { this.slowLogs = slowLogs; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeDatabaseSlowLogRecordsResponseBody build() { return new DescribeDatabaseSlowLogRecordsResponseBody(this); } } /** * * {@link DescribeDatabaseSlowLogRecordsResponseBody} extends {@link TeaModel} * * <p>DescribeDatabaseSlowLogRecordsResponseBody</p> */ public static class SlowLogs extends TeaModel { @com.aliyun.core.annotation.NameInMap("DBName") private String DBName; @com.aliyun.core.annotation.NameInMap("ExecutionStartTime") private String executionStartTime; @com.aliyun.core.annotation.NameInMap("HostAddress") private String hostAddress; @com.aliyun.core.annotation.NameInMap("LockTimes") private Long lockTimes; @com.aliyun.core.annotation.NameInMap("ParseRowCounts") private Long parseRowCounts; @com.aliyun.core.annotation.NameInMap("QueryTimeMS") private Long queryTimeMS; @com.aliyun.core.annotation.NameInMap("QueryTimes") private Long queryTimes; @com.aliyun.core.annotation.NameInMap("ReturnRowCounts") private Long returnRowCounts; @com.aliyun.core.annotation.NameInMap("SQLText") private String SQLText; private SlowLogs(Builder builder) { this.DBName = builder.DBName; this.executionStartTime = builder.executionStartTime; this.hostAddress = builder.hostAddress; this.lockTimes = builder.lockTimes; this.parseRowCounts = builder.parseRowCounts; this.queryTimeMS = builder.queryTimeMS; this.queryTimes = builder.queryTimes; this.returnRowCounts = builder.returnRowCounts; this.SQLText = builder.SQLText; } public static Builder builder() { return new Builder(); } public static SlowLogs create() { return builder().build(); } /** * @return DBName */ public String getDBName() { return this.DBName; } /** * @return executionStartTime */ public String getExecutionStartTime() { return this.executionStartTime; } /** * @return hostAddress */ public String getHostAddress() { return this.hostAddress; } /** * @return lockTimes */ public Long getLockTimes() { return this.lockTimes; } /** * @return parseRowCounts */ public Long getParseRowCounts() { return this.parseRowCounts; } /** * @return queryTimeMS */ public Long getQueryTimeMS() { return this.queryTimeMS; } /** * @return queryTimes */ public Long getQueryTimes() { return this.queryTimes; } /** * @return returnRowCounts */ public Long getReturnRowCounts() { return this.returnRowCounts; } /** * @return SQLText */ public String getSQLText() { return this.SQLText; } public static final class Builder { private String DBName; private String executionStartTime; private String hostAddress; private Long lockTimes; private Long parseRowCounts; private Long queryTimeMS; private Long queryTimes; private Long returnRowCounts; private String SQLText; /** * <p>The name of the database.</p> * * <strong>example:</strong> * <p>testDB</p> */ public Builder DBName(String DBName) { this.DBName = DBName; return this; } /** * <p>The time when the execution of the SQL statement started. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * <blockquote> * <p> The time displayed in the Simple Application Server console is in the format of UTC+8.</p> * </blockquote> * * <strong>example:</strong> * <p>2022-09-08T01:40:44Z</p> */ public Builder executionStartTime(String executionStartTime) { this.executionStartTime = executionStartTime; return this; } /** * <p>The name and IP address of the client that is connected to the database.</p> * * <strong>example:</strong> * <p>xxx[xxx] @ [1xx.xxx.xxx.xx]</p> */ public Builder hostAddress(String hostAddress) { this.hostAddress = hostAddress; return this; } /** * <p>The lock duration of the SQL statement. Unit: seconds.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder lockTimes(Long lockTimes) { this.lockTimes = lockTimes; return this; } /** * <p>The number of rows parsed by the SQL statement.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder parseRowCounts(Long parseRowCounts) { this.parseRowCounts = parseRowCounts; return this; } /** * <p>The execution duration of the slow query. Unit: millisecond.</p> * * <strong>example:</strong> * <p>2001</p> */ public Builder queryTimeMS(Long queryTimeMS) { this.queryTimeMS = queryTimeMS; return this; } /** * <p>The execution duration of the slow query. Unit: seconds.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder queryTimes(Long queryTimes) { this.queryTimes = queryTimes; return this; } /** * <p>The number of rows returned by the SQL statement.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder returnRowCounts(Long returnRowCounts) { this.returnRowCounts = returnRowCounts; return this; } /** * <p>The details of the SQL statement.</p> * * <strong>example:</strong> * <p>select sleep(2)</p> */ public Builder SQLText(String SQLText) { this.SQLText = SQLText; return this; } public SlowLogs build() { return new SlowLogs(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeFirewallTemplateApplyResultsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeFirewallTemplateApplyResultsRequest} extends {@link RequestModel} * * <p>DescribeFirewallTemplateApplyResultsRequest</p> */ public class DescribeFirewallTemplateApplyResultsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FirewallTemplateId") private String firewallTemplateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskId") private java.util.List<String> taskId; private DescribeFirewallTemplateApplyResultsRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.firewallTemplateId = builder.firewallTemplateId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.taskId = builder.taskId; } public static Builder builder() { return new Builder(); } public static DescribeFirewallTemplateApplyResultsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return firewallTemplateId */ public String getFirewallTemplateId() { return this.firewallTemplateId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return taskId */ public java.util.List<String> getTaskId() { return this.taskId; } public static final class Builder extends Request.Builder<DescribeFirewallTemplateApplyResultsRequest, Builder> { private String clientToken; private String firewallTemplateId; private Integer pageNumber; private Integer pageSize; private String regionId; private java.util.List<String> taskId; private Builder() { super(); } private Builder(DescribeFirewallTemplateApplyResultsRequest request) { super(request); this.clientToken = request.clientToken; this.firewallTemplateId = request.firewallTemplateId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.taskId = request.taskId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The <strong>token</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the firewall template.</p> * * <strong>example:</strong> * <p>ft-bcf1a7hrdq717****</p> */ public Builder firewallTemplateId(String firewallTemplateId) { this.putQueryParameter("FirewallTemplateId", firewallTemplateId); this.firewallTemplateId = firewallTemplateId; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: 20.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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 execution to apply the template.</p> */ public Builder taskId(java.util.List<String> taskId) { this.putQueryParameter("TaskId", taskId); this.taskId = taskId; return this; } @Override public DescribeFirewallTemplateApplyResultsRequest build() { return new DescribeFirewallTemplateApplyResultsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeFirewallTemplateApplyResultsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeFirewallTemplateApplyResultsResponse} extends {@link TeaModel} * * <p>DescribeFirewallTemplateApplyResultsResponse</p> */ public class DescribeFirewallTemplateApplyResultsResponse 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 DescribeFirewallTemplateApplyResultsResponseBody body; private DescribeFirewallTemplateApplyResultsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeFirewallTemplateApplyResultsResponse 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 DescribeFirewallTemplateApplyResultsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeFirewallTemplateApplyResultsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeFirewallTemplateApplyResultsResponseBody body); @Override DescribeFirewallTemplateApplyResultsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeFirewallTemplateApplyResultsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeFirewallTemplateApplyResultsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeFirewallTemplateApplyResultsResponse 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(DescribeFirewallTemplateApplyResultsResponseBody body) { this.body = body; return this; } @Override public DescribeFirewallTemplateApplyResultsResponse build() { return new DescribeFirewallTemplateApplyResultsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeFirewallTemplateApplyResultsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeFirewallTemplateApplyResultsResponseBody} extends {@link TeaModel} * * <p>DescribeFirewallTemplateApplyResultsResponseBody</p> */ public class DescribeFirewallTemplateApplyResultsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PageNumber") private String pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private String pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private String totalCount; @com.aliyun.core.annotation.NameInMap("data") private java.util.List<Data> data; private DescribeFirewallTemplateApplyResultsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.data = builder.data; } public static Builder builder() { return new Builder(); } public static DescribeFirewallTemplateApplyResultsResponseBody create() { return builder().build(); } /** * @return pageNumber */ public String getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public String getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public String getTotalCount() { return this.totalCount; } /** * @return data */ public java.util.List<Data> getData() { return this.data; } public static final class Builder { private String pageNumber; private String pageSize; private String requestId; private String totalCount; private java.util.List<Data> data; /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(String pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: 20.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(String pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(String totalCount) { this.totalCount = totalCount; return this; } /** * <p>The returned results.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } public DescribeFirewallTemplateApplyResultsResponseBody build() { return new DescribeFirewallTemplateApplyResultsResponseBody(this); } } /** * * {@link DescribeFirewallTemplateApplyResultsResponseBody} extends {@link TeaModel} * * <p>DescribeFirewallTemplateApplyResultsResponseBody</p> */ public static class InstanceApplyResults extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("Status") private String status; private InstanceApplyResults(Builder builder) { this.instanceId = builder.instanceId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static InstanceApplyResults create() { return builder().build(); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String instanceId; private String status; /** * <p>The ID of the simple application server.</p> * * <strong>example:</strong> * <p>33774babccc84003a2b1ad47e8001233</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The status of applying the firewall template to the simple application servers. Valid values:</p> * <ul> * <li>Running: The firewall template is being applied to the simple application servers.</li> * <li>Failed: The firewall template is applied to none of the simple application servers.</li> * <li>Success: The firewall template is applied to all the simple application servers.</li> * <li>PartFailed: The firewall template fails to be applied to some simple application servers.</li> * </ul> * * <strong>example:</strong> * <p>Success</p> */ public Builder status(String status) { this.status = status; return this; } public InstanceApplyResults build() { return new InstanceApplyResults(this); } } } /** * * {@link DescribeFirewallTemplateApplyResultsResponseBody} extends {@link TeaModel} * * <p>DescribeFirewallTemplateApplyResultsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("FailedCount") private String failedCount; @com.aliyun.core.annotation.NameInMap("FirewallTemplateId") private String firewallTemplateId; @com.aliyun.core.annotation.NameInMap("InstanceApplyResults") private java.util.List<InstanceApplyResults> instanceApplyResults; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TaskId") private String taskId; @com.aliyun.core.annotation.NameInMap("TotalCount") private String totalCount; private Data(Builder builder) { this.createTime = builder.createTime; this.failedCount = builder.failedCount; this.firewallTemplateId = builder.firewallTemplateId; this.instanceApplyResults = builder.instanceApplyResults; this.status = builder.status; this.taskId = builder.taskId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return failedCount */ public String getFailedCount() { return this.failedCount; } /** * @return firewallTemplateId */ public String getFirewallTemplateId() { return this.firewallTemplateId; } /** * @return instanceApplyResults */ public java.util.List<InstanceApplyResults> getInstanceApplyResults() { return this.instanceApplyResults; } /** * @return status */ public String getStatus() { return this.status; } /** * @return taskId */ public String getTaskId() { return this.taskId; } /** * @return totalCount */ public String getTotalCount() { return this.totalCount; } public static final class Builder { private String createTime; private String failedCount; private String firewallTemplateId; private java.util.List<InstanceApplyResults> instanceApplyResults; private String status; private String taskId; private String totalCount; /** * <p>The time when the firewall template was applied to the simple application servers.</p> * * <strong>example:</strong> * <p>Tue May 14 11:53:07 CST 2024</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The total number of simple application servers to which the firewall template fails to apply.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder failedCount(String failedCount) { this.failedCount = failedCount; return this; } /** * <p>The ID of the firewall template.</p> * * <strong>example:</strong> * <p>ft-bcf1a7hrdq717****</p> */ public Builder firewallTemplateId(String firewallTemplateId) { this.firewallTemplateId = firewallTemplateId; return this; } /** * <p>The result of applying the firewall template to the simple application servers.</p> */ public Builder instanceApplyResults(java.util.List<InstanceApplyResults> instanceApplyResults) { this.instanceApplyResults = instanceApplyResults; return this; } /** * <p>The status of applying the template to all simple application servers. Valid values:</p> * <ul> * <li>Running: The firewall template is being applied to simple application servers.</li> * <li>Failed: The firewall template is applied to none of simple application servers.</li> * <li>Success: The firewall template is applied to all simple application servers.</li> * <li>PartFailed: The firewall template fails to be applied to some simple application servers.</li> * </ul> * * <strong>example:</strong> * <p>Success</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The ID of the execution to apply the template.</p> * * <strong>example:</strong> * <p>aft-ikgt0bynitvs3****</p> */ public Builder taskId(String taskId) { this.taskId = taskId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(String totalCount) { this.totalCount = totalCount; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeFirewallTemplateRulesApplyResultRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeFirewallTemplateRulesApplyResultRequest} extends {@link RequestModel} * * <p>DescribeFirewallTemplateRulesApplyResultRequest</p> */ public class DescribeFirewallTemplateRulesApplyResultRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FirewallTemplateId") @com.aliyun.core.annotation.Validation(required = true) private String firewallTemplateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskId") @com.aliyun.core.annotation.Validation(required = true) private String taskId; private DescribeFirewallTemplateRulesApplyResultRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.firewallTemplateId = builder.firewallTemplateId; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.taskId = builder.taskId; } public static Builder builder() { return new Builder(); } public static DescribeFirewallTemplateRulesApplyResultRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return firewallTemplateId */ public String getFirewallTemplateId() { return this.firewallTemplateId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return taskId */ public String getTaskId() { return this.taskId; } public static final class Builder extends Request.Builder<DescribeFirewallTemplateRulesApplyResultRequest, Builder> { private String clientToken; private String firewallTemplateId; private String instanceId; private String regionId; private String taskId; private Builder() { super(); } private Builder(DescribeFirewallTemplateRulesApplyResultRequest request) { super(request); this.clientToken = request.clientToken; this.firewallTemplateId = request.firewallTemplateId; this.instanceId = request.instanceId; this.regionId = request.regionId; this.taskId = request.taskId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you make sure that the token is unique among different requests. The <strong>token</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the firewall template.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ft-bcf1a7hrdq717****</p> */ public Builder firewallTemplateId(String firewallTemplateId) { this.putQueryParameter("FirewallTemplateId", firewallTemplateId); this.firewallTemplateId = firewallTemplateId; return this; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ace0706b2ac4454d984295a94213****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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 execution to apply the template rule.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>aft-ikgt0bynitvs3****</p> */ public Builder taskId(String taskId) { this.putQueryParameter("TaskId", taskId); this.taskId = taskId; return this; } @Override public DescribeFirewallTemplateRulesApplyResultRequest build() { return new DescribeFirewallTemplateRulesApplyResultRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeFirewallTemplateRulesApplyResultResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeFirewallTemplateRulesApplyResultResponse} extends {@link TeaModel} * * <p>DescribeFirewallTemplateRulesApplyResultResponse</p> */ public class DescribeFirewallTemplateRulesApplyResultResponse 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 DescribeFirewallTemplateRulesApplyResultResponseBody body; private DescribeFirewallTemplateRulesApplyResultResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeFirewallTemplateRulesApplyResultResponse 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 DescribeFirewallTemplateRulesApplyResultResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeFirewallTemplateRulesApplyResultResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeFirewallTemplateRulesApplyResultResponseBody body); @Override DescribeFirewallTemplateRulesApplyResultResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeFirewallTemplateRulesApplyResultResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeFirewallTemplateRulesApplyResultResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeFirewallTemplateRulesApplyResultResponse 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(DescribeFirewallTemplateRulesApplyResultResponseBody body) { this.body = body; return this; } @Override public DescribeFirewallTemplateRulesApplyResultResponse build() { return new DescribeFirewallTemplateRulesApplyResultResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeFirewallTemplateRulesApplyResultResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeFirewallTemplateRulesApplyResultResponseBody} extends {@link TeaModel} * * <p>DescribeFirewallTemplateRulesApplyResultResponseBody</p> */ public class DescribeFirewallTemplateRulesApplyResultResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("data") private java.util.List<Data> data; private DescribeFirewallTemplateRulesApplyResultResponseBody(Builder builder) { this.requestId = builder.requestId; this.data = builder.data; } public static Builder builder() { return new Builder(); } public static DescribeFirewallTemplateRulesApplyResultResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return data */ public java.util.List<Data> getData() { return this.data; } public static final class Builder { private String requestId; private java.util.List<Data> data; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4F534F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The returned results.</p> */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } public DescribeFirewallTemplateRulesApplyResultResponseBody build() { return new DescribeFirewallTemplateRulesApplyResultResponseBody(this); } } /** * * {@link DescribeFirewallTemplateRulesApplyResultResponseBody} extends {@link TeaModel} * * <p>DescribeFirewallTemplateRulesApplyResultResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("ErrorCode") private String errorCode; @com.aliyun.core.annotation.NameInMap("ErrorInfo") private String errorInfo; @com.aliyun.core.annotation.NameInMap("Port") private String port; @com.aliyun.core.annotation.NameInMap("Remark") private String remark; @com.aliyun.core.annotation.NameInMap("RuleProtocol") private String ruleProtocol; @com.aliyun.core.annotation.NameInMap("SourceCidrIp") private String sourceCidrIp; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private Data(Builder builder) { this.errorCode = builder.errorCode; this.errorInfo = builder.errorInfo; this.port = builder.port; this.remark = builder.remark; this.ruleProtocol = builder.ruleProtocol; this.sourceCidrIp = builder.sourceCidrIp; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return errorCode */ public String getErrorCode() { return this.errorCode; } /** * @return errorInfo */ public String getErrorInfo() { return this.errorInfo; } /** * @return port */ public String getPort() { return this.port; } /** * @return remark */ public String getRemark() { return this.remark; } /** * @return ruleProtocol */ public String getRuleProtocol() { return this.ruleProtocol; } /** * @return sourceCidrIp */ public String getSourceCidrIp() { return this.sourceCidrIp; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String errorCode; private String errorInfo; private String port; private String remark; private String ruleProtocol; private String sourceCidrIp; private Boolean success; /** * <p>The error codes when the firewall template rule fails to be applied.</p> * * <strong>example:</strong> * <p>500</p> */ public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** * <p>The error message that is displayed when the firewall template rule fails to be applied.</p> * * <strong>example:</strong> * <p>An error occurred while processing your request.</p> */ public Builder errorInfo(String errorInfo) { this.errorInfo = errorInfo; return this; } /** * <p>The port range. Valid values: 1 to 65535. Specify a port range in the format of &lt;start port number&gt;/&lt;end port number&gt;. Example: <code>1024/1055</code>, which indicates that the port range of 1024 to 1055.</p> * <blockquote> * <p> If you set RuleProtocol to ICMP, you must set Port to -1/-1.</p> * </blockquote> * * <strong>example:</strong> * <p>8080</p> */ public Builder port(String port) { this.port = port; return this; } /** * <p>The remarks of the firewall rule.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder remark(String remark) { this.remark = remark; return this; } /** * <p>The transport layer protocol that the rule supports. Valid values:</p> * <ul> * <li>TCP</li> * <li>UDP</li> * <li>TCP+UDP</li> * <li>ICMP</li> * </ul> * * <strong>example:</strong> * <p>TCP</p> */ public Builder ruleProtocol(String ruleProtocol) { this.ruleProtocol = ruleProtocol; return this; } /** * <p>The source address to which you want to grant access permissions. CIDR blocks and IPv4 addresses are supported.</p> * * <strong>example:</strong> * <p>119.145.XX.XX</p> */ public Builder sourceCidrIp(String sourceCidrIp) { this.sourceCidrIp = sourceCidrIp; return this; } /** * <p>The status of applying the firewall template rule to the simple application servers.</p> * <ul> * <li>Pending: The template rule does not start to be applied to the simple application servers.</li> * <li>Applying: The template rule is being applied to the simple application servers.</li> * <li>Success: The template rule is successfully applied to the simple application servers.</li> * <li>PartFailed: The template rule fails to be applied to some simple application servers.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeFirewallTemplatesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeFirewallTemplatesRequest} extends {@link RequestModel} * * <p>DescribeFirewallTemplatesRequest</p> */ public class DescribeFirewallTemplatesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FirewallTemplateId") private java.util.List<String> firewallTemplateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeFirewallTemplatesRequest(Builder builder) { super(builder); this.firewallTemplateId = builder.firewallTemplateId; this.name = builder.name; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeFirewallTemplatesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return firewallTemplateId */ public java.util.List<String> getFirewallTemplateId() { return this.firewallTemplateId; } /** * @return name */ public String getName() { return this.name; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeFirewallTemplatesRequest, Builder> { private java.util.List<String> firewallTemplateId; private String name; private Integer pageNumber; private Integer pageSize; private String regionId; private Builder() { super(); } private Builder(DescribeFirewallTemplatesRequest request) { super(request); this.firewallTemplateId = request.firewallTemplateId; this.name = request.name; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; } /** * <p>The IDs of the firewall templates.</p> */ public Builder firewallTemplateId(java.util.List<String> firewallTemplateId) { this.putQueryParameter("FirewallTemplateId", firewallTemplateId); this.firewallTemplateId = firewallTemplateId; return this; } /** * <p>The name of the firewall template.</p> * * <strong>example:</strong> * <p>testName</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * <p>The page number.</p> * <p>Pages start from page 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: 20.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DescribeFirewallTemplatesRequest build() { return new DescribeFirewallTemplatesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeFirewallTemplatesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeFirewallTemplatesResponse} extends {@link TeaModel} * * <p>DescribeFirewallTemplatesResponse</p> */ public class DescribeFirewallTemplatesResponse 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 DescribeFirewallTemplatesResponseBody body; private DescribeFirewallTemplatesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeFirewallTemplatesResponse 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 DescribeFirewallTemplatesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeFirewallTemplatesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeFirewallTemplatesResponseBody body); @Override DescribeFirewallTemplatesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeFirewallTemplatesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeFirewallTemplatesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeFirewallTemplatesResponse 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(DescribeFirewallTemplatesResponseBody body) { this.body = body; return this; } @Override public DescribeFirewallTemplatesResponse build() { return new DescribeFirewallTemplatesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeFirewallTemplatesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeFirewallTemplatesResponseBody} extends {@link TeaModel} * * <p>DescribeFirewallTemplatesResponseBody</p> */ public class DescribeFirewallTemplatesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("FirewallTemplates") private java.util.List<FirewallTemplates> firewallTemplates; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeFirewallTemplatesResponseBody(Builder builder) { this.firewallTemplates = builder.firewallTemplates; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeFirewallTemplatesResponseBody create() { return builder().build(); } /** * @return firewallTemplates */ public java.util.List<FirewallTemplates> getFirewallTemplates() { return this.firewallTemplates; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<FirewallTemplates> firewallTemplates; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; /** * <p>The information about the queried firewall templates.</p> */ public Builder firewallTemplates(java.util.List<FirewallTemplates> firewallTemplates) { this.firewallTemplates = firewallTemplates; return this; } /** * <p>The page number.</p> * <p>Pages start from page 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page. Default value: 20.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeFirewallTemplatesResponseBody build() { return new DescribeFirewallTemplatesResponseBody(this); } } /** * * {@link DescribeFirewallTemplatesResponseBody} extends {@link TeaModel} * * <p>DescribeFirewallTemplatesResponseBody</p> */ public static class FirewallTemplateRules extends TeaModel { @com.aliyun.core.annotation.NameInMap("FirewallTemplateRuleId") private String firewallTemplateRuleId; @com.aliyun.core.annotation.NameInMap("Port") private String port; @com.aliyun.core.annotation.NameInMap("Remark") private String remark; @com.aliyun.core.annotation.NameInMap("RuleProtocol") private String ruleProtocol; @com.aliyun.core.annotation.NameInMap("SourceCidrIp") private String sourceCidrIp; private FirewallTemplateRules(Builder builder) { this.firewallTemplateRuleId = builder.firewallTemplateRuleId; this.port = builder.port; this.remark = builder.remark; this.ruleProtocol = builder.ruleProtocol; this.sourceCidrIp = builder.sourceCidrIp; } public static Builder builder() { return new Builder(); } public static FirewallTemplateRules create() { return builder().build(); } /** * @return firewallTemplateRuleId */ public String getFirewallTemplateRuleId() { return this.firewallTemplateRuleId; } /** * @return port */ public String getPort() { return this.port; } /** * @return remark */ public String getRemark() { return this.remark; } /** * @return ruleProtocol */ public String getRuleProtocol() { return this.ruleProtocol; } /** * @return sourceCidrIp */ public String getSourceCidrIp() { return this.sourceCidrIp; } public static final class Builder { private String firewallTemplateRuleId; private String port; private String remark; private String ruleProtocol; private String sourceCidrIp; /** * <p>The ID of the firewall template rule.</p> * * <strong>example:</strong> * <p>eeea34d9867b4d55a4ff8d5fcfbd****</p> */ public Builder firewallTemplateRuleId(String firewallTemplateRuleId) { this.firewallTemplateRuleId = firewallTemplateRuleId; return this; } /** * <p>The port range. Valid values: 1 to 65535. Specify a port range in the format of &lt;start port number&gt;/&lt;end port number&gt;. Example: <code>1024/1055</code>, which indicates that the port range of 1024 to 1055.</p> * <blockquote> * <p> If you set RuleProtocol to ICMP, you must set Port to -1/-1.</p> * </blockquote> * * <strong>example:</strong> * <p>8080</p> */ public Builder port(String port) { this.port = port; return this; } /** * <p>The remarks of the firewall template rule.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder remark(String remark) { this.remark = remark; return this; } /** * <p>The transport layer protocol that the rule supports. Valid values:</p> * <ul> * <li>TCP</li> * <li>UDP</li> * <li>TCP+UDP</li> * <li>ICMP</li> * </ul> * * <strong>example:</strong> * <p>TCP</p> */ public Builder ruleProtocol(String ruleProtocol) { this.ruleProtocol = ruleProtocol; return this; } /** * <p>The source address to which you want to grant access permissions. CIDR blocks and IPv4 addresses are supported.</p> * * <strong>example:</strong> * <p>119.145.XX.XX</p> */ public Builder sourceCidrIp(String sourceCidrIp) { this.sourceCidrIp = sourceCidrIp; return this; } public FirewallTemplateRules build() { return new FirewallTemplateRules(this); } } } /** * * {@link DescribeFirewallTemplatesResponseBody} extends {@link TeaModel} * * <p>DescribeFirewallTemplatesResponseBody</p> */ public static class FirewallTemplates extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private String createTime; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("FirewallTemplateId") private String firewallTemplateId; @com.aliyun.core.annotation.NameInMap("FirewallTemplateRules") private java.util.List<FirewallTemplateRules> firewallTemplateRules; @com.aliyun.core.annotation.NameInMap("Name") private String name; private FirewallTemplates(Builder builder) { this.createTime = builder.createTime; this.creationTime = builder.creationTime; this.description = builder.description; this.firewallTemplateId = builder.firewallTemplateId; this.firewallTemplateRules = builder.firewallTemplateRules; this.name = builder.name; } public static Builder builder() { return new Builder(); } public static FirewallTemplates create() { return builder().build(); } /** * @return createTime */ public String getCreateTime() { return this.createTime; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return firewallTemplateId */ public String getFirewallTemplateId() { return this.firewallTemplateId; } /** * @return firewallTemplateRules */ public java.util.List<FirewallTemplateRules> getFirewallTemplateRules() { return this.firewallTemplateRules; } /** * @return name */ public String getName() { return this.name; } public static final class Builder { private String createTime; private String creationTime; private String description; private String firewallTemplateId; private java.util.List<FirewallTemplateRules> firewallTemplateRules; private String name; /** * <p>The time when the firewall template was created. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * <blockquote> * <p> The time displayed in the Simple Application Server console is in the format of UTC+8.</p> * </blockquote> * * <strong>example:</strong> * <p>2024-04-29T02:01:38Z</p> */ public Builder createTime(String createTime) { this.createTime = createTime; return this; } /** * <p>The time when the firewall template was created. The time follows the <a href="https://help.aliyun.com/document_detail/25696.html">ISO 8601</a> standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2024-04-10T02:10:14Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the firewall template.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The ID of the firewall template.</p> * * <strong>example:</strong> * <p>ft-bcf1a7hrdq717****</p> */ public Builder firewallTemplateId(String firewallTemplateId) { this.firewallTemplateId = firewallTemplateId; return this; } /** * <p>The details of the firewall template rules.</p> */ public Builder firewallTemplateRules(java.util.List<FirewallTemplateRules> firewallTemplateRules) { this.firewallTemplateRules = firewallTemplateRules; return this; } /** * <p>The name of the firewall template.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder name(String name) { this.name = name; return this; } public FirewallTemplates build() { return new FirewallTemplates(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInstanceKeyPairRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstanceKeyPairRequest} extends {@link RequestModel} * * <p>DescribeInstanceKeyPairRequest</p> */ public class DescribeInstanceKeyPairRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeInstanceKeyPairRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeInstanceKeyPairRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeInstanceKeyPairRequest, Builder> { private String clientToken; private String instanceId; private String regionId; private Builder() { super(); } private Builder(DescribeInstanceKeyPairRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The value of <strong>ClientToken</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ace0706b2ac4454d984295a94213****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DescribeInstanceKeyPairRequest build() { return new DescribeInstanceKeyPairRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInstanceKeyPairResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstanceKeyPairResponse} extends {@link TeaModel} * * <p>DescribeInstanceKeyPairResponse</p> */ public class DescribeInstanceKeyPairResponse 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 DescribeInstanceKeyPairResponseBody body; private DescribeInstanceKeyPairResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeInstanceKeyPairResponse 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 DescribeInstanceKeyPairResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeInstanceKeyPairResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeInstanceKeyPairResponseBody body); @Override DescribeInstanceKeyPairResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeInstanceKeyPairResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeInstanceKeyPairResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeInstanceKeyPairResponse 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(DescribeInstanceKeyPairResponseBody body) { this.body = body; return this; } @Override public DescribeInstanceKeyPairResponse build() { return new DescribeInstanceKeyPairResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInstanceKeyPairResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstanceKeyPairResponseBody} extends {@link TeaModel} * * <p>DescribeInstanceKeyPairResponseBody</p> */ public class DescribeInstanceKeyPairResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Fingerprint") private String fingerprint; @com.aliyun.core.annotation.NameInMap("KeyPairName") private String keyPairName; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeInstanceKeyPairResponseBody(Builder builder) { this.fingerprint = builder.fingerprint; this.keyPairName = builder.keyPairName; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeInstanceKeyPairResponseBody create() { return builder().build(); } /** * @return fingerprint */ public String getFingerprint() { return this.fingerprint; } /** * @return keyPairName */ public String getKeyPairName() { return this.keyPairName; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String fingerprint; private String keyPairName; private String requestId; /** * <p>The fingerprint of the key pair.</p> * * <strong>example:</strong> * <p>4f:70:62:e9:0c:72:f7:ee:74:ce:e3:bf:e0:82:<strong>:</strong></p> */ public Builder fingerprint(String fingerprint) { this.fingerprint = fingerprint; return this; } /** * <p>The name of the key pair.</p> * * <strong>example:</strong> * <p>KeyPairName</p> */ public Builder keyPairName(String keyPairName) { this.keyPairName = keyPairName; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4F****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeInstanceKeyPairResponseBody build() { return new DescribeInstanceKeyPairResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInstancePasswordsSettingRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstancePasswordsSettingRequest} extends {@link RequestModel} * * <p>DescribeInstancePasswordsSettingRequest</p> */ public class DescribeInstancePasswordsSettingRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeInstancePasswordsSettingRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeInstancePasswordsSettingRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeInstancePasswordsSettingRequest, Builder> { private String clientToken; private String instanceId; private String regionId; private Builder() { super(); } private Builder(DescribeInstancePasswordsSettingRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ace0706b2ac4454d984295a94213****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/2361076.html">ListRegions</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; } @Override public DescribeInstancePasswordsSettingRequest build() { return new DescribeInstancePasswordsSettingRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInstancePasswordsSettingResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstancePasswordsSettingResponse} extends {@link TeaModel} * * <p>DescribeInstancePasswordsSettingResponse</p> */ public class DescribeInstancePasswordsSettingResponse 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 DescribeInstancePasswordsSettingResponseBody body; private DescribeInstancePasswordsSettingResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeInstancePasswordsSettingResponse 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 DescribeInstancePasswordsSettingResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeInstancePasswordsSettingResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeInstancePasswordsSettingResponseBody body); @Override DescribeInstancePasswordsSettingResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeInstancePasswordsSettingResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeInstancePasswordsSettingResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeInstancePasswordsSettingResponse 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(DescribeInstancePasswordsSettingResponseBody body) { this.body = body; return this; } @Override public DescribeInstancePasswordsSettingResponse build() { return new DescribeInstancePasswordsSettingResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInstancePasswordsSettingResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstancePasswordsSettingResponseBody} extends {@link TeaModel} * * <p>DescribeInstancePasswordsSettingResponseBody</p> */ public class DescribeInstancePasswordsSettingResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstancePasswordSetting") private Boolean instancePasswordSetting; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("VncPasswordSetting") private Boolean vncPasswordSetting; private DescribeInstancePasswordsSettingResponseBody(Builder builder) { this.instancePasswordSetting = builder.instancePasswordSetting; this.requestId = builder.requestId; this.vncPasswordSetting = builder.vncPasswordSetting; } public static Builder builder() { return new Builder(); } public static DescribeInstancePasswordsSettingResponseBody create() { return builder().build(); } /** * @return instancePasswordSetting */ public Boolean getInstancePasswordSetting() { return this.instancePasswordSetting; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return vncPasswordSetting */ public Boolean getVncPasswordSetting() { return this.vncPasswordSetting; } public static final class Builder { private Boolean instancePasswordSetting; private String requestId; private Boolean vncPasswordSetting; /** * <p>Indicates whether a logon password is set for the simple application server.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder instancePasswordSetting(Boolean instancePasswordSetting) { this.instancePasswordSetting = instancePasswordSetting; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether a VNC connection password is set for the simple application server.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder vncPasswordSetting(Boolean vncPasswordSetting) { this.vncPasswordSetting = vncPasswordSetting; return this; } public DescribeInstancePasswordsSettingResponseBody build() { return new DescribeInstancePasswordsSettingResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInstanceVncUrlRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstanceVncUrlRequest} extends {@link RequestModel} * * <p>DescribeInstanceVncUrlRequest</p> */ public class DescribeInstanceVncUrlRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeInstanceVncUrlRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeInstanceVncUrlRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeInstanceVncUrlRequest, Builder> { private String clientToken; private String instanceId; private String regionId; private Builder() { super(); } private Builder(DescribeInstanceVncUrlRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2ad1ae67295445f598017499dc****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the simple application server.</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; } @Override public DescribeInstanceVncUrlRequest build() { return new DescribeInstanceVncUrlRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInstanceVncUrlResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstanceVncUrlResponse} extends {@link TeaModel} * * <p>DescribeInstanceVncUrlResponse</p> */ public class DescribeInstanceVncUrlResponse 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 DescribeInstanceVncUrlResponseBody body; private DescribeInstanceVncUrlResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeInstanceVncUrlResponse 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 DescribeInstanceVncUrlResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeInstanceVncUrlResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeInstanceVncUrlResponseBody body); @Override DescribeInstanceVncUrlResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeInstanceVncUrlResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeInstanceVncUrlResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeInstanceVncUrlResponse 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(DescribeInstanceVncUrlResponseBody body) { this.body = body; return this; } @Override public DescribeInstanceVncUrlResponse build() { return new DescribeInstanceVncUrlResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInstanceVncUrlResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstanceVncUrlResponseBody} extends {@link TeaModel} * * <p>DescribeInstanceVncUrlResponseBody</p> */ public class DescribeInstanceVncUrlResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("VncUrl") private String vncUrl; private DescribeInstanceVncUrlResponseBody(Builder builder) { this.requestId = builder.requestId; this.vncUrl = builder.vncUrl; } public static Builder builder() { return new Builder(); } public static DescribeInstanceVncUrlResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return vncUrl */ public String getVncUrl() { return this.vncUrl; } public static final class Builder { private String requestId; private String vncUrl; /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4F534F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The VNC connection address of the server.</p> * * <strong>example:</strong> * <p>wss%3A%2F%2Fhz01-vncproxy.aliyun.com%2Fwebsockify%2F%3Fs%3Dwz3L8wEMO6KMt7%252FXInEMtKVubBB%252F7rv055kOm8eUOD%252*****YlmsKjOfz6</p> */ public Builder vncUrl(String vncUrl) { this.vncUrl = vncUrl; return this; } public DescribeInstanceVncUrlResponseBody build() { return new DescribeInstanceVncUrlResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInvocationResultRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInvocationResultRequest} extends {@link RequestModel} * * <p>DescribeInvocationResultRequest</p> */ public class DescribeInvocationResultRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InvokeId") @com.aliyun.core.annotation.Validation(required = true) private String invokeId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeInvocationResultRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.invokeId = builder.invokeId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeInvocationResultRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return invokeId */ public String getInvokeId() { return this.invokeId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeInvocationResultRequest, Builder> { private String instanceId; private String invokeId; private String regionId; private Builder() { super(); } private Builder(DescribeInvocationResultRequest request) { super(request); this.instanceId = request.instanceId; this.invokeId = request.invokeId; this.regionId = request.regionId; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ace0706b2ac4454d984295a94213****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The execution ID. You can call the <a href="https://help.aliyun.com/document_detail/439368.html">DescribeInvocations</a> operation to query execution IDs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>t-bj02prjhw1n****</p> */ public Builder invokeId(String invokeId) { this.putQueryParameter("InvokeId", invokeId); this.invokeId = invokeId; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/25609.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public DescribeInvocationResultRequest build() { return new DescribeInvocationResultRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInvocationResultResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInvocationResultResponse} extends {@link TeaModel} * * <p>DescribeInvocationResultResponse</p> */ public class DescribeInvocationResultResponse 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 DescribeInvocationResultResponseBody body; private DescribeInvocationResultResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeInvocationResultResponse 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 DescribeInvocationResultResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeInvocationResultResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeInvocationResultResponseBody body); @Override DescribeInvocationResultResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeInvocationResultResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeInvocationResultResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeInvocationResultResponse 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(DescribeInvocationResultResponseBody body) { this.body = body; return this; } @Override public DescribeInvocationResultResponse build() { return new DescribeInvocationResultResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInvocationResultResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInvocationResultResponseBody} extends {@link TeaModel} * * <p>DescribeInvocationResultResponseBody</p> */ public class DescribeInvocationResultResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("InvocationResult") private InvocationResult invocationResult; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeInvocationResultResponseBody(Builder builder) { this.invocationResult = builder.invocationResult; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeInvocationResultResponseBody create() { return builder().build(); } /** * @return invocationResult */ public InvocationResult getInvocationResult() { return this.invocationResult; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private InvocationResult invocationResult; private String requestId; /** * <p>The execution results.</p> */ public Builder invocationResult(InvocationResult invocationResult) { this.invocationResult = invocationResult; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4F****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeInvocationResultResponseBody build() { return new DescribeInvocationResultResponseBody(this); } } /** * * {@link DescribeInvocationResultResponseBody} extends {@link TeaModel} * * <p>DescribeInvocationResultResponseBody</p> */ public static class InvocationResult extends TeaModel { @com.aliyun.core.annotation.NameInMap("ErrorCode") private String errorCode; @com.aliyun.core.annotation.NameInMap("ErrorInfo") private String errorInfo; @com.aliyun.core.annotation.NameInMap("ExitCode") private Long exitCode; @com.aliyun.core.annotation.NameInMap("FinishedTime") private String finishedTime; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InvocationStatus") private String invocationStatus; @com.aliyun.core.annotation.NameInMap("InvokeId") private String invokeId; @com.aliyun.core.annotation.NameInMap("InvokeRecordStatus") private String invokeRecordStatus; @com.aliyun.core.annotation.NameInMap("InvokeUser") private String invokeUser; @com.aliyun.core.annotation.NameInMap("Output") private String output; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; private InvocationResult(Builder builder) { this.errorCode = builder.errorCode; this.errorInfo = builder.errorInfo; this.exitCode = builder.exitCode; this.finishedTime = builder.finishedTime; this.instanceId = builder.instanceId; this.invocationStatus = builder.invocationStatus; this.invokeId = builder.invokeId; this.invokeRecordStatus = builder.invokeRecordStatus; this.invokeUser = builder.invokeUser; this.output = builder.output; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static InvocationResult create() { return builder().build(); } /** * @return errorCode */ public String getErrorCode() { return this.errorCode; } /** * @return errorInfo */ public String getErrorInfo() { return this.errorInfo; } /** * @return exitCode */ public Long getExitCode() { return this.exitCode; } /** * @return finishedTime */ public String getFinishedTime() { return this.finishedTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return invocationStatus */ public String getInvocationStatus() { return this.invocationStatus; } /** * @return invokeId */ public String getInvokeId() { return this.invokeId; } /** * @return invokeRecordStatus */ public String getInvokeRecordStatus() { return this.invokeRecordStatus; } /** * @return invokeUser */ public String getInvokeUser() { return this.invokeUser; } /** * @return output */ public String getOutput() { return this.output; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder { private String errorCode; private String errorInfo; private Long exitCode; private String finishedTime; private String instanceId; private String invocationStatus; private String invokeId; private String invokeRecordStatus; private String invokeUser; private String output; private String startTime; /** * <p>The error code that is returned if the command failed to be sent or executed.</p> * <ul> * <li>If this parameter is empty, the command is executed normally.</li> * <li>InstanceNotExists: The specified server does not exist or is released.</li> * <li>InstanceReleased: The server was released while the command was being executed on the server.</li> * <li>InstanceNotRunning: The server is not in the Running state while the command is being executed.</li> * <li>CommandNotApplicable: The command is not applicable to the specified server.</li> * <li>AccountNotExists: The specified account does not exist.</li> * <li>DirectoryNotExists: The specified directory does not exist.</li> * <li>BadCronExpression: The specified cron expression for the execution schedule is invalid.</li> * <li>ClientNotRunning: The Cloud Assistant client is not running.</li> * <li>ClientNotResponse: The Cloud Assistant client does not respond.</li> * <li>ClientIsUpgrading: The Cloud Assistant client is being upgraded.</li> * <li>ClientNeedUpgrade: The Cloud Assistant client needs to be upgraded.</li> * <li>DeliveryTimeout: Command sending times out.</li> * <li>ExecutionTimeout: The execution times out.</li> * <li>ExecutionException: An exception occurs while the command is being executed.</li> * <li>ExecutionInterrupted: The execution is interrupted.</li> * <li>ExitCodeNonzero: The execution is complete, but the exit code is not 0.</li> * </ul> * * <strong>example:</strong> * <p>InstanceNotExists</p> */ public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** * <p>The error message returned when the command is not successfully sent or executed. Valid values:</p> * <ul> * <li>If this parameter is empty, the command is executed normally.</li> * <li>the specified instance does not exists: The specified server does not exist or is released.</li> * <li>the instance has released when create task: The server was released while the command was being executed on the server.</li> * <li>the instance is not running when create task: The server is not in the Running state while the command is being executed.</li> * <li>the command is not applicable: The command is not applicable to the specified server.</li> * <li>the specified account does not exists: The specified account does not exist.</li> * <li>the specified directory does not exists: The specified directory does not exist.</li> * <li>the cron job expression is invalid: The specified cron expression is invalid.</li> * <li>the aliyun service is not running on the instance: The Cloud Assistance client is not running.</li> * <li>the aliyun service in the instance does not response: The Cloud Assistant client does not respond to your request.</li> * <li>the aliyun service in the instance is upgrading now: The Cloud Assistant client is being upgraded.</li> * <li>the aliyun service in the instance need upgrade: The Cloud Assistant client needs to be upgraded.</li> * <li>the command delivery has been timeout: Command sending times out.</li> * <li>the command execution has been timeout: The execution times out.</li> * <li>the command execution got an exception: An exception occurs while the command is being executed.</li> * <li>the command execution has been interrupted: The execution is interrupted.</li> * <li>the command execution exit code is not zero: The execution is complete, and the exit code is not 0.</li> * </ul> * * <strong>example:</strong> * <p>the specified instance does not exists</p> */ public Builder errorInfo(String errorInfo) { this.errorInfo = errorInfo; return this; } /** * <p>The exit code of the command.</p> * <ul> * <li>For Linux instances, the exit code is the exit code of the shell command.</li> * <li>For Windows instances, the exit code is the exit code of the batch or PowerShell command.</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder exitCode(Long exitCode) { this.exitCode = exitCode; return this; } /** * <p>The time when the execution ended.</p> * * <strong>example:</strong> * <p>2022-07-11T06:37:17Z</p> */ public Builder finishedTime(String finishedTime) { this.finishedTime = finishedTime; return this; } /** * <p>The ID of the simple application server.</p> * * <strong>example:</strong> * <p>ace0706b2ac4454d984295a94213****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The status of the execution progress. Valid values:</p> * <ul> * <li>Pending: The command is being verified or sent.</li> * <li>Invalid: The specified command type or parameter is invalid.</li> * <li>Aborted: The command fails to be sent to the server. To send a command to a server, make sure that the server is in the Running state and the command can be sent within 1 minute.</li> * <li>Running: The command is being executed on the server.</li> * <li>Success: The execution is completed, and the exit code is 0.</li> * <li>Failed: The execution is completed, and the exit code is not 0.</li> * <li>Error: The execution cannot proceed due to an exception.</li> * <li>Timeout: The execution times out.</li> * <li>Cancelled: The execution is canceled, and the command is not executed.</li> * <li>Stopping: The command in the Running state is being stopped.</li> * <li>Terminated: The command is terminated while it is being executed.</li> * </ul> * * <strong>example:</strong> * <p>Success</p> */ public Builder invocationStatus(String invocationStatus) { this.invocationStatus = invocationStatus; return this; } /** * <p>The execution ID.</p> * * <strong>example:</strong> * <p>t-bj02prjje65****</p> */ public Builder invokeId(String invokeId) { this.invokeId = invokeId; return this; } /** * <p>The status of the execution. Valid values:</p> * <ul> * <li>Running</li> * <li>Finished</li> * <li>Failed</li> * <li>Stopped</li> * </ul> * * <strong>example:</strong> * <p>Finished</p> */ public Builder invokeRecordStatus(String invokeRecordStatus) { this.invokeRecordStatus = invokeRecordStatus; return this; } /** * <p>The username who executes the command on the simple application server.</p> * * <strong>example:</strong> * <p>root</p> */ public Builder invokeUser(String invokeUser) { this.invokeUser = invokeUser; return this; } /** * <p>The command output.</p> * * <strong>example:</strong> * <p>YWRtaW4K</p> */ public Builder output(String output) { this.output = output; return this; } /** * <p>The time when the execution started.</p> * * <strong>example:</strong> * <p>2022-07-11T06:37:16Z</p> */ public Builder startTime(String startTime) { this.startTime = startTime; return this; } public InvocationResult build() { return new InvocationResult(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInvocationsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInvocationsRequest} extends {@link RequestModel} * * <p>DescribeInvocationsRequest</p> */ public class DescribeInvocationsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InvokeStatus") private String invokeStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeInvocationsRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.invokeStatus = builder.invokeStatus; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeInvocationsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return invokeStatus */ public String getInvokeStatus() { return this.invokeStatus; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeInvocationsRequest, Builder> { private String instanceId; private String invokeStatus; private Integer pageNumber; private Integer pageSize; private String regionId; private Builder() { super(); } private Builder(DescribeInvocationsRequest request) { super(request); this.instanceId = request.instanceId; this.invokeStatus = request.invokeStatus; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>3a658ca270df4df39f22e289b338****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The status of the command execution. Valid values:</p> * <ul> * <li>Running: The command is being executed.</li> * <li>Finished: The execution is complete.</li> * <li>Failed: The execution fails.</li> * </ul> * * <strong>example:</strong> * <p>Finished</p> */ public Builder invokeStatus(String invokeStatus) { this.putQueryParameter("InvokeStatus", invokeStatus); this.invokeStatus = invokeStatus; return this; } /** * <p>The page number.</p> * <p>Pages start from page 1.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * <p>Maximum value: 50.</p> * <p>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DescribeInvocationsRequest build() { return new DescribeInvocationsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInvocationsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInvocationsResponse} extends {@link TeaModel} * * <p>DescribeInvocationsResponse</p> */ public class DescribeInvocationsResponse 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 DescribeInvocationsResponseBody body; private DescribeInvocationsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeInvocationsResponse 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 DescribeInvocationsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeInvocationsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeInvocationsResponseBody body); @Override DescribeInvocationsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeInvocationsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeInvocationsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeInvocationsResponse 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(DescribeInvocationsResponseBody body) { this.body = body; return this; } @Override public DescribeInvocationsResponse build() { return new DescribeInvocationsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeInvocationsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInvocationsResponseBody} extends {@link TeaModel} * * <p>DescribeInvocationsResponseBody</p> */ public class DescribeInvocationsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Invocations") private java.util.List<Invocations> invocations; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeInvocationsResponseBody(Builder builder) { this.invocations = builder.invocations; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeInvocationsResponseBody create() { return builder().build(); } /** * @return invocations */ public java.util.List<Invocations> getInvocations() { return this.invocations; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Invocations> invocations; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; /** * <p>The command name.</p> */ public Builder invocations(java.util.List<Invocations> invocations) { this.invocations = invocations; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeInvocationsResponseBody build() { return new DescribeInvocationsResponseBody(this); } } /** * * {@link DescribeInvocationsResponseBody} extends {@link TeaModel} * * <p>DescribeInvocationsResponseBody</p> */ public static class Invocations extends TeaModel { @com.aliyun.core.annotation.NameInMap("CommandContent") private String commandContent; @com.aliyun.core.annotation.NameInMap("CommandName") private String commandName; @com.aliyun.core.annotation.NameInMap("CommandType") private String commandType; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("InvocationStatus") private String invocationStatus; @com.aliyun.core.annotation.NameInMap("InvokeId") private String invokeId; @com.aliyun.core.annotation.NameInMap("InvokeStatus") private String invokeStatus; @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.Map<String, ?> parameters; private Invocations(Builder builder) { this.commandContent = builder.commandContent; this.commandName = builder.commandName; this.commandType = builder.commandType; this.creationTime = builder.creationTime; this.invocationStatus = builder.invocationStatus; this.invokeId = builder.invokeId; this.invokeStatus = builder.invokeStatus; this.parameters = builder.parameters; } public static Builder builder() { return new Builder(); } public static Invocations create() { return builder().build(); } /** * @return commandContent */ public String getCommandContent() { return this.commandContent; } /** * @return commandName */ public String getCommandName() { return this.commandName; } /** * @return commandType */ public String getCommandType() { return this.commandType; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return invocationStatus */ public String getInvocationStatus() { return this.invocationStatus; } /** * @return invokeId */ public String getInvokeId() { return this.invokeId; } /** * @return invokeStatus */ public String getInvokeStatus() { return this.invokeStatus; } /** * @return parameters */ public java.util.Map<String, ?> getParameters() { return this.parameters; } public static final class Builder { private String commandContent; private String commandName; private String commandType; private String creationTime; private String invocationStatus; private String invokeId; private String invokeStatus; private java.util.Map<String, ?> parameters; /** * <p>The content of the command, which is Base64-encoded.</p> * * <strong>example:</strong> * <p>bHM=</p> */ public Builder commandContent(String commandContent) { this.commandContent = commandContent; return this; } /** * <p>The name of the command.</p> * * <strong>example:</strong> * <p>testname</p> */ public Builder commandName(String commandName) { this.commandName = commandName; return this; } /** * <p>The type of the command. Valid values:</p> * <ul> * <li>RunBatScript: batch command (applicable to Windows instances).</li> * <li>RunPowerShellScript: PowerShell command (applicable to Windows instances).</li> * <li>RunShellScript: shell command (applicable to Linux instances).</li> * </ul> * * <strong>example:</strong> * <p>RunShellScript</p> */ public Builder commandType(String commandType) { this.commandType = commandType; return this; } /** * <p>The time when the command was created.</p> * * <strong>example:</strong> * <p>2022-07-11T06:37:16Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The status of the command. Valid values:</p> * <ul> * <li>Pending: The command is being verified or sent.</li> * <li>Invalid: The specified command type or parameter is invalid.</li> * <li>Aborted: The command failed to be sent. To send a command to an instance, make sure that the instance is in the Running state and the command is sent to the instance within 1 minute.</li> * <li>Running: The command is being run on the instance.</li> * <li>Success: The command finishes running, and the exit code is 0.</li> * <li>Failed: The command finishes running, but the exit code is not 0.</li> * <li>Error: The running of the command cannot proceed due to an exception.</li> * <li>Timeout: The running of the command times out.</li> * <li>Cancelled: The running is canceled, and the command is not run.</li> * <li>Stopping: The command that is running is being stopped.</li> * <li>Terminated: The command is terminated while it is being run.</li> * </ul> * * <strong>example:</strong> * <p>Success</p> */ public Builder invocationStatus(String invocationStatus) { this.invocationStatus = invocationStatus; return this; } /** * <p>The ID of the command task.</p> * * <strong>example:</strong> * <p>t-hz02p9545t6****</p> */ public Builder invokeId(String invokeId) { this.invokeId = invokeId; return this; } /** * <p>The status of the command. Valid values:</p> * <ul> * <li>Running: The command is running.</li> * <li>Finished: The command finishes running.</li> * <li>Failed: The running of the command failed.</li> * <li>Stopped: The running is stopped.</li> * </ul> * * <strong>example:</strong> * <p>Finished</p> */ public Builder invokeStatus(String invokeStatus) { this.invokeStatus = invokeStatus; return this; } /** * <p>The custom parameters in the command. If no custom parameter exists in the command, the default value is {}.</p> * * <strong>example:</strong> * <p>{}</p> */ public Builder parameters(java.util.Map<String, ?> parameters) { this.parameters = parameters; return this; } public Invocations build() { return new Invocations(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeMonitorDataRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeMonitorDataRequest} extends {@link RequestModel} * * <p>DescribeMonitorDataRequest</p> */ public class DescribeMonitorDataRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") @com.aliyun.core.annotation.Validation(required = true) private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Length") private String length; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MetricName") @com.aliyun.core.annotation.Validation(required = true) private String metricName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Period") @com.aliyun.core.annotation.Validation(required = true) private String period; @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("StartTime") @com.aliyun.core.annotation.Validation(required = true) private String startTime; private DescribeMonitorDataRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.endTime = builder.endTime; this.instanceId = builder.instanceId; this.length = builder.length; this.metricName = builder.metricName; this.nextToken = builder.nextToken; this.period = builder.period; this.regionId = builder.regionId; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static DescribeMonitorDataRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return length */ public String getLength() { return this.length; } /** * @return metricName */ public String getMetricName() { return this.metricName; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return period */ public String getPeriod() { return this.period; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder extends Request.Builder<DescribeMonitorDataRequest, Builder> { private String clientToken; private String endTime; private String instanceId; private String length; private String metricName; private String nextToken; private String period; private String regionId; private String startTime; private Builder() { super(); } private Builder(DescribeMonitorDataRequest request) { super(request); this.clientToken = request.clientToken; this.endTime = request.endTime; this.instanceId = request.instanceId; this.length = request.length; this.metricName = request.metricName; this.nextToken = request.nextToken; this.period = request.period; this.regionId = request.regionId; this.startTime = request.startTime; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The <strong>token</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The end of the time range to query. The following formats are supported:</p> * <ul> * <li>UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 January 1, 1970.</li> * <li>Time format: YYYY-MM-DDThh:mm:ssZ.</li> * </ul> * <blockquote> * <p>The interval between the start time and the end time is less than or equal to 31 days.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2022-09-08T08:04:44Z</p> */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2ad1ae67295445f598017499dc****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The number of entries per page. Valid values: 1 to 1440.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder length(String length) { this.putQueryParameter("Length", length); this.length = length; return this; } /** * <p>The name of the metric. Valid values:</p> * <ul> * <li>MEMORY_ACTUALUSEDSPACE: the memory usage. Unit: bytes.</li> * <li>DISKUSAGE_USED: the disk usage. Unit: bytes.</li> * <li>CPU_UTILIZATION: the CPU usage, in percentage.</li> * <li>VPC_PUBLICIP_INTERNETOUT_RATE: the outbound bandwidth. Unit: bits/s.</li> * <li>VPC_PUBLICIP_INTERNETIN_RATE: the inbound bandwidth. Unit: bits/s.</li> * <li>DISK_READ_IOPS: the read IOPS of the disk. Unit: count/s.</li> * <li>DISK_WRITE_IOPS: the write IOPS of the disk. Unit: count/s.</li> * <li>FLOW_USED: the traffic usage. Unit: bytes.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>DISKUSAGE_USED</p> */ public Builder metricName(String metricName) { this.putQueryParameter("MetricName", metricName); this.metricName = metricName; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.</p> * * <strong>example:</strong> * <p>AAAAAV3MpHK1AP0pfERHZN5pu6nOc1nj4M9UaAZ/I8db***</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The interval at which the monitoring data is queried. Valid values: 60, 300, and 900. Unit: seconds.</p> * <blockquote> * <p> If MetricName is set to FLOW_USED, set Period to 3600 (one hour). In other cases, set Period based on your business requirements.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>60</p> */ public Builder period(String period) { this.putQueryParameter("Period", period); this.period = period; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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 beginning of the time range to query. The following formats are supported:</p> * <ul> * <li>UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 January 1, 1970.</li> * <li>Time format: YYYY-MM-DDThh:mm:ssZ.<blockquote> * <ul> * <li>The specified time range includes the end time and excludes the start time. The start time must be earlier than the end time.</li> * <li>The interval between the start time and the end time is less than or equal to 31 days.</li> * </ul> * </blockquote> * </li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2022-09-07T04:04:44Z</p> */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } @Override public DescribeMonitorDataRequest build() { return new DescribeMonitorDataRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeMonitorDataResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeMonitorDataResponse} extends {@link TeaModel} * * <p>DescribeMonitorDataResponse</p> */ public class DescribeMonitorDataResponse 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 DescribeMonitorDataResponseBody body; private DescribeMonitorDataResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeMonitorDataResponse 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 DescribeMonitorDataResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeMonitorDataResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeMonitorDataResponseBody body); @Override DescribeMonitorDataResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeMonitorDataResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeMonitorDataResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeMonitorDataResponse 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(DescribeMonitorDataResponseBody body) { this.body = body; return this; } @Override public DescribeMonitorDataResponse build() { return new DescribeMonitorDataResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeMonitorDataResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeMonitorDataResponseBody} extends {@link TeaModel} * * <p>DescribeMonitorDataResponseBody</p> */ public class DescribeMonitorDataResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Datapoints") private String datapoints; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("Period") private String period; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeMonitorDataResponseBody(Builder builder) { this.datapoints = builder.datapoints; this.nextToken = builder.nextToken; this.period = builder.period; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeMonitorDataResponseBody create() { return builder().build(); } /** * @return datapoints */ public String getDatapoints() { return this.datapoints; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return period */ public String getPeriod() { return this.period; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String datapoints; private String nextToken; private String period; private String requestId; /** * <p>The monitoring data.</p> * * <strong>example:</strong> * <p>[]</p> */ public Builder datapoints(String datapoints) { this.datapoints = datapoints; return this; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.</p> * * <strong>example:</strong> * <p>AAAAAV3MpHK1AP0pfERHZN5pu6nOc1nj4M9UaAZ/I8db***</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The interval at which the monitoring data is queried. Valid values: 60, 300, and 900. Unit: seconds.</p> * <blockquote> * <p> If you set the MetricName request parameter to FLOW_USED, the value of Period is 3600 (one hour).</p> * </blockquote> * * <strong>example:</strong> * <p>60</p> */ public Builder period(String period) { this.period = period; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeMonitorDataResponseBody build() { return new DescribeMonitorDataResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeSecurityAgentStatusRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSecurityAgentStatusRequest} extends {@link RequestModel} * * <p>DescribeSecurityAgentStatusRequest</p> */ public class DescribeSecurityAgentStatusRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DescribeSecurityAgentStatusRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeSecurityAgentStatusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeSecurityAgentStatusRequest, Builder> { private String clientToken; private String instanceId; private String regionId; private Builder() { super(); } private Builder(DescribeSecurityAgentStatusRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ace0706b2ac4454d984295a94213****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public DescribeSecurityAgentStatusRequest build() { return new DescribeSecurityAgentStatusRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeSecurityAgentStatusResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSecurityAgentStatusResponse} extends {@link TeaModel} * * <p>DescribeSecurityAgentStatusResponse</p> */ public class DescribeSecurityAgentStatusResponse 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 DescribeSecurityAgentStatusResponseBody body; private DescribeSecurityAgentStatusResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSecurityAgentStatusResponse 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 DescribeSecurityAgentStatusResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSecurityAgentStatusResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSecurityAgentStatusResponseBody body); @Override DescribeSecurityAgentStatusResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSecurityAgentStatusResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSecurityAgentStatusResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSecurityAgentStatusResponse 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(DescribeSecurityAgentStatusResponseBody body) { this.body = body; return this; } @Override public DescribeSecurityAgentStatusResponse build() { return new DescribeSecurityAgentStatusResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DescribeSecurityAgentStatusResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSecurityAgentStatusResponseBody} extends {@link TeaModel} * * <p>DescribeSecurityAgentStatusResponseBody</p> */ public class DescribeSecurityAgentStatusResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ClientStatus") private String clientStatus; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeSecurityAgentStatusResponseBody(Builder builder) { this.clientStatus = builder.clientStatus; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeSecurityAgentStatusResponseBody create() { return builder().build(); } /** * @return clientStatus */ public String getClientStatus() { return this.clientStatus; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String clientStatus; private String requestId; /** * <p>The status of the Security Center agent. Valid values:</p> * <ul> * <li>pause: The Security Center agent suspends protection for your server.</li> * <li>online: The Security Center agent is protecting your server.</li> * <li>offline: The Security Center agent does not protect your server.</li> * </ul> * * <strong>example:</strong> * <p>online</p> */ public Builder clientStatus(String clientStatus) { this.clientStatus = clientStatus; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4F534F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeSecurityAgentStatusResponseBody build() { return new DescribeSecurityAgentStatusResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DetachKeyPairRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachKeyPairRequest} extends {@link RequestModel} * * <p>DetachKeyPairRequest</p> */ public class DetachKeyPairRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceIds") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> instanceIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("KeyPairName") @com.aliyun.core.annotation.Validation(required = true) private String keyPairName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DetachKeyPairRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceIds = builder.instanceIds; this.keyPairName = builder.keyPairName; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DetachKeyPairRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceIds */ public java.util.List<String> getInstanceIds() { return this.instanceIds; } /** * @return keyPairName */ public String getKeyPairName() { return this.keyPairName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DetachKeyPairRequest, Builder> { private String clientToken; private java.util.List<String> instanceIds; private String keyPairName; private String regionId; private Builder() { super(); } private Builder(DetachKeyPairRequest request) { super(request); this.clientToken = request.clientToken; this.instanceIds = request.instanceIds; this.keyPairName = request.keyPairName; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The <strong>token</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The IDs of the simple application servers from which you want to unbind SSH key pairs. You can specify a maximum of 50 IDs of simple application servers.</p> * <p>This parameter is required.</p> */ public Builder instanceIds(java.util.List<String> instanceIds) { this.putQueryParameter("InstanceIds", instanceIds); this.instanceIds = instanceIds; return this; } /** * <p>The name of the key pair. The name must be globally unique. The name must be 2 to 64 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter but cannot start with http:// or https://.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>KeyPairName</p> */ public Builder keyPairName(String keyPairName) { this.putQueryParameter("KeyPairName", keyPairName); this.keyPairName = keyPairName; return this; } /** * <p>The region ID of the simple application servers.</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; } @Override public DetachKeyPairRequest build() { return new DetachKeyPairRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DetachKeyPairResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachKeyPairResponse} extends {@link TeaModel} * * <p>DetachKeyPairResponse</p> */ public class DetachKeyPairResponse 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 DetachKeyPairResponseBody body; private DetachKeyPairResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DetachKeyPairResponse 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 DetachKeyPairResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DetachKeyPairResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DetachKeyPairResponseBody body); @Override DetachKeyPairResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DetachKeyPairResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DetachKeyPairResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DetachKeyPairResponse 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(DetachKeyPairResponseBody body) { this.body = body; return this; } @Override public DetachKeyPairResponse build() { return new DetachKeyPairResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DetachKeyPairResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachKeyPairResponseBody} extends {@link TeaModel} * * <p>DetachKeyPairResponseBody</p> */ public class DetachKeyPairResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("FailCount") private Integer failCount; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Results") private java.util.List<Results> results; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DetachKeyPairResponseBody(Builder builder) { this.failCount = builder.failCount; this.requestId = builder.requestId; this.results = builder.results; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DetachKeyPairResponseBody create() { return builder().build(); } /** * @return failCount */ public Integer getFailCount() { return this.failCount; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return results */ public java.util.List<Results> getResults() { return this.results; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer failCount; private String requestId; private java.util.List<Results> results; private Integer totalCount; /** * <p>The total number of simple application servers from which you fail to unbind key pairs.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder failCount(Integer failCount) { this.failCount = failCount; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4F534F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The request results.</p> */ public Builder results(java.util.List<Results> results) { this.results = results; return this; } /** * <p>The total number of simple application servers from which the SSH key pair is unbound.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DetachKeyPairResponseBody build() { return new DetachKeyPairResponseBody(this); } } /** * * {@link DetachKeyPairResponseBody} extends {@link TeaModel} * * <p>DetachKeyPairResponseBody</p> */ public static class Results extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("Success") private String success; private Results(Builder builder) { this.code = builder.code; this.instanceId = builder.instanceId; this.message = builder.message; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static Results create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return message */ public String getMessage() { return this.message; } /** * @return success */ public String getSuccess() { return this.success; } public static final class Builder { private String code; private String instanceId; private String message; private String success; /** * <p>The HTTP status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The ID of the simple application server.</p> * * <strong>example:</strong> * <p>aa6e71ddb35c46679bc4753d6219d604</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The response message.</p> * * <strong>example:</strong> * <p>success</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>Indicates whether the key pair is unbound from the simple application server successfully. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>True</p> */ public Builder success(String success) { this.success = success; return this; } public Results build() { return new Results(this); } } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DisableFirewallRuleRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DisableFirewallRuleRequest} extends {@link RequestModel} * * <p>DisableFirewallRuleRequest</p> */ public class DisableFirewallRuleRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Remark") private String remark; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleId") @com.aliyun.core.annotation.Validation(required = true) private String ruleId; private DisableFirewallRuleRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.remark = builder.remark; this.ruleId = builder.ruleId; } public static Builder builder() { return new Builder(); } public static DisableFirewallRuleRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return remark */ public String getRemark() { return this.remark; } /** * @return ruleId */ public String getRuleId() { return this.ruleId; } public static final class Builder extends Request.Builder<DisableFirewallRuleRequest, Builder> { private String clientToken; private String instanceId; private String regionId; private String remark; private String ruleId; private Builder() { super(); } private Builder(DisableFirewallRuleRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.regionId = request.regionId; this.remark = request.remark; this.ruleId = request.ruleId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The value of <strong>ClientToken</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ace0706b2ac4454d984295a94213****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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 remarks of the firewall rule.</p> * * <strong>example:</strong> * <p>custom</p> */ public Builder remark(String remark) { this.putQueryParameter("Remark", remark); this.remark = remark; return this; } /** * <p>The ID of the firewall rule. You can call the ListFirewallRules operation to query the ID of the firewall rule.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eeea34d9867b4d55a4ff8d5fcfbd****</p> */ public Builder ruleId(String ruleId) { this.putQueryParameter("RuleId", ruleId); this.ruleId = ruleId; return this; } @Override public DisableFirewallRuleRequest build() { return new DisableFirewallRuleRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DisableFirewallRuleResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DisableFirewallRuleResponse} extends {@link TeaModel} * * <p>DisableFirewallRuleResponse</p> */ public class DisableFirewallRuleResponse 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 DisableFirewallRuleResponseBody body; private DisableFirewallRuleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DisableFirewallRuleResponse 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 DisableFirewallRuleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DisableFirewallRuleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DisableFirewallRuleResponseBody body); @Override DisableFirewallRuleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DisableFirewallRuleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DisableFirewallRuleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DisableFirewallRuleResponse 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(DisableFirewallRuleResponseBody body) { this.body = body; return this; } @Override public DisableFirewallRuleResponse build() { return new DisableFirewallRuleResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/DisableFirewallRuleResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DisableFirewallRuleResponseBody} extends {@link TeaModel} * * <p>DisableFirewallRuleResponseBody</p> */ public class DisableFirewallRuleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DisableFirewallRuleResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DisableFirewallRuleResponseBody 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>20758A-585D-4A41-A9B2-28DA8F4F534F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DisableFirewallRuleResponseBody build() { return new DisableFirewallRuleResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/EnableFirewallRuleRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link EnableFirewallRuleRequest} extends {@link RequestModel} * * <p>EnableFirewallRuleRequest</p> */ public class EnableFirewallRuleRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Remark") private String remark; @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("SourceCidrIp") private String sourceCidrIp; private EnableFirewallRuleRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.remark = builder.remark; this.ruleId = builder.ruleId; this.sourceCidrIp = builder.sourceCidrIp; } public static Builder builder() { return new Builder(); } public static EnableFirewallRuleRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return remark */ public String getRemark() { return this.remark; } /** * @return ruleId */ public String getRuleId() { return this.ruleId; } /** * @return sourceCidrIp */ public String getSourceCidrIp() { return this.sourceCidrIp; } public static final class Builder extends Request.Builder<EnableFirewallRuleRequest, Builder> { private String clientToken; private String instanceId; private String regionId; private String remark; private String ruleId; private String sourceCidrIp; private Builder() { super(); } private Builder(EnableFirewallRuleRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.regionId = request.regionId; this.remark = request.remark; this.ruleId = request.ruleId; this.sourceCidrIp = request.sourceCidrIp; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2ad1ae67295445f598017499dc****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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 remarks of the firewall rule.</p> * * <strong>example:</strong> * <p>custom</p> */ public Builder remark(String remark) { this.putQueryParameter("Remark", remark); this.remark = remark; return this; } /** * <p>The ID of the firewall rule.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eeea34d9867b4d55a4ff8d5fcfbd****</p> */ public Builder ruleId(String ruleId) { this.putQueryParameter("RuleId", ruleId); this.ruleId = ruleId; return this; } /** * <p>The IP address or CIDR block that is allowed in the firewall policy.</p> * * <strong>example:</strong> * <p>10.147.33.**</p> */ public Builder sourceCidrIp(String sourceCidrIp) { this.putQueryParameter("SourceCidrIp", sourceCidrIp); this.sourceCidrIp = sourceCidrIp; return this; } @Override public EnableFirewallRuleRequest build() { return new EnableFirewallRuleRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/EnableFirewallRuleResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link EnableFirewallRuleResponse} extends {@link TeaModel} * * <p>EnableFirewallRuleResponse</p> */ public class EnableFirewallRuleResponse 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 EnableFirewallRuleResponseBody body; private EnableFirewallRuleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static EnableFirewallRuleResponse 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 EnableFirewallRuleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<EnableFirewallRuleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(EnableFirewallRuleResponseBody body); @Override EnableFirewallRuleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<EnableFirewallRuleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private EnableFirewallRuleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(EnableFirewallRuleResponse 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(EnableFirewallRuleResponseBody body) { this.body = body; return this; } @Override public EnableFirewallRuleResponse build() { return new EnableFirewallRuleResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/EnableFirewallRuleResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link EnableFirewallRuleResponseBody} extends {@link TeaModel} * * <p>EnableFirewallRuleResponseBody</p> */ public class EnableFirewallRuleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private EnableFirewallRuleResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static EnableFirewallRuleResponseBody 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>20758A-585D-4A41-A9B2-28DA8F4F****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public EnableFirewallRuleResponseBody build() { return new EnableFirewallRuleResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/ImportKeyPairRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ImportKeyPairRequest} extends {@link RequestModel} * * <p>ImportKeyPairRequest</p> */ public class ImportKeyPairRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("KeyPairName") @com.aliyun.core.annotation.Validation(required = true) private String keyPairName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PublicKeyBody") @com.aliyun.core.annotation.Validation(required = true) private String publicKeyBody; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private ImportKeyPairRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.keyPairName = builder.keyPairName; this.publicKeyBody = builder.publicKeyBody; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static ImportKeyPairRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return keyPairName */ public String getKeyPairName() { return this.keyPairName; } /** * @return publicKeyBody */ public String getPublicKeyBody() { return this.publicKeyBody; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<ImportKeyPairRequest, Builder> { private String clientToken; private String keyPairName; private String publicKeyBody; private String regionId; private Builder() { super(); } private Builder(ImportKeyPairRequest request) { super(request); this.clientToken = request.clientToken; this.keyPairName = request.keyPairName; this.publicKeyBody = request.publicKeyBody; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The <strong>token</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The name of the key pair. The name must be 2 to 64 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter and cannot start with http:// or https://.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>KeyPairName</p> */ public Builder keyPairName(String keyPairName) { this.putQueryParameter("KeyPairName", keyPairName); this.keyPairName = keyPairName; return this; } /** * <p>The public key of the key pair.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCbO5Govwhb0iHzoMYKkIQxjlHyHH8nxFsW6KF5saxgYhOwdeIpWngpi+/NDWQKvuOnXFFDh/o3eJJkh3rqP+RlMggt4HLQWOd9TS0f4/cgbAzud1caW9PnankCr****</p> */ public Builder publicKeyBody(String publicKeyBody) { this.putQueryParameter("PublicKeyBody", publicKeyBody); this.publicKeyBody = publicKeyBody; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public ImportKeyPairRequest build() { return new ImportKeyPairRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/ImportKeyPairResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ImportKeyPairResponse} extends {@link TeaModel} * * <p>ImportKeyPairResponse</p> */ public class ImportKeyPairResponse 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 ImportKeyPairResponseBody body; private ImportKeyPairResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ImportKeyPairResponse 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 ImportKeyPairResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ImportKeyPairResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ImportKeyPairResponseBody body); @Override ImportKeyPairResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ImportKeyPairResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ImportKeyPairResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ImportKeyPairResponse 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(ImportKeyPairResponseBody body) { this.body = body; return this; } @Override public ImportKeyPairResponse build() { return new ImportKeyPairResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/ImportKeyPairResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ImportKeyPairResponseBody} extends {@link TeaModel} * * <p>ImportKeyPairResponseBody</p> */ public class ImportKeyPairResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("KeyPairName") private String keyPairName; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ImportKeyPairResponseBody(Builder builder) { this.keyPairName = builder.keyPairName; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ImportKeyPairResponseBody create() { return builder().build(); } /** * @return keyPairName */ public String getKeyPairName() { return this.keyPairName; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String keyPairName; private String requestId; /** * <p>The name of the key pair. The name must be 2 to 64 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter and cannot start with http:// or https://.</p> * * <strong>example:</strong> * <p>KeyPairName</p> */ public Builder keyPairName(String keyPairName) { this.keyPairName = keyPairName; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4F534F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ImportKeyPairResponseBody build() { return new ImportKeyPairResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/InstallCloudAssistantRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link InstallCloudAssistantRequest} extends {@link RequestModel} * * <p>InstallCloudAssistantRequest</p> */ public class InstallCloudAssistantRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceIds") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> instanceIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private InstallCloudAssistantRequest(Builder builder) { super(builder); this.instanceIds = builder.instanceIds; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static InstallCloudAssistantRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceIds */ public java.util.List<String> getInstanceIds() { return this.instanceIds; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<InstallCloudAssistantRequest, Builder> { private java.util.List<String> instanceIds; private String regionId; private Builder() { super(); } private Builder(InstallCloudAssistantRequest request) { super(request); this.instanceIds = request.instanceIds; this.regionId = request.regionId; } /** * <p>The IDs of the simple application servers.</p> * <p>This parameter is required.</p> */ public Builder instanceIds(java.util.List<String> instanceIds) { String instanceIdsShrink = shrink(instanceIds, "InstanceIds", "json"); this.putQueryParameter("InstanceIds", instanceIdsShrink); this.instanceIds = instanceIds; return this; } /** * <p>The region ID of the simple application servers. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public InstallCloudAssistantRequest build() { return new InstallCloudAssistantRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/InstallCloudAssistantResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link InstallCloudAssistantResponse} extends {@link TeaModel} * * <p>InstallCloudAssistantResponse</p> */ public class InstallCloudAssistantResponse 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 InstallCloudAssistantResponseBody body; private InstallCloudAssistantResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static InstallCloudAssistantResponse 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 InstallCloudAssistantResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<InstallCloudAssistantResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(InstallCloudAssistantResponseBody body); @Override InstallCloudAssistantResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<InstallCloudAssistantResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private InstallCloudAssistantResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(InstallCloudAssistantResponse 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(InstallCloudAssistantResponseBody body) { this.body = body; return this; } @Override public InstallCloudAssistantResponse build() { return new InstallCloudAssistantResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/InstallCloudAssistantResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link InstallCloudAssistantResponseBody} extends {@link TeaModel} * * <p>InstallCloudAssistantResponseBody</p> */ public class InstallCloudAssistantResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private InstallCloudAssistantResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static InstallCloudAssistantResponseBody 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>20758A-585D-4A41-A9B2-28DA8F4F****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public InstallCloudAssistantResponseBody build() { return new InstallCloudAssistantResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/InstallCloudMonitorAgentRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link InstallCloudMonitorAgentRequest} extends {@link RequestModel} * * <p>InstallCloudMonitorAgentRequest</p> */ public class InstallCloudMonitorAgentRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Force") private Boolean force; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private InstallCloudMonitorAgentRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.force = builder.force; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static InstallCloudMonitorAgentRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return force */ public Boolean getForce() { return this.force; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<InstallCloudMonitorAgentRequest, Builder> { private String clientToken; private Boolean force; private String instanceId; private String regionId; private Builder() { super(); } private Builder(InstallCloudMonitorAgentRequest request) { super(request); this.clientToken = request.clientToken; this.force = request.force; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to forcibly install the CloudMonitor agent. Valid values:</p> * <ul> * <li>true (default value): forcibly installs the CloudMonitor agent.</li> * <li>false: does not forcibly install the CloudMonitor agent.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder force(Boolean force) { this.putQueryParameter("Force", force); this.force = force; return this; } /** * <p>The ID of the simple application server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>9ae7106e68eb4402b0dcbd48a9de****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the simple application server. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public InstallCloudMonitorAgentRequest build() { return new InstallCloudMonitorAgentRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/InstallCloudMonitorAgentResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link InstallCloudMonitorAgentResponse} extends {@link TeaModel} * * <p>InstallCloudMonitorAgentResponse</p> */ public class InstallCloudMonitorAgentResponse 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 InstallCloudMonitorAgentResponseBody body; private InstallCloudMonitorAgentResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static InstallCloudMonitorAgentResponse 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 InstallCloudMonitorAgentResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<InstallCloudMonitorAgentResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(InstallCloudMonitorAgentResponseBody body); @Override InstallCloudMonitorAgentResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<InstallCloudMonitorAgentResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private InstallCloudMonitorAgentResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(InstallCloudMonitorAgentResponse 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(InstallCloudMonitorAgentResponseBody body) { this.body = body; return this; } @Override public InstallCloudMonitorAgentResponse build() { return new InstallCloudMonitorAgentResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/InstallCloudMonitorAgentResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link InstallCloudMonitorAgentResponseBody} extends {@link TeaModel} * * <p>InstallCloudMonitorAgentResponseBody</p> */ public class InstallCloudMonitorAgentResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private InstallCloudMonitorAgentResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static InstallCloudMonitorAgentResponseBody 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>20758A-585D-4A41-A9B2-28DA8F4****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public InstallCloudMonitorAgentResponseBody build() { return new InstallCloudMonitorAgentResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/InvokeCommandRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link InvokeCommandRequest} extends {@link RequestModel} * * <p>InvokeCommandRequest</p> */ public class InvokeCommandRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CommandId") @com.aliyun.core.annotation.Validation(required = true) private String commandId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceIds") @com.aliyun.core.annotation.Validation(required = true) private String instanceIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Parameters") private java.util.Map<String, ?> parameters; @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("Username") private String username; private InvokeCommandRequest(Builder builder) { super(builder); this.commandId = builder.commandId; this.instanceIds = builder.instanceIds; this.parameters = builder.parameters; this.regionId = builder.regionId; this.username = builder.username; } public static Builder builder() { return new Builder(); } public static InvokeCommandRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return commandId */ public String getCommandId() { return this.commandId; } /** * @return instanceIds */ public String getInstanceIds() { return this.instanceIds; } /** * @return parameters */ public java.util.Map<String, ?> getParameters() { return this.parameters; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return username */ public String getUsername() { return this.username; } public static final class Builder extends Request.Builder<InvokeCommandRequest, Builder> { private String commandId; private String instanceIds; private java.util.Map<String, ?> parameters; private String regionId; private String username; private Builder() { super(); } private Builder(InvokeCommandRequest request) { super(request); this.commandId = request.commandId; this.instanceIds = request.instanceIds; this.parameters = request.parameters; this.regionId = request.regionId; this.username = request.username; } /** * <p>The command ID. You can call the DescribeCommands operation to query all available command IDs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>c-sh02yh0932w****</p> */ public Builder commandId(String commandId) { this.putQueryParameter("CommandId", commandId); this.commandId = commandId; return this; } /** * <p>The IDs of the simple application servers. The value can be a JSON array that consists of up to 50 IDs of simple application servers. Separate multiple IDs with commas (,).</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[&quot;2ad1ae67295445f598017499dc****&quot;, &quot;2ad1ae67295445f598017123dc****&quot;]</p> */ public Builder instanceIds(String instanceIds) { this.putQueryParameter("InstanceIds", instanceIds); this.instanceIds = instanceIds; return this; } /** * <p>The key-value pairs of custom parameters to specify when the custom parameter feature is enabled.</p> * <ul> * <li>You can specify up to 10 custom parameters. Each key in a Map collection cannot be an empty string and can be up to 64 characters in length.</li> * <li>Values in a Map collection can be empty strings. The total length of the custom parameters and the original command cannot exceed 18 KB after they are encoded in Base64.</li> * <li>The custom parameter names that you specify for the Parameters parameter must be included in the custom parameter names that you specified when you created the command.</li> * <li>You can use empty strings to represent the custom parameters that are not specified. If you want to disable the custom parameter feature, you can leave this parameter empty.</li> * </ul> * * <strong>example:</strong> * <p>{&quot;delayed_insert_timeout&quot;:&quot;600&quot;,&quot;max_length_for_sort_data&quot;:&quot;2048&quot;}</p> */ public Builder parameters(java.util.Map<String, ?> parameters) { String parametersShrink = shrink(parameters, "Parameters", "json"); this.putQueryParameter("Parameters", parametersShrink); this.parameters = parameters; return this; } /** * <p>The region ID. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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 name of the user who runs the command in a simple application server. The username cannot exceed 255 characters in length.</p> * <ul> * <li>For Linux servers, the default value is the root username.</li> * <li>For Windows servers, the default value is the system username.</li> * </ul> * <p>You can change the user to run the command only for Linux simple application servers.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder username(String username) { this.putQueryParameter("Username", username); this.username = username; return this; } @Override public InvokeCommandRequest build() { return new InvokeCommandRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/InvokeCommandResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link InvokeCommandResponse} extends {@link TeaModel} * * <p>InvokeCommandResponse</p> */ public class InvokeCommandResponse 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 InvokeCommandResponseBody body; private InvokeCommandResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static InvokeCommandResponse 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 InvokeCommandResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<InvokeCommandResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(InvokeCommandResponseBody body); @Override InvokeCommandResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<InvokeCommandResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private InvokeCommandResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(InvokeCommandResponse 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(InvokeCommandResponseBody body) { this.body = body; return this; } @Override public InvokeCommandResponse build() { return new InvokeCommandResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/InvokeCommandResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link InvokeCommandResponseBody} extends {@link TeaModel} * * <p>InvokeCommandResponseBody</p> */ public class InvokeCommandResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("InvokeId") private String invokeId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private InvokeCommandResponseBody(Builder builder) { this.invokeId = builder.invokeId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static InvokeCommandResponseBody create() { return builder().build(); } /** * @return invokeId */ public String getInvokeId() { return this.invokeId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String invokeId; private String requestId; /** * <p>The execution ID of the command.</p> * * <strong>example:</strong> * <p>t-bj02prjhw1n****</p> */ public Builder invokeId(String invokeId) { this.invokeId = invokeId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>20758A-585D-4A41-A9B2-28DA8F4F****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public InvokeCommandResponseBody build() { return new InvokeCommandResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/ListCustomImageShareAccountsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListCustomImageShareAccountsRequest} extends {@link RequestModel} * * <p>ListCustomImageShareAccountsRequest</p> */ public class ListCustomImageShareAccountsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageId") @com.aliyun.core.annotation.Validation(required = true) private String imageId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private ListCustomImageShareAccountsRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.imageId = builder.imageId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static ListCustomImageShareAccountsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<ListCustomImageShareAccountsRequest, Builder> { private String clientToken; private String imageId; private Integer pageNumber; private Integer pageSize; private String regionId; private Builder() { super(); } private Builder(ListCustomImageShareAccountsRequest request) { super(request); this.clientToken = request.clientToken; this.imageId = request.imageId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; } /** * <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/25693.html">How to ensure the idempotence of a request?</a></p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the shared custom image.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>m-2zehv38jjmwva1ee****</p> */ public Builder imageId(String imageId) { this.putQueryParameter("ImageId", imageId); this.imageId = imageId; return this; } /** * <p>The page number.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries per page.</p> * <p>Maximum value: 50.</p> * <p>Default value: 10.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID. You can call the <a href="https://help.aliyun.com/document_detail/189315.html">ListRegions</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; } @Override public ListCustomImageShareAccountsRequest build() { return new ListCustomImageShareAccountsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/models/ListCustomImageShareAccountsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListCustomImageShareAccountsResponse} extends {@link TeaModel} * * <p>ListCustomImageShareAccountsResponse</p> */ public class ListCustomImageShareAccountsResponse 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 ListCustomImageShareAccountsResponseBody body; private ListCustomImageShareAccountsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListCustomImageShareAccountsResponse 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 ListCustomImageShareAccountsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListCustomImageShareAccountsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListCustomImageShareAccountsResponseBody body); @Override ListCustomImageShareAccountsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListCustomImageShareAccountsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListCustomImageShareAccountsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListCustomImageShareAccountsResponse 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(ListCustomImageShareAccountsResponseBody body) { this.body = body; return this; } @Override public ListCustomImageShareAccountsResponse build() { return new ListCustomImageShareAccountsResponse(this); } } }