index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/AssumeRoleResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AssumeRoleResponse} extends {@link TeaModel} * * <p>AssumeRoleResponse</p> */ public class AssumeRoleResponse 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 AssumeRoleResponseBody body; private AssumeRoleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static AssumeRoleResponse 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 AssumeRoleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<AssumeRoleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(AssumeRoleResponseBody body); @Override AssumeRoleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<AssumeRoleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private AssumeRoleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(AssumeRoleResponse 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(AssumeRoleResponseBody body) { this.body = body; return this; } @Override public AssumeRoleResponse build() { return new AssumeRoleResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/AssumeRoleResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AssumeRoleResponseBody} extends {@link TeaModel} * * <p>AssumeRoleResponseBody</p> */ public class AssumeRoleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssumedRoleUser") private AssumedRoleUser assumedRoleUser; @com.aliyun.core.annotation.NameInMap("Credentials") private Credentials credentials; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SourceIdentity") private String sourceIdentity; private AssumeRoleResponseBody(Builder builder) { this.assumedRoleUser = builder.assumedRoleUser; this.credentials = builder.credentials; this.requestId = builder.requestId; this.sourceIdentity = builder.sourceIdentity; } public static Builder builder() { return new Builder(); } public static AssumeRoleResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return assumedRoleUser */ public AssumedRoleUser getAssumedRoleUser() { return this.assumedRoleUser; } /** * @return credentials */ public Credentials getCredentials() { return this.credentials; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return sourceIdentity */ public String getSourceIdentity() { return this.sourceIdentity; } public static final class Builder { private AssumedRoleUser assumedRoleUser; private Credentials credentials; private String requestId; private String sourceIdentity; private Builder() { } private Builder(AssumeRoleResponseBody model) { this.assumedRoleUser = model.assumedRoleUser; this.credentials = model.credentials; this.requestId = model.requestId; this.sourceIdentity = model.sourceIdentity; } /** * <p>The temporary identity that you use to assume the RAM role.</p> */ public Builder assumedRoleUser(AssumedRoleUser assumedRoleUser) { this.assumedRoleUser = assumedRoleUser; return this; } /** * <p>The STS credentials.</p> */ public Builder credentials(Credentials credentials) { this.credentials = credentials; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>6894B13B-6D71-4EF5-88FA-F32781734A7F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * SourceIdentity. */ public Builder sourceIdentity(String sourceIdentity) { this.sourceIdentity = sourceIdentity; return this; } public AssumeRoleResponseBody build() { return new AssumeRoleResponseBody(this); } } /** * * {@link AssumeRoleResponseBody} extends {@link TeaModel} * * <p>AssumeRoleResponseBody</p> */ public static class AssumedRoleUser extends TeaModel { @com.aliyun.core.annotation.NameInMap("Arn") private String arn; @com.aliyun.core.annotation.NameInMap("AssumedRoleId") private String assumedRoleId; private AssumedRoleUser(Builder builder) { this.arn = builder.arn; this.assumedRoleId = builder.assumedRoleId; } public static Builder builder() { return new Builder(); } public static AssumedRoleUser create() { return builder().build(); } /** * @return arn */ public String getArn() { return this.arn; } /** * @return assumedRoleId */ public String getAssumedRoleId() { return this.assumedRoleId; } public static final class Builder { private String arn; private String assumedRoleId; private Builder() { } private Builder(AssumedRoleUser model) { this.arn = model.arn; this.assumedRoleId = model.assumedRoleId; } /** * <p>The ARN of the temporary identity that you use to assume the RAM role.</p> * * <strong>example:</strong> * <p>acs:ram::123456789012****:role/adminrole/alice</p> */ public Builder arn(String arn) { this.arn = arn; return this; } /** * <p>The ID of the temporary identity that you use to assume the RAM role.</p> * * <strong>example:</strong> * <p>34458433936495****:alice</p> */ public Builder assumedRoleId(String assumedRoleId) { this.assumedRoleId = assumedRoleId; return this; } public AssumedRoleUser build() { return new AssumedRoleUser(this); } } } /** * * {@link AssumeRoleResponseBody} extends {@link TeaModel} * * <p>AssumeRoleResponseBody</p> */ public static class Credentials extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessKeyId") private String accessKeyId; @com.aliyun.core.annotation.NameInMap("AccessKeySecret") private String accessKeySecret; @com.aliyun.core.annotation.NameInMap("Expiration") private String expiration; @com.aliyun.core.annotation.NameInMap("SecurityToken") private String securityToken; private Credentials(Builder builder) { this.accessKeyId = builder.accessKeyId; this.accessKeySecret = builder.accessKeySecret; this.expiration = builder.expiration; this.securityToken = builder.securityToken; } public static Builder builder() { return new Builder(); } public static Credentials create() { return builder().build(); } /** * @return accessKeyId */ public String getAccessKeyId() { return this.accessKeyId; } /** * @return accessKeySecret */ public String getAccessKeySecret() { return this.accessKeySecret; } /** * @return expiration */ public String getExpiration() { return this.expiration; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } public static final class Builder { private String accessKeyId; private String accessKeySecret; private String expiration; private String securityToken; private Builder() { } private Builder(Credentials model) { this.accessKeyId = model.accessKeyId; this.accessKeySecret = model.accessKeySecret; this.expiration = model.expiration; this.securityToken = model.securityToken; } /** * <p>The AccessKey ID.</p> * * <strong>example:</strong> * <p>STS.L4aBSCSJVMuKg5U1****</p> */ public Builder accessKeyId(String accessKeyId) { this.accessKeyId = accessKeyId; return this; } /** * <p>The AccessKey secret.</p> * * <strong>example:</strong> * <p>wyLTSmsyPGP1ohvvw8xYgB29dlGI8KMiH2pK****</p> */ public Builder accessKeySecret(String accessKeySecret) { this.accessKeySecret = accessKeySecret; return this; } /** * <p>The time when the STS token expires. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2015-04-09T11:52:19Z</p> */ public Builder expiration(String expiration) { this.expiration = expiration; return this; } /** * <p>The STS token.</p> * <blockquote> * <p>Alibaba Cloud STS does not impose limits on the length of STS tokens. We strongly recommend that you do not specify a maximum length for STS tokens.</p> * </blockquote> * * <strong>example:</strong> * <hr> */ public Builder securityToken(String securityToken) { this.securityToken = securityToken; return this; } public Credentials build() { return new Credentials(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/AssumeRoleWithOIDCRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AssumeRoleWithOIDCRequest} extends {@link RequestModel} * * <p>AssumeRoleWithOIDCRequest</p> */ public class AssumeRoleWithOIDCRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DurationSeconds") private Long durationSeconds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OIDCProviderArn") private String OIDCProviderArn; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OIDCToken") private String OIDCToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Policy") private String policy; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RoleArn") private String roleArn; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RoleSessionName") private String roleSessionName; private AssumeRoleWithOIDCRequest(Builder builder) { super(builder); this.durationSeconds = builder.durationSeconds; this.OIDCProviderArn = builder.OIDCProviderArn; this.OIDCToken = builder.OIDCToken; this.policy = builder.policy; this.roleArn = builder.roleArn; this.roleSessionName = builder.roleSessionName; } public static Builder builder() { return new Builder(); } public static AssumeRoleWithOIDCRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return durationSeconds */ public Long getDurationSeconds() { return this.durationSeconds; } /** * @return OIDCProviderArn */ public String getOIDCProviderArn() { return this.OIDCProviderArn; } /** * @return OIDCToken */ public String getOIDCToken() { return this.OIDCToken; } /** * @return policy */ public String getPolicy() { return this.policy; } /** * @return roleArn */ public String getRoleArn() { return this.roleArn; } /** * @return roleSessionName */ public String getRoleSessionName() { return this.roleSessionName; } public static final class Builder extends Request.Builder<AssumeRoleWithOIDCRequest, Builder> { private Long durationSeconds; private String OIDCProviderArn; private String OIDCToken; private String policy; private String roleArn; private String roleSessionName; private Builder() { super(); } private Builder(AssumeRoleWithOIDCRequest request) { super(request); this.durationSeconds = request.durationSeconds; this.OIDCProviderArn = request.OIDCProviderArn; this.OIDCToken = request.OIDCToken; this.policy = request.policy; this.roleArn = request.roleArn; this.roleSessionName = request.roleSessionName; } /** * <p>The validity period of the STS token. Unit: seconds.</p> * <p>Default value: 3600. Minimum value: 900. Maximum value: the value of the <code>MaxSessionDuration</code> parameter.</p> * <p>For more information about how to specify <code>MaxSessionDuration</code>, see <a href="https://help.aliyun.com/document_detail/28710.html">CreateRole</a> or <a href="https://help.aliyun.com/document_detail/28712.html">UpdateRole</a>.</p> * * <strong>example:</strong> * <p>3600</p> */ public Builder durationSeconds(Long durationSeconds) { this.putQueryParameter("DurationSeconds", durationSeconds); this.durationSeconds = durationSeconds; return this; } /** * <p>The Alibaba Cloud Resource Name (ARN) of the OIDC IdP.</p> * <p>You can view the ARN in the RAM console or by calling operations.</p> * <ul> * <li>For more information about how to view the ARN in the RAM console, see <a href="https://help.aliyun.com/document_detail/327123.html">View the information about an OIDC IdP</a>.</li> * <li>For more information about how to view the ARN by calling operations, see <a href="https://help.aliyun.com/document_detail/327126.html">GetOIDCProvider</a> or <a href="https://help.aliyun.com/document_detail/327127.html">ListOIDCProviders</a>.</li> * </ul> * * <strong>example:</strong> * <p>acs:ram::113511544585****:oidc-provider/TestOidcIdp</p> */ public Builder OIDCProviderArn(String OIDCProviderArn) { this.putQueryParameter("OIDCProviderArn", OIDCProviderArn); this.OIDCProviderArn = OIDCProviderArn; return this; } /** * <p>The OIDC token that is issued by the external IdP.</p> * <p>The OIDC token must be 4 to 20,000 characters in length.</p> * <blockquote> * <p>You must enter the original OIDC token. You do not need to enter the Base64-encoded OIDC token.</p> * </blockquote> * * <strong>example:</strong> * <p>eyJraWQiOiJKQzl3eHpyaHFKMGd0****</p> */ public Builder OIDCToken(String OIDCToken) { this.putQueryParameter("OIDCToken", OIDCToken); this.OIDCToken = OIDCToken; return this; } /** * <p>The policy that specifies the permissions of the returned STS token. You can use this parameter to grant the STS token fewer permissions than the permissions granted to the RAM role.</p> * <ul> * <li>If you specify this parameter, the permissions of the returned STS token are the permissions that are included in the value of this parameter and owned by the RAM role.</li> * <li>If you do not specify this parameter, the returned STS token has all the permissions of the RAM role.</li> * </ul> * <p>The value must be 1 to 2,048 characters in length.</p> * * <strong>example:</strong> * <p>{&quot;Statement&quot;: [{&quot;Action&quot;: [&quot;<em>&quot;],&quot;Effect&quot;: &quot;Allow&quot;,&quot;Resource&quot;: [&quot;</em>&quot;]}],&quot;Version&quot;:&quot;1&quot;}</p> */ public Builder policy(String policy) { this.putQueryParameter("Policy", policy); this.policy = policy; return this; } /** * <p>The ARN of the RAM role.</p> * <p>You can view the ARN in the RAM console or by calling operations.</p> * <ul> * <li>For more information about how to view the ARN in the RAM console, see <a href="https://help.aliyun.com/document_detail/39744.html">How do I view the ARN of the RAM role?</a></li> * <li>For more information about how to view the ARN by calling operations, see <a href="https://help.aliyun.com/document_detail/28713.html">ListRoles</a> or <a href="https://help.aliyun.com/document_detail/28711.html">GetRole</a>.</li> * </ul> * * <strong>example:</strong> * <p>acs:ram::113511544585****:role/testoidc</p> */ public Builder roleArn(String roleArn) { this.putQueryParameter("RoleArn", roleArn); this.roleArn = roleArn; return this; } /** * <p>The custom name of the role session.</p> * <p>Set this parameter based on your business requirements. In most cases, this parameter is set to the identity of the user who calls the operation, for example, the username. In ActionTrail logs, you can distinguish the users who assume the same RAM role to perform operations based on the value of the RoleSessionName parameter. This way, you can perform user-specific auditing.</p> * <p>The value can contain letters, digits, periods (.), at signs (@), hyphens (-), and underscores (_).</p> * <p>The value must be 2 to 64 characters in length.</p> * * <strong>example:</strong> * <p>TestOidcAssumedRoleSession</p> */ public Builder roleSessionName(String roleSessionName) { this.putQueryParameter("RoleSessionName", roleSessionName); this.roleSessionName = roleSessionName; return this; } @Override public AssumeRoleWithOIDCRequest build() { return new AssumeRoleWithOIDCRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/AssumeRoleWithOIDCResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AssumeRoleWithOIDCResponse} extends {@link TeaModel} * * <p>AssumeRoleWithOIDCResponse</p> */ public class AssumeRoleWithOIDCResponse 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 AssumeRoleWithOIDCResponseBody body; private AssumeRoleWithOIDCResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static AssumeRoleWithOIDCResponse 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 AssumeRoleWithOIDCResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<AssumeRoleWithOIDCResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(AssumeRoleWithOIDCResponseBody body); @Override AssumeRoleWithOIDCResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<AssumeRoleWithOIDCResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private AssumeRoleWithOIDCResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(AssumeRoleWithOIDCResponse 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(AssumeRoleWithOIDCResponseBody body) { this.body = body; return this; } @Override public AssumeRoleWithOIDCResponse build() { return new AssumeRoleWithOIDCResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/AssumeRoleWithOIDCResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AssumeRoleWithOIDCResponseBody} extends {@link TeaModel} * * <p>AssumeRoleWithOIDCResponseBody</p> */ public class AssumeRoleWithOIDCResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssumedRoleUser") private AssumedRoleUser assumedRoleUser; @com.aliyun.core.annotation.NameInMap("Credentials") private Credentials credentials; @com.aliyun.core.annotation.NameInMap("OIDCTokenInfo") private OIDCTokenInfo OIDCTokenInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SourceIdentity") private String sourceIdentity; private AssumeRoleWithOIDCResponseBody(Builder builder) { this.assumedRoleUser = builder.assumedRoleUser; this.credentials = builder.credentials; this.OIDCTokenInfo = builder.OIDCTokenInfo; this.requestId = builder.requestId; this.sourceIdentity = builder.sourceIdentity; } public static Builder builder() { return new Builder(); } public static AssumeRoleWithOIDCResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return assumedRoleUser */ public AssumedRoleUser getAssumedRoleUser() { return this.assumedRoleUser; } /** * @return credentials */ public Credentials getCredentials() { return this.credentials; } /** * @return OIDCTokenInfo */ public OIDCTokenInfo getOIDCTokenInfo() { return this.OIDCTokenInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return sourceIdentity */ public String getSourceIdentity() { return this.sourceIdentity; } public static final class Builder { private AssumedRoleUser assumedRoleUser; private Credentials credentials; private OIDCTokenInfo OIDCTokenInfo; private String requestId; private String sourceIdentity; private Builder() { } private Builder(AssumeRoleWithOIDCResponseBody model) { this.assumedRoleUser = model.assumedRoleUser; this.credentials = model.credentials; this.OIDCTokenInfo = model.OIDCTokenInfo; this.requestId = model.requestId; this.sourceIdentity = model.sourceIdentity; } /** * <p>The temporary identity that you use to assume the RAM role.</p> */ public Builder assumedRoleUser(AssumedRoleUser assumedRoleUser) { this.assumedRoleUser = assumedRoleUser; return this; } /** * <p>The access credentials.</p> */ public Builder credentials(Credentials credentials) { this.credentials = credentials; return this; } /** * <p>The information about the OIDC token.</p> */ public Builder OIDCTokenInfo(OIDCTokenInfo OIDCTokenInfo) { this.OIDCTokenInfo = OIDCTokenInfo; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>3D57EAD2-8723-1F26-B69C-F8707D8B565D</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * SourceIdentity. */ public Builder sourceIdentity(String sourceIdentity) { this.sourceIdentity = sourceIdentity; return this; } public AssumeRoleWithOIDCResponseBody build() { return new AssumeRoleWithOIDCResponseBody(this); } } /** * * {@link AssumeRoleWithOIDCResponseBody} extends {@link TeaModel} * * <p>AssumeRoleWithOIDCResponseBody</p> */ public static class AssumedRoleUser extends TeaModel { @com.aliyun.core.annotation.NameInMap("Arn") private String arn; @com.aliyun.core.annotation.NameInMap("AssumedRoleId") private String assumedRoleId; private AssumedRoleUser(Builder builder) { this.arn = builder.arn; this.assumedRoleId = builder.assumedRoleId; } public static Builder builder() { return new Builder(); } public static AssumedRoleUser create() { return builder().build(); } /** * @return arn */ public String getArn() { return this.arn; } /** * @return assumedRoleId */ public String getAssumedRoleId() { return this.assumedRoleId; } public static final class Builder { private String arn; private String assumedRoleId; private Builder() { } private Builder(AssumedRoleUser model) { this.arn = model.arn; this.assumedRoleId = model.assumedRoleId; } /** * <p>The ARN of the temporary identity that you use to assume the RAM role.</p> * * <strong>example:</strong> * <p>acs:ram::113511544585****:role/testoidc/TestOidcAssumedRoleSession</p> */ public Builder arn(String arn) { this.arn = arn; return this; } /** * <p>The ID of the temporary identity that you use to assume the RAM role.</p> * * <strong>example:</strong> * <p>33157794895460****</p> */ public Builder assumedRoleId(String assumedRoleId) { this.assumedRoleId = assumedRoleId; return this; } public AssumedRoleUser build() { return new AssumedRoleUser(this); } } } /** * * {@link AssumeRoleWithOIDCResponseBody} extends {@link TeaModel} * * <p>AssumeRoleWithOIDCResponseBody</p> */ public static class Credentials extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessKeyId") private String accessKeyId; @com.aliyun.core.annotation.NameInMap("AccessKeySecret") private String accessKeySecret; @com.aliyun.core.annotation.NameInMap("Expiration") private String expiration; @com.aliyun.core.annotation.NameInMap("SecurityToken") private String securityToken; private Credentials(Builder builder) { this.accessKeyId = builder.accessKeyId; this.accessKeySecret = builder.accessKeySecret; this.expiration = builder.expiration; this.securityToken = builder.securityToken; } public static Builder builder() { return new Builder(); } public static Credentials create() { return builder().build(); } /** * @return accessKeyId */ public String getAccessKeyId() { return this.accessKeyId; } /** * @return accessKeySecret */ public String getAccessKeySecret() { return this.accessKeySecret; } /** * @return expiration */ public String getExpiration() { return this.expiration; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } public static final class Builder { private String accessKeyId; private String accessKeySecret; private String expiration; private String securityToken; private Builder() { } private Builder(Credentials model) { this.accessKeyId = model.accessKeyId; this.accessKeySecret = model.accessKeySecret; this.expiration = model.expiration; this.securityToken = model.securityToken; } /** * <p>The AccessKey ID.</p> * * <strong>example:</strong> * <p>STS.NUgYrLnoC37mZZCNnAbez****</p> */ public Builder accessKeyId(String accessKeyId) { this.accessKeyId = accessKeyId; return this; } /** * <p>The AccessKey secret.</p> * * <strong>example:</strong> * <p>CVwjCkNzTMupZ8NbTCxCBRq3K16jtcWFTJAyBEv2****</p> */ public Builder accessKeySecret(String accessKeySecret) { this.accessKeySecret = accessKeySecret; return this; } /** * <p>The time when the STS token expires. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2021-10-20T04:27:09Z</p> */ public Builder expiration(String expiration) { this.expiration = expiration; return this; } /** * <p>The STS token.</p> * <blockquote> * <p>Alibaba Cloud STS does not impose limits on the length of STS tokens. We strongly recommend that you do not specify a maximum length for STS tokens.</p> * </blockquote> * * <strong>example:</strong> * <p>CAIShwJ1q6Ft5B2yfSjIr5bSEsj4g7BihPWGWHz****</p> */ public Builder securityToken(String securityToken) { this.securityToken = securityToken; return this; } public Credentials build() { return new Credentials(this); } } } /** * * {@link AssumeRoleWithOIDCResponseBody} extends {@link TeaModel} * * <p>AssumeRoleWithOIDCResponseBody</p> */ public static class OIDCTokenInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("ClientIds") private String clientIds; @com.aliyun.core.annotation.NameInMap("ExpirationTime") private String expirationTime; @com.aliyun.core.annotation.NameInMap("IssuanceTime") private String issuanceTime; @com.aliyun.core.annotation.NameInMap("Issuer") private String issuer; @com.aliyun.core.annotation.NameInMap("Subject") private String subject; @com.aliyun.core.annotation.NameInMap("VerificationInfo") private String verificationInfo; private OIDCTokenInfo(Builder builder) { this.clientIds = builder.clientIds; this.expirationTime = builder.expirationTime; this.issuanceTime = builder.issuanceTime; this.issuer = builder.issuer; this.subject = builder.subject; this.verificationInfo = builder.verificationInfo; } public static Builder builder() { return new Builder(); } public static OIDCTokenInfo create() { return builder().build(); } /** * @return clientIds */ public String getClientIds() { return this.clientIds; } /** * @return expirationTime */ public String getExpirationTime() { return this.expirationTime; } /** * @return issuanceTime */ public String getIssuanceTime() { return this.issuanceTime; } /** * @return issuer */ public String getIssuer() { return this.issuer; } /** * @return subject */ public String getSubject() { return this.subject; } /** * @return verificationInfo */ public String getVerificationInfo() { return this.verificationInfo; } public static final class Builder { private String clientIds; private String expirationTime; private String issuanceTime; private String issuer; private String subject; private String verificationInfo; private Builder() { } private Builder(OIDCTokenInfo model) { this.clientIds = model.clientIds; this.expirationTime = model.expirationTime; this.issuanceTime = model.issuanceTime; this.issuer = model.issuer; this.subject = model.subject; this.verificationInfo = model.verificationInfo; } /** * <p>The audience. If multiple audiences are returned, the audiences are separated by commas (,).</p> * <p>The audience is represented by the <code>aud</code> field in the OIDC Token.</p> * * <strong>example:</strong> * <p>496271242565057****</p> */ public Builder clientIds(String clientIds) { this.clientIds = clientIds; return this; } /** * <p>The time when the OIDC token expires.</p> * * <strong>example:</strong> * <p>2021-10-20T04:27:09Z</p> */ public Builder expirationTime(String expirationTime) { this.expirationTime = expirationTime; return this; } /** * <p>The time when the OIDC token was issued.</p> * * <strong>example:</strong> * <p>2021-10-20T03:27:09Z</p> */ public Builder issuanceTime(String issuanceTime) { this.issuanceTime = issuanceTime; return this; } /** * <p>The URL of the issuer,</p> * <p>which is represented by the <code>iss</code> field in the OIDC Token.</p> * * <strong>example:</strong> * <p><a href="https://dev-xxxxxx.okta.com">https://dev-xxxxxx.okta.com</a></p> */ public Builder issuer(String issuer) { this.issuer = issuer; return this; } /** * <p>The subject,</p> * <p>which is represented by the <code>sub</code> field in the OIDC Token.</p> * * <strong>example:</strong> * <p>KryrkIdjylZb7agUgCEf****</p> */ public Builder subject(String subject) { this.subject = subject; return this; } /** * <p>The verification information about the OIDC token. For more information, see <a href="https://help.aliyun.com/document_detail/327123.html">Manage an OIDC IdP</a>.</p> * * <strong>example:</strong> * <p>Success</p> */ public Builder verificationInfo(String verificationInfo) { this.verificationInfo = verificationInfo; return this; } public OIDCTokenInfo build() { return new OIDCTokenInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/AssumeRoleWithSAMLRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AssumeRoleWithSAMLRequest} extends {@link RequestModel} * * <p>AssumeRoleWithSAMLRequest</p> */ public class AssumeRoleWithSAMLRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DurationSeconds") private Long durationSeconds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Policy") private String policy; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RoleArn") private String roleArn; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SAMLAssertion") private String SAMLAssertion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SAMLProviderArn") private String SAMLProviderArn; private AssumeRoleWithSAMLRequest(Builder builder) { super(builder); this.durationSeconds = builder.durationSeconds; this.policy = builder.policy; this.roleArn = builder.roleArn; this.SAMLAssertion = builder.SAMLAssertion; this.SAMLProviderArn = builder.SAMLProviderArn; } public static Builder builder() { return new Builder(); } public static AssumeRoleWithSAMLRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return durationSeconds */ public Long getDurationSeconds() { return this.durationSeconds; } /** * @return policy */ public String getPolicy() { return this.policy; } /** * @return roleArn */ public String getRoleArn() { return this.roleArn; } /** * @return SAMLAssertion */ public String getSAMLAssertion() { return this.SAMLAssertion; } /** * @return SAMLProviderArn */ public String getSAMLProviderArn() { return this.SAMLProviderArn; } public static final class Builder extends Request.Builder<AssumeRoleWithSAMLRequest, Builder> { private Long durationSeconds; private String policy; private String roleArn; private String SAMLAssertion; private String SAMLProviderArn; private Builder() { super(); } private Builder(AssumeRoleWithSAMLRequest request) { super(request); this.durationSeconds = request.durationSeconds; this.policy = request.policy; this.roleArn = request.roleArn; this.SAMLAssertion = request.SAMLAssertion; this.SAMLProviderArn = request.SAMLProviderArn; } /** * <p>The validity period of the STS token. Unit: seconds.</p> * <p>Minimum value: 900. Maximum value: the value of the <code>MaxSessionDuration</code> parameter. Default value: 3600.</p> * <p>You can call the CreateRole or UpdateRole operation to configure the <code>MaxSessionDuration</code> parameter. For more information, see <a href="https://help.aliyun.com/document_detail/28710.html">CreateRole</a> or <a href="https://help.aliyun.com/document_detail/28712.html">UpdateRole</a>.</p> * * <strong>example:</strong> * <p>3600</p> */ public Builder durationSeconds(Long durationSeconds) { this.putQueryParameter("DurationSeconds", durationSeconds); this.durationSeconds = durationSeconds; return this; } /** * <p>The policy that specifies the permissions of the returned STS token. You can use this parameter to grant the STS token fewer permissions than the permissions granted to the RAM role.</p> * <ul> * <li>If you specify this parameter, the permissions of the returned STS token are the permissions that are included in the value of this parameter and owned by the RAM role.</li> * <li>If you do not specify this parameter, the returned STS token has all the permissions of the RAM role.</li> * </ul> * <p>The value must be 1 to 2,048 characters in length.</p> * * <strong>example:</strong> * <p>url_encoded_policy</p> */ public Builder policy(String policy) { this.putQueryParameter("Policy", policy); this.policy = policy; return this; } /** * <p>The ARN of the RAM role.</p> * <p>The trust entity of the RAM role is a SAML IdP. For more information, see <a href="https://help.aliyun.com/document_detail/116805.html">Create a RAM role for a trusted IdP</a> or <a href="https://help.aliyun.com/document_detail/28710.html">CreateRole</a>.</p> * <p>Format: <code>acs:ram::&lt;account_id&gt;:role/&lt;role_name&gt;</code>.</p> * <p>You can view the ARN in the RAM console or by calling operations.</p> * <ul> * <li>For more information about how to view the ARN in the RAM console, see <a href="https://help.aliyun.com/document_detail/39744.html">How do I view the ARN of the RAM role?</a>.</li> * <li>For more information about how to view the ARN by calling operations, see <a href="https://help.aliyun.com/document_detail/28713.html">ListRoles</a> or <a href="https://help.aliyun.com/document_detail/28711.html">GetRole</a>.</li> * </ul> * * <strong>example:</strong> * <p>acs:ram::123456789012****:role/adminrole</p> */ public Builder roleArn(String roleArn) { this.putQueryParameter("RoleArn", roleArn); this.roleArn = roleArn; return this; } /** * <p>The Base64-encoded SAML assertion.</p> * <p>The value must be 4 to 100,000 characters in length.</p> * <blockquote> * <p>A complete SAML response rather than a single SAMLAssertion field must be retrieved from the external IdP.</p> * </blockquote> * * <strong>example:</strong> * <p>base64_encoded_saml_assertion</p> */ public Builder SAMLAssertion(String SAMLAssertion) { this.putQueryParameter("SAMLAssertion", SAMLAssertion); this.SAMLAssertion = SAMLAssertion; return this; } /** * <p>The Alibaba Cloud Resource Name (ARN) of the SAML IdP that is created in the RAM console.</p> * <p>Format: <code>acs:ram::&lt;account_id&gt;:saml-provider/&lt;saml_provider_id&gt;</code>.</p> * <p>You can view the ARN in the RAM console or by calling operations.</p> * <ul> * <li>For more information about how to view the ARN in the RAM console, see <a href="https://help.aliyun.com/document_detail/116795.html">How do I view the ARN of a RAM role?</a></li> * <li>For more information about how to view the ARN by calling operations, see <a href="https://help.aliyun.com/document_detail/186833.html">GetSAMLProvider</a> or <a href="https://help.aliyun.com/document_detail/186851.html">ListSAMLProviders</a>.</li> * </ul> * * <strong>example:</strong> * <p>acs:ram::123456789012****:saml-provider/company1</p> */ public Builder SAMLProviderArn(String SAMLProviderArn) { this.putQueryParameter("SAMLProviderArn", SAMLProviderArn); this.SAMLProviderArn = SAMLProviderArn; return this; } @Override public AssumeRoleWithSAMLRequest build() { return new AssumeRoleWithSAMLRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/AssumeRoleWithSAMLResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AssumeRoleWithSAMLResponse} extends {@link TeaModel} * * <p>AssumeRoleWithSAMLResponse</p> */ public class AssumeRoleWithSAMLResponse 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 AssumeRoleWithSAMLResponseBody body; private AssumeRoleWithSAMLResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static AssumeRoleWithSAMLResponse 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 AssumeRoleWithSAMLResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<AssumeRoleWithSAMLResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(AssumeRoleWithSAMLResponseBody body); @Override AssumeRoleWithSAMLResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<AssumeRoleWithSAMLResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private AssumeRoleWithSAMLResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(AssumeRoleWithSAMLResponse 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(AssumeRoleWithSAMLResponseBody body) { this.body = body; return this; } @Override public AssumeRoleWithSAMLResponse build() { return new AssumeRoleWithSAMLResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/AssumeRoleWithSAMLResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AssumeRoleWithSAMLResponseBody} extends {@link TeaModel} * * <p>AssumeRoleWithSAMLResponseBody</p> */ public class AssumeRoleWithSAMLResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssumedRoleUser") private AssumedRoleUser assumedRoleUser; @com.aliyun.core.annotation.NameInMap("Credentials") private Credentials credentials; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SAMLAssertionInfo") private SAMLAssertionInfo SAMLAssertionInfo; @com.aliyun.core.annotation.NameInMap("SourceIdentity") private String sourceIdentity; private AssumeRoleWithSAMLResponseBody(Builder builder) { this.assumedRoleUser = builder.assumedRoleUser; this.credentials = builder.credentials; this.requestId = builder.requestId; this.SAMLAssertionInfo = builder.SAMLAssertionInfo; this.sourceIdentity = builder.sourceIdentity; } public static Builder builder() { return new Builder(); } public static AssumeRoleWithSAMLResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return assumedRoleUser */ public AssumedRoleUser getAssumedRoleUser() { return this.assumedRoleUser; } /** * @return credentials */ public Credentials getCredentials() { return this.credentials; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return SAMLAssertionInfo */ public SAMLAssertionInfo getSAMLAssertionInfo() { return this.SAMLAssertionInfo; } /** * @return sourceIdentity */ public String getSourceIdentity() { return this.sourceIdentity; } public static final class Builder { private AssumedRoleUser assumedRoleUser; private Credentials credentials; private String requestId; private SAMLAssertionInfo SAMLAssertionInfo; private String sourceIdentity; private Builder() { } private Builder(AssumeRoleWithSAMLResponseBody model) { this.assumedRoleUser = model.assumedRoleUser; this.credentials = model.credentials; this.requestId = model.requestId; this.SAMLAssertionInfo = model.SAMLAssertionInfo; this.sourceIdentity = model.sourceIdentity; } /** * <p>The temporary identity that you use to assume the RAM role.</p> */ public Builder assumedRoleUser(AssumedRoleUser assumedRoleUser) { this.assumedRoleUser = assumedRoleUser; return this; } /** * <p>The STS credentials.</p> */ public Builder credentials(Credentials credentials) { this.credentials = credentials; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>6894B13B-6D71-4EF5-88FA-F32781734A7F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information in the SAML assertion.</p> */ public Builder SAMLAssertionInfo(SAMLAssertionInfo SAMLAssertionInfo) { this.SAMLAssertionInfo = SAMLAssertionInfo; return this; } /** * SourceIdentity. */ public Builder sourceIdentity(String sourceIdentity) { this.sourceIdentity = sourceIdentity; return this; } public AssumeRoleWithSAMLResponseBody build() { return new AssumeRoleWithSAMLResponseBody(this); } } /** * * {@link AssumeRoleWithSAMLResponseBody} extends {@link TeaModel} * * <p>AssumeRoleWithSAMLResponseBody</p> */ public static class AssumedRoleUser extends TeaModel { @com.aliyun.core.annotation.NameInMap("Arn") private String arn; @com.aliyun.core.annotation.NameInMap("AssumedRoleId") private String assumedRoleId; private AssumedRoleUser(Builder builder) { this.arn = builder.arn; this.assumedRoleId = builder.assumedRoleId; } public static Builder builder() { return new Builder(); } public static AssumedRoleUser create() { return builder().build(); } /** * @return arn */ public String getArn() { return this.arn; } /** * @return assumedRoleId */ public String getAssumedRoleId() { return this.assumedRoleId; } public static final class Builder { private String arn; private String assumedRoleId; private Builder() { } private Builder(AssumedRoleUser model) { this.arn = model.arn; this.assumedRoleId = model.assumedRoleId; } /** * <p>The ARN of the temporary identity that you use to assume the RAM role.</p> * * <strong>example:</strong> * <p>acs:sts::123456789012****:assumed-role/AdminRole/alice</p> */ public Builder arn(String arn) { this.arn = arn; return this; } /** * <p>The ID of the temporary identity that you use to assume the RAM role.</p> * * <strong>example:</strong> * <p>34458433936495****:alice</p> */ public Builder assumedRoleId(String assumedRoleId) { this.assumedRoleId = assumedRoleId; return this; } public AssumedRoleUser build() { return new AssumedRoleUser(this); } } } /** * * {@link AssumeRoleWithSAMLResponseBody} extends {@link TeaModel} * * <p>AssumeRoleWithSAMLResponseBody</p> */ public static class Credentials extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessKeyId") private String accessKeyId; @com.aliyun.core.annotation.NameInMap("AccessKeySecret") private String accessKeySecret; @com.aliyun.core.annotation.NameInMap("Expiration") private String expiration; @com.aliyun.core.annotation.NameInMap("SecurityToken") private String securityToken; private Credentials(Builder builder) { this.accessKeyId = builder.accessKeyId; this.accessKeySecret = builder.accessKeySecret; this.expiration = builder.expiration; this.securityToken = builder.securityToken; } public static Builder builder() { return new Builder(); } public static Credentials create() { return builder().build(); } /** * @return accessKeyId */ public String getAccessKeyId() { return this.accessKeyId; } /** * @return accessKeySecret */ public String getAccessKeySecret() { return this.accessKeySecret; } /** * @return expiration */ public String getExpiration() { return this.expiration; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } public static final class Builder { private String accessKeyId; private String accessKeySecret; private String expiration; private String securityToken; private Builder() { } private Builder(Credentials model) { this.accessKeyId = model.accessKeyId; this.accessKeySecret = model.accessKeySecret; this.expiration = model.expiration; this.securityToken = model.securityToken; } /** * <p>The AccessKey ID.</p> * * <strong>example:</strong> * <p>STS.L4aBSCSJVMuKg5U1****</p> */ public Builder accessKeyId(String accessKeyId) { this.accessKeyId = accessKeyId; return this; } /** * <p>The AccessKey secret.</p> * * <strong>example:</strong> * <p>wyLTSmsyPGP1ohvvw8xYgB29dlGI8KMiH2pK****</p> */ public Builder accessKeySecret(String accessKeySecret) { this.accessKeySecret = accessKeySecret; return this; } /** * <p>The time when the STS token expires. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2015-04-09T11:52:19Z</p> */ public Builder expiration(String expiration) { this.expiration = expiration; return this; } /** * <p>The STS token.</p> * <blockquote> * <p>Alibaba Cloud STS does not impose limits on the length of STS tokens. We strongly recommend that you do not specify a maximum length for STS tokens.</p> * </blockquote> * * <strong>example:</strong> * <hr> */ public Builder securityToken(String securityToken) { this.securityToken = securityToken; return this; } public Credentials build() { return new Credentials(this); } } } /** * * {@link AssumeRoleWithSAMLResponseBody} extends {@link TeaModel} * * <p>AssumeRoleWithSAMLResponseBody</p> */ public static class SAMLAssertionInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Issuer") private String issuer; @com.aliyun.core.annotation.NameInMap("Recipient") private String recipient; @com.aliyun.core.annotation.NameInMap("Subject") private String subject; @com.aliyun.core.annotation.NameInMap("SubjectType") private String subjectType; private SAMLAssertionInfo(Builder builder) { this.issuer = builder.issuer; this.recipient = builder.recipient; this.subject = builder.subject; this.subjectType = builder.subjectType; } public static Builder builder() { return new Builder(); } public static SAMLAssertionInfo create() { return builder().build(); } /** * @return issuer */ public String getIssuer() { return this.issuer; } /** * @return recipient */ public String getRecipient() { return this.recipient; } /** * @return subject */ public String getSubject() { return this.subject; } /** * @return subjectType */ public String getSubjectType() { return this.subjectType; } public static final class Builder { private String issuer; private String recipient; private String subject; private String subjectType; private Builder() { } private Builder(SAMLAssertionInfo model) { this.issuer = model.issuer; this.recipient = model.recipient; this.subject = model.subject; this.subjectType = model.subjectType; } /** * <p>The value in the <code>Issuer</code> element in the SAML assertion.</p> * * <strong>example:</strong> * <p><a href="http://example.com/adfs/services/trust">http://example.com/adfs/services/trust</a></p> */ public Builder issuer(String issuer) { this.issuer = issuer; return this; } /** * <p>The <code>Recipient</code> attribute of the SubjectConfirmationData sub-element. SubjectConfirmationData is a sub-element of the <code>Subject</code> element in the SAML assertion.</p> * * <strong>example:</strong> * <p><a href="https://signin.aliyun.com/saml-role/SSO">https://signin.aliyun.com/saml-role/SSO</a></p> */ public Builder recipient(String recipient) { this.recipient = recipient; return this; } /** * <p>The value in the NameID sub-element of the <code>Subject</code> element in the SAML assertion.</p> * * <strong>example:</strong> * <p><a href="mailto:alice@example.com">alice@example.com</a></p> */ public Builder subject(String subject) { this.subject = subject; return this; } /** * <p>The Format attribute of the <code>NameID</code> element in the SAML assertion. If the Format attribute is prefixed with <code>urn:oasis:names:tc:SAML:2.0:nameid-format:</code>, the prefix is not included in the value of this parameter. For example, if the value of the Format attribute is urn:oasis:names:tc:SAML:2.0:nameid-format:persistent/transient, the value of this parameter is <code>persistent/transient</code>.</p> * * <strong>example:</strong> * <p>persistent</p> */ public Builder subjectType(String subjectType) { this.subjectType = subjectType; return this; } public SAMLAssertionInfo build() { return new SAMLAssertionInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/GetCallerIdentityRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetCallerIdentityRequest} extends {@link RequestModel} * * <p>GetCallerIdentityRequest</p> */ public class GetCallerIdentityRequest extends Request { private GetCallerIdentityRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static GetCallerIdentityRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<GetCallerIdentityRequest, Builder> { private Builder() { super(); } private Builder(GetCallerIdentityRequest request) { super(request); } @Override public GetCallerIdentityRequest build() { return new GetCallerIdentityRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/GetCallerIdentityResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetCallerIdentityResponse} extends {@link TeaModel} * * <p>GetCallerIdentityResponse</p> */ public class GetCallerIdentityResponse 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 GetCallerIdentityResponseBody body; private GetCallerIdentityResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetCallerIdentityResponse 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 GetCallerIdentityResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetCallerIdentityResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetCallerIdentityResponseBody body); @Override GetCallerIdentityResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetCallerIdentityResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetCallerIdentityResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetCallerIdentityResponse 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(GetCallerIdentityResponseBody body) { this.body = body; return this; } @Override public GetCallerIdentityResponse build() { return new GetCallerIdentityResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401
java-sources/com/aliyun/alibabacloud-sts20150401/1.0.8/com/aliyun/sdk/service/sts20150401/models/GetCallerIdentityResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.sts20150401.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetCallerIdentityResponseBody} extends {@link TeaModel} * * <p>GetCallerIdentityResponseBody</p> */ public class GetCallerIdentityResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccountId") private String accountId; @com.aliyun.core.annotation.NameInMap("Arn") private String arn; @com.aliyun.core.annotation.NameInMap("IdentityType") private String identityType; @com.aliyun.core.annotation.NameInMap("PrincipalId") private String principalId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("RoleId") private String roleId; @com.aliyun.core.annotation.NameInMap("UserId") private String userId; private GetCallerIdentityResponseBody(Builder builder) { this.accountId = builder.accountId; this.arn = builder.arn; this.identityType = builder.identityType; this.principalId = builder.principalId; this.requestId = builder.requestId; this.roleId = builder.roleId; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static GetCallerIdentityResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return accountId */ public String getAccountId() { return this.accountId; } /** * @return arn */ public String getArn() { return this.arn; } /** * @return identityType */ public String getIdentityType() { return this.identityType; } /** * @return principalId */ public String getPrincipalId() { return this.principalId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return roleId */ public String getRoleId() { return this.roleId; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder { private String accountId; private String arn; private String identityType; private String principalId; private String requestId; private String roleId; private String userId; private Builder() { } private Builder(GetCallerIdentityResponseBody model) { this.accountId = model.accountId; this.arn = model.arn; this.identityType = model.identityType; this.principalId = model.principalId; this.requestId = model.requestId; this.roleId = model.roleId; this.userId = model.userId; } /** * AccountId. */ public Builder accountId(String accountId) { this.accountId = accountId; return this; } /** * Arn. */ public Builder arn(String arn) { this.arn = arn; return this; } /** * IdentityType. */ public Builder identityType(String identityType) { this.identityType = identityType; return this; } /** * PrincipalId. */ public Builder principalId(String principalId) { this.principalId = principalId; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * RoleId. */ public Builder roleId(String roleId) { this.roleId = roleId; return this; } /** * UserId. */ public Builder userId(String userId) { this.userId = userId; return this; } public GetCallerIdentityResponseBody build() { return new GetCallerIdentityResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service/superappnlp20240930/AsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.superappnlp20240930; import com.aliyun.core.utils.SdkAutoCloseable; import com.aliyun.sdk.service.superappnlp20240930.models.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import java.util.concurrent.CompletableFuture; public interface AsyncClient extends SdkAutoCloseable { static DefaultAsyncClientBuilder builder() { return new DefaultAsyncClientBuilder(); } static AsyncClient create() { return builder().build(); } /** * @param request the request parameters of NlpAddressNormalization NlpAddressNormalizationRequest * @return NlpAddressNormalizationResponse */ CompletableFuture<NlpAddressNormalizationResponse> nlpAddressNormalization(NlpAddressNormalizationRequest request); }
0
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service/superappnlp20240930/DefaultAsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.superappnlp20240930; import com.aliyun.core.http.*; import com.aliyun.sdk.service.superappnlp20240930.models.*; import darabonba.core.utils.*; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import java.util.concurrent.CompletableFuture; /** * <p>Main client.</p> */ public final class DefaultAsyncClient implements AsyncClient { protected final String product; protected final String version; protected final String endpointRule; protected final java.util.Map<String, String> endpointMap; protected final TeaRequest REQUEST; protected final TeaAsyncHandler handler; protected DefaultAsyncClient(ClientConfiguration configuration) { this.handler = new TeaAsyncHandler(configuration); this.product = "SuperappNlp"; this.version = "2024-09-30"; this.endpointRule = ""; this.endpointMap = new java.util.HashMap<>(); this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version); } @Override public void close() { this.handler.close(); } /** * @param request the request parameters of NlpAddressNormalization NlpAddressNormalizationRequest * @return NlpAddressNormalizationResponse */ @Override public CompletableFuture<NlpAddressNormalizationResponse> nlpAddressNormalization(NlpAddressNormalizationRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("NlpAddressNormalization").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(NlpAddressNormalizationResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<NlpAddressNormalizationResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } }
0
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service/superappnlp20240930/DefaultAsyncClientBuilder.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.superappnlp20240930; import com.aliyun.sdk.gateway.pop.BaseClientBuilder; public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> { @Override protected String serviceName() { return "superappnlp20240930"; } @Override protected final AsyncClient buildClient() { return new DefaultAsyncClient(super.applyClientConfiguration()); } }
0
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service/superappnlp20240930
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service/superappnlp20240930/models/NlpAddressNormalizationRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.superappnlp20240930.models; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link NlpAddressNormalizationRequest} extends {@link RequestModel} * * <p>NlpAddressNormalizationRequest</p> */ public class NlpAddressNormalizationRequest extends Request { @com.aliyun.core.annotation.Host @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CityStdManual") private String cityStdManual; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CityStr") private String cityStr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DistrictStdManual") private String districtStdManual; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ProvinceStdManual") private String provinceStdManual; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ProvinceStr") private String provinceStr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueryStr") private String queryStr; private NlpAddressNormalizationRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.cityStdManual = builder.cityStdManual; this.cityStr = builder.cityStr; this.clientToken = builder.clientToken; this.districtStdManual = builder.districtStdManual; this.instanceId = builder.instanceId; this.provinceStdManual = builder.provinceStdManual; this.provinceStr = builder.provinceStr; this.queryStr = builder.queryStr; } public static Builder builder() { return new Builder(); } public static NlpAddressNormalizationRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return cityStdManual */ public String getCityStdManual() { return this.cityStdManual; } /** * @return cityStr */ public String getCityStr() { return this.cityStr; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return districtStdManual */ public String getDistrictStdManual() { return this.districtStdManual; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return provinceStdManual */ public String getProvinceStdManual() { return this.provinceStdManual; } /** * @return provinceStr */ public String getProvinceStr() { return this.provinceStr; } /** * @return queryStr */ public String getQueryStr() { return this.queryStr; } public static final class Builder extends Request.Builder<NlpAddressNormalizationRequest, Builder> { private String regionId; private String cityStdManual; private String cityStr; private String clientToken; private String districtStdManual; private String instanceId; private String provinceStdManual; private String provinceStr; private String queryStr; private Builder() { super(); } private Builder(NlpAddressNormalizationRequest request) { super(request); this.regionId = request.regionId; this.cityStdManual = request.cityStdManual; this.cityStr = request.cityStr; this.clientToken = request.clientToken; this.districtStdManual = request.districtStdManual; this.instanceId = request.instanceId; this.provinceStdManual = request.provinceStdManual; this.provinceStr = request.provinceStr; this.queryStr = request.queryStr; } /** * RegionId. */ public Builder regionId(String regionId) { this.putHostParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * CityStdManual. */ public Builder cityStdManual(String cityStdManual) { this.putQueryParameter("CityStdManual", cityStdManual); this.cityStdManual = cityStdManual; return this; } /** * CityStr. */ public Builder cityStr(String cityStr) { this.putQueryParameter("CityStr", cityStr); this.cityStr = cityStr; return this; } /** * ClientToken. */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * DistrictStdManual. */ public Builder districtStdManual(String districtStdManual) { this.putQueryParameter("DistrictStdManual", districtStdManual); this.districtStdManual = districtStdManual; return this; } /** * InstanceId. */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * ProvinceStdManual. */ public Builder provinceStdManual(String provinceStdManual) { this.putQueryParameter("ProvinceStdManual", provinceStdManual); this.provinceStdManual = provinceStdManual; return this; } /** * ProvinceStr. */ public Builder provinceStr(String provinceStr) { this.putQueryParameter("ProvinceStr", provinceStr); this.provinceStr = provinceStr; return this; } /** * QueryStr. */ public Builder queryStr(String queryStr) { this.putQueryParameter("QueryStr", queryStr); this.queryStr = queryStr; return this; } @Override public NlpAddressNormalizationRequest build() { return new NlpAddressNormalizationRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service/superappnlp20240930
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service/superappnlp20240930/models/NlpAddressNormalizationResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.superappnlp20240930.models; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link NlpAddressNormalizationResponse} extends {@link TeaModel} * * <p>NlpAddressNormalizationResponse</p> */ public class NlpAddressNormalizationResponse 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 NlpAddressNormalizationResponseBody body; private NlpAddressNormalizationResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static NlpAddressNormalizationResponse 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 NlpAddressNormalizationResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<NlpAddressNormalizationResponse, Builder> { Builder headers(java.util.Map < String, String > headers); Builder statusCode(Integer statusCode); Builder body(NlpAddressNormalizationResponseBody body); @Override NlpAddressNormalizationResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<NlpAddressNormalizationResponse, Builder> implements Builder { private java.util.Map < String, String > headers; private Integer statusCode; private NlpAddressNormalizationResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(NlpAddressNormalizationResponse 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(NlpAddressNormalizationResponseBody body) { this.body = body; return this; } @Override public NlpAddressNormalizationResponse build() { return new NlpAddressNormalizationResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service/superappnlp20240930
java-sources/com/aliyun/alibabacloud-superappnlp20240930/1.0.0/com/aliyun/sdk/service/superappnlp20240930/models/NlpAddressNormalizationResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.superappnlp20240930.models; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link NlpAddressNormalizationResponseBody} extends {@link TeaModel} * * <p>NlpAddressNormalizationResponseBody</p> */ public class NlpAddressNormalizationResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Result") private String result; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; @com.aliyun.core.annotation.NameInMap("Timestamp") private String timestamp; private NlpAddressNormalizationResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.result = builder.result; this.success = builder.success; this.timestamp = builder.timestamp; } public static Builder builder() { return new Builder(); } public static NlpAddressNormalizationResponseBody create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public Data getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return result */ public String getResult() { return this.result; } /** * @return success */ public Boolean getSuccess() { return this.success; } /** * @return timestamp */ public String getTimestamp() { return this.timestamp; } public static final class Builder { private String code; private Data data; private String message; private String requestId; private String result; private Boolean success; private String timestamp; /** * Code. */ public Builder code(String code) { this.code = code; return this; } /** * Data. */ public Builder data(Data data) { this.data = data; return this; } /** * Message. */ public Builder message(String message) { this.message = message; return this; } /** * <p>Id of the request</p> * * <strong>example:</strong> * <p>99540D1A-9112-56E5-8DCC-1A2603F4C500</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * Result. */ public Builder result(String result) { this.result = result; return this; } /** * Success. */ public Builder success(Boolean success) { this.success = success; return this; } /** * Timestamp. */ public Builder timestamp(String timestamp) { this.timestamp = timestamp; return this; } public NlpAddressNormalizationResponseBody build() { return new NlpAddressNormalizationResponseBody(this); } } /** * * {@link NlpAddressNormalizationResponseBody} extends {@link TeaModel} * * <p>NlpAddressNormalizationResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("CityStd") private String cityStd; @com.aliyun.core.annotation.NameInMap("DistrictStd") private String districtStd; @com.aliyun.core.annotation.NameInMap("ProvinceStd") private String provinceStd; @com.aliyun.core.annotation.NameInMap("Results") private java.util.List < String > results; @com.aliyun.core.annotation.NameInMap("StatusEs") private String statusEs; private Data(Builder builder) { this.cityStd = builder.cityStd; this.districtStd = builder.districtStd; this.provinceStd = builder.provinceStd; this.results = builder.results; this.statusEs = builder.statusEs; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return cityStd */ public String getCityStd() { return this.cityStd; } /** * @return districtStd */ public String getDistrictStd() { return this.districtStd; } /** * @return provinceStd */ public String getProvinceStd() { return this.provinceStd; } /** * @return results */ public java.util.List < String > getResults() { return this.results; } /** * @return statusEs */ public String getStatusEs() { return this.statusEs; } public static final class Builder { private String cityStd; private String districtStd; private String provinceStd; private java.util.List < String > results; private String statusEs; /** * CityStd. */ public Builder cityStd(String cityStd) { this.cityStd = cityStd; return this; } /** * DistrictStd. */ public Builder districtStd(String districtStd) { this.districtStd = districtStd; return this; } /** * ProvinceStd. */ public Builder provinceStd(String provinceStd) { this.provinceStd = provinceStd; return this; } /** * Results. */ public Builder results(java.util.List < String > results) { this.results = results; return this; } /** * StatusEs. */ public Builder statusEs(String statusEs) { this.statusEs = statusEs; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/AsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706; import com.aliyun.core.utils.SdkAutoCloseable; import com.aliyun.sdk.service.support_plan20210706.models.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import java.util.concurrent.CompletableFuture; public interface AsyncClient extends SdkAutoCloseable { static DefaultAsyncClientBuilder builder() { return new DefaultAsyncClientBuilder(); } static AsyncClient create() { return builder().build(); } /** * @param request the request parameters of AddEnterpriseGroupMemberToTaskGroup AddEnterpriseGroupMemberToTaskGroupRequest * @return AddEnterpriseGroupMemberToTaskGroupResponse */ CompletableFuture<AddEnterpriseGroupMemberToTaskGroupResponse> addEnterpriseGroupMemberToTaskGroup(AddEnterpriseGroupMemberToTaskGroupRequest request); /** * @param request the request parameters of CreateTaskOrder CreateTaskOrderRequest * @return CreateTaskOrderResponse */ CompletableFuture<CreateTaskOrderResponse> createTaskOrder(CreateTaskOrderRequest request); /** * @param request the request parameters of ListDdTaskOrder ListDdTaskOrderRequest * @return ListDdTaskOrderResponse */ CompletableFuture<ListDdTaskOrderResponse> listDdTaskOrder(ListDdTaskOrderRequest request); /** * @param request the request parameters of ListEnterpriseDingtalkGroupCustomerMembers ListEnterpriseDingtalkGroupCustomerMembersRequest * @return ListEnterpriseDingtalkGroupCustomerMembersResponse */ CompletableFuture<ListEnterpriseDingtalkGroupCustomerMembersResponse> listEnterpriseDingtalkGroupCustomerMembers(ListEnterpriseDingtalkGroupCustomerMembersRequest request); /** * @param request the request parameters of ListEnterpriseDingtalkGroups ListEnterpriseDingtalkGroupsRequest * @return ListEnterpriseDingtalkGroupsResponse */ CompletableFuture<ListEnterpriseDingtalkGroupsResponse> listEnterpriseDingtalkGroups(ListEnterpriseDingtalkGroupsRequest request); /** * @param request the request parameters of ListProductByGroup ListProductByGroupRequest * @return ListProductByGroupResponse */ CompletableFuture<ListProductByGroupResponse> listProductByGroup(ListProductByGroupRequest request); }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/DefaultAsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706; import com.aliyun.core.http.*; import com.aliyun.sdk.service.support_plan20210706.models.*; import darabonba.core.utils.*; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import java.util.concurrent.CompletableFuture; /** * <p>Main client.</p> */ public final class DefaultAsyncClient implements AsyncClient { protected final String product; protected final String version; protected final String endpointRule; protected final java.util.Map<String, String> endpointMap; protected final TeaRequest REQUEST; protected final TeaAsyncHandler handler; protected DefaultAsyncClient(ClientConfiguration configuration) { this.handler = new TeaAsyncHandler(configuration); this.product = "support-plan"; this.version = "2021-07-06"; this.endpointRule = ""; this.endpointMap = new java.util.HashMap<>(); this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version); } @Override public void close() { this.handler.close(); } /** * @param request the request parameters of AddEnterpriseGroupMemberToTaskGroup AddEnterpriseGroupMemberToTaskGroupRequest * @return AddEnterpriseGroupMemberToTaskGroupResponse */ @Override public CompletableFuture<AddEnterpriseGroupMemberToTaskGroupResponse> addEnterpriseGroupMemberToTaskGroup(AddEnterpriseGroupMemberToTaskGroupRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddEnterpriseGroupMemberToTaskGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddEnterpriseGroupMemberToTaskGroupResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<AddEnterpriseGroupMemberToTaskGroupResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of CreateTaskOrder CreateTaskOrderRequest * @return CreateTaskOrderResponse */ @Override public CompletableFuture<CreateTaskOrderResponse> createTaskOrder(CreateTaskOrderRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateTaskOrder").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateTaskOrderResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateTaskOrderResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ListDdTaskOrder ListDdTaskOrderRequest * @return ListDdTaskOrderResponse */ @Override public CompletableFuture<ListDdTaskOrderResponse> listDdTaskOrder(ListDdTaskOrderRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListDdTaskOrder").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListDdTaskOrderResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListDdTaskOrderResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ListEnterpriseDingtalkGroupCustomerMembers ListEnterpriseDingtalkGroupCustomerMembersRequest * @return ListEnterpriseDingtalkGroupCustomerMembersResponse */ @Override public CompletableFuture<ListEnterpriseDingtalkGroupCustomerMembersResponse> listEnterpriseDingtalkGroupCustomerMembers(ListEnterpriseDingtalkGroupCustomerMembersRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListEnterpriseDingtalkGroupCustomerMembers").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListEnterpriseDingtalkGroupCustomerMembersResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListEnterpriseDingtalkGroupCustomerMembersResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ListEnterpriseDingtalkGroups ListEnterpriseDingtalkGroupsRequest * @return ListEnterpriseDingtalkGroupsResponse */ @Override public CompletableFuture<ListEnterpriseDingtalkGroupsResponse> listEnterpriseDingtalkGroups(ListEnterpriseDingtalkGroupsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListEnterpriseDingtalkGroups").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListEnterpriseDingtalkGroupsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListEnterpriseDingtalkGroupsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ListProductByGroup ListProductByGroupRequest * @return ListProductByGroupResponse */ @Override public CompletableFuture<ListProductByGroupResponse> listProductByGroup(ListProductByGroupRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListProductByGroup").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListProductByGroupResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListProductByGroupResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/DefaultAsyncClientBuilder.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706; import com.aliyun.sdk.gateway.pop.BaseClientBuilder; public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> { @Override protected String serviceName() { return "support_plan20210706"; } @Override protected final AsyncClient buildClient() { return new DefaultAsyncClient(super.applyClientConfiguration()); } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/AddEnterpriseGroupMemberToTaskGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AddEnterpriseGroupMemberToTaskGroupRequest} extends {@link RequestModel} * * <p>AddEnterpriseGroupMemberToTaskGroupRequest</p> */ public class AddEnterpriseGroupMemberToTaskGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskOrderId") @com.aliyun.core.annotation.Validation(required = true) private String taskOrderId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserId") @com.aliyun.core.annotation.Validation(required = true) private String userId; private AddEnterpriseGroupMemberToTaskGroupRequest(Builder builder) { super(builder); this.taskOrderId = builder.taskOrderId; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static AddEnterpriseGroupMemberToTaskGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return taskOrderId */ public String getTaskOrderId() { return this.taskOrderId; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder extends Request.Builder<AddEnterpriseGroupMemberToTaskGroupRequest, Builder> { private String taskOrderId; private String userId; private Builder() { super(); } private Builder(AddEnterpriseGroupMemberToTaskGroupRequest request) { super(request); this.taskOrderId = request.taskOrderId; this.userId = request.userId; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>E240815B72K5D3</p> */ public Builder taskOrderId(String taskOrderId) { this.putQueryParameter("TaskOrderId", taskOrderId); this.taskOrderId = taskOrderId; return this; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>PtWoW82DJI1zcTwsT98kLIgAj7kfASzfC6StcpV7hKs=</p> */ public Builder userId(String userId) { this.putQueryParameter("UserId", userId); this.userId = userId; return this; } @Override public AddEnterpriseGroupMemberToTaskGroupRequest build() { return new AddEnterpriseGroupMemberToTaskGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/AddEnterpriseGroupMemberToTaskGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AddEnterpriseGroupMemberToTaskGroupResponse} extends {@link TeaModel} * * <p>AddEnterpriseGroupMemberToTaskGroupResponse</p> */ public class AddEnterpriseGroupMemberToTaskGroupResponse 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 AddEnterpriseGroupMemberToTaskGroupResponseBody body; private AddEnterpriseGroupMemberToTaskGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static AddEnterpriseGroupMemberToTaskGroupResponse 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 AddEnterpriseGroupMemberToTaskGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<AddEnterpriseGroupMemberToTaskGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(AddEnterpriseGroupMemberToTaskGroupResponseBody body); @Override AddEnterpriseGroupMemberToTaskGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<AddEnterpriseGroupMemberToTaskGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private AddEnterpriseGroupMemberToTaskGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(AddEnterpriseGroupMemberToTaskGroupResponse 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(AddEnterpriseGroupMemberToTaskGroupResponseBody body) { this.body = body; return this; } @Override public AddEnterpriseGroupMemberToTaskGroupResponse build() { return new AddEnterpriseGroupMemberToTaskGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/AddEnterpriseGroupMemberToTaskGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link AddEnterpriseGroupMemberToTaskGroupResponseBody} extends {@link TeaModel} * * <p>AddEnterpriseGroupMemberToTaskGroupResponseBody</p> */ public class AddEnterpriseGroupMemberToTaskGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private String data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private AddEnterpriseGroupMemberToTaskGroupResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static AddEnterpriseGroupMemberToTaskGroupResponseBody create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public String getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private String data; private String message; private String requestId; private Boolean success; /** * Code. */ public Builder code(String code) { this.code = code; return this; } /** * Data. */ public Builder data(String data) { this.data = data; return this; } /** * Message. */ public Builder message(String message) { this.message = message; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * Success. */ public Builder success(Boolean success) { this.success = success; return this; } public AddEnterpriseGroupMemberToTaskGroupResponseBody build() { return new AddEnterpriseGroupMemberToTaskGroupResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/CreateTaskOrderRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateTaskOrderRequest} extends {@link RequestModel} * * <p>CreateTaskOrderRequest</p> */ public class CreateTaskOrderRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CreateUserId") @com.aliyun.core.annotation.Validation(required = true) private String createUserId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsUrgent") private Boolean isUrgent; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OpenGroupId") @com.aliyun.core.annotation.Validation(required = true) private String openGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Overview") @com.aliyun.core.annotation.Validation(required = true) private String overview; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ProductCode") @com.aliyun.core.annotation.Validation(required = true) private String productCode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UrgentDescription") private String urgentDescription; private CreateTaskOrderRequest(Builder builder) { super(builder); this.createUserId = builder.createUserId; this.isUrgent = builder.isUrgent; this.openGroupId = builder.openGroupId; this.overview = builder.overview; this.productCode = builder.productCode; this.urgentDescription = builder.urgentDescription; } public static Builder builder() { return new Builder(); } public static CreateTaskOrderRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return createUserId */ public String getCreateUserId() { return this.createUserId; } /** * @return isUrgent */ public Boolean getIsUrgent() { return this.isUrgent; } /** * @return openGroupId */ public String getOpenGroupId() { return this.openGroupId; } /** * @return overview */ public String getOverview() { return this.overview; } /** * @return productCode */ public String getProductCode() { return this.productCode; } /** * @return urgentDescription */ public String getUrgentDescription() { return this.urgentDescription; } public static final class Builder extends Request.Builder<CreateTaskOrderRequest, Builder> { private String createUserId; private Boolean isUrgent; private String openGroupId; private String overview; private String productCode; private String urgentDescription; private Builder() { super(); } private Builder(CreateTaskOrderRequest request) { super(request); this.createUserId = request.createUserId; this.isUrgent = request.isUrgent; this.openGroupId = request.openGroupId; this.overview = request.overview; this.productCode = request.productCode; this.urgentDescription = request.urgentDescription; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>123</p> */ public Builder createUserId(String createUserId) { this.putQueryParameter("CreateUserId", createUserId); this.createUserId = createUserId; return this; } /** * IsUrgent. */ public Builder isUrgent(Boolean isUrgent) { this.putQueryParameter("IsUrgent", isUrgent); this.isUrgent = isUrgent; return this; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cid+lUpHxTIXt7DYqJDcpVxlA==</p> */ public Builder openGroupId(String openGroupId) { this.putQueryParameter("OpenGroupId", openGroupId); this.openGroupId = openGroupId; return this; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>任务单标题:必填</p> */ public Builder overview(String overview) { this.putQueryParameter("Overview", overview); this.overview = overview; return this; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ecs</p> */ public Builder productCode(String productCode) { this.putQueryParameter("ProductCode", productCode); this.productCode = productCode; return this; } /** * UrgentDescription. */ public Builder urgentDescription(String urgentDescription) { this.putQueryParameter("UrgentDescription", urgentDescription); this.urgentDescription = urgentDescription; return this; } @Override public CreateTaskOrderRequest build() { return new CreateTaskOrderRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/CreateTaskOrderResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateTaskOrderResponse} extends {@link TeaModel} * * <p>CreateTaskOrderResponse</p> */ public class CreateTaskOrderResponse 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 CreateTaskOrderResponseBody body; private CreateTaskOrderResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateTaskOrderResponse 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 CreateTaskOrderResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateTaskOrderResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateTaskOrderResponseBody body); @Override CreateTaskOrderResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateTaskOrderResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateTaskOrderResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateTaskOrderResponse 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(CreateTaskOrderResponseBody body) { this.body = body; return this; } @Override public CreateTaskOrderResponse build() { return new CreateTaskOrderResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/CreateTaskOrderResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link CreateTaskOrderResponseBody} extends {@link TeaModel} * * <p>CreateTaskOrderResponseBody</p> */ public class CreateTaskOrderResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private String data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private CreateTaskOrderResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static CreateTaskOrderResponseBody create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public String getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private String data; private String message; private String requestId; private Boolean success; /** * <p>code</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * Data. */ public Builder data(String data) { this.data = data; return this; } /** * <p>msg</p> * * <strong>example:</strong> * <p>ok</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>requestId</p> * * <strong>example:</strong> * <p>123</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>success</p> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public CreateTaskOrderResponseBody build() { return new CreateTaskOrderResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/EnterpriseDingtalkGroupMember.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link EnterpriseDingtalkGroupMember} extends {@link TeaModel} * * <p>EnterpriseDingtalkGroupMember</p> */ public class EnterpriseDingtalkGroupMember extends TeaModel { @com.aliyun.core.annotation.NameInMap("IsAdmin") private Boolean isAdmin; @com.aliyun.core.annotation.NameInMap("Mobile") private String mobile; @com.aliyun.core.annotation.NameInMap("Name") private String name; private EnterpriseDingtalkGroupMember(Builder builder) { this.isAdmin = builder.isAdmin; this.mobile = builder.mobile; this.name = builder.name; } public static Builder builder() { return new Builder(); } public static EnterpriseDingtalkGroupMember create() { return builder().build(); } /** * @return isAdmin */ public Boolean getIsAdmin() { return this.isAdmin; } /** * @return mobile */ public String getMobile() { return this.mobile; } /** * @return name */ public String getName() { return this.name; } public static final class Builder { private Boolean isAdmin; private String mobile; private String name; /** * <p>代表资源名称的资源属性字段</p> * * <strong>example:</strong> * <p>true</p> */ public Builder isAdmin(Boolean isAdmin) { this.isAdmin = isAdmin; return this; } /** * <p>代表资源组的资源属性字段</p> * * <strong>example:</strong> * <p>130xxxxxxxx</p> */ public Builder mobile(String mobile) { this.mobile = mobile; return this; } /** * <p>代表创建时间的资源属性字段</p> * * <strong>example:</strong> * <p>张三</p> */ public Builder name(String name) { this.name = name; return this; } public EnterpriseDingtalkGroupMember build() { return new EnterpriseDingtalkGroupMember(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListDdTaskOrderRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListDdTaskOrderRequest} extends {@link RequestModel} * * <p>ListDdTaskOrderRequest</p> */ public class ListDdTaskOrderRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CreateRealName") private String createRealName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsUrgent") private Boolean isUrgent; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OpenGroupId") @com.aliyun.core.annotation.Validation(required = true) private String openGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNo") private Long pageNo; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskStatus") private String taskStatus; private ListDdTaskOrderRequest(Builder builder) { super(builder); this.createRealName = builder.createRealName; this.endTime = builder.endTime; this.isUrgent = builder.isUrgent; this.openGroupId = builder.openGroupId; this.pageNo = builder.pageNo; this.pageSize = builder.pageSize; this.startTime = builder.startTime; this.taskStatus = builder.taskStatus; } public static Builder builder() { return new Builder(); } public static ListDdTaskOrderRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return createRealName */ public String getCreateRealName() { return this.createRealName; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return isUrgent */ public Boolean getIsUrgent() { return this.isUrgent; } /** * @return openGroupId */ public String getOpenGroupId() { return this.openGroupId; } /** * @return pageNo */ public Long getPageNo() { return this.pageNo; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return taskStatus */ public String getTaskStatus() { return this.taskStatus; } public static final class Builder extends Request.Builder<ListDdTaskOrderRequest, Builder> { private String createRealName; private String endTime; private Boolean isUrgent; private String openGroupId; private Long pageNo; private Long pageSize; private String startTime; private String taskStatus; private Builder() { super(); } private Builder(ListDdTaskOrderRequest request) { super(request); this.createRealName = request.createRealName; this.endTime = request.endTime; this.isUrgent = request.isUrgent; this.openGroupId = request.openGroupId; this.pageNo = request.pageNo; this.pageSize = request.pageSize; this.startTime = request.startTime; this.taskStatus = request.taskStatus; } /** * <p>createRealName</p> * * <strong>example:</strong> * <p>Tom</p> */ public Builder createRealName(String createRealName) { this.putQueryParameter("CreateRealName", createRealName); this.createRealName = createRealName; return this; } /** * <p>endTime</p> * * <strong>example:</strong> * <p>2024-08-20 14:09:16</p> */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * IsUrgent. */ public Builder isUrgent(Boolean isUrgent) { this.putQueryParameter("IsUrgent", isUrgent); this.isUrgent = isUrgent; return this; } /** * <p>openGroupId</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>DAWNN14N</p> */ public Builder openGroupId(String openGroupId) { this.putQueryParameter("OpenGroupId", openGroupId); this.openGroupId = openGroupId; return this; } /** * <p>pageNo</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNo(Long pageNo) { this.putQueryParameter("PageNo", pageNo); this.pageNo = pageNo; return this; } /** * <p>pageSize</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>startTime</p> * * <strong>example:</strong> * <p>2024-08-01 14:09:11</p> */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } /** * <p>taskStatus</p> * * <strong>example:</strong> * <p>dealingNode</p> */ public Builder taskStatus(String taskStatus) { this.putQueryParameter("TaskStatus", taskStatus); this.taskStatus = taskStatus; return this; } @Override public ListDdTaskOrderRequest build() { return new ListDdTaskOrderRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListDdTaskOrderResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListDdTaskOrderResponse} extends {@link TeaModel} * * <p>ListDdTaskOrderResponse</p> */ public class ListDdTaskOrderResponse 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 ListDdTaskOrderResponseBody body; private ListDdTaskOrderResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListDdTaskOrderResponse 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 ListDdTaskOrderResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListDdTaskOrderResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListDdTaskOrderResponseBody body); @Override ListDdTaskOrderResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListDdTaskOrderResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListDdTaskOrderResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListDdTaskOrderResponse 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(ListDdTaskOrderResponseBody body) { this.body = body; return this; } @Override public ListDdTaskOrderResponse build() { return new ListDdTaskOrderResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListDdTaskOrderResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListDdTaskOrderResponseBody} extends {@link TeaModel} * * <p>ListDdTaskOrderResponseBody</p> */ public class ListDdTaskOrderResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private String data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private ListDdTaskOrderResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static ListDdTaskOrderResponseBody create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public String getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private String data; private String message; private String requestId; private Boolean success; /** * <p>code</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>data</p> * * <strong>example:</strong> * <p>{ &quot;msg&quot;: &quot;请求成功&quot;, &quot;code&quot;: &quot;200&quot;, &quot;data&quot;: [ { &quot;wfNodeId&quot;: &quot;dealingNode&quot;,//任务单状态 &quot;createEmpId&quot;: null,//创建人工号,可以忽略 &quot;createTime&quot;: 1637571435000,//任务单创建时间 &quot;orderId&quot;: &quot;E2111221H1UKCZ&quot;,//任务单号 &quot;isImportant&quot;: &quot;normal&quot;,//是否紧急 &quot;closeTime&quot;: null,//任务单关单时间 &quot;taskTitle&quot;: &quot;测试单16点44&quot;,//标题 &quot;productType&quot;: &quot;3270&quot;//问题分类 }, { &quot;wfNodeId&quot;: &quot;dealingNode&quot;, &quot;createEmpId&quot;: null, &quot;createTime&quot;: 1637820497000, &quot;orderId&quot;: &quot;E211125CG111EM&quot;, &quot;isImportant&quot;: &quot;normal&quot;, &quot;closeTime&quot;: null, &quot;taskTitle&quot;: &quot;测试单14&quot;, &quot;class&quot;: &quot;com.aliyun.dingtalklanding.dto.OpenTaskOrderDTO&quot;, &quot;productType&quot;: &quot;3270&quot; } ], &quot;success&quot;: true, &quot;requestId&quot;: &quot;123&quot;, &quot;class&quot;: &quot;com.aliyun.dingtalklanding.pop.dto.PopResultDTO&quot; }</p> */ public Builder data(String data) { this.data = data; return this; } /** * <p>msg</p> * * <strong>example:</strong> * <p>请求成功</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>requestId</p> * * <strong>example:</strong> * <p>2F8557E4-742B-1CF7-8E83-28CD0C1F7B48</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>success</p> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public ListDdTaskOrderResponseBody build() { return new ListDdTaskOrderResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListEnterpriseDingtalkGroupCustomerMembersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListEnterpriseDingtalkGroupCustomerMembersRequest} extends {@link RequestModel} * * <p>ListEnterpriseDingtalkGroupCustomerMembersRequest</p> */ public class ListEnterpriseDingtalkGroupCustomerMembersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OpenGroupId") @com.aliyun.core.annotation.Validation(required = true) private String openGroupId; private ListEnterpriseDingtalkGroupCustomerMembersRequest(Builder builder) { super(builder); this.openGroupId = builder.openGroupId; } public static Builder builder() { return new Builder(); } public static ListEnterpriseDingtalkGroupCustomerMembersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return openGroupId */ public String getOpenGroupId() { return this.openGroupId; } public static final class Builder extends Request.Builder<ListEnterpriseDingtalkGroupCustomerMembersRequest, Builder> { private String openGroupId; private Builder() { super(); } private Builder(ListEnterpriseDingtalkGroupCustomerMembersRequest request) { super(request); this.openGroupId = request.openGroupId; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>DAWNN14N</p> */ public Builder openGroupId(String openGroupId) { this.putQueryParameter("OpenGroupId", openGroupId); this.openGroupId = openGroupId; return this; } @Override public ListEnterpriseDingtalkGroupCustomerMembersRequest build() { return new ListEnterpriseDingtalkGroupCustomerMembersRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListEnterpriseDingtalkGroupCustomerMembersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListEnterpriseDingtalkGroupCustomerMembersResponse} extends {@link TeaModel} * * <p>ListEnterpriseDingtalkGroupCustomerMembersResponse</p> */ public class ListEnterpriseDingtalkGroupCustomerMembersResponse 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 ListEnterpriseDingtalkGroupCustomerMembersResponseBody body; private ListEnterpriseDingtalkGroupCustomerMembersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListEnterpriseDingtalkGroupCustomerMembersResponse 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 ListEnterpriseDingtalkGroupCustomerMembersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListEnterpriseDingtalkGroupCustomerMembersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListEnterpriseDingtalkGroupCustomerMembersResponseBody body); @Override ListEnterpriseDingtalkGroupCustomerMembersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListEnterpriseDingtalkGroupCustomerMembersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListEnterpriseDingtalkGroupCustomerMembersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListEnterpriseDingtalkGroupCustomerMembersResponse 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(ListEnterpriseDingtalkGroupCustomerMembersResponseBody body) { this.body = body; return this; } @Override public ListEnterpriseDingtalkGroupCustomerMembersResponse build() { return new ListEnterpriseDingtalkGroupCustomerMembersResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListEnterpriseDingtalkGroupCustomerMembersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListEnterpriseDingtalkGroupCustomerMembersResponseBody} extends {@link TeaModel} * * <p>ListEnterpriseDingtalkGroupCustomerMembersResponseBody</p> */ public class ListEnterpriseDingtalkGroupCustomerMembersResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private ListEnterpriseDingtalkGroupCustomerMembersResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static ListEnterpriseDingtalkGroupCustomerMembersResponseBody create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public java.util.List<Data> getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private java.util.List<Data> data; private String message; private String requestId; private Boolean success; /** * Code. */ public Builder code(String code) { this.code = code; return this; } /** * Data. */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * Message. */ public Builder message(String message) { this.message = message; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * Success. */ public Builder success(Boolean success) { this.success = success; return this; } public ListEnterpriseDingtalkGroupCustomerMembersResponseBody build() { return new ListEnterpriseDingtalkGroupCustomerMembersResponseBody(this); } } /** * * {@link ListEnterpriseDingtalkGroupCustomerMembersResponseBody} extends {@link TeaModel} * * <p>ListEnterpriseDingtalkGroupCustomerMembersResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("IsAdmin") private Boolean isAdmin; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("UserId") private String userId; private Data(Builder builder) { this.isAdmin = builder.isAdmin; this.name = builder.name; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return isAdmin */ public Boolean getIsAdmin() { return this.isAdmin; } /** * @return name */ public String getName() { return this.name; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder { private Boolean isAdmin; private String name; private String userId; /** * IsAdmin. */ public Builder isAdmin(Boolean isAdmin) { this.isAdmin = isAdmin; return this; } /** * Name. */ public Builder name(String name) { this.name = name; return this; } /** * UserId. */ public Builder userId(String userId) { this.userId = userId; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListEnterpriseDingtalkGroupsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListEnterpriseDingtalkGroupsRequest} extends {@link RequestModel} * * <p>ListEnterpriseDingtalkGroupsRequest</p> */ public class ListEnterpriseDingtalkGroupsRequest extends Request { private ListEnterpriseDingtalkGroupsRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static ListEnterpriseDingtalkGroupsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<ListEnterpriseDingtalkGroupsRequest, Builder> { private Builder() { super(); } private Builder(ListEnterpriseDingtalkGroupsRequest request) { super(request); } @Override public ListEnterpriseDingtalkGroupsRequest build() { return new ListEnterpriseDingtalkGroupsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListEnterpriseDingtalkGroupsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListEnterpriseDingtalkGroupsResponse} extends {@link TeaModel} * * <p>ListEnterpriseDingtalkGroupsResponse</p> */ public class ListEnterpriseDingtalkGroupsResponse 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 ListEnterpriseDingtalkGroupsResponseBody body; private ListEnterpriseDingtalkGroupsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListEnterpriseDingtalkGroupsResponse 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 ListEnterpriseDingtalkGroupsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListEnterpriseDingtalkGroupsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListEnterpriseDingtalkGroupsResponseBody body); @Override ListEnterpriseDingtalkGroupsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListEnterpriseDingtalkGroupsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListEnterpriseDingtalkGroupsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListEnterpriseDingtalkGroupsResponse 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(ListEnterpriseDingtalkGroupsResponseBody body) { this.body = body; return this; } @Override public ListEnterpriseDingtalkGroupsResponse build() { return new ListEnterpriseDingtalkGroupsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListEnterpriseDingtalkGroupsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListEnterpriseDingtalkGroupsResponseBody} extends {@link TeaModel} * * <p>ListEnterpriseDingtalkGroupsResponseBody</p> */ public class ListEnterpriseDingtalkGroupsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<Data> data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private ListEnterpriseDingtalkGroupsResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static ListEnterpriseDingtalkGroupsResponseBody create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public java.util.List<Data> getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private java.util.List<Data> data; private String message; private String requestId; private Boolean success; /** * Code. */ public Builder code(String code) { this.code = code; return this; } /** * Data. */ public Builder data(java.util.List<Data> data) { this.data = data; return this; } /** * Message. */ public Builder message(String message) { this.message = message; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * Success. */ public Builder success(Boolean success) { this.success = success; return this; } public ListEnterpriseDingtalkGroupsResponseBody build() { return new ListEnterpriseDingtalkGroupsResponseBody(this); } } /** * * {@link ListEnterpriseDingtalkGroupsResponseBody} extends {@link TeaModel} * * <p>ListEnterpriseDingtalkGroupsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("GroupName") private String groupName; @com.aliyun.core.annotation.NameInMap("OpenGroupId") private String openGroupId; private Data(Builder builder) { this.groupName = builder.groupName; this.openGroupId = builder.openGroupId; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return groupName */ public String getGroupName() { return this.groupName; } /** * @return openGroupId */ public String getOpenGroupId() { return this.openGroupId; } public static final class Builder { private String groupName; private String openGroupId; /** * GroupName. */ public Builder groupName(String groupName) { this.groupName = groupName; return this; } /** * OpenGroupId. */ public Builder openGroupId(String openGroupId) { this.openGroupId = openGroupId; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListProductByGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListProductByGroupRequest} extends {@link RequestModel} * * <p>ListProductByGroupRequest</p> */ public class ListProductByGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OpenGroupId") @com.aliyun.core.annotation.Validation(required = true) private String openGroupId; private ListProductByGroupRequest(Builder builder) { super(builder); this.openGroupId = builder.openGroupId; } public static Builder builder() { return new Builder(); } public static ListProductByGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return openGroupId */ public String getOpenGroupId() { return this.openGroupId; } public static final class Builder extends Request.Builder<ListProductByGroupRequest, Builder> { private String openGroupId; private Builder() { super(); } private Builder(ListProductByGroupRequest request) { super(request); this.openGroupId = request.openGroupId; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cidXcezGVQJjiWy2PzXylGwvg==</p> */ public Builder openGroupId(String openGroupId) { this.putQueryParameter("OpenGroupId", openGroupId); this.openGroupId = openGroupId; return this; } @Override public ListProductByGroupRequest build() { return new ListProductByGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListProductByGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListProductByGroupResponse} extends {@link TeaModel} * * <p>ListProductByGroupResponse</p> */ public class ListProductByGroupResponse 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 ListProductByGroupResponseBody body; private ListProductByGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListProductByGroupResponse 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 ListProductByGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListProductByGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListProductByGroupResponseBody body); @Override ListProductByGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListProductByGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListProductByGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListProductByGroupResponse 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(ListProductByGroupResponseBody body) { this.body = body; return this; } @Override public ListProductByGroupResponse build() { return new ListProductByGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706
java-sources/com/aliyun/alibabacloud-support_plan20210706/3.0.0/com/aliyun/sdk/service/support_plan20210706/models/ListProductByGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.support_plan20210706.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListProductByGroupResponseBody} extends {@link TeaModel} * * <p>ListProductByGroupResponseBody</p> */ public class ListProductByGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private String data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private ListProductByGroupResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static ListProductByGroupResponseBody create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public String getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private String data; private String message; private String requestId; private Boolean success; /** * <p>code</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>data</p> * * <strong>example:</strong> * <p>[ { &quot;wfNodeId&quot;: &quot;dealingNode&quot;,//任务单状态 &quot;createEmpId&quot;: null,//创建人工号,可以忽略 &quot;createTime&quot;: 1637571435000,//任务单创建时间 &quot;orderId&quot;: &quot;E2111221H1UKCZ&quot;,//任务单号 &quot;isImportant&quot;: &quot;normal&quot;,//是否紧急 &quot;closeTime&quot;: null,//任务单关单时间 &quot;taskTitle&quot;: &quot;测试单16点44&quot;,//标题 &quot;productType&quot;: &quot;3270&quot;//问题分类 }, { &quot;wfNodeId&quot;: &quot;dealingNode&quot;, &quot;createEmpId&quot;: null, &quot;createTime&quot;: 1637820497000, &quot;orderId&quot;: &quot;E211125CG111EM&quot;, &quot;isImportant&quot;: &quot;normal&quot;, &quot;closeTime&quot;: null, &quot;taskTitle&quot;: &quot;测试单14&quot;, &quot;class&quot;: &quot;com.aliyun.dingtalklanding.dto.OpenTaskOrderDTO&quot;, &quot;productType&quot;: &quot;3270&quot; } ]</p> */ public Builder data(String data) { this.data = data; return this; } /** * <p>msg</p> * * <strong>example:</strong> * <p>请求成功</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>requestId</p> * * <strong>example:</strong> * <p>123</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>success</p> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } public ListProductByGroupResponseBody build() { return new ListProductByGroupResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/AsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601; import com.aliyun.core.utils.SdkAutoCloseable; import com.aliyun.sdk.service.swas_open20200601.models.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import java.util.concurrent.CompletableFuture; public interface AsyncClient extends SdkAutoCloseable { static DefaultAsyncClientBuilder builder() { return new DefaultAsyncClientBuilder(); } static AsyncClient create() { return builder().build(); } /** * <b>description</b> : * <p> Before you share a custom image, make sure that all sensitive data and files are removed from the image.</p> * <ul> * <li>The IDs of the Alibaba Cloud accounts with which you want to share the image is obtained. Move the pointer over the profile in the upper-right corner of the Simple Application Server console. In the card that appears, if Main Account is displayed, the showed account ID is the Alibaba Cloud account ID.</li> * </ul> * * @param request the request parameters of AddCustomImageShareAccount AddCustomImageShareAccountRequest * @return AddCustomImageShareAccountResponse */ CompletableFuture<AddCustomImageShareAccountResponse> addCustomImageShareAccount(AddCustomImageShareAccountRequest request); /** * <b>description</b> : * <p>By default, no public endpoints are assigned to Simple Database Service instances. If you want to access the databases of a Simple Database Service instance over the Internet by using Simple Container Service or Data Management (DMS), you must apply for a public endpoint for the Simple Database Service instance.</p> * * @param request the request parameters of AllocatePublicConnection AllocatePublicConnectionRequest * @return AllocatePublicConnectionResponse */ CompletableFuture<AllocatePublicConnectionResponse> allocatePublicConnection(AllocatePublicConnectionRequest request); /** * <b>description</b> : * <p>If the port range, protocol, and source IP address of a firewall rule in a firewall template are the same as the port range, protocol, and source IP address of an existing rule, the new rule overwrites the existing rule regardless of whether the existing rule is enabled or disabled.</p> * * @param request the request parameters of ApplyFirewallTemplate ApplyFirewallTemplateRequest * @return ApplyFirewallTemplateResponse */ CompletableFuture<ApplyFirewallTemplateResponse> applyFirewallTemplate(ApplyFirewallTemplateRequest request); /** * <b>description</b> : * <p>You can bind only one key pair to a simple application server in the Simple Application Server console. If a simple application server has a key pair bound, the new key pair overwrites the original key pair.</p> * * @param request the request parameters of AttachKeyPair AttachKeyPairRequest * @return AttachKeyPairResponse */ CompletableFuture<AttachKeyPairResponse> attachKeyPair(AttachKeyPairRequest request); /** * @param request the request parameters of CreateCommand CreateCommandRequest * @return CreateCommandResponse */ CompletableFuture<CreateCommandResponse> createCommand(CreateCommandRequest request); /** * <b>description</b> : * <p>A custom image is created from a snapshot of a simple application server. You can use a custom image to create multiple simple application servers that have the same configurations. You can also share custom images to ECS and use the shared images to create ECS instances or replace the OSs of existing ECS instances. For more information about custom images, see <a href="https://help.aliyun.com/document_detail/199375.html">Overview of custom images</a>. * You must create a system disk snapshot of a simple application server before you create a custom image based on the snapshot. For more information, see <a href="https://help.aliyun.com/document_detail/190452.html">CreateSnapshot</a>.</p> * <blockquote> * <p> If you need the data on the data disk of a simple application server when you create a custom image, create a snapshot for the data disk first. * Before you create a custom image, take note of the following items:</p> * </blockquote> * <ul> * <li>The custom image and the corresponding simple application server must reside in the same region.</li> * <li>The maximum number of custom images that you can create is 3 times the number of simple application servers that you have, but cannot exceed 15.</li> * <li>You can directly create a custom image only based on the system disk snapshot of a simple application server. If you want a custom image to contain the data on the data disk of the simple application server, you must select a data disk snapshot in addition to a system disk snapshot when you create the custom image.</li> * <li>If a simple application server is released due to expiration or refunds, the custom images that are created based on the server are also released.</li> * <li>Resetting the system or changing the image of a simple application server clears the disk data on the server. Back up the data as needed.</li> * </ul> * * @param request the request parameters of CreateCustomImage CreateCustomImageRequest * @return CreateCustomImageResponse */ CompletableFuture<CreateCustomImageResponse> createCustomImage(CreateCustomImageRequest request); /** * <b>description</b> : * <p>Firewalls serve to control network access to simple application servers and isolate security domains in the cloud. By default, SSH port 22, HTTP port 80, and HTTPS port 443 are enabled for simple application servers. Other ports are disabled. You can add firewall rules to enable more ports.</p> * * @param request the request parameters of CreateFirewallRule CreateFirewallRuleRequest * @return CreateFirewallRuleResponse */ CompletableFuture<CreateFirewallRuleResponse> createFirewallRule(CreateFirewallRuleRequest request); /** * <b>description</b> : * <p>Firewalls serve to control network access to simple application servers and isolate security domains in the cloud. By default, SSH port 22, HTTP port 80, and HTTPS port 443 are enabled for simple application servers. Other ports are disabled. You can add firewall rules to enable more ports.</p> * * @param request the request parameters of CreateFirewallRules CreateFirewallRulesRequest * @return CreateFirewallRulesResponse */ CompletableFuture<CreateFirewallRulesResponse> createFirewallRules(CreateFirewallRulesRequest request); /** * <b>description</b> : * <p>Simple Application Server supports the firewall template feature that provides multiple firewall rules. You can use a template to add a group of firewall rules to one or more simple application servers at a time. This improves the efficiency of setting firewall rules.</p> * * @param request the request parameters of CreateFirewallTemplate CreateFirewallTemplateRequest * @return CreateFirewallTemplateResponse */ CompletableFuture<CreateFirewallTemplateResponse> createFirewallTemplate(CreateFirewallTemplateRequest request); /** * <b>description</b> : * <p>Adding firewall rules to a firewall template does not affect the firewall rules that have been applied to simple application servers..</p> * * @param request the request parameters of CreateFirewallTemplateRules CreateFirewallTemplateRulesRequest * @return CreateFirewallTemplateRulesResponse */ CompletableFuture<CreateFirewallTemplateRulesResponse> createFirewallTemplateRules(CreateFirewallTemplateRulesRequest request); /** * @param request the request parameters of CreateInstanceKeyPair CreateInstanceKeyPairRequest * @return CreateInstanceKeyPairResponse */ CompletableFuture<CreateInstanceKeyPairResponse> createInstanceKeyPair(CreateInstanceKeyPairRequest request); /** * <b>description</b> : * <p> Before you call this operation, we recommend that you understand the billing rules of Simple Application Server. For more information, see <a href="https://help.aliyun.com/document_detail/58623.html">Billable items</a>.</p> * <blockquote> * <p> If you have coupons in your Alibaba Cloud account, the coupons are preferentially used to pay for the simple application servers.</p> * </blockquote> * <ul> * <li>You can create a maximum of 50 simple application servers in a region for an Alibaba Cloud account.</li> * <li>When you call this operation to create simple application servers, make sure that the balance in your account is sufficient to pay for the servers. If the balance in your account is insufficient, the servers cannot be created.</li> * </ul> * * @param request the request parameters of CreateInstances CreateInstancesRequest * @return CreateInstancesResponse */ CompletableFuture<CreateInstancesResponse> createInstances(CreateInstancesRequest request); /** * <b>description</b> : * <p>Alibaba Cloud SSH key pairs offer a secure and efficient logon authentication mechanism, facilitating both verification and encrypted communication within the SSH protocol framework. An SSH key pair is essentially constituted by a public key and a private key. Tailored for Linux-based simple application servers, this security measure enhances security and convenience, effectively addressing your heightened security requirements.</p> * <ul> * <li>The key pair logon method is only valid for Linux-based simple application servers.</li> * <li>A maximum of 10 key pairs can be created in a region for an Alibaba Cloud account.</li> * <li>Only RSA 2048-bit key pairs can be created in the Simple Application Server console.</li> * </ul> * * @param request the request parameters of CreateKeyPair CreateKeyPairRequest * @return CreateKeyPairResponse */ CompletableFuture<CreateKeyPairResponse> createKeyPair(CreateKeyPairRequest request); /** * <b>description</b> : * <p>A snapshot is a point-in-time backup of a disk. Snapshots can be used to back up data, recover data after misoperations on servers, recover data after network attacks, and create custom images.</p> * <blockquote> * <p> You are not charged for creating snapshots in Simple Application Server.</p> * </blockquote> * <h3><a href="#"></a>Precautions</h3> * <ul> * <li>You can create up to three snapshots for each simple application server.</li> * <li>The maximum number of snapshots that you create per Alibaba Cloud account is triple of the number of simple application servers that are created. The value cannot be greater than 15.</li> * <li>If a simple application server is automatically released due to expiration, the snapshots created for the server are deleted.</li> * <li>If you reset a simple application server after you create a snapshot for the server, the snapshot is retained but cannot be used to restore the disks of the server.</li> * </ul> * * @param request the request parameters of CreateSnapshot CreateSnapshotRequest * @return CreateSnapshotResponse */ CompletableFuture<CreateSnapshotResponse> createSnapshot(CreateSnapshotRequest request); /** * <b>description</b> : * <p>You cannot delete commands that are being run.</p> * * @param request the request parameters of DeleteCommand DeleteCommandRequest * @return DeleteCommandResponse */ CompletableFuture<DeleteCommandResponse> deleteCommand(DeleteCommandRequest request); /** * <b>description</b> : * <p>You can delete a custom image that you no longer need. After the custom image is deleted, you cannot use the custom image to reset the simple application servers that were created based on the custom image.</p> * <blockquote> * <p> To delete a shared image, you must unshare the image before you can delete it. After a custom image is unshared, you cannot query the custom image by using the Elastic Compute Service (ECS) console or API. If you want to use a custom image to create ECS instances, we recommend that you copy the custom image before you delete it. For more information, see <a href="https://help.aliyun.com/document_detail/199378.html">Copy a shared image of a simple application server in the ECS console</a>.</p> * </blockquote> * * @param request the request parameters of DeleteCustomImage DeleteCustomImageRequest * @return DeleteCustomImageResponse */ CompletableFuture<DeleteCustomImageResponse> deleteCustomImage(DeleteCustomImageRequest request); /** * <b>description</b> : * <p>If a custom image is shared, you must unshare the image before you can delete it. After a custom image is unshared, you cannot query the custom image by using the Elastic Compute Service (ECS) console or by calling an ECS API operation. If you want to use a custom image to create ECS instances, we recommend that you copy the custom image before you delete it. For more information, see <a href="https://help.aliyun.com/document_detail/199378.html">Copy a custom image</a>.</p> * * @param request the request parameters of DeleteCustomImages DeleteCustomImagesRequest * @return DeleteCustomImagesResponse */ CompletableFuture<DeleteCustomImagesResponse> deleteCustomImages(DeleteCustomImagesRequest request); /** * <b>description</b> : * <p>After a firewall rule is deleted, your business deployed on the simple application server may become inaccessible. Before you delete a firewall rule, make sure that the firewall rule is no longer needed by the simple application server.</p> * * @param request the request parameters of DeleteFirewallRule DeleteFirewallRuleRequest * @return DeleteFirewallRuleResponse */ CompletableFuture<DeleteFirewallRuleResponse> deleteFirewallRule(DeleteFirewallRuleRequest request); /** * <b>description</b> : * <p>After a firewall rule is deleted, your business deployed on the simple application server may become inaccessible. Before you delete a firewall rule, make sure that the firewall rule is no longer needed by the simple application server.</p> * * @param request the request parameters of DeleteFirewallRules DeleteFirewallRulesRequest * @return DeleteFirewallRulesResponse */ CompletableFuture<DeleteFirewallRulesResponse> deleteFirewallRules(DeleteFirewallRulesRequest request); /** * <b>description</b> : * <p>Deletion of firewall rules does not affect the firewall rules that have been applied to simple application servers.</p> * * @param request the request parameters of DeleteFirewallTemplateRules DeleteFirewallTemplateRulesRequest * @return DeleteFirewallTemplateRulesResponse */ CompletableFuture<DeleteFirewallTemplateRulesResponse> deleteFirewallTemplateRules(DeleteFirewallTemplateRulesRequest request); /** * <b>description</b> : * <p>Deleting a firewall template does not affect the firewall rules that have been applied to simple application servers. You can delete firewall templates that you no longer need.</p> * * @param request the request parameters of DeleteFirewallTemplates DeleteFirewallTemplatesRequest * @return DeleteFirewallTemplatesResponse */ CompletableFuture<DeleteFirewallTemplatesResponse> deleteFirewallTemplates(DeleteFirewallTemplatesRequest request); /** * @param request the request parameters of DeleteInstanceKeyPair DeleteInstanceKeyPairRequest * @return DeleteInstanceKeyPairResponse */ CompletableFuture<DeleteInstanceKeyPairResponse> deleteInstanceKeyPair(DeleteInstanceKeyPairRequest request); /** * <b>description</b> : * <p>You must unbind SSH key pairs that you no longer use from simple application servers before you delete the SSH key pairs.</p> * * @param request the request parameters of DeleteKeyPairs DeleteKeyPairsRequest * @return DeleteKeyPairsResponse */ CompletableFuture<DeleteKeyPairsResponse> deleteKeyPairs(DeleteKeyPairsRequest request); /** * <b>description</b> : * <p>You can delete a snapshot if you no longer need it.</p> * <blockquote> * <p> If a custom image was created from the snapshot, delete the custom image before you delete the snapshot.</p> * </blockquote> * * @param request the request parameters of DeleteSnapshot DeleteSnapshotRequest * @return DeleteSnapshotResponse */ CompletableFuture<DeleteSnapshotResponse> deleteSnapshot(DeleteSnapshotRequest request); /** * @param request the request parameters of DeleteSnapshots DeleteSnapshotsRequest * @return DeleteSnapshotsResponse */ CompletableFuture<DeleteSnapshotsResponse> deleteSnapshots(DeleteSnapshotsRequest request); /** * @param request the request parameters of DescribeCloudAssistantAttributes DescribeCloudAssistantAttributesRequest * @return DescribeCloudAssistantAttributesResponse */ CompletableFuture<DescribeCloudAssistantAttributesResponse> describeCloudAssistantAttributes(DescribeCloudAssistantAttributesRequest request); /** * <b>description</b> : * <p>By default, the Cloud Assistant client is installed on simple application servers. If you have manually uninstalled the client, you must reinstall the client. Otherwise, you cannot run commands on the servers.</p> * * @param request the request parameters of DescribeCloudAssistantStatus DescribeCloudAssistantStatusRequest * @return DescribeCloudAssistantStatusResponse */ CompletableFuture<DescribeCloudAssistantStatusResponse> describeCloudAssistantStatus(DescribeCloudAssistantStatusRequest request); /** * @param request the request parameters of DescribeCloudMonitorAgentStatuses DescribeCloudMonitorAgentStatusesRequest * @return DescribeCloudMonitorAgentStatusesResponse */ CompletableFuture<DescribeCloudMonitorAgentStatusesResponse> describeCloudMonitorAgentStatuses(DescribeCloudMonitorAgentStatusesRequest request); /** * @param request the request parameters of DescribeCommandInvocations DescribeCommandInvocationsRequest * @return DescribeCommandInvocationsResponse */ CompletableFuture<DescribeCommandInvocationsResponse> describeCommandInvocations(DescribeCommandInvocationsRequest request); /** * @param request the request parameters of DescribeCommands DescribeCommandsRequest * @return DescribeCommandsResponse */ CompletableFuture<DescribeCommandsResponse> describeCommands(DescribeCommandsRequest request); /** * <b>description</b> : * <p>You can call this operation to query the error logs of databases in a Simple Database Service instance and locate faults based on the error logs.</p> * * @param request the request parameters of DescribeDatabaseErrorLogs DescribeDatabaseErrorLogsRequest * @return DescribeDatabaseErrorLogsResponse */ CompletableFuture<DescribeDatabaseErrorLogsResponse> describeDatabaseErrorLogs(DescribeDatabaseErrorLogsRequest request); /** * <b>description</b> : * <p>After you create a Simple Database Service instance, you can query the details about the instance, including CPU, memory, and disk usage, storage IOPS, and total number of connections.</p> * * @param request the request parameters of DescribeDatabaseInstanceMetricData DescribeDatabaseInstanceMetricDataRequest * @return DescribeDatabaseInstanceMetricDataResponse */ CompletableFuture<DescribeDatabaseInstanceMetricDataResponse> describeDatabaseInstanceMetricData(DescribeDatabaseInstanceMetricDataRequest request); /** * <b>description</b> : * <p>You can call this operation to query the information about parameters of a Simple Database Service instance.</p> * * @param request the request parameters of DescribeDatabaseInstanceParameters DescribeDatabaseInstanceParametersRequest * @return DescribeDatabaseInstanceParametersResponse */ CompletableFuture<DescribeDatabaseInstanceParametersResponse> describeDatabaseInstanceParameters(DescribeDatabaseInstanceParametersRequest request); /** * <b>description</b> : * <p>You can call this operation to query the details of Simple Database Service instances in a region, including the IDs, names, plans, database versions, public endpoints, internal endpoints, creation time, and expiration time of the instances.</p> * * @param request the request parameters of DescribeDatabaseInstances DescribeDatabaseInstancesRequest * @return DescribeDatabaseInstancesResponse */ CompletableFuture<DescribeDatabaseInstancesResponse> describeDatabaseInstances(DescribeDatabaseInstancesRequest request); /** * <b>description</b> : * <p>You can query the slow query log details of a Simple Database Service instance and locate faults based on the log details.</p> * <blockquote> * <p> Slow query log details are retained for 7 days.</p> * </blockquote> * * @param request the request parameters of DescribeDatabaseSlowLogRecords DescribeDatabaseSlowLogRecordsRequest * @return DescribeDatabaseSlowLogRecordsResponse */ CompletableFuture<DescribeDatabaseSlowLogRecordsResponse> describeDatabaseSlowLogRecords(DescribeDatabaseSlowLogRecordsRequest request); /** * @param request the request parameters of DescribeFirewallTemplateApplyResults DescribeFirewallTemplateApplyResultsRequest * @return DescribeFirewallTemplateApplyResultsResponse */ CompletableFuture<DescribeFirewallTemplateApplyResultsResponse> describeFirewallTemplateApplyResults(DescribeFirewallTemplateApplyResultsRequest request); /** * @param request the request parameters of DescribeFirewallTemplateRulesApplyResult DescribeFirewallTemplateRulesApplyResultRequest * @return DescribeFirewallTemplateRulesApplyResultResponse */ CompletableFuture<DescribeFirewallTemplateRulesApplyResultResponse> describeFirewallTemplateRulesApplyResult(DescribeFirewallTemplateRulesApplyResultRequest request); /** * @param request the request parameters of DescribeFirewallTemplates DescribeFirewallTemplatesRequest * @return DescribeFirewallTemplatesResponse */ CompletableFuture<DescribeFirewallTemplatesResponse> describeFirewallTemplates(DescribeFirewallTemplatesRequest request); /** * @param request the request parameters of DescribeInstanceKeyPair DescribeInstanceKeyPairRequest * @return DescribeInstanceKeyPairResponse */ CompletableFuture<DescribeInstanceKeyPairResponse> describeInstanceKeyPair(DescribeInstanceKeyPairRequest request); /** * @param request the request parameters of DescribeInstancePasswordsSetting DescribeInstancePasswordsSettingRequest * @return DescribeInstancePasswordsSettingResponse */ CompletableFuture<DescribeInstancePasswordsSettingResponse> describeInstancePasswordsSetting(DescribeInstancePasswordsSettingRequest request); /** * @param request the request parameters of DescribeInstanceVncUrl DescribeInstanceVncUrlRequest * @return DescribeInstanceVncUrlResponse */ CompletableFuture<DescribeInstanceVncUrlResponse> describeInstanceVncUrl(DescribeInstanceVncUrlRequest request); /** * <b>description</b> : * <p> After you execute a command, the command may not succeed or return the expected results. You can call this operation to query the execution result of a command.</p> * <ul> * <li>You can query the execution results that were generated within the last two weeks. A maximum of 100,000 entries of execution results can be retained.</li> * </ul> * * @param request the request parameters of DescribeInvocationResult DescribeInvocationResultRequest * @return DescribeInvocationResultResponse */ CompletableFuture<DescribeInvocationResultResponse> describeInvocationResult(DescribeInvocationResultRequest request); /** * <b>description</b> : * <p> After you execute a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.</p> * <ul> * <li>You can query the execution results that were generated within the last two weeks. Up to 100,000 entries of execution results can be retained.</li> * </ul> * * @param request the request parameters of DescribeInvocations DescribeInvocationsRequest * @return DescribeInvocationsResponse */ CompletableFuture<DescribeInvocationsResponse> describeInvocations(DescribeInvocationsRequest request); /** * @param request the request parameters of DescribeMonitorData DescribeMonitorDataRequest * @return DescribeMonitorDataResponse */ CompletableFuture<DescribeMonitorDataResponse> describeMonitorData(DescribeMonitorDataRequest request); /** * @param request the request parameters of DescribeSecurityAgentStatus DescribeSecurityAgentStatusRequest * @return DescribeSecurityAgentStatusResponse */ CompletableFuture<DescribeSecurityAgentStatusResponse> describeSecurityAgentStatus(DescribeSecurityAgentStatusRequest request); /** * <b>description</b> : * <p>If you want to change the SSH key pairs that are bound to your simple application servers or your end user no longer needs to access a specific simple application server, you can unbind the SSH key pairs from simple application servers to improve the security of the simple application servers or restrict access to the specific simple application server.</p> * * @param request the request parameters of DetachKeyPair DetachKeyPairRequest * @return DetachKeyPairResponse */ CompletableFuture<DetachKeyPairResponse> detachKeyPair(DetachKeyPairRequest request); /** * @param request the request parameters of DisableFirewallRule DisableFirewallRuleRequest * @return DisableFirewallRuleResponse */ CompletableFuture<DisableFirewallRuleResponse> disableFirewallRule(DisableFirewallRuleRequest request); /** * @param request the request parameters of EnableFirewallRule EnableFirewallRuleRequest * @return EnableFirewallRuleResponse */ CompletableFuture<EnableFirewallRuleResponse> enableFirewallRule(EnableFirewallRuleRequest request); /** * <b>description</b> : * <p>You can call this operation to import an existing key pair to the Simple Application Server console. This way, you can use the key pair to log on to simple application servers. The existing key pair that you want to import must use a supported encryption method. For more information, see <a href="https://help.aliyun.com/document_detail/59085.html">Q2: Which encryption methods must be used by key pairs when I import existing key pairs to the Simple Application Server console?</a></p> * * @param request the request parameters of ImportKeyPair ImportKeyPairRequest * @return ImportKeyPairResponse */ CompletableFuture<ImportKeyPairResponse> importKeyPair(ImportKeyPairRequest request); /** * <b>description</b> : * <p>To run commands on your simple application servers, you must install the Cloud Assistant client on your servers. You can call the <a href="https://help.aliyun.com/document_detail/439512.html">DescribeCloudAssistantStatus</a> operation to check whether the Cloud Assistant client is installed on your simple application servers. If you have not installed the Cloud Assistant client, you can call the InstallCloudAssistant operation to install the client. Then, you can call the <a href="https://help.aliyun.com/document_detail/190443.html">RebootInstance</a> operation to restart the servers to allow the client to take effect.</p> * * @param request the request parameters of InstallCloudAssistant InstallCloudAssistantRequest * @return InstallCloudAssistantResponse */ CompletableFuture<InstallCloudAssistantResponse> installCloudAssistant(InstallCloudAssistantRequest request); /** * @param request the request parameters of InstallCloudMonitorAgent InstallCloudMonitorAgentRequest * @return InstallCloudMonitorAgentResponse */ CompletableFuture<InstallCloudMonitorAgentResponse> installCloudMonitorAgent(InstallCloudMonitorAgentRequest request); /** * <b>description</b> : * <p> The simple application servers for which you want to call the operation must meet the following conditions. If a simple application server cannot meet the conditions, you must call this operation again. * * The simple application servers are in the <code>Running</code> state. You can call the <a href="https://help.aliyun.com/document_detail/2361065.html">ListInstances</a> operation to query the status of simple application servers. * * Cloud Assistant Agent is installed on the simple application servers. For more information, see <a href="https://help.aliyun.com/document_detail/2361030.html">InstallCloudAssistant</a>. * * If you run a PowerShell command, make sure that the PowerShell module is configured for the simple application servers.</p> * <ul> * <li>The command may fail to be run due to the abnormal states of simple application servers, network exceptions, or exceptions in Cloud Assistant Agent. If the command fails to be run, no execution information is generated.</li> * <li>If you enable the custom parameter feature when you create a command, you must set the <code>Parameters</code> parameter to specify custom parameters when you run the command.</li> * <li>When you call this operation, you can select only one common command or a custom command that you have created.</li> * </ul> * * @param request the request parameters of InvokeCommand InvokeCommandRequest * @return InvokeCommandResponse */ CompletableFuture<InvokeCommandResponse> invokeCommand(InvokeCommandRequest request); /** * @param request the request parameters of ListCustomImageShareAccounts ListCustomImageShareAccountsRequest * @return ListCustomImageShareAccountsResponse */ CompletableFuture<ListCustomImageShareAccountsResponse> listCustomImageShareAccounts(ListCustomImageShareAccountsRequest request); /** * @param request the request parameters of ListCustomImages ListCustomImagesRequest * @return ListCustomImagesResponse */ CompletableFuture<ListCustomImagesResponse> listCustomImages(ListCustomImagesRequest request); /** * <b>description</b> : * <p>The <code>InstanceId</code>, <code>DiskIds</code>, and <code>ResourceGroupId</code> parameters are optional. However, you can specify them as filter conditions and combine them with the logical AND operator to filter disks that you want to query.</p> * * @param request the request parameters of ListDisks ListDisksRequest * @return ListDisksResponse */ CompletableFuture<ListDisksResponse> listDisks(ListDisksRequest request); /** * <b>description</b> : * <p>You can call the ListFirewallRules operation to query the firewall rule details of a simple application server, including the port range, firewall rule ID, and transport layer protocol.</p> * * @param request the request parameters of ListFirewallRules ListFirewallRulesRequest * @return ListFirewallRulesResponse */ CompletableFuture<ListFirewallRulesResponse> listFirewallRules(ListFirewallRulesRequest request); /** * <b>description</b> : * <p>You can query details about one or more images in a specified region, including the IDs, names, and types of the images.</p> * * @param request the request parameters of ListImages ListImagesRequest * @return ListImagesResponse */ CompletableFuture<ListImagesResponse> listImages(ListImagesRequest request); /** * <b>description</b> : * <p>If the plan of your simple application server does not meet your business requirements, you can call the ListInstancePlansModification operation to obtain a list of plans that can be upgraded for your simple application server. Then, you can call the <a href="https://help.aliyun.com/document_detail/190445.html">UpgradeInstance</a> operation to upgrade the plan.</p> * <blockquote> * <p> We recommend that you create snapshots for the disks of your simple application server to back up data before you upgrade the plan. For more information, see <a href="https://help.aliyun.com/document_detail/190452.html">CreateSnapshot</a>. * For the precautions about plan upgrade, see <a href="https://help.aliyun.com/document_detail/61433.html">Upgrade a simple application server</a>.</p> * </blockquote> * * @param request the request parameters of ListInstancePlansModification ListInstancePlansModificationRequest * @return ListInstancePlansModificationResponse */ CompletableFuture<ListInstancePlansModificationResponse> listInstancePlansModification(ListInstancePlansModificationRequest request); /** * @param request the request parameters of ListInstanceStatus ListInstanceStatusRequest * @return ListInstanceStatusResponse */ CompletableFuture<ListInstanceStatusResponse> listInstanceStatus(ListInstanceStatusRequest request); /** * <b>description</b> : * <p>You can call this operation to query the details of simple application servers in a specified region, including the names, public IP addresses, internal IP addresses, creation time, and expiration time of the servers.</p> * * @param request the request parameters of ListInstances ListInstancesRequest * @return ListInstancesResponse */ CompletableFuture<ListInstancesResponse> listInstances(ListInstancesRequest request); /** * <b>description</b> : * <p>You can query the details of data transfer plans of simple application servers, including the total quota, used quota, unused quota, and excess data transfers in the current month. * Simple Application Server provides data transfer plans that can be used to offset data transfer fees. You are charged for excess data transfers. Take note of the following items:</p> * <ul> * <li>Only outbound data transfers of simple application servers over the Internet are calculated. Outbound data transfers include the data transfer quota and the excess data transfers beyond the quota. Inbound data transfers of simple application servers over the Internet are not calculated.</li> * <li>Outbound data transfers from simple application servers to other Alibaba Cloud services over the Internet first consume data transfer quotas. If the quotas are exhausted, you are charged for excess data transfers.</li> * <li>You are not charged for data transfers between simple application servers within the same virtual private cloud (VPC). * For more information, see <a href="https://help.aliyun.com/document_detail/86281.html">Quotas and billing of data transfers</a>.</li> * </ul> * * @param request the request parameters of ListInstancesTrafficPackages ListInstancesTrafficPackagesRequest * @return ListInstancesTrafficPackagesResponse */ CompletableFuture<ListInstancesTrafficPackagesResponse> listInstancesTrafficPackages(ListInstancesTrafficPackagesRequest request); /** * @param request the request parameters of ListKeyPairs ListKeyPairsRequest * @return ListKeyPairsResponse */ CompletableFuture<ListKeyPairsResponse> listKeyPairs(ListKeyPairsRequest request); /** * <b>description</b> : * <p>You can query the details of all plans provided by Simple Application Server in a region, including the IDs, prices, disk sizes, and disk categories of the plans.</p> * * @param request the request parameters of ListPlans ListPlansRequest * @return ListPlansResponse */ CompletableFuture<ListPlansResponse> listPlans(ListPlansRequest request); /** * <b>description</b> : * <p>The query results include all the Alibaba Cloud regions where Simple Application Server is supported on the international site (alibabacloud.com) and the China site (aliyun.com).</p> * * @param request the request parameters of ListRegions ListRegionsRequest * @return ListRegionsResponse */ CompletableFuture<ListRegionsResponse> listRegions(ListRegionsRequest request); /** * <b>description</b> : * <p>The <code>InstanceId</code>, <code>DiskId</code>, <code>SnapshotIds</code>, and <code>ResourceGroupId</code> parameters are optional. However, you can specify them as filter conditions and combine them with the logical AND operator to filter snapshots that you want to query.</p> * * @param request the request parameters of ListSnapshots ListSnapshotsRequest * @return ListSnapshotsResponse */ CompletableFuture<ListSnapshotsResponse> listSnapshots(ListSnapshotsRequest request); /** * @param request the request parameters of ListTagResources ListTagResourcesRequest * @return ListTagResourcesResponse */ CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request); /** * <b>description</b> : * <p>After you create a simple application server, you can log on to the simple application server to build environments and applications on the server.</p> * * @param request the request parameters of LoginInstance LoginInstanceRequest * @return LoginInstanceResponse */ CompletableFuture<LoginInstanceResponse> loginInstance(LoginInstanceRequest request); /** * <b>description</b> : * <p>You can call this operation to modify the description of a Simple Database Service instance.</p> * <h3>QPS limit</h3> * <p>You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/347607.html">QPS limits</a>.</p> * * @param request the request parameters of ModifyDatabaseInstanceDescription ModifyDatabaseInstanceDescriptionRequest * @return ModifyDatabaseInstanceDescriptionResponse */ CompletableFuture<ModifyDatabaseInstanceDescriptionResponse> modifyDatabaseInstanceDescription(ModifyDatabaseInstanceDescriptionRequest request); /** * <b>description</b> : * <p>After you create a Simple Database Service instance, you can view the parameters of the instance or modify the parameters of the instance based on your business requirements.</p> * <h3>QPS limit</h3> * <p>You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/347607.html">QPS limits</a>.</p> * * @param request the request parameters of ModifyDatabaseInstanceParameter ModifyDatabaseInstanceParameterRequest * @return ModifyDatabaseInstanceParameterResponse */ CompletableFuture<ModifyDatabaseInstanceParameterResponse> modifyDatabaseInstanceParameter(ModifyDatabaseInstanceParameterRequest request); /** * @param request the request parameters of ModifyFirewallRule ModifyFirewallRuleRequest * @return ModifyFirewallRuleResponse */ CompletableFuture<ModifyFirewallRuleResponse> modifyFirewallRule(ModifyFirewallRuleRequest request); /** * <b>description</b> : * <p>Modifying a firewall template does not affect the firewall rules that have been applied to simple application servers.</p> * * @param request the request parameters of ModifyFirewallTemplate ModifyFirewallTemplateRequest * @return ModifyFirewallTemplateResponse */ CompletableFuture<ModifyFirewallTemplateResponse> modifyFirewallTemplate(ModifyFirewallTemplateRequest request); /** * <b>description</b> : * <p>Custom images can be shared to ECS. If the configurations of your simple application server cannot meet your business requirements, or you want to deploy your business on ECS instances, you can share your custom image to ECS to transfer your business from Simple Application Server to ECS.</p> * <blockquote> * <p> The region in which the shared image resides in ECS is the same as the region in which the custom image resides in Simple Application Server. * You can unshare a custom image based on your business requirements or when you want to delete the custom image. After you unshare a custom image, take note of the following items:</p> * </blockquote> * <ul> * <li>You cannot query or use the custom image by using the ECS console or API.</li> * <li>You cannot re-initialize the disks of the ECS instances that were created based on the shared image.</li> * </ul> * * @param request the request parameters of ModifyImageShareStatus ModifyImageShareStatusRequest * @return ModifyImageShareStatusResponse */ CompletableFuture<ModifyImageShareStatusResponse> modifyImageShareStatus(ModifyImageShareStatusRequest request); /** * @param request the request parameters of ModifyInstanceVncPassword ModifyInstanceVncPasswordRequest * @return ModifyInstanceVncPasswordResponse */ CompletableFuture<ModifyInstanceVncPasswordResponse> modifyInstanceVncPassword(ModifyInstanceVncPasswordRequest request); /** * <b>description</b> : * <p> Only simple application servers that are in the Running state can be restarted.</p> * <ul> * <li>After you restart a simple application server, it enters the Starting state.</li> * </ul> * * @param request the request parameters of RebootInstance RebootInstanceRequest * @return RebootInstanceResponse */ CompletableFuture<RebootInstanceResponse> rebootInstance(RebootInstanceRequest request); /** * @param request the request parameters of RebootInstances RebootInstancesRequest * @return RebootInstancesResponse */ CompletableFuture<RebootInstancesResponse> rebootInstances(RebootInstancesRequest request); /** * <b>description</b> : * <p>If you no longer need to use a public endpoint to access a Simple Database Service instance, you can release the public endpoint.</p> * <h3>QPS limit</h3> * <p>You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/347607.html">QPS limits</a>.</p> * * @param request the request parameters of ReleasePublicConnection ReleasePublicConnectionRequest * @return ReleasePublicConnectionResponse */ CompletableFuture<ReleasePublicConnectionResponse> releasePublicConnection(ReleasePublicConnectionRequest request); /** * @param request the request parameters of RemoveCustomImageShareAccount RemoveCustomImageShareAccountRequest * @return RemoveCustomImageShareAccountResponse */ CompletableFuture<RemoveCustomImageShareAccountResponse> removeCustomImageShareAccount(RemoveCustomImageShareAccountRequest request); /** * <b>description</b> : * <p> Before you call this operation, we recommend that you understand the billing of Simple Application Server. For more information, see <a href="https://help.aliyun.com/document_detail/58623.html">Billable items</a>.</p> * <ul> * <li>Before you call this operation, make sure that the balance in your account is sufficient. If the balance in your account is insufficient, the renewal fails.</li> * </ul> * * @param request the request parameters of RenewInstance RenewInstanceRequest * @return RenewInstanceResponse */ CompletableFuture<RenewInstanceResponse> renewInstance(RenewInstanceRequest request); /** * <b>description</b> : * <p>If the password of your Simple Database Service instance is not strong, you can call this operation to change the password of the administrator account of the instance. To ensure security of the instance, we recommend that you regularly change the password of the instance.</p> * <h3>QPS limit</h3> * <p>You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/347607.html">QPS limits</a>.</p> * * @param request the request parameters of ResetDatabaseAccountPassword ResetDatabaseAccountPasswordRequest * @return ResetDatabaseAccountPasswordResponse */ CompletableFuture<ResetDatabaseAccountPasswordResponse> resetDatabaseAccountPassword(ResetDatabaseAccountPasswordRequest request); /** * <b>description</b> : * <p> You can call this operation only if the associated simple application server is in the Stopped state.</p> * <ul> * <li>If you restore a disk from a snapshot, the incremental data after the snapshot is created is lost. We recommend that you back up the data before you perform this operation.</li> * </ul> * <h3><a href="#"></a>Precautions</h3> * <p>Resetting the system or changing the image of a simple application server clears the disk data on the server. Snapshots created before the reset or change are retained but cannot be used to restore disks.</p> * * @param request the request parameters of ResetDisk ResetDiskRequest * @return ResetDiskResponse */ CompletableFuture<ResetDiskResponse> resetDisk(ResetDiskRequest request); /** * <b>description</b> : * <p>You can reset a simple application server to re-install its applications or operating system and re-initialize the server. You can reset a simple application server by resetting the current system or changing the image.</p> * <ul> * <li>Reset the current system: You can re-install the operating system without changing the image.</li> * <li>Change the image: You can select another Alibaba Cloud image or a custom image to re-install the operating system.</li> * </ul> * <h3><a href="#"></a>Precautions</h3> * <ul> * <li>Resetting the system or changing the image of a simple application server clears the disk data on the server. Back up the data as needed.</li> * <li>After you reset a simple application server, monitoring may fail. In this case, you can use one of the following methods to install the CloudMonitor agent on the server:<ul> * <li>Connect to the server: For more information, see <a href="https://help.aliyun.com/document_detail/183482.html">Manually install the CloudMonitor agent for C++ on an ECS instance</a>.</li> * <li>Use Command Assistant: For more information, see <a href="https://help.aliyun.com/document_detail/438681.html">Use Command Assistant</a>. You can obtain the command that can be used to install CloudMonitor from the &quot;Common commands&quot; section of the <a href="https://help.aliyun.com/document_detail/438681.html">Use Command Assistant</a> topic.</li> * </ul> * </li> * </ul> * <h3><a href="#"></a>Limits</h3> * <ul> * <li>Snapshots that are created before the reset are retained, but the snapshots cannot be used to restore the disks of the server.</li> * <li>You cannot reset simple application servers that were created from custom images that contain data of data disks.</li> * <li>If you reset a simple application server by replacing the existing image with a custom image, the following limits apply:<ul> * <li>The custom image must reside in the same region as the current server.</li> * <li>The custom image cannot be created based on the current server. If you want to restore the data on the server, you can use a snapshot of the server to restore disk data.</li> * <li>If your simple application server resides in a region outside the Chinese mainland, you cannot switch the operating system of the server between Windows Server and Linux. You cannot use a Windows Server custom image to reset a Linux simple application server. Similarly, you cannot use a Linux custom image to reset a Windows Server simple application server. You can switch the operating systems of simple application servers only between Windows Server versions or between Linux distributions.</li> * <li>The following limits apply to the disks attached to the simple application server:<ul> * <li>If the custom image contains a system disk and a data disk but only a system disk is attached to the simple application server, you cannot use the custom image to reset the simple application server.</li> * <li>If the system disk size of the custom image is greater than the system disk size of the simple application server, you cannot directly use the custom image to reset the simple application server.</li> * <li>Only if the system disk size of the simple application server is greater than or equal to the system disk size of the custom image, you can use the custom image to reset the simple application server. To increase the system disk size of your server, you can upgrade the server configuration. For more information, see Upgrade a simple application server.</li> * <li>If the data disk size of the custom image is greater than the data disk size of the simple application server, you cannot use the custom image to reset the simple application server.</li> * </ul> * </li> * </ul> * </li> * </ul> * * @param request the request parameters of ResetSystem ResetSystemRequest * @return ResetSystemResponse */ CompletableFuture<ResetSystemResponse> resetSystem(ResetSystemRequest request); /** * <b>description</b> : * <p>You can call this operation to restart a Simple Database Service instance that is in the Running state.</p> * <h3>QPS limit</h3> * <p>You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/347607.html">QPS limits</a>.</p> * * @param request the request parameters of RestartDatabaseInstance RestartDatabaseInstanceRequest * @return RestartDatabaseInstanceResponse */ CompletableFuture<RestartDatabaseInstanceResponse> restartDatabaseInstance(RestartDatabaseInstanceRequest request); /** * <b>description</b> : * <p>Command Assistant is an automated O\&amp;M tool for Simple Application Server. You can maintain simple application servers by running shell, PowerShell, and batch commands in the Simple Application Server console without remotely logging on to the servers. * Before you use Command Assistant, take note of the following items:</p> * <ul> * <li>The simple application server must be in the Running state.</li> * <li>The Cloud Assistant client is installed on the server. By default, the Cloud Assistant client is installed on simple application servers. If you have manually uninstalled the client, you must reinstall it. For more information, see <a href="https://help.aliyun.com/document_detail/64921.html">Install the Cloud Assistant Agent</a>.</li> * </ul> * * @param request the request parameters of RunCommand RunCommandRequest * @return RunCommandResponse */ CompletableFuture<RunCommandResponse> runCommand(RunCommandRequest request); /** * <b>description</b> : * <p>You can call this operation to start a Simple Database Service instance that is in the Stopped state.</p> * * @param request the request parameters of StartDatabaseInstance StartDatabaseInstanceRequest * @return StartDatabaseInstanceResponse */ CompletableFuture<StartDatabaseInstanceResponse> startDatabaseInstance(StartDatabaseInstanceRequest request); /** * <b>description</b> : * <p>You can call this operation to start a simple application server that is in the Stopped state.</p> * * @param request the request parameters of StartInstance StartInstanceRequest * @return StartInstanceResponse */ CompletableFuture<StartInstanceResponse> startInstance(StartInstanceRequest request); /** * @param request the request parameters of StartInstances StartInstancesRequest * @return StartInstancesResponse */ CompletableFuture<StartInstancesResponse> startInstances(StartInstancesRequest request); /** * @param request the request parameters of StartTerminalSession StartTerminalSessionRequest * @return StartTerminalSessionResponse */ CompletableFuture<StartTerminalSessionResponse> startTerminalSession(StartTerminalSessionRequest request); /** * <b>description</b> : * <p>You can call this operation to stop a Simple Database Service instance that is in the Running state. After the instance is stopped, you cannot log on to or access the instance.</p> * * @param request the request parameters of StopDatabaseInstance StopDatabaseInstanceRequest * @return StopDatabaseInstanceResponse */ CompletableFuture<StopDatabaseInstanceResponse> stopDatabaseInstance(StopDatabaseInstanceRequest request); /** * <b>description</b> : * <p>You can stop a simple application server that you do not use for the time being.</p> * <blockquote> * <p> Stopping a simple application server may interrupt your business. We recommend that you perform this operation during off-peak hours.</p> * </blockquote> * * @param request the request parameters of StopInstance StopInstanceRequest * @return StopInstanceResponse */ CompletableFuture<StopInstanceResponse> stopInstance(StopInstanceRequest request); /** * @param request the request parameters of StopInstances StopInstancesRequest * @return StopInstancesResponse */ CompletableFuture<StopInstancesResponse> stopInstances(StopInstancesRequest request); /** * @param request the request parameters of TagResources TagResourcesRequest * @return TagResourcesResponse */ CompletableFuture<TagResourcesResponse> tagResources(TagResourcesRequest request); /** * @param request the request parameters of UntagResources UntagResourcesRequest * @return UntagResourcesResponse */ CompletableFuture<UntagResourcesResponse> untagResources(UntagResourcesRequest request); /** * @param request the request parameters of UpdateCommandAttribute UpdateCommandAttributeRequest * @return UpdateCommandAttributeResponse */ CompletableFuture<UpdateCommandAttributeResponse> updateCommandAttribute(UpdateCommandAttributeRequest request); /** * @param request the request parameters of UpdateDiskAttribute UpdateDiskAttributeRequest * @return UpdateDiskAttributeResponse */ CompletableFuture<UpdateDiskAttributeResponse> updateDiskAttribute(UpdateDiskAttributeRequest request); /** * <b>description</b> : * <h2><a href="#"></a>Usage notes</h2> * <p>After you change the password of a simple application server, you must restart the server by calling the <a href="https://help.aliyun.com/document_detail/190443.html">RebootInstance</a> operation for the new password to take effect.</p> * * @param request the request parameters of UpdateInstanceAttribute UpdateInstanceAttributeRequest * @return UpdateInstanceAttributeResponse */ CompletableFuture<UpdateInstanceAttributeResponse> updateInstanceAttribute(UpdateInstanceAttributeRequest request); /** * @param request the request parameters of UpdateSnapshotAttribute UpdateSnapshotAttributeRequest * @return UpdateSnapshotAttributeResponse */ CompletableFuture<UpdateSnapshotAttributeResponse> updateSnapshotAttribute(UpdateSnapshotAttributeRequest request); /** * <b>description</b> : * <p> The plan of a simple application server can only be upgraded. For more information about plans, see <a href="https://help.aliyun.com/document_detail/58623.html">Billable items</a>.</p> * <ul> * <li>Before you call this operation, make sure that the balance in your account is sufficient. If the balance in your account is insufficient, the upgrade fails.</li> * </ul> * * @param request the request parameters of UpgradeInstance UpgradeInstanceRequest * @return UpgradeInstanceResponse */ CompletableFuture<UpgradeInstanceResponse> upgradeInstance(UpgradeInstanceRequest request); /** * @param request the request parameters of UploadInstanceKeyPair UploadInstanceKeyPairRequest * @return UploadInstanceKeyPairResponse */ CompletableFuture<UploadInstanceKeyPairResponse> uploadInstanceKeyPair(UploadInstanceKeyPairRequest request); }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/DefaultAsyncClient.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601; import com.aliyun.core.http.*; import com.aliyun.sdk.service.swas_open20200601.models.*; import darabonba.core.utils.*; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import java.util.concurrent.CompletableFuture; /** * <p>Main client.</p> */ public final class DefaultAsyncClient implements AsyncClient { protected final String product; protected final String version; protected final String endpointRule; protected final java.util.Map<String, String> endpointMap; protected final TeaRequest REQUEST; protected final TeaAsyncHandler handler; protected DefaultAsyncClient(ClientConfiguration configuration) { this.handler = new TeaAsyncHandler(configuration); this.product = "SWAS-OPEN"; this.version = "2020-06-01"; this.endpointRule = ""; this.endpointMap = new java.util.HashMap<>(); this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version); } @Override public void close() { this.handler.close(); } /** * <b>description</b> : * <p> Before you share a custom image, make sure that all sensitive data and files are removed from the image.</p> * <ul> * <li>The IDs of the Alibaba Cloud accounts with which you want to share the image is obtained. Move the pointer over the profile in the upper-right corner of the Simple Application Server console. In the card that appears, if Main Account is displayed, the showed account ID is the Alibaba Cloud account ID.</li> * </ul> * * @param request the request parameters of AddCustomImageShareAccount AddCustomImageShareAccountRequest * @return AddCustomImageShareAccountResponse */ @Override public CompletableFuture<AddCustomImageShareAccountResponse> addCustomImageShareAccount(AddCustomImageShareAccountRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AddCustomImageShareAccount").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AddCustomImageShareAccountResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<AddCustomImageShareAccountResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>By default, no public endpoints are assigned to Simple Database Service instances. If you want to access the databases of a Simple Database Service instance over the Internet by using Simple Container Service or Data Management (DMS), you must apply for a public endpoint for the Simple Database Service instance.</p> * * @param request the request parameters of AllocatePublicConnection AllocatePublicConnectionRequest * @return AllocatePublicConnectionResponse */ @Override public CompletableFuture<AllocatePublicConnectionResponse> allocatePublicConnection(AllocatePublicConnectionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AllocatePublicConnection").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AllocatePublicConnectionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<AllocatePublicConnectionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>If the port range, protocol, and source IP address of a firewall rule in a firewall template are the same as the port range, protocol, and source IP address of an existing rule, the new rule overwrites the existing rule regardless of whether the existing rule is enabled or disabled.</p> * * @param request the request parameters of ApplyFirewallTemplate ApplyFirewallTemplateRequest * @return ApplyFirewallTemplateResponse */ @Override public CompletableFuture<ApplyFirewallTemplateResponse> applyFirewallTemplate(ApplyFirewallTemplateRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ApplyFirewallTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ApplyFirewallTemplateResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ApplyFirewallTemplateResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can bind only one key pair to a simple application server in the Simple Application Server console. If a simple application server has a key pair bound, the new key pair overwrites the original key pair.</p> * * @param request the request parameters of AttachKeyPair AttachKeyPairRequest * @return AttachKeyPairResponse */ @Override public CompletableFuture<AttachKeyPairResponse> attachKeyPair(AttachKeyPairRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("AttachKeyPair").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AttachKeyPairResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<AttachKeyPairResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of CreateCommand CreateCommandRequest * @return CreateCommandResponse */ @Override public CompletableFuture<CreateCommandResponse> createCommand(CreateCommandRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateCommand").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateCommandResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateCommandResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>A custom image is created from a snapshot of a simple application server. You can use a custom image to create multiple simple application servers that have the same configurations. You can also share custom images to ECS and use the shared images to create ECS instances or replace the OSs of existing ECS instances. For more information about custom images, see <a href="https://help.aliyun.com/document_detail/199375.html">Overview of custom images</a>. * You must create a system disk snapshot of a simple application server before you create a custom image based on the snapshot. For more information, see <a href="https://help.aliyun.com/document_detail/190452.html">CreateSnapshot</a>.</p> * <blockquote> * <p> If you need the data on the data disk of a simple application server when you create a custom image, create a snapshot for the data disk first. * Before you create a custom image, take note of the following items:</p> * </blockquote> * <ul> * <li>The custom image and the corresponding simple application server must reside in the same region.</li> * <li>The maximum number of custom images that you can create is 3 times the number of simple application servers that you have, but cannot exceed 15.</li> * <li>You can directly create a custom image only based on the system disk snapshot of a simple application server. If you want a custom image to contain the data on the data disk of the simple application server, you must select a data disk snapshot in addition to a system disk snapshot when you create the custom image.</li> * <li>If a simple application server is released due to expiration or refunds, the custom images that are created based on the server are also released.</li> * <li>Resetting the system or changing the image of a simple application server clears the disk data on the server. Back up the data as needed.</li> * </ul> * * @param request the request parameters of CreateCustomImage CreateCustomImageRequest * @return CreateCustomImageResponse */ @Override public CompletableFuture<CreateCustomImageResponse> createCustomImage(CreateCustomImageRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateCustomImage").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateCustomImageResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateCustomImageResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Firewalls serve to control network access to simple application servers and isolate security domains in the cloud. By default, SSH port 22, HTTP port 80, and HTTPS port 443 are enabled for simple application servers. Other ports are disabled. You can add firewall rules to enable more ports.</p> * * @param request the request parameters of CreateFirewallRule CreateFirewallRuleRequest * @return CreateFirewallRuleResponse */ @Override public CompletableFuture<CreateFirewallRuleResponse> createFirewallRule(CreateFirewallRuleRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateFirewallRule").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateFirewallRuleResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateFirewallRuleResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Firewalls serve to control network access to simple application servers and isolate security domains in the cloud. By default, SSH port 22, HTTP port 80, and HTTPS port 443 are enabled for simple application servers. Other ports are disabled. You can add firewall rules to enable more ports.</p> * * @param request the request parameters of CreateFirewallRules CreateFirewallRulesRequest * @return CreateFirewallRulesResponse */ @Override public CompletableFuture<CreateFirewallRulesResponse> createFirewallRules(CreateFirewallRulesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateFirewallRules").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateFirewallRulesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateFirewallRulesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Simple Application Server supports the firewall template feature that provides multiple firewall rules. You can use a template to add a group of firewall rules to one or more simple application servers at a time. This improves the efficiency of setting firewall rules.</p> * * @param request the request parameters of CreateFirewallTemplate CreateFirewallTemplateRequest * @return CreateFirewallTemplateResponse */ @Override public CompletableFuture<CreateFirewallTemplateResponse> createFirewallTemplate(CreateFirewallTemplateRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateFirewallTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateFirewallTemplateResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateFirewallTemplateResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Adding firewall rules to a firewall template does not affect the firewall rules that have been applied to simple application servers..</p> * * @param request the request parameters of CreateFirewallTemplateRules CreateFirewallTemplateRulesRequest * @return CreateFirewallTemplateRulesResponse */ @Override public CompletableFuture<CreateFirewallTemplateRulesResponse> createFirewallTemplateRules(CreateFirewallTemplateRulesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateFirewallTemplateRules").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateFirewallTemplateRulesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateFirewallTemplateRulesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of CreateInstanceKeyPair CreateInstanceKeyPairRequest * @return CreateInstanceKeyPairResponse */ @Override public CompletableFuture<CreateInstanceKeyPairResponse> createInstanceKeyPair(CreateInstanceKeyPairRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateInstanceKeyPair").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateInstanceKeyPairResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateInstanceKeyPairResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> Before you call this operation, we recommend that you understand the billing rules of Simple Application Server. For more information, see <a href="https://help.aliyun.com/document_detail/58623.html">Billable items</a>.</p> * <blockquote> * <p> If you have coupons in your Alibaba Cloud account, the coupons are preferentially used to pay for the simple application servers.</p> * </blockquote> * <ul> * <li>You can create a maximum of 50 simple application servers in a region for an Alibaba Cloud account.</li> * <li>When you call this operation to create simple application servers, make sure that the balance in your account is sufficient to pay for the servers. If the balance in your account is insufficient, the servers cannot be created.</li> * </ul> * * @param request the request parameters of CreateInstances CreateInstancesRequest * @return CreateInstancesResponse */ @Override public CompletableFuture<CreateInstancesResponse> createInstances(CreateInstancesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateInstancesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateInstancesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Alibaba Cloud SSH key pairs offer a secure and efficient logon authentication mechanism, facilitating both verification and encrypted communication within the SSH protocol framework. An SSH key pair is essentially constituted by a public key and a private key. Tailored for Linux-based simple application servers, this security measure enhances security and convenience, effectively addressing your heightened security requirements.</p> * <ul> * <li>The key pair logon method is only valid for Linux-based simple application servers.</li> * <li>A maximum of 10 key pairs can be created in a region for an Alibaba Cloud account.</li> * <li>Only RSA 2048-bit key pairs can be created in the Simple Application Server console.</li> * </ul> * * @param request the request parameters of CreateKeyPair CreateKeyPairRequest * @return CreateKeyPairResponse */ @Override public CompletableFuture<CreateKeyPairResponse> createKeyPair(CreateKeyPairRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateKeyPair").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateKeyPairResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateKeyPairResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>A snapshot is a point-in-time backup of a disk. Snapshots can be used to back up data, recover data after misoperations on servers, recover data after network attacks, and create custom images.</p> * <blockquote> * <p> You are not charged for creating snapshots in Simple Application Server.</p> * </blockquote> * <h3><a href="#"></a>Precautions</h3> * <ul> * <li>You can create up to three snapshots for each simple application server.</li> * <li>The maximum number of snapshots that you create per Alibaba Cloud account is triple of the number of simple application servers that are created. The value cannot be greater than 15.</li> * <li>If a simple application server is automatically released due to expiration, the snapshots created for the server are deleted.</li> * <li>If you reset a simple application server after you create a snapshot for the server, the snapshot is retained but cannot be used to restore the disks of the server.</li> * </ul> * * @param request the request parameters of CreateSnapshot CreateSnapshotRequest * @return CreateSnapshotResponse */ @Override public CompletableFuture<CreateSnapshotResponse> createSnapshot(CreateSnapshotRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("CreateSnapshot").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateSnapshotResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<CreateSnapshotResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You cannot delete commands that are being run.</p> * * @param request the request parameters of DeleteCommand DeleteCommandRequest * @return DeleteCommandResponse */ @Override public CompletableFuture<DeleteCommandResponse> deleteCommand(DeleteCommandRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteCommand").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteCommandResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteCommandResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can delete a custom image that you no longer need. After the custom image is deleted, you cannot use the custom image to reset the simple application servers that were created based on the custom image.</p> * <blockquote> * <p> To delete a shared image, you must unshare the image before you can delete it. After a custom image is unshared, you cannot query the custom image by using the Elastic Compute Service (ECS) console or API. If you want to use a custom image to create ECS instances, we recommend that you copy the custom image before you delete it. For more information, see <a href="https://help.aliyun.com/document_detail/199378.html">Copy a shared image of a simple application server in the ECS console</a>.</p> * </blockquote> * * @param request the request parameters of DeleteCustomImage DeleteCustomImageRequest * @return DeleteCustomImageResponse */ @Override public CompletableFuture<DeleteCustomImageResponse> deleteCustomImage(DeleteCustomImageRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteCustomImage").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteCustomImageResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteCustomImageResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>If a custom image is shared, you must unshare the image before you can delete it. After a custom image is unshared, you cannot query the custom image by using the Elastic Compute Service (ECS) console or by calling an ECS API operation. If you want to use a custom image to create ECS instances, we recommend that you copy the custom image before you delete it. For more information, see <a href="https://help.aliyun.com/document_detail/199378.html">Copy a custom image</a>.</p> * * @param request the request parameters of DeleteCustomImages DeleteCustomImagesRequest * @return DeleteCustomImagesResponse */ @Override public CompletableFuture<DeleteCustomImagesResponse> deleteCustomImages(DeleteCustomImagesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteCustomImages").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteCustomImagesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteCustomImagesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>After a firewall rule is deleted, your business deployed on the simple application server may become inaccessible. Before you delete a firewall rule, make sure that the firewall rule is no longer needed by the simple application server.</p> * * @param request the request parameters of DeleteFirewallRule DeleteFirewallRuleRequest * @return DeleteFirewallRuleResponse */ @Override public CompletableFuture<DeleteFirewallRuleResponse> deleteFirewallRule(DeleteFirewallRuleRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteFirewallRule").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteFirewallRuleResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteFirewallRuleResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>After a firewall rule is deleted, your business deployed on the simple application server may become inaccessible. Before you delete a firewall rule, make sure that the firewall rule is no longer needed by the simple application server.</p> * * @param request the request parameters of DeleteFirewallRules DeleteFirewallRulesRequest * @return DeleteFirewallRulesResponse */ @Override public CompletableFuture<DeleteFirewallRulesResponse> deleteFirewallRules(DeleteFirewallRulesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteFirewallRules").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteFirewallRulesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteFirewallRulesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Deletion of firewall rules does not affect the firewall rules that have been applied to simple application servers.</p> * * @param request the request parameters of DeleteFirewallTemplateRules DeleteFirewallTemplateRulesRequest * @return DeleteFirewallTemplateRulesResponse */ @Override public CompletableFuture<DeleteFirewallTemplateRulesResponse> deleteFirewallTemplateRules(DeleteFirewallTemplateRulesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteFirewallTemplateRules").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteFirewallTemplateRulesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteFirewallTemplateRulesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Deleting a firewall template does not affect the firewall rules that have been applied to simple application servers. You can delete firewall templates that you no longer need.</p> * * @param request the request parameters of DeleteFirewallTemplates DeleteFirewallTemplatesRequest * @return DeleteFirewallTemplatesResponse */ @Override public CompletableFuture<DeleteFirewallTemplatesResponse> deleteFirewallTemplates(DeleteFirewallTemplatesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteFirewallTemplates").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteFirewallTemplatesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteFirewallTemplatesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DeleteInstanceKeyPair DeleteInstanceKeyPairRequest * @return DeleteInstanceKeyPairResponse */ @Override public CompletableFuture<DeleteInstanceKeyPairResponse> deleteInstanceKeyPair(DeleteInstanceKeyPairRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteInstanceKeyPair").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteInstanceKeyPairResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteInstanceKeyPairResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You must unbind SSH key pairs that you no longer use from simple application servers before you delete the SSH key pairs.</p> * * @param request the request parameters of DeleteKeyPairs DeleteKeyPairsRequest * @return DeleteKeyPairsResponse */ @Override public CompletableFuture<DeleteKeyPairsResponse> deleteKeyPairs(DeleteKeyPairsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteKeyPairs").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteKeyPairsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteKeyPairsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can delete a snapshot if you no longer need it.</p> * <blockquote> * <p> If a custom image was created from the snapshot, delete the custom image before you delete the snapshot.</p> * </blockquote> * * @param request the request parameters of DeleteSnapshot DeleteSnapshotRequest * @return DeleteSnapshotResponse */ @Override public CompletableFuture<DeleteSnapshotResponse> deleteSnapshot(DeleteSnapshotRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteSnapshot").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteSnapshotResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteSnapshotResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DeleteSnapshots DeleteSnapshotsRequest * @return DeleteSnapshotsResponse */ @Override public CompletableFuture<DeleteSnapshotsResponse> deleteSnapshots(DeleteSnapshotsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DeleteSnapshots").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteSnapshotsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DeleteSnapshotsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeCloudAssistantAttributes DescribeCloudAssistantAttributesRequest * @return DescribeCloudAssistantAttributesResponse */ @Override public CompletableFuture<DescribeCloudAssistantAttributesResponse> describeCloudAssistantAttributes(DescribeCloudAssistantAttributesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeCloudAssistantAttributes").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeCloudAssistantAttributesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeCloudAssistantAttributesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>By default, the Cloud Assistant client is installed on simple application servers. If you have manually uninstalled the client, you must reinstall the client. Otherwise, you cannot run commands on the servers.</p> * * @param request the request parameters of DescribeCloudAssistantStatus DescribeCloudAssistantStatusRequest * @return DescribeCloudAssistantStatusResponse */ @Override public CompletableFuture<DescribeCloudAssistantStatusResponse> describeCloudAssistantStatus(DescribeCloudAssistantStatusRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeCloudAssistantStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeCloudAssistantStatusResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeCloudAssistantStatusResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeCloudMonitorAgentStatuses DescribeCloudMonitorAgentStatusesRequest * @return DescribeCloudMonitorAgentStatusesResponse */ @Override public CompletableFuture<DescribeCloudMonitorAgentStatusesResponse> describeCloudMonitorAgentStatuses(DescribeCloudMonitorAgentStatusesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeCloudMonitorAgentStatuses").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeCloudMonitorAgentStatusesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeCloudMonitorAgentStatusesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeCommandInvocations DescribeCommandInvocationsRequest * @return DescribeCommandInvocationsResponse */ @Override public CompletableFuture<DescribeCommandInvocationsResponse> describeCommandInvocations(DescribeCommandInvocationsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeCommandInvocations").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeCommandInvocationsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeCommandInvocationsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeCommands DescribeCommandsRequest * @return DescribeCommandsResponse */ @Override public CompletableFuture<DescribeCommandsResponse> describeCommands(DescribeCommandsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeCommands").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeCommandsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeCommandsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call this operation to query the error logs of databases in a Simple Database Service instance and locate faults based on the error logs.</p> * * @param request the request parameters of DescribeDatabaseErrorLogs DescribeDatabaseErrorLogsRequest * @return DescribeDatabaseErrorLogsResponse */ @Override public CompletableFuture<DescribeDatabaseErrorLogsResponse> describeDatabaseErrorLogs(DescribeDatabaseErrorLogsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDatabaseErrorLogs").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDatabaseErrorLogsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeDatabaseErrorLogsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>After you create a Simple Database Service instance, you can query the details about the instance, including CPU, memory, and disk usage, storage IOPS, and total number of connections.</p> * * @param request the request parameters of DescribeDatabaseInstanceMetricData DescribeDatabaseInstanceMetricDataRequest * @return DescribeDatabaseInstanceMetricDataResponse */ @Override public CompletableFuture<DescribeDatabaseInstanceMetricDataResponse> describeDatabaseInstanceMetricData(DescribeDatabaseInstanceMetricDataRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDatabaseInstanceMetricData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDatabaseInstanceMetricDataResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeDatabaseInstanceMetricDataResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call this operation to query the information about parameters of a Simple Database Service instance.</p> * * @param request the request parameters of DescribeDatabaseInstanceParameters DescribeDatabaseInstanceParametersRequest * @return DescribeDatabaseInstanceParametersResponse */ @Override public CompletableFuture<DescribeDatabaseInstanceParametersResponse> describeDatabaseInstanceParameters(DescribeDatabaseInstanceParametersRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDatabaseInstanceParameters").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDatabaseInstanceParametersResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeDatabaseInstanceParametersResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call this operation to query the details of Simple Database Service instances in a region, including the IDs, names, plans, database versions, public endpoints, internal endpoints, creation time, and expiration time of the instances.</p> * * @param request the request parameters of DescribeDatabaseInstances DescribeDatabaseInstancesRequest * @return DescribeDatabaseInstancesResponse */ @Override public CompletableFuture<DescribeDatabaseInstancesResponse> describeDatabaseInstances(DescribeDatabaseInstancesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDatabaseInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDatabaseInstancesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeDatabaseInstancesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can query the slow query log details of a Simple Database Service instance and locate faults based on the log details.</p> * <blockquote> * <p> Slow query log details are retained for 7 days.</p> * </blockquote> * * @param request the request parameters of DescribeDatabaseSlowLogRecords DescribeDatabaseSlowLogRecordsRequest * @return DescribeDatabaseSlowLogRecordsResponse */ @Override public CompletableFuture<DescribeDatabaseSlowLogRecordsResponse> describeDatabaseSlowLogRecords(DescribeDatabaseSlowLogRecordsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeDatabaseSlowLogRecords").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeDatabaseSlowLogRecordsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeDatabaseSlowLogRecordsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeFirewallTemplateApplyResults DescribeFirewallTemplateApplyResultsRequest * @return DescribeFirewallTemplateApplyResultsResponse */ @Override public CompletableFuture<DescribeFirewallTemplateApplyResultsResponse> describeFirewallTemplateApplyResults(DescribeFirewallTemplateApplyResultsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeFirewallTemplateApplyResults").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeFirewallTemplateApplyResultsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeFirewallTemplateApplyResultsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeFirewallTemplateRulesApplyResult DescribeFirewallTemplateRulesApplyResultRequest * @return DescribeFirewallTemplateRulesApplyResultResponse */ @Override public CompletableFuture<DescribeFirewallTemplateRulesApplyResultResponse> describeFirewallTemplateRulesApplyResult(DescribeFirewallTemplateRulesApplyResultRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeFirewallTemplateRulesApplyResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeFirewallTemplateRulesApplyResultResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeFirewallTemplateRulesApplyResultResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeFirewallTemplates DescribeFirewallTemplatesRequest * @return DescribeFirewallTemplatesResponse */ @Override public CompletableFuture<DescribeFirewallTemplatesResponse> describeFirewallTemplates(DescribeFirewallTemplatesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeFirewallTemplates").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeFirewallTemplatesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeFirewallTemplatesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeInstanceKeyPair DescribeInstanceKeyPairRequest * @return DescribeInstanceKeyPairResponse */ @Override public CompletableFuture<DescribeInstanceKeyPairResponse> describeInstanceKeyPair(DescribeInstanceKeyPairRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeInstanceKeyPair").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeInstanceKeyPairResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeInstanceKeyPairResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeInstancePasswordsSetting DescribeInstancePasswordsSettingRequest * @return DescribeInstancePasswordsSettingResponse */ @Override public CompletableFuture<DescribeInstancePasswordsSettingResponse> describeInstancePasswordsSetting(DescribeInstancePasswordsSettingRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeInstancePasswordsSetting").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeInstancePasswordsSettingResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeInstancePasswordsSettingResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeInstanceVncUrl DescribeInstanceVncUrlRequest * @return DescribeInstanceVncUrlResponse */ @Override public CompletableFuture<DescribeInstanceVncUrlResponse> describeInstanceVncUrl(DescribeInstanceVncUrlRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeInstanceVncUrl").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeInstanceVncUrlResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeInstanceVncUrlResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> After you execute a command, the command may not succeed or return the expected results. You can call this operation to query the execution result of a command.</p> * <ul> * <li>You can query the execution results that were generated within the last two weeks. A maximum of 100,000 entries of execution results can be retained.</li> * </ul> * * @param request the request parameters of DescribeInvocationResult DescribeInvocationResultRequest * @return DescribeInvocationResultResponse */ @Override public CompletableFuture<DescribeInvocationResultResponse> describeInvocationResult(DescribeInvocationResultRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeInvocationResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeInvocationResultResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeInvocationResultResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> After you execute a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.</p> * <ul> * <li>You can query the execution results that were generated within the last two weeks. Up to 100,000 entries of execution results can be retained.</li> * </ul> * * @param request the request parameters of DescribeInvocations DescribeInvocationsRequest * @return DescribeInvocationsResponse */ @Override public CompletableFuture<DescribeInvocationsResponse> describeInvocations(DescribeInvocationsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeInvocations").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeInvocationsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeInvocationsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeMonitorData DescribeMonitorDataRequest * @return DescribeMonitorDataResponse */ @Override public CompletableFuture<DescribeMonitorDataResponse> describeMonitorData(DescribeMonitorDataRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeMonitorData").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeMonitorDataResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeMonitorDataResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DescribeSecurityAgentStatus DescribeSecurityAgentStatusRequest * @return DescribeSecurityAgentStatusResponse */ @Override public CompletableFuture<DescribeSecurityAgentStatusResponse> describeSecurityAgentStatus(DescribeSecurityAgentStatusRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DescribeSecurityAgentStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeSecurityAgentStatusResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DescribeSecurityAgentStatusResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>If you want to change the SSH key pairs that are bound to your simple application servers or your end user no longer needs to access a specific simple application server, you can unbind the SSH key pairs from simple application servers to improve the security of the simple application servers or restrict access to the specific simple application server.</p> * * @param request the request parameters of DetachKeyPair DetachKeyPairRequest * @return DetachKeyPairResponse */ @Override public CompletableFuture<DetachKeyPairResponse> detachKeyPair(DetachKeyPairRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DetachKeyPair").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DetachKeyPairResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DetachKeyPairResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of DisableFirewallRule DisableFirewallRuleRequest * @return DisableFirewallRuleResponse */ @Override public CompletableFuture<DisableFirewallRuleResponse> disableFirewallRule(DisableFirewallRuleRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DisableFirewallRule").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DisableFirewallRuleResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<DisableFirewallRuleResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of EnableFirewallRule EnableFirewallRuleRequest * @return EnableFirewallRuleResponse */ @Override public CompletableFuture<EnableFirewallRuleResponse> enableFirewallRule(EnableFirewallRuleRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("EnableFirewallRule").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(EnableFirewallRuleResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<EnableFirewallRuleResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call this operation to import an existing key pair to the Simple Application Server console. This way, you can use the key pair to log on to simple application servers. The existing key pair that you want to import must use a supported encryption method. For more information, see <a href="https://help.aliyun.com/document_detail/59085.html">Q2: Which encryption methods must be used by key pairs when I import existing key pairs to the Simple Application Server console?</a></p> * * @param request the request parameters of ImportKeyPair ImportKeyPairRequest * @return ImportKeyPairResponse */ @Override public CompletableFuture<ImportKeyPairResponse> importKeyPair(ImportKeyPairRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ImportKeyPair").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ImportKeyPairResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ImportKeyPairResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>To run commands on your simple application servers, you must install the Cloud Assistant client on your servers. You can call the <a href="https://help.aliyun.com/document_detail/439512.html">DescribeCloudAssistantStatus</a> operation to check whether the Cloud Assistant client is installed on your simple application servers. If you have not installed the Cloud Assistant client, you can call the InstallCloudAssistant operation to install the client. Then, you can call the <a href="https://help.aliyun.com/document_detail/190443.html">RebootInstance</a> operation to restart the servers to allow the client to take effect.</p> * * @param request the request parameters of InstallCloudAssistant InstallCloudAssistantRequest * @return InstallCloudAssistantResponse */ @Override public CompletableFuture<InstallCloudAssistantResponse> installCloudAssistant(InstallCloudAssistantRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("InstallCloudAssistant").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(InstallCloudAssistantResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<InstallCloudAssistantResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of InstallCloudMonitorAgent InstallCloudMonitorAgentRequest * @return InstallCloudMonitorAgentResponse */ @Override public CompletableFuture<InstallCloudMonitorAgentResponse> installCloudMonitorAgent(InstallCloudMonitorAgentRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("InstallCloudMonitorAgent").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(InstallCloudMonitorAgentResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<InstallCloudMonitorAgentResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> The simple application servers for which you want to call the operation must meet the following conditions. If a simple application server cannot meet the conditions, you must call this operation again. * * The simple application servers are in the <code>Running</code> state. You can call the <a href="https://help.aliyun.com/document_detail/2361065.html">ListInstances</a> operation to query the status of simple application servers. * * Cloud Assistant Agent is installed on the simple application servers. For more information, see <a href="https://help.aliyun.com/document_detail/2361030.html">InstallCloudAssistant</a>. * * If you run a PowerShell command, make sure that the PowerShell module is configured for the simple application servers.</p> * <ul> * <li>The command may fail to be run due to the abnormal states of simple application servers, network exceptions, or exceptions in Cloud Assistant Agent. If the command fails to be run, no execution information is generated.</li> * <li>If you enable the custom parameter feature when you create a command, you must set the <code>Parameters</code> parameter to specify custom parameters when you run the command.</li> * <li>When you call this operation, you can select only one common command or a custom command that you have created.</li> * </ul> * * @param request the request parameters of InvokeCommand InvokeCommandRequest * @return InvokeCommandResponse */ @Override public CompletableFuture<InvokeCommandResponse> invokeCommand(InvokeCommandRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("InvokeCommand").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(InvokeCommandResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<InvokeCommandResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ListCustomImageShareAccounts ListCustomImageShareAccountsRequest * @return ListCustomImageShareAccountsResponse */ @Override public CompletableFuture<ListCustomImageShareAccountsResponse> listCustomImageShareAccounts(ListCustomImageShareAccountsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListCustomImageShareAccounts").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListCustomImageShareAccountsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListCustomImageShareAccountsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ListCustomImages ListCustomImagesRequest * @return ListCustomImagesResponse */ @Override public CompletableFuture<ListCustomImagesResponse> listCustomImages(ListCustomImagesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListCustomImages").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListCustomImagesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListCustomImagesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>The <code>InstanceId</code>, <code>DiskIds</code>, and <code>ResourceGroupId</code> parameters are optional. However, you can specify them as filter conditions and combine them with the logical AND operator to filter disks that you want to query.</p> * * @param request the request parameters of ListDisks ListDisksRequest * @return ListDisksResponse */ @Override public CompletableFuture<ListDisksResponse> listDisks(ListDisksRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListDisks").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListDisksResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListDisksResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call the ListFirewallRules operation to query the firewall rule details of a simple application server, including the port range, firewall rule ID, and transport layer protocol.</p> * * @param request the request parameters of ListFirewallRules ListFirewallRulesRequest * @return ListFirewallRulesResponse */ @Override public CompletableFuture<ListFirewallRulesResponse> listFirewallRules(ListFirewallRulesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListFirewallRules").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListFirewallRulesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListFirewallRulesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can query details about one or more images in a specified region, including the IDs, names, and types of the images.</p> * * @param request the request parameters of ListImages ListImagesRequest * @return ListImagesResponse */ @Override public CompletableFuture<ListImagesResponse> listImages(ListImagesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListImages").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListImagesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListImagesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>If the plan of your simple application server does not meet your business requirements, you can call the ListInstancePlansModification operation to obtain a list of plans that can be upgraded for your simple application server. Then, you can call the <a href="https://help.aliyun.com/document_detail/190445.html">UpgradeInstance</a> operation to upgrade the plan.</p> * <blockquote> * <p> We recommend that you create snapshots for the disks of your simple application server to back up data before you upgrade the plan. For more information, see <a href="https://help.aliyun.com/document_detail/190452.html">CreateSnapshot</a>. * For the precautions about plan upgrade, see <a href="https://help.aliyun.com/document_detail/61433.html">Upgrade a simple application server</a>.</p> * </blockquote> * * @param request the request parameters of ListInstancePlansModification ListInstancePlansModificationRequest * @return ListInstancePlansModificationResponse */ @Override public CompletableFuture<ListInstancePlansModificationResponse> listInstancePlansModification(ListInstancePlansModificationRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListInstancePlansModification").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListInstancePlansModificationResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListInstancePlansModificationResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ListInstanceStatus ListInstanceStatusRequest * @return ListInstanceStatusResponse */ @Override public CompletableFuture<ListInstanceStatusResponse> listInstanceStatus(ListInstanceStatusRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListInstanceStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListInstanceStatusResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListInstanceStatusResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call this operation to query the details of simple application servers in a specified region, including the names, public IP addresses, internal IP addresses, creation time, and expiration time of the servers.</p> * * @param request the request parameters of ListInstances ListInstancesRequest * @return ListInstancesResponse */ @Override public CompletableFuture<ListInstancesResponse> listInstances(ListInstancesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListInstancesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListInstancesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can query the details of data transfer plans of simple application servers, including the total quota, used quota, unused quota, and excess data transfers in the current month. * Simple Application Server provides data transfer plans that can be used to offset data transfer fees. You are charged for excess data transfers. Take note of the following items:</p> * <ul> * <li>Only outbound data transfers of simple application servers over the Internet are calculated. Outbound data transfers include the data transfer quota and the excess data transfers beyond the quota. Inbound data transfers of simple application servers over the Internet are not calculated.</li> * <li>Outbound data transfers from simple application servers to other Alibaba Cloud services over the Internet first consume data transfer quotas. If the quotas are exhausted, you are charged for excess data transfers.</li> * <li>You are not charged for data transfers between simple application servers within the same virtual private cloud (VPC). * For more information, see <a href="https://help.aliyun.com/document_detail/86281.html">Quotas and billing of data transfers</a>.</li> * </ul> * * @param request the request parameters of ListInstancesTrafficPackages ListInstancesTrafficPackagesRequest * @return ListInstancesTrafficPackagesResponse */ @Override public CompletableFuture<ListInstancesTrafficPackagesResponse> listInstancesTrafficPackages(ListInstancesTrafficPackagesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListInstancesTrafficPackages").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListInstancesTrafficPackagesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListInstancesTrafficPackagesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ListKeyPairs ListKeyPairsRequest * @return ListKeyPairsResponse */ @Override public CompletableFuture<ListKeyPairsResponse> listKeyPairs(ListKeyPairsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListKeyPairs").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListKeyPairsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListKeyPairsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can query the details of all plans provided by Simple Application Server in a region, including the IDs, prices, disk sizes, and disk categories of the plans.</p> * * @param request the request parameters of ListPlans ListPlansRequest * @return ListPlansResponse */ @Override public CompletableFuture<ListPlansResponse> listPlans(ListPlansRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListPlans").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListPlansResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListPlansResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>The query results include all the Alibaba Cloud regions where Simple Application Server is supported on the international site (alibabacloud.com) and the China site (aliyun.com).</p> * * @param request the request parameters of ListRegions ListRegionsRequest * @return ListRegionsResponse */ @Override public CompletableFuture<ListRegionsResponse> listRegions(ListRegionsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListRegions").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListRegionsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListRegionsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>The <code>InstanceId</code>, <code>DiskId</code>, <code>SnapshotIds</code>, and <code>ResourceGroupId</code> parameters are optional. However, you can specify them as filter conditions and combine them with the logical AND operator to filter snapshots that you want to query.</p> * * @param request the request parameters of ListSnapshots ListSnapshotsRequest * @return ListSnapshotsResponse */ @Override public CompletableFuture<ListSnapshotsResponse> listSnapshots(ListSnapshotsRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListSnapshots").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListSnapshotsResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListSnapshotsResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ListTagResources ListTagResourcesRequest * @return ListTagResourcesResponse */ @Override public CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTagResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTagResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ListTagResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>After you create a simple application server, you can log on to the simple application server to build environments and applications on the server.</p> * * @param request the request parameters of LoginInstance LoginInstanceRequest * @return LoginInstanceResponse */ @Override public CompletableFuture<LoginInstanceResponse> loginInstance(LoginInstanceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("LoginInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(LoginInstanceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<LoginInstanceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call this operation to modify the description of a Simple Database Service instance.</p> * <h3>QPS limit</h3> * <p>You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/347607.html">QPS limits</a>.</p> * * @param request the request parameters of ModifyDatabaseInstanceDescription ModifyDatabaseInstanceDescriptionRequest * @return ModifyDatabaseInstanceDescriptionResponse */ @Override public CompletableFuture<ModifyDatabaseInstanceDescriptionResponse> modifyDatabaseInstanceDescription(ModifyDatabaseInstanceDescriptionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyDatabaseInstanceDescription").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyDatabaseInstanceDescriptionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyDatabaseInstanceDescriptionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>After you create a Simple Database Service instance, you can view the parameters of the instance or modify the parameters of the instance based on your business requirements.</p> * <h3>QPS limit</h3> * <p>You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/347607.html">QPS limits</a>.</p> * * @param request the request parameters of ModifyDatabaseInstanceParameter ModifyDatabaseInstanceParameterRequest * @return ModifyDatabaseInstanceParameterResponse */ @Override public CompletableFuture<ModifyDatabaseInstanceParameterResponse> modifyDatabaseInstanceParameter(ModifyDatabaseInstanceParameterRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyDatabaseInstanceParameter").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyDatabaseInstanceParameterResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyDatabaseInstanceParameterResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ModifyFirewallRule ModifyFirewallRuleRequest * @return ModifyFirewallRuleResponse */ @Override public CompletableFuture<ModifyFirewallRuleResponse> modifyFirewallRule(ModifyFirewallRuleRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyFirewallRule").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyFirewallRuleResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyFirewallRuleResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Modifying a firewall template does not affect the firewall rules that have been applied to simple application servers.</p> * * @param request the request parameters of ModifyFirewallTemplate ModifyFirewallTemplateRequest * @return ModifyFirewallTemplateResponse */ @Override public CompletableFuture<ModifyFirewallTemplateResponse> modifyFirewallTemplate(ModifyFirewallTemplateRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyFirewallTemplate").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyFirewallTemplateResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyFirewallTemplateResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Custom images can be shared to ECS. If the configurations of your simple application server cannot meet your business requirements, or you want to deploy your business on ECS instances, you can share your custom image to ECS to transfer your business from Simple Application Server to ECS.</p> * <blockquote> * <p> The region in which the shared image resides in ECS is the same as the region in which the custom image resides in Simple Application Server. * You can unshare a custom image based on your business requirements or when you want to delete the custom image. After you unshare a custom image, take note of the following items:</p> * </blockquote> * <ul> * <li>You cannot query or use the custom image by using the ECS console or API.</li> * <li>You cannot re-initialize the disks of the ECS instances that were created based on the shared image.</li> * </ul> * * @param request the request parameters of ModifyImageShareStatus ModifyImageShareStatusRequest * @return ModifyImageShareStatusResponse */ @Override public CompletableFuture<ModifyImageShareStatusResponse> modifyImageShareStatus(ModifyImageShareStatusRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyImageShareStatus").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyImageShareStatusResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyImageShareStatusResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of ModifyInstanceVncPassword ModifyInstanceVncPasswordRequest * @return ModifyInstanceVncPasswordResponse */ @Override public CompletableFuture<ModifyInstanceVncPasswordResponse> modifyInstanceVncPassword(ModifyInstanceVncPasswordRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ModifyInstanceVncPassword").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ModifyInstanceVncPasswordResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ModifyInstanceVncPasswordResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> Only simple application servers that are in the Running state can be restarted.</p> * <ul> * <li>After you restart a simple application server, it enters the Starting state.</li> * </ul> * * @param request the request parameters of RebootInstance RebootInstanceRequest * @return RebootInstanceResponse */ @Override public CompletableFuture<RebootInstanceResponse> rebootInstance(RebootInstanceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RebootInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RebootInstanceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RebootInstanceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of RebootInstances RebootInstancesRequest * @return RebootInstancesResponse */ @Override public CompletableFuture<RebootInstancesResponse> rebootInstances(RebootInstancesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RebootInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RebootInstancesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RebootInstancesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>If you no longer need to use a public endpoint to access a Simple Database Service instance, you can release the public endpoint.</p> * <h3>QPS limit</h3> * <p>You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/347607.html">QPS limits</a>.</p> * * @param request the request parameters of ReleasePublicConnection ReleasePublicConnectionRequest * @return ReleasePublicConnectionResponse */ @Override public CompletableFuture<ReleasePublicConnectionResponse> releasePublicConnection(ReleasePublicConnectionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ReleasePublicConnection").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ReleasePublicConnectionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ReleasePublicConnectionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of RemoveCustomImageShareAccount RemoveCustomImageShareAccountRequest * @return RemoveCustomImageShareAccountResponse */ @Override public CompletableFuture<RemoveCustomImageShareAccountResponse> removeCustomImageShareAccount(RemoveCustomImageShareAccountRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RemoveCustomImageShareAccount").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RemoveCustomImageShareAccountResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RemoveCustomImageShareAccountResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> Before you call this operation, we recommend that you understand the billing of Simple Application Server. For more information, see <a href="https://help.aliyun.com/document_detail/58623.html">Billable items</a>.</p> * <ul> * <li>Before you call this operation, make sure that the balance in your account is sufficient. If the balance in your account is insufficient, the renewal fails.</li> * </ul> * * @param request the request parameters of RenewInstance RenewInstanceRequest * @return RenewInstanceResponse */ @Override public CompletableFuture<RenewInstanceResponse> renewInstance(RenewInstanceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RenewInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RenewInstanceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RenewInstanceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>If the password of your Simple Database Service instance is not strong, you can call this operation to change the password of the administrator account of the instance. To ensure security of the instance, we recommend that you regularly change the password of the instance.</p> * <h3>QPS limit</h3> * <p>You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/347607.html">QPS limits</a>.</p> * * @param request the request parameters of ResetDatabaseAccountPassword ResetDatabaseAccountPasswordRequest * @return ResetDatabaseAccountPasswordResponse */ @Override public CompletableFuture<ResetDatabaseAccountPasswordResponse> resetDatabaseAccountPassword(ResetDatabaseAccountPasswordRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ResetDatabaseAccountPassword").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ResetDatabaseAccountPasswordResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ResetDatabaseAccountPasswordResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> You can call this operation only if the associated simple application server is in the Stopped state.</p> * <ul> * <li>If you restore a disk from a snapshot, the incremental data after the snapshot is created is lost. We recommend that you back up the data before you perform this operation.</li> * </ul> * <h3><a href="#"></a>Precautions</h3> * <p>Resetting the system or changing the image of a simple application server clears the disk data on the server. Snapshots created before the reset or change are retained but cannot be used to restore disks.</p> * * @param request the request parameters of ResetDisk ResetDiskRequest * @return ResetDiskResponse */ @Override public CompletableFuture<ResetDiskResponse> resetDisk(ResetDiskRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ResetDisk").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ResetDiskResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ResetDiskResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can reset a simple application server to re-install its applications or operating system and re-initialize the server. You can reset a simple application server by resetting the current system or changing the image.</p> * <ul> * <li>Reset the current system: You can re-install the operating system without changing the image.</li> * <li>Change the image: You can select another Alibaba Cloud image or a custom image to re-install the operating system.</li> * </ul> * <h3><a href="#"></a>Precautions</h3> * <ul> * <li>Resetting the system or changing the image of a simple application server clears the disk data on the server. Back up the data as needed.</li> * <li>After you reset a simple application server, monitoring may fail. In this case, you can use one of the following methods to install the CloudMonitor agent on the server:<ul> * <li>Connect to the server: For more information, see <a href="https://help.aliyun.com/document_detail/183482.html">Manually install the CloudMonitor agent for C++ on an ECS instance</a>.</li> * <li>Use Command Assistant: For more information, see <a href="https://help.aliyun.com/document_detail/438681.html">Use Command Assistant</a>. You can obtain the command that can be used to install CloudMonitor from the &quot;Common commands&quot; section of the <a href="https://help.aliyun.com/document_detail/438681.html">Use Command Assistant</a> topic.</li> * </ul> * </li> * </ul> * <h3><a href="#"></a>Limits</h3> * <ul> * <li>Snapshots that are created before the reset are retained, but the snapshots cannot be used to restore the disks of the server.</li> * <li>You cannot reset simple application servers that were created from custom images that contain data of data disks.</li> * <li>If you reset a simple application server by replacing the existing image with a custom image, the following limits apply:<ul> * <li>The custom image must reside in the same region as the current server.</li> * <li>The custom image cannot be created based on the current server. If you want to restore the data on the server, you can use a snapshot of the server to restore disk data.</li> * <li>If your simple application server resides in a region outside the Chinese mainland, you cannot switch the operating system of the server between Windows Server and Linux. You cannot use a Windows Server custom image to reset a Linux simple application server. Similarly, you cannot use a Linux custom image to reset a Windows Server simple application server. You can switch the operating systems of simple application servers only between Windows Server versions or between Linux distributions.</li> * <li>The following limits apply to the disks attached to the simple application server:<ul> * <li>If the custom image contains a system disk and a data disk but only a system disk is attached to the simple application server, you cannot use the custom image to reset the simple application server.</li> * <li>If the system disk size of the custom image is greater than the system disk size of the simple application server, you cannot directly use the custom image to reset the simple application server.</li> * <li>Only if the system disk size of the simple application server is greater than or equal to the system disk size of the custom image, you can use the custom image to reset the simple application server. To increase the system disk size of your server, you can upgrade the server configuration. For more information, see Upgrade a simple application server.</li> * <li>If the data disk size of the custom image is greater than the data disk size of the simple application server, you cannot use the custom image to reset the simple application server.</li> * </ul> * </li> * </ul> * </li> * </ul> * * @param request the request parameters of ResetSystem ResetSystemRequest * @return ResetSystemResponse */ @Override public CompletableFuture<ResetSystemResponse> resetSystem(ResetSystemRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ResetSystem").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ResetSystemResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<ResetSystemResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call this operation to restart a Simple Database Service instance that is in the Running state.</p> * <h3>QPS limit</h3> * <p>You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see <a href="https://help.aliyun.com/document_detail/347607.html">QPS limits</a>.</p> * * @param request the request parameters of RestartDatabaseInstance RestartDatabaseInstanceRequest * @return RestartDatabaseInstanceResponse */ @Override public CompletableFuture<RestartDatabaseInstanceResponse> restartDatabaseInstance(RestartDatabaseInstanceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RestartDatabaseInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RestartDatabaseInstanceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RestartDatabaseInstanceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>Command Assistant is an automated O\&amp;M tool for Simple Application Server. You can maintain simple application servers by running shell, PowerShell, and batch commands in the Simple Application Server console without remotely logging on to the servers. * Before you use Command Assistant, take note of the following items:</p> * <ul> * <li>The simple application server must be in the Running state.</li> * <li>The Cloud Assistant client is installed on the server. By default, the Cloud Assistant client is installed on simple application servers. If you have manually uninstalled the client, you must reinstall it. For more information, see <a href="https://help.aliyun.com/document_detail/64921.html">Install the Cloud Assistant Agent</a>.</li> * </ul> * * @param request the request parameters of RunCommand RunCommandRequest * @return RunCommandResponse */ @Override public CompletableFuture<RunCommandResponse> runCommand(RunCommandRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RunCommand").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RunCommandResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<RunCommandResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call this operation to start a Simple Database Service instance that is in the Stopped state.</p> * * @param request the request parameters of StartDatabaseInstance StartDatabaseInstanceRequest * @return StartDatabaseInstanceResponse */ @Override public CompletableFuture<StartDatabaseInstanceResponse> startDatabaseInstance(StartDatabaseInstanceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("StartDatabaseInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StartDatabaseInstanceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<StartDatabaseInstanceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call this operation to start a simple application server that is in the Stopped state.</p> * * @param request the request parameters of StartInstance StartInstanceRequest * @return StartInstanceResponse */ @Override public CompletableFuture<StartInstanceResponse> startInstance(StartInstanceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("StartInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StartInstanceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<StartInstanceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of StartInstances StartInstancesRequest * @return StartInstancesResponse */ @Override public CompletableFuture<StartInstancesResponse> startInstances(StartInstancesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("StartInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StartInstancesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<StartInstancesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of StartTerminalSession StartTerminalSessionRequest * @return StartTerminalSessionResponse */ @Override public CompletableFuture<StartTerminalSessionResponse> startTerminalSession(StartTerminalSessionRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("StartTerminalSession").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StartTerminalSessionResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<StartTerminalSessionResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can call this operation to stop a Simple Database Service instance that is in the Running state. After the instance is stopped, you cannot log on to or access the instance.</p> * * @param request the request parameters of StopDatabaseInstance StopDatabaseInstanceRequest * @return StopDatabaseInstanceResponse */ @Override public CompletableFuture<StopDatabaseInstanceResponse> stopDatabaseInstance(StopDatabaseInstanceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("StopDatabaseInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StopDatabaseInstanceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<StopDatabaseInstanceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p>You can stop a simple application server that you do not use for the time being.</p> * <blockquote> * <p> Stopping a simple application server may interrupt your business. We recommend that you perform this operation during off-peak hours.</p> * </blockquote> * * @param request the request parameters of StopInstance StopInstanceRequest * @return StopInstanceResponse */ @Override public CompletableFuture<StopInstanceResponse> stopInstance(StopInstanceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("StopInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StopInstanceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<StopInstanceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of StopInstances StopInstancesRequest * @return StopInstancesResponse */ @Override public CompletableFuture<StopInstancesResponse> stopInstances(StopInstancesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("StopInstances").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(StopInstancesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<StopInstancesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of TagResources TagResourcesRequest * @return TagResourcesResponse */ @Override public CompletableFuture<TagResourcesResponse> tagResources(TagResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("TagResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(TagResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<TagResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of UntagResources UntagResourcesRequest * @return UntagResourcesResponse */ @Override public CompletableFuture<UntagResourcesResponse> untagResources(UntagResourcesRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UntagResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UntagResourcesResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UntagResourcesResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of UpdateCommandAttribute UpdateCommandAttributeRequest * @return UpdateCommandAttributeResponse */ @Override public CompletableFuture<UpdateCommandAttributeResponse> updateCommandAttribute(UpdateCommandAttributeRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateCommandAttribute").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateCommandAttributeResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpdateCommandAttributeResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of UpdateDiskAttribute UpdateDiskAttributeRequest * @return UpdateDiskAttributeResponse */ @Override public CompletableFuture<UpdateDiskAttributeResponse> updateDiskAttribute(UpdateDiskAttributeRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateDiskAttribute").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateDiskAttributeResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpdateDiskAttributeResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <h2><a href="#"></a>Usage notes</h2> * <p>After you change the password of a simple application server, you must restart the server by calling the <a href="https://help.aliyun.com/document_detail/190443.html">RebootInstance</a> operation for the new password to take effect.</p> * * @param request the request parameters of UpdateInstanceAttribute UpdateInstanceAttributeRequest * @return UpdateInstanceAttributeResponse */ @Override public CompletableFuture<UpdateInstanceAttributeResponse> updateInstanceAttribute(UpdateInstanceAttributeRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateInstanceAttribute").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateInstanceAttributeResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpdateInstanceAttributeResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of UpdateSnapshotAttribute UpdateSnapshotAttributeRequest * @return UpdateSnapshotAttributeResponse */ @Override public CompletableFuture<UpdateSnapshotAttributeResponse> updateSnapshotAttribute(UpdateSnapshotAttributeRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpdateSnapshotAttribute").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateSnapshotAttributeResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpdateSnapshotAttributeResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * <b>description</b> : * <p> The plan of a simple application server can only be upgraded. For more information about plans, see <a href="https://help.aliyun.com/document_detail/58623.html">Billable items</a>.</p> * <ul> * <li>Before you call this operation, make sure that the balance in your account is sufficient. If the balance in your account is insufficient, the upgrade fails.</li> * </ul> * * @param request the request parameters of UpgradeInstance UpgradeInstanceRequest * @return UpgradeInstanceResponse */ @Override public CompletableFuture<UpgradeInstanceResponse> upgradeInstance(UpgradeInstanceRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UpgradeInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpgradeInstanceResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UpgradeInstanceResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } /** * @param request the request parameters of UploadInstanceKeyPair UploadInstanceKeyPairRequest * @return UploadInstanceKeyPairResponse */ @Override public CompletableFuture<UploadInstanceKeyPairResponse> uploadInstanceKeyPair(UploadInstanceKeyPairRequest request) { try { this.handler.validateRequestModel(request); TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("UploadInstanceKeyPair").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request); ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UploadInstanceKeyPairResponse.create()); return this.handler.execute(params); } catch (Exception e) { CompletableFuture<UploadInstanceKeyPairResponse> future = new CompletableFuture<>(); future.completeExceptionally(e); return future; } } }
0
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service
java-sources/com/aliyun/alibabacloud-swas_open20200601/4.0.0/com/aliyun/sdk/service/swas_open20200601/DefaultAsyncClientBuilder.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.swas_open20200601; import com.aliyun.sdk.gateway.pop.BaseClientBuilder; public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> { @Override protected String serviceName() { return "swas_open20200601"; } @Override protected final AsyncClient buildClient() { return new DefaultAsyncClient(super.applyClientConfiguration()); } }
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/AddCustomImageShareAccountRequest.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 AddCustomImageShareAccountRequest} extends {@link RequestModel} * * <p>AddCustomImageShareAccountRequest</p> */ public class AddCustomImageShareAccountRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Account") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<Long> account; @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("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private AddCustomImageShareAccountRequest(Builder builder) { super(builder); this.account = builder.account; this.clientToken = builder.clientToken; this.imageId = builder.imageId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static AddCustomImageShareAccountRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return account */ public java.util.List<Long> getAccount() { return this.account; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<AddCustomImageShareAccountRequest, Builder> { private java.util.List<Long> account; private String clientToken; private String imageId; private String regionId; private Builder() { super(); } private Builder(AddCustomImageShareAccountRequest request) { super(request); this.account = request.account; this.clientToken = request.clientToken; this.imageId = request.imageId; this.regionId = request.regionId; } /** * <p>The IDs of the Alibaba Cloud accounts with which you want to share the custom image.</p> * <p>This parameter is required.</p> */ public Builder account(java.util.List<Long> account) { this.putQueryParameter("Account", account); this.account = account; return this; } /** * <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 custom image.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>m-saacssasc****</p> */ public Builder imageId(String imageId) { this.putQueryParameter("ImageId", imageId); this.imageId = imageId; 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 AddCustomImageShareAccountRequest build() { return new AddCustomImageShareAccountRequest(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/AddCustomImageShareAccountResponse.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 AddCustomImageShareAccountResponse} extends {@link TeaModel} * * <p>AddCustomImageShareAccountResponse</p> */ public class AddCustomImageShareAccountResponse 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 AddCustomImageShareAccountResponseBody body; private AddCustomImageShareAccountResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static AddCustomImageShareAccountResponse 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 AddCustomImageShareAccountResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<AddCustomImageShareAccountResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(AddCustomImageShareAccountResponseBody body); @Override AddCustomImageShareAccountResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<AddCustomImageShareAccountResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private AddCustomImageShareAccountResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(AddCustomImageShareAccountResponse 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(AddCustomImageShareAccountResponseBody body) { this.body = body; return this; } @Override public AddCustomImageShareAccountResponse build() { return new AddCustomImageShareAccountResponse(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/AddCustomImageShareAccountResponseBody.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 AddCustomImageShareAccountResponseBody} extends {@link TeaModel} * * <p>AddCustomImageShareAccountResponseBody</p> */ public class AddCustomImageShareAccountResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private AddCustomImageShareAccountResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static AddCustomImageShareAccountResponseBody 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 AddCustomImageShareAccountResponseBody build() { return new AddCustomImageShareAccountResponseBody(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/AllocatePublicConnectionRequest.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 AllocatePublicConnectionRequest} extends {@link RequestModel} * * <p>AllocatePublicConnectionRequest</p> */ public class AllocatePublicConnectionRequest 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("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 AllocatePublicConnectionRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.databaseInstanceId = builder.databaseInstanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static AllocatePublicConnectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return databaseInstanceId */ public String getDatabaseInstanceId() { return this.databaseInstanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<AllocatePublicConnectionRequest, Builder> { private String clientToken; private String databaseInstanceId; private String regionId; private Builder() { super(); } private Builder(AllocatePublicConnectionRequest request) { super(request); this.clientToken = request.clientToken; this.databaseInstanceId = request.databaseInstanceId; 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 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 AllocatePublicConnectionRequest build() { return new AllocatePublicConnectionRequest(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/AllocatePublicConnectionResponse.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 AllocatePublicConnectionResponse} extends {@link TeaModel} * * <p>AllocatePublicConnectionResponse</p> */ public class AllocatePublicConnectionResponse 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 AllocatePublicConnectionResponseBody body; private AllocatePublicConnectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static AllocatePublicConnectionResponse 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 AllocatePublicConnectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<AllocatePublicConnectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(AllocatePublicConnectionResponseBody body); @Override AllocatePublicConnectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<AllocatePublicConnectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private AllocatePublicConnectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(AllocatePublicConnectionResponse 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(AllocatePublicConnectionResponseBody body) { this.body = body; return this; } @Override public AllocatePublicConnectionResponse build() { return new AllocatePublicConnectionResponse(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/AllocatePublicConnectionResponseBody.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 AllocatePublicConnectionResponseBody} extends {@link TeaModel} * * <p>AllocatePublicConnectionResponseBody</p> */ public class AllocatePublicConnectionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PublicConnection") private String publicConnection; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private AllocatePublicConnectionResponseBody(Builder builder) { this.publicConnection = builder.publicConnection; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static AllocatePublicConnectionResponseBody create() { return builder().build(); } /** * @return publicConnection */ public String getPublicConnection() { return this.publicConnection; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String publicConnection; private String requestId; /** * <p>The public endpoint that is assigned to the Simple Database Service instance.</p> * * <strong>example:</strong> * <p>db-38263fa955774501a2ae1bdaed6f****.mysql.rds.aliyuncs.com</p> */ public Builder publicConnection(String publicConnection) { this.publicConnection = publicConnection; 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 AllocatePublicConnectionResponseBody build() { return new AllocatePublicConnectionResponseBody(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/ApplyFirewallTemplateRequest.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 ApplyFirewallTemplateRequest} extends {@link RequestModel} * * <p>ApplyFirewallTemplateRequest</p> */ public class ApplyFirewallTemplateRequest 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("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 ApplyFirewallTemplateRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.firewallTemplateId = builder.firewallTemplateId; this.instanceIds = builder.instanceIds; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static ApplyFirewallTemplateRequest 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 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<ApplyFirewallTemplateRequest, Builder> { private String clientToken; private String firewallTemplateId; private java.util.List<String> instanceIds; private String regionId; private Builder() { super(); } private Builder(ApplyFirewallTemplateRequest request) { super(request); this.clientToken = request.clientToken; this.firewallTemplateId = request.firewallTemplateId; 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 <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 IDs of the 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 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 ApplyFirewallTemplateRequest build() { return new ApplyFirewallTemplateRequest(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/ApplyFirewallTemplateResponse.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 ApplyFirewallTemplateResponse} extends {@link TeaModel} * * <p>ApplyFirewallTemplateResponse</p> */ public class ApplyFirewallTemplateResponse 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 ApplyFirewallTemplateResponseBody body; private ApplyFirewallTemplateResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ApplyFirewallTemplateResponse 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 ApplyFirewallTemplateResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ApplyFirewallTemplateResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ApplyFirewallTemplateResponseBody body); @Override ApplyFirewallTemplateResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ApplyFirewallTemplateResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ApplyFirewallTemplateResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ApplyFirewallTemplateResponse 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(ApplyFirewallTemplateResponseBody body) { this.body = body; return this; } @Override public ApplyFirewallTemplateResponse build() { return new ApplyFirewallTemplateResponse(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/ApplyFirewallTemplateResponseBody.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 ApplyFirewallTemplateResponseBody} extends {@link TeaModel} * * <p>ApplyFirewallTemplateResponseBody</p> */ public class ApplyFirewallTemplateResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TaskId") private String taskId; private ApplyFirewallTemplateResponseBody(Builder builder) { this.requestId = builder.requestId; this.taskId = builder.taskId; } public static Builder builder() { return new Builder(); } public static ApplyFirewallTemplateResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return taskId */ public String getTaskId() { return this.taskId; } public static final class Builder { private String requestId; private String taskId; /** * <p>The 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 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; } public ApplyFirewallTemplateResponseBody build() { return new ApplyFirewallTemplateResponseBody(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/AttachKeyPairRequest.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 AttachKeyPairRequest} extends {@link RequestModel} * * <p>AttachKeyPairRequest</p> */ public class AttachKeyPairRequest 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 AttachKeyPairRequest(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 AttachKeyPairRequest 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<AttachKeyPairRequest, Builder> { private String clientToken; private java.util.List<String> instanceIds; private String keyPairName; private String regionId; private Builder() { super(); } private Builder(AttachKeyPairRequest 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 simple application servers. 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 that you want to bind to the simple application server. 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>test_gin</p> */ public Builder keyPairName(String keyPairName) { this.putQueryParameter("KeyPairName", keyPairName); this.keyPairName = keyPairName; 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 AttachKeyPairRequest build() { return new AttachKeyPairRequest(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/AttachKeyPairResponse.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 AttachKeyPairResponse} extends {@link TeaModel} * * <p>AttachKeyPairResponse</p> */ public class AttachKeyPairResponse 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 AttachKeyPairResponseBody body; private AttachKeyPairResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static AttachKeyPairResponse 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 AttachKeyPairResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<AttachKeyPairResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(AttachKeyPairResponseBody body); @Override AttachKeyPairResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<AttachKeyPairResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private AttachKeyPairResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(AttachKeyPairResponse 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(AttachKeyPairResponseBody body) { this.body = body; return this; } @Override public AttachKeyPairResponse build() { return new AttachKeyPairResponse(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/AttachKeyPairResponseBody.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 AttachKeyPairResponseBody} extends {@link TeaModel} * * <p>AttachKeyPairResponseBody</p> */ public class AttachKeyPairResponseBody 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 AttachKeyPairResponseBody(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 AttachKeyPairResponseBody 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 to which the key pair failed to be bound.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder failCount(Integer failCount) { this.failCount = failCount; 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 request results.</p> */ public Builder results(java.util.List<Results> results) { this.results = results; return this; } /** * <p>The total number of simple application servers to which the key pair is bound.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public AttachKeyPairResponseBody build() { return new AttachKeyPairResponseBody(this); } } /** * * {@link AttachKeyPairResponseBody} extends {@link TeaModel} * * <p>AttachKeyPairResponseBody</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 simple application server ID.</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 bound to 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/CreateCommandRequest.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 CreateCommandRequest} extends {@link RequestModel} * * <p>CreateCommandRequest</p> */ public class CreateCommandRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CommandContent") @com.aliyun.core.annotation.Validation(required = true) private String commandContent; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableParameter") private Boolean enableParameter; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") @com.aliyun.core.annotation.Validation(required = true) private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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("Timeout") private Long timeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Type") @com.aliyun.core.annotation.Validation(required = true) private String type; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("WorkingDir") private String workingDir; private CreateCommandRequest(Builder builder) { super(builder); this.commandContent = builder.commandContent; this.description = builder.description; this.enableParameter = builder.enableParameter; this.name = builder.name; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.tag = builder.tag; this.timeout = builder.timeout; this.type = builder.type; this.workingDir = builder.workingDir; } public static Builder builder() { return new Builder(); } public static CreateCommandRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return commandContent */ public String getCommandContent() { return this.commandContent; } /** * @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 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 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 extends Request.Builder<CreateCommandRequest, Builder> { private String commandContent; private String description; private Boolean enableParameter; private String name; private String regionId; private String resourceGroupId; private java.util.List<Tag> tag; private Long timeout; private String type; private String workingDir; private Builder() { super(); } private Builder(CreateCommandRequest request) { super(request); this.commandContent = request.commandContent; this.description = request.description; this.enableParameter = request.enableParameter; this.name = request.name; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.tag = request.tag; this.timeout = request.timeout; this.type = request.type; this.workingDir = request.workingDir; } /** * <p>The command content. When you specify this parameter, take note of the following items:</p> * <ul> * <li>When <code>EnableParameter</code> is set to true, the custom parameter feature is enabled, and you can configure custom parameters in the command based on the following rules:</li> * <li>Define custom parameters in the {{}} format. Within <code>{{}}</code>, the spaces and line feeds before and after the parameter names are ignored.</li> * <li>You can specify up to 20 custom parameters.</li> * <li>The name of a custom parameter can contain only letters, digits, underscores (_), and hyphens (-). The name is case-insensitive.</li> * <li>The name of a custom parameter cannot exceed 64 bytes in length.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ifconfig -s</p> */ public Builder commandContent(String commandContent) { this.putQueryParameter("CommandContent", commandContent); this.commandContent = commandContent; return this; } /** * <p>The description of the command. The description supports all character sets and can be up to 512 characters in length.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>Specifies whether to use custom parameters in the command.</p> * <p>Default value: false.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder enableParameter(Boolean enableParameter) { this.putQueryParameter("EnableParameter", enableParameter); this.enableParameter = enableParameter; return this; } /** * <p>The name of the command. The name supports all character sets and can be up to 128 characters in length.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>testName</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; 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 ID of the resource group.</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 you want to add to the command. You can specify up to 20 tags.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The timeout period for the command execution on the instance.</p> * <p>If a command execution task times out, Command Assistant forcefully terminates the task process. Valid values: 10 to 86400. Unit: seconds. The period of 86400 seconds is equal to 24 hours.</p> * <p>Default value: 60.</p> * * <strong>example:</strong> * <p>60</p> */ public Builder timeout(Long timeout) { this.putQueryParameter("Timeout", timeout); this.timeout = timeout; 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> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>RunShellScript</p> */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } /** * <p>The working directory of the command on the ECS instance.</p> * <p>Default values:</p> * <ul> * <li>For a Linux instance, the default value is the home directory of the root user, which is the <code>/root</code> directory.</li> * <li>For a Windows instance, the default value is the directory where the Cloud Assistant client process resides. Example: <code>C:\Windows\System32</code>.</li> * </ul> * * <strong>example:</strong> * <p>/root/</p> */ public Builder workingDir(String workingDir) { this.putQueryParameter("WorkingDir", workingDir); this.workingDir = workingDir; return this; } @Override public CreateCommandRequest build() { return new CreateCommandRequest(this); } } /** * * {@link CreateCommandRequest} extends {@link TeaModel} * * <p>CreateCommandRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * <p>The key of tag N that you want to add to the command. Valid values of N: 1 to 20.</p> * <p>The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N that you want to add to the command. Valid values of N: 1 to 20.</p> * <p>The tag value can be an empty string. The tag value can be up to 64 characters in length and cannot contain http:// or https://.</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/CreateCommandResponse.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 CreateCommandResponse} extends {@link TeaModel} * * <p>CreateCommandResponse</p> */ public class CreateCommandResponse 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 CreateCommandResponseBody body; private CreateCommandResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateCommandResponse 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 CreateCommandResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateCommandResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateCommandResponseBody body); @Override CreateCommandResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateCommandResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateCommandResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateCommandResponse 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(CreateCommandResponseBody body) { this.body = body; return this; } @Override public CreateCommandResponse build() { return new CreateCommandResponse(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/CreateCommandResponseBody.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 CreateCommandResponseBody} extends {@link TeaModel} * * <p>CreateCommandResponseBody</p> */ public class CreateCommandResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CommandId") private String commandId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateCommandResponseBody(Builder builder) { this.commandId = builder.commandId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateCommandResponseBody create() { return builder().build(); } /** * @return commandId */ public String getCommandId() { return this.commandId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String commandId; private String requestId; /** * <p>The command ID.</p> * * <strong>example:</strong> * <p>c-sh02yh0932w****</p> */ public Builder commandId(String commandId) { this.commandId = commandId; 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; } public CreateCommandResponseBody build() { return new CreateCommandResponseBody(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/CreateCustomImageRequest.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 CreateCustomImageRequest} extends {@link RequestModel} * * <p>CreateCustomImageRequest</p> */ public class CreateCustomImageRequest 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("DataSnapshotId") private String dataSnapshotId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageName") @com.aliyun.core.annotation.Validation(required = true) private String imageName; @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("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SystemSnapshotId") private String systemSnapshotId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private CreateCustomImageRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dataSnapshotId = builder.dataSnapshotId; this.description = builder.description; this.imageName = builder.imageName; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.systemSnapshotId = builder.systemSnapshotId; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static CreateCustomImageRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dataSnapshotId */ public String getDataSnapshotId() { return this.dataSnapshotId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return imageName */ public String getImageName() { return this.imageName; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return systemSnapshotId */ public String getSystemSnapshotId() { return this.systemSnapshotId; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<CreateCustomImageRequest, Builder> { private String clientToken; private String dataSnapshotId; private String description; private String imageName; private String instanceId; private String regionId; private String resourceGroupId; private String systemSnapshotId; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(CreateCustomImageRequest request) { super(request); this.clientToken = request.clientToken; this.dataSnapshotId = request.dataSnapshotId; this.description = request.description; this.imageName = request.imageName; this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.systemSnapshotId = request.systemSnapshotId; this.tag = request.tag; } /** * <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 data disk snapshot.</p> * * <strong>example:</strong> * <p>s-acscasca****</p> */ public Builder dataSnapshotId(String dataSnapshotId) { this.putQueryParameter("DataSnapshotId", dataSnapshotId); this.dataSnapshotId = dataSnapshotId; return this; } /** * <p>The description of the custom image.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The name of the custom image. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter or a digit. This parameter is empty by default.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>customImage-test</p> */ public Builder imageName(String imageName) { this.putQueryParameter("ImageName", imageName); this.imageName = imageName; 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 database. 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 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 ID of the system disk snapshot.</p> * * <strong>example:</strong> * <p>s-acscasca****</p> */ public Builder systemSnapshotId(String systemSnapshotId) { this.putQueryParameter("SystemSnapshotId", systemSnapshotId); this.systemSnapshotId = systemSnapshotId; return this; } /** * <p>The tags that you want to add to the custom image. You can specify up to 20 tags.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CreateCustomImageRequest build() { return new CreateCustomImageRequest(this); } } /** * * {@link CreateCustomImageRequest} extends {@link TeaModel} * * <p>CreateCustomImageRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * <p>The key of tag N that you want to add to the custom image. Valid values of N: 1 to 20.</p> * <p>The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N that you want to add to the custom image. Valid values of N: 1 to 20.</p> * <p>The tag value can be an empty string. The tag value can be up to 64 characters in length and cannot contain http:// or https://.</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/CreateCustomImageResponse.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 CreateCustomImageResponse} extends {@link TeaModel} * * <p>CreateCustomImageResponse</p> */ public class CreateCustomImageResponse 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 CreateCustomImageResponseBody body; private CreateCustomImageResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateCustomImageResponse 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 CreateCustomImageResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateCustomImageResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateCustomImageResponseBody body); @Override CreateCustomImageResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateCustomImageResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateCustomImageResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateCustomImageResponse 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(CreateCustomImageResponseBody body) { this.body = body; return this; } @Override public CreateCustomImageResponse build() { return new CreateCustomImageResponse(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/CreateCustomImageResponseBody.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 CreateCustomImageResponseBody} extends {@link TeaModel} * * <p>CreateCustomImageResponseBody</p> */ public class CreateCustomImageResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ImageId") private String imageId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateCustomImageResponseBody(Builder builder) { this.imageId = builder.imageId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateCustomImageResponseBody create() { return builder().build(); } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String imageId; private String requestId; /** * <p>The custom image ID.</p> * * <strong>example:</strong> * <p>m-csaascsaccscs****</p> */ public Builder imageId(String imageId) { this.imageId = imageId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateCustomImageResponseBody build() { return new CreateCustomImageResponseBody(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/CreateFirewallRuleRequest.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 CreateFirewallRuleRequest} extends {@link RequestModel} * * <p>CreateFirewallRuleRequest</p> */ public class CreateFirewallRuleRequest 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("Port") @com.aliyun.core.annotation.Validation(required = true) private String port; @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("RuleProtocol") @com.aliyun.core.annotation.Validation(required = true) private String ruleProtocol; private CreateFirewallRuleRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.port = builder.port; this.regionId = builder.regionId; this.remark = builder.remark; this.ruleProtocol = builder.ruleProtocol; } public static Builder builder() { return new Builder(); } public static CreateFirewallRuleRequest 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 port */ public String getPort() { return this.port; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return remark */ public String getRemark() { return this.remark; } /** * @return ruleProtocol */ public String getRuleProtocol() { return this.ruleProtocol; } public static final class Builder extends Request.Builder<CreateFirewallRuleRequest, Builder> { private String clientToken; private String instanceId; private String port; private String regionId; private String remark; private String ruleProtocol; private Builder() { super(); } private Builder(CreateFirewallRuleRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.port = request.port; this.regionId = request.regionId; this.remark = request.remark; this.ruleProtocol = request.ruleProtocol; } /** * <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 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 port range.</p> * <ul> * <li>When the transport layer protocol is TCP and/or UDP, the port range is 1 to 65535. Specify a port range in the format of &lt;start port number&gt;/&lt;end port number&gt;. Example: 1024/1055, which specifies the port range from 1024 to 1055.</li> * <li>When the transport layer protocol is ICMP, the port range is -1/-1, which indicates all ports.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>3306</p> */ public Builder port(String port) { this.putQueryParameter("Port", port); this.port = port; 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; } /** * <p>The remarks of the firewall rule.</p> * * <strong>example:</strong> * <p>TEST</p> */ public Builder remark(String remark) { this.putQueryParameter("Remark", remark); this.remark = remark; return this; } /** * <p>The transport layer protocol. Valid values:</p> * <ul> * <li>TCP</li> * <li>UDP</li> * <li>TCP+UDP</li> * <li>ICMP</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>TCP</p> */ public Builder ruleProtocol(String ruleProtocol) { this.putQueryParameter("RuleProtocol", ruleProtocol); this.ruleProtocol = ruleProtocol; return this; } @Override public CreateFirewallRuleRequest build() { return new CreateFirewallRuleRequest(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/CreateFirewallRuleResponse.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 CreateFirewallRuleResponse} extends {@link TeaModel} * * <p>CreateFirewallRuleResponse</p> */ public class CreateFirewallRuleResponse 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 CreateFirewallRuleResponseBody body; private CreateFirewallRuleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateFirewallRuleResponse 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 CreateFirewallRuleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateFirewallRuleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateFirewallRuleResponseBody body); @Override CreateFirewallRuleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateFirewallRuleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateFirewallRuleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateFirewallRuleResponse 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(CreateFirewallRuleResponseBody body) { this.body = body; return this; } @Override public CreateFirewallRuleResponse build() { return new CreateFirewallRuleResponse(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/CreateFirewallRuleResponseBody.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 CreateFirewallRuleResponseBody} extends {@link TeaModel} * * <p>CreateFirewallRuleResponseBody</p> */ public class CreateFirewallRuleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("FirewallId") private String firewallId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateFirewallRuleResponseBody(Builder builder) { this.firewallId = builder.firewallId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateFirewallRuleResponseBody create() { return builder().build(); } /** * @return firewallId */ public String getFirewallId() { return this.firewallId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String firewallId; private String requestId; /** * <p>The ID of the firewall rule.</p> * * <strong>example:</strong> * <p>8007e18c61024aafbd776d52d0****</p> */ public Builder firewallId(String firewallId) { this.firewallId = firewallId; 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 CreateFirewallRuleResponseBody build() { return new CreateFirewallRuleResponseBody(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/CreateFirewallRulesRequest.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 CreateFirewallRulesRequest} extends {@link RequestModel} * * <p>CreateFirewallRulesRequest</p> */ public class CreateFirewallRulesRequest 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("FirewallRules") private java.util.List<FirewallRules> firewallRules; @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("Tag") private java.util.List<Tag> tag; private CreateFirewallRulesRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.firewallRules = builder.firewallRules; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static CreateFirewallRulesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return firewallRules */ public java.util.List<FirewallRules> getFirewallRules() { return this.firewallRules; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<CreateFirewallRulesRequest, Builder> { private String clientToken; private java.util.List<FirewallRules> firewallRules; private String instanceId; private String regionId; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(CreateFirewallRulesRequest request) { super(request); this.clientToken = request.clientToken; this.firewallRules = request.firewallRules; this.instanceId = request.instanceId; this.regionId = request.regionId; this.tag = request.tag; } /** * <p>The client token.</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>Details about the firewall rules.</p> */ public Builder firewallRules(java.util.List<FirewallRules> firewallRules) { String firewallRulesShrink = shrink(firewallRules, "FirewallRules", "json"); this.putQueryParameter("FirewallRules", firewallRulesShrink); this.firewallRules = firewallRules; 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 tags that you want to add to the firewall. You can specify up to 20 tags.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CreateFirewallRulesRequest build() { return new CreateFirewallRulesRequest(this); } } /** * * {@link CreateFirewallRulesRequest} extends {@link TeaModel} * * <p>CreateFirewallRulesRequest</p> */ public static class FirewallRules extends TeaModel { @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 FirewallRules(Builder builder) { 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 FirewallRules create() { return builder().build(); } /** * @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 port; private String remark; private String ruleProtocol; private String sourceCidrIp; /** * <p>The port number.</p> * <ul> * <li>When the transport layer protocol is TCP and/or UDP, the port number range is 1 to 65535. Specify a port range in the format of &lt;Start port number&gt;/&lt;End port number&gt;. Example: 1/200.</li> * <li>When the transport layer protocol is ICMP, the port number range is -1/-1, which indicates all ports.</li> * </ul> * * <strong>example:</strong> * <p>3306</p> */ public Builder port(String port) { this.port = port; return this; } /** * <p>The description 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. 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 IP address or CIDR block that is allowed in the firewall rule.</p> * * <strong>example:</strong> * <p>47.101.XX.XX</p> */ public Builder sourceCidrIp(String sourceCidrIp) { this.sourceCidrIp = sourceCidrIp; return this; } public FirewallRules build() { return new FirewallRules(this); } } } /** * * {@link CreateFirewallRulesRequest} extends {@link TeaModel} * * <p>CreateFirewallRulesRequest</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. Valid values of N: 1 to 20.</p> * <p>The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value. Valid values of N: 1 to 20.</p> * <p>The tag value can be an empty string. The tag value can be up to 64 characters in length and cannot contain http:// or https://.</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/CreateFirewallRulesResponse.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 CreateFirewallRulesResponse} extends {@link TeaModel} * * <p>CreateFirewallRulesResponse</p> */ public class CreateFirewallRulesResponse 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 CreateFirewallRulesResponseBody body; private CreateFirewallRulesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateFirewallRulesResponse 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 CreateFirewallRulesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateFirewallRulesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateFirewallRulesResponseBody body); @Override CreateFirewallRulesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateFirewallRulesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateFirewallRulesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateFirewallRulesResponse 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(CreateFirewallRulesResponseBody body) { this.body = body; return this; } @Override public CreateFirewallRulesResponse build() { return new CreateFirewallRulesResponse(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/CreateFirewallRulesResponseBody.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 CreateFirewallRulesResponseBody} extends {@link TeaModel} * * <p>CreateFirewallRulesResponseBody</p> */ public class CreateFirewallRulesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("FirewallRuleIds") private java.util.List<String> firewallRuleIds; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateFirewallRulesResponseBody(Builder builder) { this.firewallRuleIds = builder.firewallRuleIds; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateFirewallRulesResponseBody create() { return builder().build(); } /** * @return firewallRuleIds */ public java.util.List<String> getFirewallRuleIds() { return this.firewallRuleIds; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<String> firewallRuleIds; private String requestId; /** * <p>The IDs of the firewall rules that you created.</p> */ public Builder firewallRuleIds(java.util.List<String> firewallRuleIds) { this.firewallRuleIds = firewallRuleIds; 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 CreateFirewallRulesResponseBody build() { return new CreateFirewallRulesResponseBody(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/CreateFirewallTemplateRequest.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 CreateFirewallTemplateRequest} extends {@link RequestModel} * * <p>CreateFirewallTemplateRequest</p> */ public class CreateFirewallTemplateRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FirewallRule") private java.util.List<FirewallRule> firewallRule; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") @com.aliyun.core.annotation.Validation(required = true) private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private CreateFirewallTemplateRequest(Builder builder) { super(builder); this.description = builder.description; this.firewallRule = builder.firewallRule; this.name = builder.name; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static CreateFirewallTemplateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return firewallRule */ public java.util.List<FirewallRule> getFirewallRule() { return this.firewallRule; } /** * @return name */ public String getName() { return this.name; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<CreateFirewallTemplateRequest, Builder> { private String description; private java.util.List<FirewallRule> firewallRule; private String name; private String regionId; private Builder() { super(); } private Builder(CreateFirewallTemplateRequest request) { super(request); this.description = request.description; this.firewallRule = request.firewallRule; this.name = request.name; this.regionId = request.regionId; } /** * <p>The description of the firewall template.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The details of the firewall rule.</p> */ public Builder firewallRule(java.util.List<FirewallRule> firewallRule) { this.putQueryParameter("FirewallRule", firewallRule); this.firewallRule = firewallRule; return this; } /** * <p>The name of the firewall template.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>testName</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * <p>The region ID of the simple application server to which the firewall template belongs. 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 CreateFirewallTemplateRequest build() { return new CreateFirewallTemplateRequest(this); } } /** * * {@link CreateFirewallTemplateRequest} extends {@link TeaModel} * * <p>CreateFirewallTemplateRequest</p> */ public static class FirewallRule extends TeaModel { @com.aliyun.core.annotation.NameInMap("Port") @com.aliyun.core.annotation.Validation(required = true) private String port; @com.aliyun.core.annotation.NameInMap("Remark") private String remark; @com.aliyun.core.annotation.NameInMap("RuleProtocol") @com.aliyun.core.annotation.Validation(required = true) private String ruleProtocol; @com.aliyun.core.annotation.NameInMap("SourceCidrIp") @com.aliyun.core.annotation.Validation(required = true) private String sourceCidrIp; private FirewallRule(Builder builder) { 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 FirewallRule create() { return builder().build(); } /** * @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 port; private String remark; private String ruleProtocol; private String sourceCidrIp; /** * <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> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>8080</p> */ public Builder port(String port) { this.port = port; return this; } /** * <p>The remarks of the firewall rule.</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> * <p>This parameter is required.</p> * * <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> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>223.166.XX.XX</p> */ public Builder sourceCidrIp(String sourceCidrIp) { this.sourceCidrIp = sourceCidrIp; return this; } public FirewallRule build() { return new FirewallRule(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/CreateFirewallTemplateResponse.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 CreateFirewallTemplateResponse} extends {@link TeaModel} * * <p>CreateFirewallTemplateResponse</p> */ public class CreateFirewallTemplateResponse 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 CreateFirewallTemplateResponseBody body; private CreateFirewallTemplateResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateFirewallTemplateResponse 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 CreateFirewallTemplateResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateFirewallTemplateResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateFirewallTemplateResponseBody body); @Override CreateFirewallTemplateResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateFirewallTemplateResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateFirewallTemplateResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateFirewallTemplateResponse 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(CreateFirewallTemplateResponseBody body) { this.body = body; return this; } @Override public CreateFirewallTemplateResponse build() { return new CreateFirewallTemplateResponse(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/CreateFirewallTemplateResponseBody.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 CreateFirewallTemplateResponseBody} extends {@link TeaModel} * * <p>CreateFirewallTemplateResponseBody</p> */ public class CreateFirewallTemplateResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("FirewallTemplateId") private String firewallTemplateId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateFirewallTemplateResponseBody(Builder builder) { this.firewallTemplateId = builder.firewallTemplateId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateFirewallTemplateResponseBody create() { return builder().build(); } /** * @return firewallTemplateId */ public String getFirewallTemplateId() { return this.firewallTemplateId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String firewallTemplateId; private String requestId; /** * <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 request ID.</p> * * <strong>example:</strong> * <p>30637AD6-D977-4833-A54C-CC89483E****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateFirewallTemplateResponseBody build() { return new CreateFirewallTemplateResponseBody(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/CreateFirewallTemplateRulesRequest.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 CreateFirewallTemplateRulesRequest} extends {@link RequestModel} * * <p>CreateFirewallTemplateRulesRequest</p> */ public class CreateFirewallTemplateRulesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FirewallRule") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<FirewallRule> firewallRule; @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("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private CreateFirewallTemplateRulesRequest(Builder builder) { super(builder); this.firewallRule = builder.firewallRule; this.firewallTemplateId = builder.firewallTemplateId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static CreateFirewallTemplateRulesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return firewallRule */ public java.util.List<FirewallRule> getFirewallRule() { return this.firewallRule; } /** * @return firewallTemplateId */ public String getFirewallTemplateId() { return this.firewallTemplateId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<CreateFirewallTemplateRulesRequest, Builder> { private java.util.List<FirewallRule> firewallRule; private String firewallTemplateId; private String regionId; private Builder() { super(); } private Builder(CreateFirewallTemplateRulesRequest request) { super(request); this.firewallRule = request.firewallRule; this.firewallTemplateId = request.firewallTemplateId; this.regionId = request.regionId; } /** * <p>The details of the firewall rule.</p> * <p>This parameter is required.</p> */ public Builder firewallRule(java.util.List<FirewallRule> firewallRule) { this.putQueryParameter("FirewallRule", firewallRule); this.firewallRule = firewallRule; 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 region ID of the simple application server to which the firewall template is applied. 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 CreateFirewallTemplateRulesRequest build() { return new CreateFirewallTemplateRulesRequest(this); } } /** * * {@link CreateFirewallTemplateRulesRequest} extends {@link TeaModel} * * <p>CreateFirewallTemplateRulesRequest</p> */ public static class FirewallRule extends TeaModel { @com.aliyun.core.annotation.NameInMap("Port") @com.aliyun.core.annotation.Validation(required = true) private String port; @com.aliyun.core.annotation.NameInMap("Remark") private String remark; @com.aliyun.core.annotation.NameInMap("RuleProtocol") @com.aliyun.core.annotation.Validation(required = true) private String ruleProtocol; @com.aliyun.core.annotation.NameInMap("SourceCidrIp") @com.aliyun.core.annotation.Validation(required = true) private String sourceCidrIp; private FirewallRule(Builder builder) { 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 FirewallRule create() { return builder().build(); } /** * @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 port; private String remark; private String ruleProtocol; private String sourceCidrIp; /** * <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> * <p>This parameter is required.</p> * * <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> * <p>This parameter is required.</p> * * <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> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>222.70.XX.XX</p> */ public Builder sourceCidrIp(String sourceCidrIp) { this.sourceCidrIp = sourceCidrIp; return this; } public FirewallRule build() { return new FirewallRule(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/CreateFirewallTemplateRulesResponse.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 CreateFirewallTemplateRulesResponse} extends {@link TeaModel} * * <p>CreateFirewallTemplateRulesResponse</p> */ public class CreateFirewallTemplateRulesResponse 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 CreateFirewallTemplateRulesResponseBody body; private CreateFirewallTemplateRulesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateFirewallTemplateRulesResponse 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 CreateFirewallTemplateRulesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateFirewallTemplateRulesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateFirewallTemplateRulesResponseBody body); @Override CreateFirewallTemplateRulesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateFirewallTemplateRulesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateFirewallTemplateRulesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateFirewallTemplateRulesResponse 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(CreateFirewallTemplateRulesResponseBody body) { this.body = body; return this; } @Override public CreateFirewallTemplateRulesResponse build() { return new CreateFirewallTemplateRulesResponse(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/CreateFirewallTemplateRulesResponseBody.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 CreateFirewallTemplateRulesResponseBody} extends {@link TeaModel} * * <p>CreateFirewallTemplateRulesResponseBody</p> */ public class CreateFirewallTemplateRulesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("FirewallTemplateRules") private java.util.List<FirewallTemplateRules> firewallTemplateRules; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateFirewallTemplateRulesResponseBody(Builder builder) { this.firewallTemplateRules = builder.firewallTemplateRules; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateFirewallTemplateRulesResponseBody create() { return builder().build(); } /** * @return firewallTemplateRules */ public java.util.List<FirewallTemplateRules> getFirewallTemplateRules() { return this.firewallTemplateRules; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<FirewallTemplateRules> firewallTemplateRules; private String requestId; /** * <p>The firewall template rules.</p> */ public Builder firewallTemplateRules(java.util.List<FirewallTemplateRules> firewallTemplateRules) { this.firewallTemplateRules = firewallTemplateRules; 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 CreateFirewallTemplateRulesResponseBody build() { return new CreateFirewallTemplateRulesResponseBody(this); } } /** * * {@link CreateFirewallTemplateRulesResponseBody} extends {@link TeaModel} * * <p>CreateFirewallTemplateRulesResponseBody</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>ft-bcf1a7hrdq717****</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 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: the ICMP protocol</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>171.233.XX.XX</p> */ public Builder sourceCidrIp(String sourceCidrIp) { this.sourceCidrIp = sourceCidrIp; return this; } public FirewallTemplateRules build() { return new FirewallTemplateRules(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/CreateInstanceKeyPairRequest.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 CreateInstanceKeyPairRequest} extends {@link RequestModel} * * <p>CreateInstanceKeyPairRequest</p> */ public class CreateInstanceKeyPairRequest 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("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 CreateInstanceKeyPairRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.keyPairName = builder.keyPairName; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static CreateInstanceKeyPairRequest 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 keyPairName */ public String getKeyPairName() { return this.keyPairName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<CreateInstanceKeyPairRequest, Builder> { private String clientToken; private String instanceId; private String keyPairName; private String regionId; private Builder() { super(); } private Builder(CreateInstanceKeyPairRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; 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 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 name of the key pair.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ceshi</p> */ public Builder keyPairName(String keyPairName) { this.putQueryParameter("KeyPairName", keyPairName); this.keyPairName = keyPairName; 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 CreateInstanceKeyPairRequest build() { return new CreateInstanceKeyPairRequest(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/CreateInstanceKeyPairResponse.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 CreateInstanceKeyPairResponse} extends {@link TeaModel} * * <p>CreateInstanceKeyPairResponse</p> */ public class CreateInstanceKeyPairResponse 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 CreateInstanceKeyPairResponseBody body; private CreateInstanceKeyPairResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateInstanceKeyPairResponse 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 CreateInstanceKeyPairResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateInstanceKeyPairResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateInstanceKeyPairResponseBody body); @Override CreateInstanceKeyPairResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateInstanceKeyPairResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateInstanceKeyPairResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateInstanceKeyPairResponse 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(CreateInstanceKeyPairResponseBody body) { this.body = body; return this; } @Override public CreateInstanceKeyPairResponse build() { return new CreateInstanceKeyPairResponse(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/CreateInstanceKeyPairResponseBody.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 CreateInstanceKeyPairResponseBody} extends {@link TeaModel} * * <p>CreateInstanceKeyPairResponseBody</p> */ public class CreateInstanceKeyPairResponseBody 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("PrivateKey") private String privateKey; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateInstanceKeyPairResponseBody(Builder builder) { this.fingerprint = builder.fingerprint; this.keyPairName = builder.keyPairName; this.privateKey = builder.privateKey; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateInstanceKeyPairResponseBody create() { return builder().build(); } /** * @return fingerprint */ public String getFingerprint() { return this.fingerprint; } /** * @return keyPairName */ public String getKeyPairName() { return this.keyPairName; } /** * @return privateKey */ public String getPrivateKey() { return this.privateKey; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String fingerprint; private String keyPairName; private String privateKey; private String requestId; /** * <p>The fingerprint of the key pair.</p> * * <strong>example:</strong> * <p>If2K1ItazA4GlKkWCEhdRj8Wd6czAvK9*****</p> */ public Builder fingerprint(String fingerprint) { this.fingerprint = fingerprint; return this; } /** * <p>The name of the key pair.</p> * * <strong>example:</strong> * <p>ceshi</p> */ public Builder keyPairName(String keyPairName) { this.keyPairName = keyPairName; return this; } /** * <p>The private key.</p> * * <strong>example:</strong> * <hr> */ public Builder privateKey(String privateKey) { this.privateKey = privateKey; 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 CreateInstanceKeyPairResponseBody build() { return new CreateInstanceKeyPairResponseBody(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/CreateInstancesRequest.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 CreateInstancesRequest} extends {@link RequestModel} * * <p>CreateInstancesRequest</p> */ public class CreateInstancesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Amount") @com.aliyun.core.annotation.Validation(maximum = 200, minimum = 1) private Integer amount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AutoRenew") private Boolean autoRenew; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AutoRenewPeriod") @com.aliyun.core.annotation.Validation(maximum = 36, minimum = 1) private Integer autoRenewPeriod; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChargeType") private String chargeType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DataDiskSize") @com.aliyun.core.annotation.Validation(maximum = 16380) private Long dataDiskSize; @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("Period") @com.aliyun.core.annotation.Validation(required = true, maximum = 36, minimum = 1) private Integer period; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PlanId") @com.aliyun.core.annotation.Validation(required = true) private String planId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private CreateInstancesRequest(Builder builder) { super(builder); this.amount = builder.amount; this.autoRenew = builder.autoRenew; this.autoRenewPeriod = builder.autoRenewPeriod; this.chargeType = builder.chargeType; this.clientToken = builder.clientToken; this.dataDiskSize = builder.dataDiskSize; this.imageId = builder.imageId; this.period = builder.period; this.planId = builder.planId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static CreateInstancesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return amount */ public Integer getAmount() { return this.amount; } /** * @return autoRenew */ public Boolean getAutoRenew() { return this.autoRenew; } /** * @return autoRenewPeriod */ public Integer getAutoRenewPeriod() { return this.autoRenewPeriod; } /** * @return chargeType */ public String getChargeType() { return this.chargeType; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dataDiskSize */ public Long getDataDiskSize() { return this.dataDiskSize; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return period */ public Integer getPeriod() { return this.period; } /** * @return planId */ public String getPlanId() { return this.planId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<CreateInstancesRequest, Builder> { private Integer amount; private Boolean autoRenew; private Integer autoRenewPeriod; private String chargeType; private String clientToken; private Long dataDiskSize; private String imageId; private Integer period; private String planId; private String regionId; private Builder() { super(); } private Builder(CreateInstancesRequest request) { super(request); this.amount = request.amount; this.autoRenew = request.autoRenew; this.autoRenewPeriod = request.autoRenewPeriod; this.chargeType = request.chargeType; this.clientToken = request.clientToken; this.dataDiskSize = request.dataDiskSize; this.imageId = request.imageId; this.period = request.period; this.planId = request.planId; this.regionId = request.regionId; } /** * <p>The number of simple application servers that you want to create. Valid values: 1 to 20.</p> * <p>Default value: 1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder amount(Integer amount) { this.putQueryParameter("Amount", amount); this.amount = amount; return this; } /** * <p>Specifies whether to enable auto-renewal. Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * <p>Default value: false.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder autoRenew(Boolean autoRenew) { this.putQueryParameter("AutoRenew", autoRenew); this.autoRenew = autoRenew; return this; } /** * <p>The auto-renewal period. This parameter is required only when you set <code>AutoRenew</code> to true. Unit: month. Valid values: 1, 3, 6, 12, 24, and 36.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder autoRenewPeriod(Integer autoRenewPeriod) { this.putQueryParameter("AutoRenewPeriod", autoRenewPeriod); this.autoRenewPeriod = autoRenewPeriod; return this; } /** * <p>The billing method of the simple application servers. Set the value to PrePaid, which indicates the subscription billing method.</p> * <p>Default value: PrePaid.</p> * * <strong>example:</strong> * <p>PrePaid</p> */ public Builder chargeType(String chargeType) { this.putQueryParameter("ChargeType", chargeType); this.chargeType = chargeType; return this; } /** * <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 size of the data disk that is attached to the server. Unit: GB. Valid values: 0 to 16380. The value must be an integral multiple of 20.</p> * <ul> * <li>A value of 0 indicates that no data disk is attached.</li> * <li>If the disk included in the specified plan is a standard SSD, the data disk must be 20 GB or larger in size.</li> * </ul> * <p>Default value: 0.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder dataDiskSize(Long dataDiskSize) { this.putQueryParameter("DataDiskSize", dataDiskSize); this.dataDiskSize = dataDiskSize; return this; } /** * <p>The image ID. You can call the <a href="https://help.aliyun.com/document_detail/189313.html">ListImages</a> operation to query the available images in the specified region.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>e2c9c365024a44369c9b955a998a****</p> */ public Builder imageId(String imageId) { this.putQueryParameter("ImageId", imageId); this.imageId = imageId; return this; } /** * <p>The subscription period of the servers. Unit: months. Valid values: 1, 3, 6, 12, 24, and 36.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder period(Integer period) { this.putQueryParameter("Period", period); this.period = period; return this; } /** * <p>The plan ID. You can call the <a href="https://help.aliyun.com/document_detail/189314.html">ListPlans</a> operation to query all plans provided by Simple Application Server in the specified region.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>swas.s1.c1m1s40b3t05</p> */ public Builder planId(String planId) { this.putQueryParameter("PlanId", planId); this.planId = planId; 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 CreateInstancesRequest build() { return new CreateInstancesRequest(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/CreateInstancesResponse.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 CreateInstancesResponse} extends {@link TeaModel} * * <p>CreateInstancesResponse</p> */ public class CreateInstancesResponse 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 CreateInstancesResponseBody body; private CreateInstancesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateInstancesResponse 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 CreateInstancesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateInstancesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateInstancesResponseBody body); @Override CreateInstancesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateInstancesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateInstancesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateInstancesResponse 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(CreateInstancesResponseBody body) { this.body = body; return this; } @Override public CreateInstancesResponse build() { return new CreateInstancesResponse(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/CreateInstancesResponseBody.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 CreateInstancesResponseBody} extends {@link TeaModel} * * <p>CreateInstancesResponseBody</p> */ public class CreateInstancesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceIds") private java.util.List<String> instanceIds; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateInstancesResponseBody(Builder builder) { this.instanceIds = builder.instanceIds; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateInstancesResponseBody create() { return builder().build(); } /** * @return instanceIds */ public java.util.List<String> getInstanceIds() { return this.instanceIds; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<String> instanceIds; private String requestId; /** * <p>The IDs of the simple application servers.</p> */ public Builder instanceIds(java.util.List<String> instanceIds) { this.instanceIds = instanceIds; 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 CreateInstancesResponseBody build() { return new CreateInstancesResponseBody(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/CreateKeyPairRequest.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 CreateKeyPairRequest} extends {@link RequestModel} * * <p>CreateKeyPairRequest</p> */ public class CreateKeyPairRequest 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("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private CreateKeyPairRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.keyPairName = builder.keyPairName; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static CreateKeyPairRequest 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 regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<CreateKeyPairRequest, Builder> { private String clientToken; private String keyPairName; private String regionId; private Builder() { super(); } private Builder(CreateKeyPairRequest request) { super(request); this.clientToken = request.clientToken; 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 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 name of the key pair. The name must be 2 to 64 characters in length and can contain letters, digits, colons (.), underscores (_), and hyphens (-). It 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 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 CreateKeyPairRequest build() { return new CreateKeyPairRequest(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/CreateKeyPairResponse.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 CreateKeyPairResponse} extends {@link TeaModel} * * <p>CreateKeyPairResponse</p> */ public class CreateKeyPairResponse 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 CreateKeyPairResponseBody body; private CreateKeyPairResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateKeyPairResponse 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 CreateKeyPairResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateKeyPairResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateKeyPairResponseBody body); @Override CreateKeyPairResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateKeyPairResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateKeyPairResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateKeyPairResponse 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(CreateKeyPairResponseBody body) { this.body = body; return this; } @Override public CreateKeyPairResponse build() { return new CreateKeyPairResponse(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/CreateKeyPairResponseBody.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 CreateKeyPairResponseBody} extends {@link TeaModel} * * <p>CreateKeyPairResponseBody</p> */ public class CreateKeyPairResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("KeyPairName") private String keyPairName; @com.aliyun.core.annotation.NameInMap("PrivateKeyBody") private String privateKeyBody; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateKeyPairResponseBody(Builder builder) { this.keyPairName = builder.keyPairName; this.privateKeyBody = builder.privateKeyBody; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateKeyPairResponseBody create() { return builder().build(); } /** * @return keyPairName */ public String getKeyPairName() { return this.keyPairName; } /** * @return privateKeyBody */ public String getPrivateKeyBody() { return this.privateKeyBody; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String keyPairName; private String privateKeyBody; 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 (-). It must start with a letter but 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 private key of the key pair. The PEM-encoded private key is in PKCS#8 format.</p> * * <strong>example:</strong> * <p>MIIEpAIBAAKCAQEAtReyMzLIcBH78EV2zj****</p> */ public Builder privateKeyBody(String privateKeyBody) { this.privateKeyBody = privateKeyBody; 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 CreateKeyPairResponseBody build() { return new CreateKeyPairResponseBody(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/CreateSnapshotRequest.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 CreateSnapshotRequest} extends {@link RequestModel} * * <p>CreateSnapshotRequest</p> */ public class CreateSnapshotRequest 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("DiskId") @com.aliyun.core.annotation.Validation(required = true) private String diskId; @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("SnapshotName") @com.aliyun.core.annotation.Validation(required = true) private String snapshotName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private CreateSnapshotRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.diskId = builder.diskId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.snapshotName = builder.snapshotName; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static CreateSnapshotRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return diskId */ public String getDiskId() { return this.diskId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return snapshotName */ public String getSnapshotName() { return this.snapshotName; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<CreateSnapshotRequest, Builder> { private String clientToken; private String diskId; private String regionId; private String resourceGroupId; private String snapshotName; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(CreateSnapshotRequest request) { super(request); this.clientToken = request.clientToken; this.diskId = request.diskId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.snapshotName = request.snapshotName; this.tag = request.tag; } /** * <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 disk ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>d-bp18kjxg9ebrhsgi****</p> */ public Builder diskId(String diskId) { this.putQueryParameter("DiskId", diskId); this.diskId = diskId; return this; } /** * <p>The region ID of the simple application server to which the disk is attached.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-aek2bti7cf7****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>The snapshot name. The name must be 2 to 50 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>. The name can only contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>test-SnapshotName</p> */ public Builder snapshotName(String snapshotName) { this.putQueryParameter("SnapshotName", snapshotName); this.snapshotName = snapshotName; return this; } /** * <p>The tags that you want to add to the snapshot. You can specify up to 20 tags.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CreateSnapshotRequest build() { return new CreateSnapshotRequest(this); } } /** * * {@link CreateSnapshotRequest} extends {@link TeaModel} * * <p>CreateSnapshotRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * <p>The key of the tag to add to the snapshot. Valid values of N: 1 to 20.</p> * <p>The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.</p> * * <strong>example:</strong> * <p>TestKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the tag to add to the snapshot. Valid values of N: 1 to 20.</p> * <p>The tag value can be an empty string. The tag value can be up to 64 characters in length and cannot contain http:// or https://.</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/CreateSnapshotResponse.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 CreateSnapshotResponse} extends {@link TeaModel} * * <p>CreateSnapshotResponse</p> */ public class CreateSnapshotResponse 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 CreateSnapshotResponseBody body; private CreateSnapshotResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateSnapshotResponse 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 CreateSnapshotResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateSnapshotResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateSnapshotResponseBody body); @Override CreateSnapshotResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateSnapshotResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateSnapshotResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateSnapshotResponse 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(CreateSnapshotResponseBody body) { this.body = body; return this; } @Override public CreateSnapshotResponse build() { return new CreateSnapshotResponse(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/CreateSnapshotResponseBody.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 CreateSnapshotResponseBody} extends {@link TeaModel} * * <p>CreateSnapshotResponseBody</p> */ public class CreateSnapshotResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SnapshotId") private String snapshotId; private CreateSnapshotResponseBody(Builder builder) { this.requestId = builder.requestId; this.snapshotId = builder.snapshotId; } public static Builder builder() { return new Builder(); } public static CreateSnapshotResponseBody create() { return builder().build(); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return snapshotId */ public String getSnapshotId() { return this.snapshotId; } public static final class Builder { private String requestId; private String snapshotId; /** * <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 snapshot ID.</p> * * <strong>example:</strong> * <p>s-bp16oazlsold4dks****</p> */ public Builder snapshotId(String snapshotId) { this.snapshotId = snapshotId; return this; } public CreateSnapshotResponseBody build() { return new CreateSnapshotResponseBody(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/DeleteCommandRequest.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 DeleteCommandRequest} extends {@link RequestModel} * * <p>DeleteCommandRequest</p> */ public class DeleteCommandRequest 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("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DeleteCommandRequest(Builder builder) { super(builder); this.commandId = builder.commandId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteCommandRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return commandId */ public String getCommandId() { return this.commandId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteCommandRequest, Builder> { private String commandId; private String regionId; private Builder() { super(); } private Builder(DeleteCommandRequest request) { super(request); this.commandId = request.commandId; 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> * <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 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 DeleteCommandRequest build() { return new DeleteCommandRequest(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/DeleteCommandResponse.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 DeleteCommandResponse} extends {@link TeaModel} * * <p>DeleteCommandResponse</p> */ public class DeleteCommandResponse 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 DeleteCommandResponseBody body; private DeleteCommandResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteCommandResponse 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 DeleteCommandResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteCommandResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteCommandResponseBody body); @Override DeleteCommandResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteCommandResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteCommandResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteCommandResponse 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(DeleteCommandResponseBody body) { this.body = body; return this; } @Override public DeleteCommandResponse build() { return new DeleteCommandResponse(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/DeleteCommandResponseBody.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 DeleteCommandResponseBody} extends {@link TeaModel} * * <p>DeleteCommandResponseBody</p> */ public class DeleteCommandResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteCommandResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteCommandResponseBody 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 DeleteCommandResponseBody build() { return new DeleteCommandResponseBody(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/DeleteCustomImageRequest.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 DeleteCustomImageRequest} extends {@link RequestModel} * * <p>DeleteCustomImageRequest</p> */ public class DeleteCustomImageRequest 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("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DeleteCustomImageRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.imageId = builder.imageId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteCustomImageRequest 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 regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteCustomImageRequest, Builder> { private String clientToken; private String imageId; private String regionId; private Builder() { super(); } private Builder(DeleteCustomImageRequest request) { super(request); this.clientToken = request.clientToken; this.imageId = request.imageId; 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 custom image ID.</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 region ID of the custom image. 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 DeleteCustomImageRequest build() { return new DeleteCustomImageRequest(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/DeleteCustomImageResponse.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 DeleteCustomImageResponse} extends {@link TeaModel} * * <p>DeleteCustomImageResponse</p> */ public class DeleteCustomImageResponse 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 DeleteCustomImageResponseBody body; private DeleteCustomImageResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteCustomImageResponse 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 DeleteCustomImageResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteCustomImageResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteCustomImageResponseBody body); @Override DeleteCustomImageResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteCustomImageResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteCustomImageResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteCustomImageResponse 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(DeleteCustomImageResponseBody body) { this.body = body; return this; } @Override public DeleteCustomImageResponse build() { return new DeleteCustomImageResponse(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/DeleteCustomImageResponseBody.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 DeleteCustomImageResponseBody} extends {@link TeaModel} * * <p>DeleteCustomImageResponseBody</p> */ public class DeleteCustomImageResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteCustomImageResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteCustomImageResponseBody 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 DeleteCustomImageResponseBody build() { return new DeleteCustomImageResponseBody(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/DeleteCustomImagesRequest.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 DeleteCustomImagesRequest} extends {@link RequestModel} * * <p>DeleteCustomImagesRequest</p> */ public class DeleteCustomImagesRequest 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("ImageIds") @com.aliyun.core.annotation.Validation(required = true) private String imageIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DeleteCustomImagesRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.imageIds = builder.imageIds; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteCustomImagesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return imageIds */ public String getImageIds() { return this.imageIds; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteCustomImagesRequest, Builder> { private String clientToken; private String imageIds; private String regionId; private Builder() { super(); } private Builder(DeleteCustomImagesRequest request) { super(request); this.clientToken = request.clientToken; this.imageIds = request.imageIds; this.regionId = request.regionId; } /** * <p>The client token that you want to use 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">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 custom image. The value can be a JSON array that consists of up to 15 image IDs. Separate multiple image IDs with commas (,).</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[&quot;m-2zehv38jjmwva1ee****&quot;, &quot;m-bp1hj0zhmheyq2kz****&quot;]</p> */ public Builder imageIds(String imageIds) { this.putQueryParameter("ImageIds", imageIds); this.imageIds = imageIds; 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 DeleteCustomImagesRequest build() { return new DeleteCustomImagesRequest(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/DeleteCustomImagesResponse.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 DeleteCustomImagesResponse} extends {@link TeaModel} * * <p>DeleteCustomImagesResponse</p> */ public class DeleteCustomImagesResponse 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 DeleteCustomImagesResponseBody body; private DeleteCustomImagesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteCustomImagesResponse 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 DeleteCustomImagesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteCustomImagesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteCustomImagesResponseBody body); @Override DeleteCustomImagesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteCustomImagesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteCustomImagesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteCustomImagesResponse 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(DeleteCustomImagesResponseBody body) { this.body = body; return this; } @Override public DeleteCustomImagesResponse build() { return new DeleteCustomImagesResponse(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/DeleteCustomImagesResponseBody.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 DeleteCustomImagesResponseBody} extends {@link TeaModel} * * <p>DeleteCustomImagesResponseBody</p> */ public class DeleteCustomImagesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteCustomImagesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteCustomImagesResponseBody 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 DeleteCustomImagesResponseBody build() { return new DeleteCustomImagesResponseBody(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/DeleteFirewallRuleRequest.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 DeleteFirewallRuleRequest} extends {@link RequestModel} * * <p>DeleteFirewallRuleRequest</p> */ public class DeleteFirewallRuleRequest 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("RuleId") @com.aliyun.core.annotation.Validation(required = true) private String ruleId; private DeleteFirewallRuleRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.ruleId = builder.ruleId; } public static Builder builder() { return new Builder(); } public static DeleteFirewallRuleRequest 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 ruleId */ public String getRuleId() { return this.ruleId; } public static final class Builder extends Request.Builder<DeleteFirewallRuleRequest, Builder> { private String clientToken; private String instanceId; private String regionId; private String ruleId; private Builder() { super(); } private Builder(DeleteFirewallRuleRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.regionId = request.regionId; 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.</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 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 DeleteFirewallRuleRequest build() { return new DeleteFirewallRuleRequest(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/DeleteFirewallRuleResponse.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 DeleteFirewallRuleResponse} extends {@link TeaModel} * * <p>DeleteFirewallRuleResponse</p> */ public class DeleteFirewallRuleResponse 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 DeleteFirewallRuleResponseBody body; private DeleteFirewallRuleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteFirewallRuleResponse 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 DeleteFirewallRuleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteFirewallRuleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteFirewallRuleResponseBody body); @Override DeleteFirewallRuleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteFirewallRuleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteFirewallRuleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteFirewallRuleResponse 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(DeleteFirewallRuleResponseBody body) { this.body = body; return this; } @Override public DeleteFirewallRuleResponse build() { return new DeleteFirewallRuleResponse(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/DeleteFirewallRuleResponseBody.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 DeleteFirewallRuleResponseBody} extends {@link TeaModel} * * <p>DeleteFirewallRuleResponseBody</p> */ public class DeleteFirewallRuleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteFirewallRuleResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteFirewallRuleResponseBody 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 DeleteFirewallRuleResponseBody build() { return new DeleteFirewallRuleResponseBody(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/DeleteFirewallRulesRequest.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 DeleteFirewallRulesRequest} extends {@link RequestModel} * * <p>DeleteFirewallRulesRequest</p> */ public class DeleteFirewallRulesRequest 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("RuleIds") private java.util.List<String> ruleIds; private DeleteFirewallRulesRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.ruleIds = builder.ruleIds; } public static Builder builder() { return new Builder(); } public static DeleteFirewallRulesRequest 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 ruleIds */ public java.util.List<String> getRuleIds() { return this.ruleIds; } public static final class Builder extends Request.Builder<DeleteFirewallRulesRequest, Builder> { private String clientToken; private String instanceId; private String regionId; private java.util.List<String> ruleIds; private Builder() { super(); } private Builder(DeleteFirewallRulesRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.regionId = request.regionId; this.ruleIds = request.ruleIds; } /** * <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 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 IDs of the firewall rules that you want to delete.</p> */ public Builder ruleIds(java.util.List<String> ruleIds) { String ruleIdsShrink = shrink(ruleIds, "RuleIds", "simple"); this.putQueryParameter("RuleIds", ruleIdsShrink); this.ruleIds = ruleIds; return this; } @Override public DeleteFirewallRulesRequest build() { return new DeleteFirewallRulesRequest(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/DeleteFirewallRulesResponse.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 DeleteFirewallRulesResponse} extends {@link TeaModel} * * <p>DeleteFirewallRulesResponse</p> */ public class DeleteFirewallRulesResponse 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 DeleteFirewallRulesResponseBody body; private DeleteFirewallRulesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteFirewallRulesResponse 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 DeleteFirewallRulesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteFirewallRulesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteFirewallRulesResponseBody body); @Override DeleteFirewallRulesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteFirewallRulesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteFirewallRulesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteFirewallRulesResponse 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(DeleteFirewallRulesResponseBody body) { this.body = body; return this; } @Override public DeleteFirewallRulesResponse build() { return new DeleteFirewallRulesResponse(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/DeleteFirewallRulesResponseBody.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 DeleteFirewallRulesResponseBody} extends {@link TeaModel} * * <p>DeleteFirewallRulesResponseBody</p> */ public class DeleteFirewallRulesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteFirewallRulesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteFirewallRulesResponseBody 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 DeleteFirewallRulesResponseBody build() { return new DeleteFirewallRulesResponseBody(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/DeleteFirewallTemplateRulesRequest.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 DeleteFirewallTemplateRulesRequest} extends {@link RequestModel} * * <p>DeleteFirewallTemplateRulesRequest</p> */ public class DeleteFirewallTemplateRulesRequest 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("FirewallTemplateRuleId") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> firewallTemplateRuleId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; private DeleteFirewallTemplateRulesRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.firewallTemplateId = builder.firewallTemplateId; this.firewallTemplateRuleId = builder.firewallTemplateRuleId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteFirewallTemplateRulesRequest 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 firewallTemplateRuleId */ public java.util.List<String> getFirewallTemplateRuleId() { return this.firewallTemplateRuleId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteFirewallTemplateRulesRequest, Builder> { private String clientToken; private String firewallTemplateId; private java.util.List<String> firewallTemplateRuleId; private String regionId; private Builder() { super(); } private Builder(DeleteFirewallTemplateRulesRequest request) { super(request); this.clientToken = request.clientToken; this.firewallTemplateId = request.firewallTemplateId; this.firewallTemplateRuleId = request.firewallTemplateRuleId; 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 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 IDs of the firewall template rules.</p> * <p>This parameter is required.</p> */ public Builder firewallTemplateRuleId(java.util.List<String> firewallTemplateRuleId) { this.putQueryParameter("FirewallTemplateRuleId", firewallTemplateRuleId); this.firewallTemplateRuleId = firewallTemplateRuleId; 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 DeleteFirewallTemplateRulesRequest build() { return new DeleteFirewallTemplateRulesRequest(this); } } }