index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteHostShareKeyResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteHostShareKeyResponse} extends {@link TeaModel} * * <p>DeleteHostShareKeyResponse</p> */ public class DeleteHostShareKeyResponse 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 DeleteHostShareKeyResponseBody body; private DeleteHostShareKeyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteHostShareKeyResponse 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 DeleteHostShareKeyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteHostShareKeyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteHostShareKeyResponseBody body); @Override DeleteHostShareKeyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteHostShareKeyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteHostShareKeyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteHostShareKeyResponse 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(DeleteHostShareKeyResponseBody body) { this.body = body; return this; } @Override public DeleteHostShareKeyResponse build() { return new DeleteHostShareKeyResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteHostShareKeyResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteHostShareKeyResponseBody} extends {@link TeaModel} * * <p>DeleteHostShareKeyResponseBody</p> */ public class DeleteHostShareKeyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteHostShareKeyResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteHostShareKeyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(DeleteHostShareKeyResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteHostShareKeyResponseBody build() { return new DeleteHostShareKeyResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteNetworkDomainRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteNetworkDomainRequest} extends {@link RequestModel} * * <p>DeleteNetworkDomainRequest</p> */ public class DeleteNetworkDomainRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkDomainId") @com.aliyun.core.annotation.Validation(required = true) private String networkDomainId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private DeleteNetworkDomainRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.networkDomainId = builder.networkDomainId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteNetworkDomainRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return networkDomainId */ public String getNetworkDomainId() { return this.networkDomainId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteNetworkDomainRequest, Builder> { private String instanceId; private String networkDomainId; private String regionId; private Builder() { super(); } private Builder(DeleteNetworkDomainRequest request) { super(request); this.instanceId = request.instanceId; this.networkDomainId = request.networkDomainId; this.regionId = request.regionId; } /** * <p>The ID of the bastion host whose network domain you want to delete.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost_std_intl-sg-uq833e2dz02</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The ID of the network domain to be deleted.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder networkDomainId(String networkDomainId) { this.putQueryParameter("NetworkDomainId", networkDomainId); this.networkDomainId = networkDomainId; return this; } /** * <p>The region ID of the bastion host whose network domain you want to delete.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public DeleteNetworkDomainRequest build() { return new DeleteNetworkDomainRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteNetworkDomainResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteNetworkDomainResponse} extends {@link TeaModel} * * <p>DeleteNetworkDomainResponse</p> */ public class DeleteNetworkDomainResponse 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 DeleteNetworkDomainResponseBody body; private DeleteNetworkDomainResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteNetworkDomainResponse 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 DeleteNetworkDomainResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteNetworkDomainResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteNetworkDomainResponseBody body); @Override DeleteNetworkDomainResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteNetworkDomainResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteNetworkDomainResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteNetworkDomainResponse 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(DeleteNetworkDomainResponseBody body) { this.body = body; return this; } @Override public DeleteNetworkDomainResponse build() { return new DeleteNetworkDomainResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteNetworkDomainResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteNetworkDomainResponseBody} extends {@link TeaModel} * * <p>DeleteNetworkDomainResponseBody</p> */ public class DeleteNetworkDomainResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteNetworkDomainResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteNetworkDomainResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(DeleteNetworkDomainResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>66B9D942-E3C8-5068-A479-5A7B7BF3DE35</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteNetworkDomainResponseBody build() { return new DeleteNetworkDomainResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeletePolicyRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeletePolicyRequest} extends {@link RequestModel} * * <p>DeletePolicyRequest</p> */ public class DeletePolicyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PolicyId") @com.aliyun.core.annotation.Validation(required = true) private String policyId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private DeletePolicyRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.policyId = builder.policyId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeletePolicyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return policyId */ public String getPolicyId() { return this.policyId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeletePolicyRequest, Builder> { private String instanceId; private String policyId; private String regionId; private Builder() { super(); } private Builder(DeletePolicyRequest request) { super(request); this.instanceId = request.instanceId; this.policyId = request.policyId; this.regionId = request.regionId; } /** * <p>The ID of the bastion host whose control policy you want to delete.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The ID of the control policy to be deleted.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2758876.html">ListPolicies</a> operation to query the control policy ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder policyId(String policyId) { this.putQueryParameter("PolicyId", policyId); this.policyId = policyId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public DeletePolicyRequest build() { return new DeletePolicyRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeletePolicyResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeletePolicyResponse} extends {@link TeaModel} * * <p>DeletePolicyResponse</p> */ public class DeletePolicyResponse 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 DeletePolicyResponseBody body; private DeletePolicyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeletePolicyResponse 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 DeletePolicyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeletePolicyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeletePolicyResponseBody body); @Override DeletePolicyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeletePolicyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeletePolicyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeletePolicyResponse 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(DeletePolicyResponseBody body) { this.body = body; return this; } @Override public DeletePolicyResponse build() { return new DeletePolicyResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeletePolicyResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeletePolicyResponseBody} extends {@link TeaModel} * * <p>DeletePolicyResponseBody</p> */ public class DeletePolicyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeletePolicyResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeletePolicyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(DeletePolicyResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeletePolicyResponseBody build() { return new DeletePolicyResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteRuleRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteRuleRequest} extends {@link RequestModel} * * <p>DeleteRuleRequest</p> */ public class DeleteRuleRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") 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 DeleteRuleRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.ruleId = builder.ruleId; } public static Builder builder() { return new Builder(); } public static DeleteRuleRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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<DeleteRuleRequest, Builder> { private String instanceId; private String regionId; private String ruleId; private Builder() { super(); } private Builder(DeleteRuleRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.ruleId = request.ruleId; } /** * <p>The ID of the bastion host from which you want to delete the authorization rule.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host from which you want to delete the authorization rule.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the authorization rule that you want to delete.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2758868.html">ListRules</a> operation to query the authorization rule ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder ruleId(String ruleId) { this.putQueryParameter("RuleId", ruleId); this.ruleId = ruleId; return this; } @Override public DeleteRuleRequest build() { return new DeleteRuleRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteRuleResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteRuleResponse} extends {@link TeaModel} * * <p>DeleteRuleResponse</p> */ public class DeleteRuleResponse 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 DeleteRuleResponseBody body; private DeleteRuleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteRuleResponse 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 DeleteRuleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteRuleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteRuleResponseBody body); @Override DeleteRuleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteRuleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteRuleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteRuleResponse 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(DeleteRuleResponseBody body) { this.body = body; return this; } @Override public DeleteRuleResponse build() { return new DeleteRuleResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteRuleResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteRuleResponseBody} extends {@link TeaModel} * * <p>DeleteRuleResponseBody</p> */ public class DeleteRuleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteRuleResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteRuleResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(DeleteRuleResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteRuleResponseBody build() { return new DeleteRuleResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteUserGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteUserGroupRequest} extends {@link RequestModel} * * <p>DeleteUserGroupRequest</p> */ public class DeleteUserGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserGroupId") @com.aliyun.core.annotation.Validation(required = true) private String userGroupId; private DeleteUserGroupRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.userGroupId = builder.userGroupId; } public static Builder builder() { return new Builder(); } public static DeleteUserGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return userGroupId */ public String getUserGroupId() { return this.userGroupId; } public static final class Builder extends Request.Builder<DeleteUserGroupRequest, Builder> { private String instanceId; private String regionId; private String userGroupId; private Builder() { super(); } private Builder(DeleteUserGroupRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.userGroupId = request.userGroupId; } /** * <p>The ID of the bastion host on which you want to delete the user group.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host on which you want to delete the user group.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the user group that you want to delete.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/204509.html">ListUserGroups</a> operation to query the ID of the user group.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userGroupId(String userGroupId) { this.putQueryParameter("UserGroupId", userGroupId); this.userGroupId = userGroupId; return this; } @Override public DeleteUserGroupRequest build() { return new DeleteUserGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteUserGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteUserGroupResponse} extends {@link TeaModel} * * <p>DeleteUserGroupResponse</p> */ public class DeleteUserGroupResponse 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 DeleteUserGroupResponseBody body; private DeleteUserGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteUserGroupResponse 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 DeleteUserGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteUserGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteUserGroupResponseBody body); @Override DeleteUserGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteUserGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteUserGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteUserGroupResponse 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(DeleteUserGroupResponseBody body) { this.body = body; return this; } @Override public DeleteUserGroupResponse build() { return new DeleteUserGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteUserGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteUserGroupResponseBody} extends {@link TeaModel} * * <p>DeleteUserGroupResponseBody</p> */ public class DeleteUserGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteUserGroupResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteUserGroupResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(DeleteUserGroupResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteUserGroupResponseBody build() { return new DeleteUserGroupResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteUserPublicKeyRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteUserPublicKeyRequest} extends {@link RequestModel} * * <p>DeleteUserPublicKeyRequest</p> */ public class DeleteUserPublicKeyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PublicKeyId") @com.aliyun.core.annotation.Validation(required = true) private String publicKeyId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private DeleteUserPublicKeyRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.publicKeyId = builder.publicKeyId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DeleteUserPublicKeyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return publicKeyId */ public String getPublicKeyId() { return this.publicKeyId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DeleteUserPublicKeyRequest, Builder> { private String instanceId; private String publicKeyId; private String regionId; private Builder() { super(); } private Builder(DeleteUserPublicKeyRequest request) { super(request); this.instanceId = request.instanceId; this.publicKeyId = request.publicKeyId; this.regionId = request.regionId; } /** * <p>The ID of the Bastionhost instance to which the users to be queried belong.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the Bastionhost instance.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The public key ID.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/477555.html">ListUserPublicKeys</a> operation to query the public key ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>11</p> */ public Builder publicKeyId(String publicKeyId) { this.putQueryParameter("PublicKeyId", publicKeyId); this.publicKeyId = publicKeyId; return this; } /** * <p>The region ID of the bastion host. For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public DeleteUserPublicKeyRequest build() { return new DeleteUserPublicKeyRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteUserPublicKeyResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteUserPublicKeyResponse} extends {@link TeaModel} * * <p>DeleteUserPublicKeyResponse</p> */ public class DeleteUserPublicKeyResponse 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 DeleteUserPublicKeyResponseBody body; private DeleteUserPublicKeyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteUserPublicKeyResponse 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 DeleteUserPublicKeyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteUserPublicKeyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteUserPublicKeyResponseBody body); @Override DeleteUserPublicKeyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteUserPublicKeyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteUserPublicKeyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteUserPublicKeyResponse 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(DeleteUserPublicKeyResponseBody body) { this.body = body; return this; } @Override public DeleteUserPublicKeyResponse build() { return new DeleteUserPublicKeyResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteUserPublicKeyResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteUserPublicKeyResponseBody} extends {@link TeaModel} * * <p>DeleteUserPublicKeyResponseBody</p> */ public class DeleteUserPublicKeyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteUserPublicKeyResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteUserPublicKeyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(DeleteUserPublicKeyResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteUserPublicKeyResponseBody build() { return new DeleteUserPublicKeyResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteUserRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteUserRequest} extends {@link RequestModel} * * <p>DeleteUserRequest</p> */ public class DeleteUserRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserId") @com.aliyun.core.annotation.Validation(required = true) private String userId; private DeleteUserRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static DeleteUserRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder extends Request.Builder<DeleteUserRequest, Builder> { private String instanceId; private String regionId; private String userId; private Builder() { super(); } private Builder(DeleteUserRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.userId = request.userId; } /** * <p>The ID of the bastion host to which the user to be deleted belongs.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host to which the user to be deleted belongs.</p> * <blockquote> * <p> For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the user to be deleted.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/204522.html">ListUsers</a> operation to query the user ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userId(String userId) { this.putQueryParameter("UserId", userId); this.userId = userId; return this; } @Override public DeleteUserRequest build() { return new DeleteUserRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteUserResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteUserResponse} extends {@link TeaModel} * * <p>DeleteUserResponse</p> */ public class DeleteUserResponse 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 DeleteUserResponseBody body; private DeleteUserResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DeleteUserResponse 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 DeleteUserResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DeleteUserResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DeleteUserResponseBody body); @Override DeleteUserResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DeleteUserResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DeleteUserResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DeleteUserResponse 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(DeleteUserResponseBody body) { this.body = body; return this; } @Override public DeleteUserResponse build() { return new DeleteUserResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DeleteUserResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DeleteUserResponseBody} extends {@link TeaModel} * * <p>DeleteUserResponseBody</p> */ public class DeleteUserResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DeleteUserResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DeleteUserResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(DeleteUserResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DeleteUserResponseBody build() { return new DeleteUserResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DescribeInstanceAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstanceAttributeRequest} extends {@link RequestModel} * * <p>DescribeInstanceAttributeRequest</p> */ public class DescribeInstanceAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private DescribeInstanceAttributeRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeInstanceAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeInstanceAttributeRequest, Builder> { private String instanceId; private String regionId; private Builder() { super(); } private Builder(DescribeInstanceAttributeRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the Bastionhost instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-78v1ghxxxxx</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The ID of the region.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public DescribeInstanceAttributeRequest build() { return new DescribeInstanceAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DescribeInstanceAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstanceAttributeResponse} extends {@link TeaModel} * * <p>DescribeInstanceAttributeResponse</p> */ public class DescribeInstanceAttributeResponse 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 DescribeInstanceAttributeResponseBody body; private DescribeInstanceAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeInstanceAttributeResponse 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 DescribeInstanceAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeInstanceAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeInstanceAttributeResponseBody body); @Override DescribeInstanceAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeInstanceAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeInstanceAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeInstanceAttributeResponse 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(DescribeInstanceAttributeResponseBody body) { this.body = body; return this; } @Override public DescribeInstanceAttributeResponse build() { return new DescribeInstanceAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DescribeInstanceAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstanceAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeInstanceAttributeResponseBody</p> */ public class DescribeInstanceAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceAttribute") private InstanceAttribute instanceAttribute; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeInstanceAttributeResponseBody(Builder builder) { this.instanceAttribute = builder.instanceAttribute; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeInstanceAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return instanceAttribute */ public InstanceAttribute getInstanceAttribute() { return this.instanceAttribute; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private InstanceAttribute instanceAttribute; private String requestId; private Builder() { } private Builder(DescribeInstanceAttributeResponseBody model) { this.instanceAttribute = model.instanceAttribute; this.requestId = model.requestId; } /** * <p>The attribute information about the bastion host.</p> */ public Builder instanceAttribute(InstanceAttribute instanceAttribute) { this.instanceAttribute = instanceAttribute; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>082FAB35-6AB9-4FD5-8750-D36673548E76</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeInstanceAttributeResponseBody build() { return new DescribeInstanceAttributeResponseBody(this); } } /** * * {@link DescribeInstanceAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeInstanceAttributeResponseBody</p> */ public static class Ports extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomPort") private Integer customPort; @com.aliyun.core.annotation.NameInMap("StandardPort") private Integer standardPort; private Ports(Builder builder) { this.customPort = builder.customPort; this.standardPort = builder.standardPort; } public static Builder builder() { return new Builder(); } public static Ports create() { return builder().build(); } /** * @return customPort */ public Integer getCustomPort() { return this.customPort; } /** * @return standardPort */ public Integer getStandardPort() { return this.standardPort; } public static final class Builder { private Integer customPort; private Integer standardPort; private Builder() { } private Builder(Ports model) { this.customPort = model.customPort; this.standardPort = model.standardPort; } /** * <p>The custom port.</p> * <blockquote> * <p>Only the SSH and RDP ports can be changed. If no custom O&amp;M port is specified for the bastion host, the value of StandardPort is returned.</p> * </blockquote> * * <strong>example:</strong> * <p>600xx</p> */ public Builder customPort(Integer customPort) { this.customPort = customPort; return this; } /** * <p>The standard port of the bastion host. Valid values:</p> * <ul> * <li><strong>SSH</strong>: 60022.</li> * <li><strong>RDP</strong>: 63389.</li> * <li><strong>HTTPS</strong>: 443.</li> * </ul> * * <strong>example:</strong> * <p>60022</p> */ public Builder standardPort(Integer standardPort) { this.standardPort = standardPort; return this; } public Ports build() { return new Ports(this); } } } /** * * {@link DescribeInstanceAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeInstanceAttributeResponseBody</p> */ public static class WhiteListPolicies extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Entry") private String entry; private WhiteListPolicies(Builder builder) { this.description = builder.description; this.entry = builder.entry; } public static Builder builder() { return new Builder(); } public static WhiteListPolicies create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return entry */ public String getEntry() { return this.entry; } public static final class Builder { private String description; private String entry; private Builder() { } private Builder(WhiteListPolicies model) { this.description = model.description; this.entry = model.entry; } /** * Description. */ public Builder description(String description) { this.description = description; return this; } /** * Entry. */ public Builder entry(String entry) { this.entry = entry; return this; } public WhiteListPolicies build() { return new WhiteListPolicies(this); } } } /** * * {@link DescribeInstanceAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeInstanceAttributeResponseBody</p> */ public static class InstanceAttribute extends TeaModel { @com.aliyun.core.annotation.NameInMap("AppOperationModule") private String appOperationModule; @com.aliyun.core.annotation.NameInMap("AuthorizedSecurityGroups") private java.util.List<String> authorizedSecurityGroups; @com.aliyun.core.annotation.NameInMap("Bandwidth") private String bandwidth; @com.aliyun.core.annotation.NameInMap("BandwidthPackage") private String bandwidthPackage; @com.aliyun.core.annotation.NameInMap("DbOperationModule") private String dbOperationModule; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EniInstanceId") private String eniInstanceId; @com.aliyun.core.annotation.NameInMap("ExpireTime") private Long expireTime; @com.aliyun.core.annotation.NameInMap("HSMModule") private String HSMModule; @com.aliyun.core.annotation.NameInMap("IDaaSModule") private String iDaaSModule; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceStatus") private String instanceStatus; @com.aliyun.core.annotation.NameInMap("InternetEndpoint") private String internetEndpoint; @com.aliyun.core.annotation.NameInMap("IntranetEndpoint") private String intranetEndpoint; @com.aliyun.core.annotation.NameInMap("KmsSecretModule") private String kmsSecretModule; @com.aliyun.core.annotation.NameInMap("LicenseCode") private String licenseCode; @com.aliyun.core.annotation.NameInMap("ModifyPasswordModule") private String modifyPasswordModule; @com.aliyun.core.annotation.NameInMap("NetworkProxyModule") private String networkProxyModule; @com.aliyun.core.annotation.NameInMap("Ports") private java.util.List<Ports> ports; @com.aliyun.core.annotation.NameInMap("PrivateExportIps") private java.util.List<String> privateExportIps; @com.aliyun.core.annotation.NameInMap("PrivateWhiteList") private java.util.List<String> privateWhiteList; @com.aliyun.core.annotation.NameInMap("PublicExportIps") private java.util.List<String> publicExportIps; @com.aliyun.core.annotation.NameInMap("PublicIps") private java.util.List<String> publicIps; @com.aliyun.core.annotation.NameInMap("PublicNetworkAccess") private Boolean publicNetworkAccess; @com.aliyun.core.annotation.NameInMap("PublicWhiteList") private java.util.List<String> publicWhiteList; @com.aliyun.core.annotation.NameInMap("RDModule") private String RDModule; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("RouterRules") private java.util.List<String> routerRules; @com.aliyun.core.annotation.NameInMap("ScriptDeliverModule") private String scriptDeliverModule; @com.aliyun.core.annotation.NameInMap("SecurityGroupIds") private java.util.List<String> securityGroupIds; @com.aliyun.core.annotation.NameInMap("SlaveVswitchId") private String slaveVswitchId; @com.aliyun.core.annotation.NameInMap("StartTime") private Long startTime; @com.aliyun.core.annotation.NameInMap("Storage") private Long storage; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("VswitchId") private String vswitchId; @com.aliyun.core.annotation.NameInMap("WebTerminalModule") private String webTerminalModule; @com.aliyun.core.annotation.NameInMap("WhiteListPolicies") private java.util.List<WhiteListPolicies> whiteListPolicies; private InstanceAttribute(Builder builder) { this.appOperationModule = builder.appOperationModule; this.authorizedSecurityGroups = builder.authorizedSecurityGroups; this.bandwidth = builder.bandwidth; this.bandwidthPackage = builder.bandwidthPackage; this.dbOperationModule = builder.dbOperationModule; this.description = builder.description; this.eniInstanceId = builder.eniInstanceId; this.expireTime = builder.expireTime; this.HSMModule = builder.HSMModule; this.iDaaSModule = builder.iDaaSModule; this.instanceId = builder.instanceId; this.instanceStatus = builder.instanceStatus; this.internetEndpoint = builder.internetEndpoint; this.intranetEndpoint = builder.intranetEndpoint; this.kmsSecretModule = builder.kmsSecretModule; this.licenseCode = builder.licenseCode; this.modifyPasswordModule = builder.modifyPasswordModule; this.networkProxyModule = builder.networkProxyModule; this.ports = builder.ports; this.privateExportIps = builder.privateExportIps; this.privateWhiteList = builder.privateWhiteList; this.publicExportIps = builder.publicExportIps; this.publicIps = builder.publicIps; this.publicNetworkAccess = builder.publicNetworkAccess; this.publicWhiteList = builder.publicWhiteList; this.RDModule = builder.RDModule; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.routerRules = builder.routerRules; this.scriptDeliverModule = builder.scriptDeliverModule; this.securityGroupIds = builder.securityGroupIds; this.slaveVswitchId = builder.slaveVswitchId; this.startTime = builder.startTime; this.storage = builder.storage; this.vpcId = builder.vpcId; this.vswitchId = builder.vswitchId; this.webTerminalModule = builder.webTerminalModule; this.whiteListPolicies = builder.whiteListPolicies; } public static Builder builder() { return new Builder(); } public static InstanceAttribute create() { return builder().build(); } /** * @return appOperationModule */ public String getAppOperationModule() { return this.appOperationModule; } /** * @return authorizedSecurityGroups */ public java.util.List<String> getAuthorizedSecurityGroups() { return this.authorizedSecurityGroups; } /** * @return bandwidth */ public String getBandwidth() { return this.bandwidth; } /** * @return bandwidthPackage */ public String getBandwidthPackage() { return this.bandwidthPackage; } /** * @return dbOperationModule */ public String getDbOperationModule() { return this.dbOperationModule; } /** * @return description */ public String getDescription() { return this.description; } /** * @return eniInstanceId */ public String getEniInstanceId() { return this.eniInstanceId; } /** * @return expireTime */ public Long getExpireTime() { return this.expireTime; } /** * @return HSMModule */ public String getHSMModule() { return this.HSMModule; } /** * @return iDaaSModule */ public String getIDaaSModule() { return this.iDaaSModule; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceStatus */ public String getInstanceStatus() { return this.instanceStatus; } /** * @return internetEndpoint */ public String getInternetEndpoint() { return this.internetEndpoint; } /** * @return intranetEndpoint */ public String getIntranetEndpoint() { return this.intranetEndpoint; } /** * @return kmsSecretModule */ public String getKmsSecretModule() { return this.kmsSecretModule; } /** * @return licenseCode */ public String getLicenseCode() { return this.licenseCode; } /** * @return modifyPasswordModule */ public String getModifyPasswordModule() { return this.modifyPasswordModule; } /** * @return networkProxyModule */ public String getNetworkProxyModule() { return this.networkProxyModule; } /** * @return ports */ public java.util.List<Ports> getPorts() { return this.ports; } /** * @return privateExportIps */ public java.util.List<String> getPrivateExportIps() { return this.privateExportIps; } /** * @return privateWhiteList */ public java.util.List<String> getPrivateWhiteList() { return this.privateWhiteList; } /** * @return publicExportIps */ public java.util.List<String> getPublicExportIps() { return this.publicExportIps; } /** * @return publicIps */ public java.util.List<String> getPublicIps() { return this.publicIps; } /** * @return publicNetworkAccess */ public Boolean getPublicNetworkAccess() { return this.publicNetworkAccess; } /** * @return publicWhiteList */ public java.util.List<String> getPublicWhiteList() { return this.publicWhiteList; } /** * @return RDModule */ public String getRDModule() { return this.RDModule; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return routerRules */ public java.util.List<String> getRouterRules() { return this.routerRules; } /** * @return scriptDeliverModule */ public String getScriptDeliverModule() { return this.scriptDeliverModule; } /** * @return securityGroupIds */ public java.util.List<String> getSecurityGroupIds() { return this.securityGroupIds; } /** * @return slaveVswitchId */ public String getSlaveVswitchId() { return this.slaveVswitchId; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } /** * @return storage */ public Long getStorage() { return this.storage; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vswitchId */ public String getVswitchId() { return this.vswitchId; } /** * @return webTerminalModule */ public String getWebTerminalModule() { return this.webTerminalModule; } /** * @return whiteListPolicies */ public java.util.List<WhiteListPolicies> getWhiteListPolicies() { return this.whiteListPolicies; } public static final class Builder { private String appOperationModule; private java.util.List<String> authorizedSecurityGroups; private String bandwidth; private String bandwidthPackage; private String dbOperationModule; private String description; private String eniInstanceId; private Long expireTime; private String HSMModule; private String iDaaSModule; private String instanceId; private String instanceStatus; private String internetEndpoint; private String intranetEndpoint; private String kmsSecretModule; private String licenseCode; private String modifyPasswordModule; private String networkProxyModule; private java.util.List<Ports> ports; private java.util.List<String> privateExportIps; private java.util.List<String> privateWhiteList; private java.util.List<String> publicExportIps; private java.util.List<String> publicIps; private Boolean publicNetworkAccess; private java.util.List<String> publicWhiteList; private String RDModule; private String regionId; private String resourceGroupId; private java.util.List<String> routerRules; private String scriptDeliverModule; private java.util.List<String> securityGroupIds; private String slaveVswitchId; private Long startTime; private Long storage; private String vpcId; private String vswitchId; private String webTerminalModule; private java.util.List<WhiteListPolicies> whiteListPolicies; private Builder() { } private Builder(InstanceAttribute model) { this.appOperationModule = model.appOperationModule; this.authorizedSecurityGroups = model.authorizedSecurityGroups; this.bandwidth = model.bandwidth; this.bandwidthPackage = model.bandwidthPackage; this.dbOperationModule = model.dbOperationModule; this.description = model.description; this.eniInstanceId = model.eniInstanceId; this.expireTime = model.expireTime; this.HSMModule = model.HSMModule; this.iDaaSModule = model.iDaaSModule; this.instanceId = model.instanceId; this.instanceStatus = model.instanceStatus; this.internetEndpoint = model.internetEndpoint; this.intranetEndpoint = model.intranetEndpoint; this.kmsSecretModule = model.kmsSecretModule; this.licenseCode = model.licenseCode; this.modifyPasswordModule = model.modifyPasswordModule; this.networkProxyModule = model.networkProxyModule; this.ports = model.ports; this.privateExportIps = model.privateExportIps; this.privateWhiteList = model.privateWhiteList; this.publicExportIps = model.publicExportIps; this.publicIps = model.publicIps; this.publicNetworkAccess = model.publicNetworkAccess; this.publicWhiteList = model.publicWhiteList; this.RDModule = model.RDModule; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.routerRules = model.routerRules; this.scriptDeliverModule = model.scriptDeliverModule; this.securityGroupIds = model.securityGroupIds; this.slaveVswitchId = model.slaveVswitchId; this.startTime = model.startTime; this.storage = model.storage; this.vpcId = model.vpcId; this.vswitchId = model.vswitchId; this.webTerminalModule = model.webTerminalModule; this.whiteListPolicies = model.whiteListPolicies; } /** * AppOperationModule. */ public Builder appOperationModule(String appOperationModule) { this.appOperationModule = appOperationModule; return this; } /** * <p>The IDs of authorized security groups.</p> */ public Builder authorizedSecurityGroups(java.util.List<String> authorizedSecurityGroups) { this.authorizedSecurityGroups = authorizedSecurityGroups; return this; } /** * <p>The total bandwidth of the bastion host.</p> * * <strong>example:</strong> * <p>30</p> */ public Builder bandwidth(String bandwidth) { this.bandwidth = bandwidth; return this; } /** * <p>The bandwidth plan ID.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder bandwidthPackage(String bandwidthPackage) { this.bandwidthPackage = bandwidthPackage; return this; } /** * <p>The status of the database O&amp;M feature.</p> * * <strong>example:</strong> * <p>Disable</p> */ public Builder dbOperationModule(String dbOperationModule) { this.dbOperationModule = dbOperationModule; return this; } /** * <p>The description of the instance.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The ID of the Elastic Network Interface (ENI).</p> * * <strong>example:</strong> * <p>eni-bp1455jrzwm7moaxxxxx</p> */ public Builder eniInstanceId(String eniInstanceId) { this.eniInstanceId = eniInstanceId; return this; } /** * <p>The time when the instance expires.</p> * * <strong>example:</strong> * <p>1578326400000</p> */ public Builder expireTime(Long expireTime) { this.expireTime = expireTime; return this; } /** * HSMModule. */ public Builder HSMModule(String HSMModule) { this.HSMModule = HSMModule; return this; } /** * IDaaSModule. */ public Builder iDaaSModule(String iDaaSModule) { this.iDaaSModule = iDaaSModule; return this; } /** * <p>The ID of the instance.</p> * * <strong>example:</strong> * <p>bastionhost-cn-78v1ghxxxxx</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The status of the instance. Valid values:</p> * <ul> * <li>PENDING: The instance is not initialized.</li> * <li>CREATING: The instance is being created.</li> * <li>RUNNING: The instance is running.</li> * <li>EXPIRED: The instance expired.</li> * <li>CREATE_FAILED: The instance fails to be created.</li> * <li>UPGRADING: The configurations of the instance are being changed.</li> * <li>UPGRADE_FAILED: The configurations of the instance fail to be changed.</li> * </ul> * * <strong>example:</strong> * <p>RUNNING</p> */ public Builder instanceStatus(String instanceStatus) { this.instanceStatus = instanceStatus; return this; } /** * <p>The public endpoint.</p> * * <strong>example:</strong> * <p>drawvxalwb-public.bastionhost.aliyuncs.com</p> */ public Builder internetEndpoint(String internetEndpoint) { this.internetEndpoint = internetEndpoint; return this; } /** * <p>The private endpoint.</p> * * <strong>example:</strong> * <p>drawvxalwb.bastionhost.aliyuncs.com</p> */ public Builder intranetEndpoint(String intranetEndpoint) { this.intranetEndpoint = intranetEndpoint; return this; } /** * KmsSecretModule. */ public Builder kmsSecretModule(String kmsSecretModule) { this.kmsSecretModule = kmsSecretModule; return this; } /** * <p>The license code.</p> * * <strong>example:</strong> * <p>bhah_ent_50_asset</p> */ public Builder licenseCode(String licenseCode) { this.licenseCode = licenseCode; return this; } /** * <p>The status of the automatic password change feature.</p> * <ul> * <li><strong>Enable</strong></li> * <li><strong>Disable</strong></li> * </ul> * * <strong>example:</strong> * <p>Enable</p> */ public Builder modifyPasswordModule(String modifyPasswordModule) { this.modifyPasswordModule = modifyPasswordModule; return this; } /** * <p>The status of the network domain feature.</p> * <ul> * <li><strong>Enable</strong></li> * <li><strong>Disable</strong></li> * </ul> * * <strong>example:</strong> * <p>Enable</p> */ public Builder networkProxyModule(String networkProxyModule) { this.networkProxyModule = networkProxyModule; return this; } /** * <p>An array that consists of the O&amp;M ports of the bastion host.</p> */ public Builder ports(java.util.List<Ports> ports) { this.ports = ports; return this; } /** * <p>An array that consists of the egress private IP addresses of the bastion host.</p> */ public Builder privateExportIps(java.util.List<String> privateExportIps) { this.privateExportIps = privateExportIps; return this; } /** * <p>The private IP addresses that are allowed to access the instance.</p> */ public Builder privateWhiteList(java.util.List<String> privateWhiteList) { this.privateWhiteList = privateWhiteList; return this; } /** * <p>An array that consists of the egress public IP addresses of the bastion host.</p> */ public Builder publicExportIps(java.util.List<String> publicExportIps) { this.publicExportIps = publicExportIps; return this; } /** * <p>The public IP address.</p> */ public Builder publicIps(java.util.List<String> publicIps) { this.publicIps = publicIps; return this; } /** * <p>Indicates whether the Bastionhost instance can be accessed over the Internet.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder publicNetworkAccess(Boolean publicNetworkAccess) { this.publicNetworkAccess = publicNetworkAccess; return this; } /** * <p>The public IP addresses that are allowed to access the instance.</p> */ public Builder publicWhiteList(java.util.List<String> publicWhiteList) { this.publicWhiteList = publicWhiteList; return this; } /** * RDModule. */ public Builder RDModule(String RDModule) { this.RDModule = RDModule; return this; } /** * <p>The region ID of the instance.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the instance belongs.</p> * * <strong>example:</strong> * <p>rg-aekzc427dbl2shy</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * RouterRules. */ public Builder routerRules(java.util.List<String> routerRules) { this.routerRules = routerRules; return this; } /** * ScriptDeliverModule. */ public Builder scriptDeliverModule(String scriptDeliverModule) { this.scriptDeliverModule = scriptDeliverModule; return this; } /** * <p>The IDs of the security groups to which the instance belongs.</p> */ public Builder securityGroupIds(java.util.List<String> securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; } /** * SlaveVswitchId. */ public Builder slaveVswitchId(String slaveVswitchId) { this.slaveVswitchId = slaveVswitchId; return this; } /** * <p>The time when the instance started.</p> * * <strong>example:</strong> * <p>1577681345000</p> */ public Builder startTime(Long startTime) { this.startTime = startTime; return this; } /** * <p>The storage capacity of the bastion host. Unit: bytes.</p> * * <strong>example:</strong> * <p>2199023255552</p> */ public Builder storage(Long storage) { this.storage = storage; return this; } /** * <p>The ID of the VPC to which the instance belongs.</p> * * <strong>example:</strong> * <p>vpc-bp1c85tzgqu1bf5bxxxxx</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * <p>The ID of the vSwitch to which the instance connects.</p> * * <strong>example:</strong> * <p>vsw-bp1xfwzzfti0kjbfxxxxx</p> */ public Builder vswitchId(String vswitchId) { this.vswitchId = vswitchId; return this; } /** * <p>The status of the web terminal.</p> * <ul> * <li><strong>Enable</strong></li> * <li><strong>Disable</strong></li> * </ul> * * <strong>example:</strong> * <p>Enable</p> */ public Builder webTerminalModule(String webTerminalModule) { this.webTerminalModule = webTerminalModule; return this; } /** * WhiteListPolicies. */ public Builder whiteListPolicies(java.util.List<WhiteListPolicies> whiteListPolicies) { this.whiteListPolicies = whiteListPolicies; return this; } public InstanceAttribute build() { return new InstanceAttribute(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DescribeInstancesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstancesRequest} extends {@link RequestModel} * * <p>DescribeInstancesRequest</p> */ public class DescribeInstancesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") private java.util.List<String> instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceStatus") private String instanceStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") 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; private DescribeInstancesRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.instanceStatus = builder.instanceStatus; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static DescribeInstancesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public java.util.List<String> getInstanceId() { return this.instanceId; } /** * @return instanceStatus */ public String getInstanceStatus() { return this.instanceStatus; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<DescribeInstancesRequest, Builder> { private java.util.List<String> instanceId; private String instanceStatus; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceGroupId; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(DescribeInstancesRequest request) { super(request); this.instanceId = request.instanceId; this.instanceStatus = request.instanceStatus; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.tag = request.tag; } /** * <p>An array that consists of the IDs of the bastion hosts.</p> * * <strong>example:</strong> * <p>bastionhost-cn-78v1ghxxxxx</p> */ public Builder instanceId(java.util.List<String> instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The status of the bastion host. Valid values:</p> * <ul> * <li><strong>PENDING</strong>: The bastion host is not initialized.</li> * <li><strong>CREATING</strong>: The bastion host is being created.</li> * <li><strong>RUNNING</strong>: The bastion host is running.</li> * <li><strong>EXPIRED</strong>: The bastion host expired.</li> * <li><strong>CREATE_FAILED</strong>: The bastion host fails to be created.</li> * <li><strong>UPGRADING</strong>: The configurations of the bastion host are being changed.</li> * <li><strong>UPGRADE_FAILED</strong>: The configurations of the bastion host fail to be changed.</li> * </ul> * * <strong>example:</strong> * <p>RUNNING</p> */ public Builder instanceStatus(String instanceStatus) { this.putQueryParameter("InstanceStatus", instanceStatus); this.instanceStatus = instanceStatus; return this; } /** * <p>The number of the page to return. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * <p>The number of entries to return on each page. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * <p>The region ID of the bastion host.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the bastion host belongs.</p> * * <strong>example:</strong> * <p>rg-acfm26ougi****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>An array consisting of the tags that are added to the bastion hosts.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public DescribeInstancesRequest build() { return new DescribeInstancesRequest(this); } } /** * * {@link DescribeInstancesRequest} extends {@link TeaModel} * * <p>DescribeInstancesRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The key of the tag.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the tag.</p> * * <strong>example:</strong> * <p>testapi</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DescribeInstancesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstancesResponse} extends {@link TeaModel} * * <p>DescribeInstancesResponse</p> */ public class DescribeInstancesResponse 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 DescribeInstancesResponseBody body; private DescribeInstancesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeInstancesResponse 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 DescribeInstancesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeInstancesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeInstancesResponseBody body); @Override DescribeInstancesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeInstancesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeInstancesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeInstancesResponse 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(DescribeInstancesResponseBody body) { this.body = body; return this; } @Override public DescribeInstancesResponse build() { return new DescribeInstancesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DescribeInstancesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeInstancesResponseBody} extends {@link TeaModel} * * <p>DescribeInstancesResponseBody</p> */ public class DescribeInstancesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Instances") private java.util.List<Instances> instances; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeInstancesResponseBody(Builder builder) { this.instances = builder.instances; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeInstancesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return instances */ public java.util.List<Instances> getInstances() { return this.instances; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Instances> instances; private String requestId; private Long totalCount; private Builder() { } private Builder(DescribeInstancesResponseBody model) { this.instances = model.instances; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>An array that consists of the bastion hosts returned.</p> */ public Builder instances(java.util.List<Instances> instances) { this.instances = instances; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>61D36C55-AAFC-4678-8FAD-34FEF9E7182E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of bastion hosts that are queried.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeInstancesResponseBody build() { return new DescribeInstancesResponseBody(this); } } /** * * {@link DescribeInstancesResponseBody} extends {@link TeaModel} * * <p>DescribeInstancesResponseBody</p> */ public static class Instances extends TeaModel { @com.aliyun.core.annotation.NameInMap("BandWidth") private Long bandWidth; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("ExpireTime") private Long expireTime; @com.aliyun.core.annotation.NameInMap("ImageVersion") private String imageVersion; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceStatus") private String instanceStatus; @com.aliyun.core.annotation.NameInMap("InternetEndpoint") private String internetEndpoint; @com.aliyun.core.annotation.NameInMap("IntranetEndpoint") private String intranetEndpoint; @com.aliyun.core.annotation.NameInMap("Legacy") private Boolean legacy; @com.aliyun.core.annotation.NameInMap("LicenseCode") private String licenseCode; @com.aliyun.core.annotation.NameInMap("PlanCode") private String planCode; @com.aliyun.core.annotation.NameInMap("PublicNetworkAccess") private Boolean publicNetworkAccess; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("SlaveVswitchId") private String slaveVswitchId; @com.aliyun.core.annotation.NameInMap("StartTime") private Long startTime; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("VswitchId") private String vswitchId; private Instances(Builder builder) { this.bandWidth = builder.bandWidth; this.description = builder.description; this.expireTime = builder.expireTime; this.imageVersion = builder.imageVersion; this.instanceId = builder.instanceId; this.instanceStatus = builder.instanceStatus; this.internetEndpoint = builder.internetEndpoint; this.intranetEndpoint = builder.intranetEndpoint; this.legacy = builder.legacy; this.licenseCode = builder.licenseCode; this.planCode = builder.planCode; this.publicNetworkAccess = builder.publicNetworkAccess; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.slaveVswitchId = builder.slaveVswitchId; this.startTime = builder.startTime; this.vpcId = builder.vpcId; this.vswitchId = builder.vswitchId; } public static Builder builder() { return new Builder(); } public static Instances create() { return builder().build(); } /** * @return bandWidth */ public Long getBandWidth() { return this.bandWidth; } /** * @return description */ public String getDescription() { return this.description; } /** * @return expireTime */ public Long getExpireTime() { return this.expireTime; } /** * @return imageVersion */ public String getImageVersion() { return this.imageVersion; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceStatus */ public String getInstanceStatus() { return this.instanceStatus; } /** * @return internetEndpoint */ public String getInternetEndpoint() { return this.internetEndpoint; } /** * @return intranetEndpoint */ public String getIntranetEndpoint() { return this.intranetEndpoint; } /** * @return legacy */ public Boolean getLegacy() { return this.legacy; } /** * @return licenseCode */ public String getLicenseCode() { return this.licenseCode; } /** * @return planCode */ public String getPlanCode() { return this.planCode; } /** * @return publicNetworkAccess */ public Boolean getPublicNetworkAccess() { return this.publicNetworkAccess; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return slaveVswitchId */ public String getSlaveVswitchId() { return this.slaveVswitchId; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vswitchId */ public String getVswitchId() { return this.vswitchId; } public static final class Builder { private Long bandWidth; private String description; private Long expireTime; private String imageVersion; private String instanceId; private String instanceStatus; private String internetEndpoint; private String intranetEndpoint; private Boolean legacy; private String licenseCode; private String planCode; private Boolean publicNetworkAccess; private String regionId; private String resourceGroupId; private String slaveVswitchId; private Long startTime; private String vpcId; private String vswitchId; private Builder() { } private Builder(Instances model) { this.bandWidth = model.bandWidth; this.description = model.description; this.expireTime = model.expireTime; this.imageVersion = model.imageVersion; this.instanceId = model.instanceId; this.instanceStatus = model.instanceStatus; this.internetEndpoint = model.internetEndpoint; this.intranetEndpoint = model.intranetEndpoint; this.legacy = model.legacy; this.licenseCode = model.licenseCode; this.planCode = model.planCode; this.publicNetworkAccess = model.publicNetworkAccess; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.slaveVswitchId = model.slaveVswitchId; this.startTime = model.startTime; this.vpcId = model.vpcId; this.vswitchId = model.vswitchId; } /** * BandWidth. */ public Builder bandWidth(Long bandWidth) { this.bandWidth = bandWidth; return this; } /** * <p>The remarks of the bastion host.</p> * * <strong>example:</strong> * <p>Test API</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The timestamp when the bastion host expires. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1578326400000</p> */ public Builder expireTime(Long expireTime) { this.expireTime = expireTime; return this; } /** * <p>The image version of the bastion host.</p> * * <strong>example:</strong> * <p>3.0.0</p> */ public Builder imageVersion(String imageVersion) { this.imageVersion = imageVersion; return this; } /** * <p>The bastion host ID.</p> * * <strong>example:</strong> * <p>bastionhost-cn-78v1gh****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The status of the bastion host. Valid values:</p> * <ul> * <li><strong>PENDING</strong>: The bastion host is not initialized.</li> * <li><strong>CREATING</strong>: The bastion host is being created.</li> * <li><strong>RUNNING</strong>: The bastion host is running.</li> * <li><strong>EXPIRED</strong>: The bastion host expired.</li> * <li><strong>CREATE_FAILED</strong>: The bastion host fails to be created.</li> * <li><strong>UPGRADING</strong>: The configurations of the bastion host are being changed.</li> * <li><strong>UPGRADE_FAILED</strong>: The configurations of the bastion host fail to be changed.</li> * </ul> * * <strong>example:</strong> * <p>RUNNING</p> */ public Builder instanceStatus(String instanceStatus) { this.instanceStatus = instanceStatus; return this; } /** * <p>The public O&amp;M address of the bastion host.</p> * * <strong>example:</strong> * <p>drawvxalwb-public.bastionhost.aliyuncs.com</p> */ public Builder internetEndpoint(String internetEndpoint) { this.internetEndpoint = internetEndpoint; return this; } /** * <p>The private O&amp;M address of the bastion host.</p> * * <strong>example:</strong> * <p>drawvxalwb.bastionhost.aliyuncs.com</p> */ public Builder intranetEndpoint(String intranetEndpoint) { this.intranetEndpoint = intranetEndpoint; return this; } /** * <p>Indicates whether the bastion host runs an earlier version. Valid values:</p> * <ul> * <li><strong>true</strong>: The bastion host runs V2 or V3.1.</li> * <li><strong>false</strong>: The bastion host runs V3.2.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder legacy(Boolean legacy) { this.legacy = legacy; return this; } /** * <p>The license code of the bastion host.</p> * * <strong>example:</strong> * <p>bhah_ent_50_asset</p> */ public Builder licenseCode(String licenseCode) { this.licenseCode = licenseCode; return this; } /** * <p>The edition of the bastion host. Valid values:</p> * <ul> * <li><strong>cloudbastion</strong>: Basic Edition.</li> * <li><strong>cloudbastion_ha</strong>: Enterprise Edition.</li> * </ul> * * <strong>example:</strong> * <p>cloudbastion_ha</p> */ public Builder planCode(String planCode) { this.planCode = planCode; return this; } /** * <p>Indicates whether the bastion host can be accessed from the Internet. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder publicNetworkAccess(Boolean publicNetworkAccess) { this.publicNetworkAccess = publicNetworkAccess; return this; } /** * <p>The region ID of the bastion host.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the bastion host belongs.</p> * * <strong>example:</strong> * <p>g-acfm26ougi****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * SlaveVswitchId. */ public Builder slaveVswitchId(String slaveVswitchId) { this.slaveVswitchId = slaveVswitchId; return this; } /** * <p>The timestamp when the bastion host is purchased or renewed. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>1577681345000</p> */ public Builder startTime(Long startTime) { this.startTime = startTime; return this; } /** * <p>The ID of the virtual private cloud (VPC) to which the bastion host belongs.</p> * * <strong>example:</strong> * <p>vpc-bp1c85tzgqu1bf5b****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * <p>The ID of the vSwitch to which the bastion host belongs.</p> * * <strong>example:</strong> * <p>vsw-bp1xfwzzfti0kjbf****</p> */ public Builder vswitchId(String vswitchId) { this.vswitchId = vswitchId; return this; } public Instances build() { return new Instances(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DescribeRegionsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRegionsRequest} extends {@link RequestModel} * * <p>DescribeRegionsRequest</p> */ public class DescribeRegionsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AcceptLanguage") private String acceptLanguage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private DescribeRegionsRequest(Builder builder) { super(builder); this.acceptLanguage = builder.acceptLanguage; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeRegionsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return acceptLanguage */ public String getAcceptLanguage() { return this.acceptLanguage; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DescribeRegionsRequest, Builder> { private String acceptLanguage; private String regionId; private Builder() { super(); } private Builder(DescribeRegionsRequest request) { super(request); this.acceptLanguage = request.acceptLanguage; this.regionId = request.regionId; } /** * <p>The natural language in which responses are returned. Valid values:</p> * <ul> * <li><strong>zh-CN</strong>: Chinese. This is the default value.</li> * <li><strong>en-US</strong>: English.</li> * <li><strong>ja</strong>: Japanese.</li> * </ul> * * <strong>example:</strong> * <p>zh-CN</p> */ public Builder acceptLanguage(String acceptLanguage) { this.putQueryParameter("AcceptLanguage", acceptLanguage); this.acceptLanguage = acceptLanguage; return this; } /** * <p>The ID of the region.</p> * * <strong>example:</strong> * <p>cn-shenzhen</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public DescribeRegionsRequest build() { return new DescribeRegionsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DescribeRegionsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRegionsResponse} extends {@link TeaModel} * * <p>DescribeRegionsResponse</p> */ public class DescribeRegionsResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map<String, String> headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private DescribeRegionsResponseBody body; private DescribeRegionsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeRegionsResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map<String, String> getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public DescribeRegionsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeRegionsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeRegionsResponseBody body); @Override DescribeRegionsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeRegionsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeRegionsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeRegionsResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map<String, String> headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(DescribeRegionsResponseBody body) { this.body = body; return this; } @Override public DescribeRegionsResponse build() { return new DescribeRegionsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DescribeRegionsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRegionsResponseBody} extends {@link TeaModel} * * <p>DescribeRegionsResponseBody</p> */ public class DescribeRegionsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Regions") private java.util.List<Regions> regions; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeRegionsResponseBody(Builder builder) { this.regions = builder.regions; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeRegionsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return regions */ public java.util.List<Regions> getRegions() { return this.regions; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<Regions> regions; private String requestId; private Builder() { } private Builder(DescribeRegionsResponseBody model) { this.regions = model.regions; this.requestId = model.requestId; } /** * <p>The information about regions where you can create bastion hosts.</p> */ public Builder regions(java.util.List<Regions> regions) { this.regions = regions; return this; } /** * <p>The ID of request.</p> * * <strong>example:</strong> * <p>B7281856-F27D-4ECE-B4F1-50511E550xxx</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeRegionsResponseBody build() { return new DescribeRegionsResponseBody(this); } } /** * * {@link DescribeRegionsResponseBody} extends {@link TeaModel} * * <p>DescribeRegionsResponseBody</p> */ public static class Regions extends TeaModel { @com.aliyun.core.annotation.NameInMap("LocalName") private String localName; @com.aliyun.core.annotation.NameInMap("RegionEndpoint") private String regionEndpoint; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private Regions(Builder builder) { this.localName = builder.localName; this.regionEndpoint = builder.regionEndpoint; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static Regions create() { return builder().build(); } /** * @return localName */ public String getLocalName() { return this.localName; } /** * @return regionEndpoint */ public String getRegionEndpoint() { return this.regionEndpoint; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder { private String localName; private String regionEndpoint; private String regionId; private Builder() { } private Builder(Regions model) { this.localName = model.localName; this.regionEndpoint = model.regionEndpoint; this.regionId = model.regionId; } /** * <p>The name of the region.</p> * * <strong>example:</strong> * <p>China (Hangzhou)</p> */ public Builder localName(String localName) { this.localName = localName; return this; } /** * <p>The endpoint of the region.</p> * * <strong>example:</strong> * <p>yundun-bastionhost.aliyuncs.com</p> */ public Builder regionEndpoint(String regionEndpoint) { this.regionEndpoint = regionEndpoint; return this; } /** * <p>The ID of the region.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } public Regions build() { return new Regions(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachDatabaseAccountsFromUserGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachDatabaseAccountsFromUserGroupRequest} extends {@link RequestModel} * * <p>DetachDatabaseAccountsFromUserGroupRequest</p> */ public class DetachDatabaseAccountsFromUserGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Databases") private java.util.List<Databases> databases; @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") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserGroupId") @com.aliyun.core.annotation.Validation(required = true) private String userGroupId; private DetachDatabaseAccountsFromUserGroupRequest(Builder builder) { super(builder); this.databases = builder.databases; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.userGroupId = builder.userGroupId; } public static Builder builder() { return new Builder(); } public static DetachDatabaseAccountsFromUserGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return databases */ public java.util.List<Databases> getDatabases() { return this.databases; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return userGroupId */ public String getUserGroupId() { return this.userGroupId; } public static final class Builder extends Request.Builder<DetachDatabaseAccountsFromUserGroupRequest, Builder> { private java.util.List<Databases> databases; private String instanceId; private String regionId; private String userGroupId; private Builder() { super(); } private Builder(DetachDatabaseAccountsFromUserGroupRequest request) { super(request); this.databases = request.databases; this.instanceId = request.instanceId; this.regionId = request.regionId; this.userGroupId = request.userGroupId; } /** * <p>The information about the database.</p> */ public Builder databases(java.util.List<Databases> databases) { this.putQueryParameter("Databases", databases); this.databases = databases; return this; } /** * <p>The bastion host ID.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-7mz2v120f0y</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the user group from which you want to revoke permissions on databases and database accounts.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/204509.html">ListUserGroups</a> operation to query the ID of the user group.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userGroupId(String userGroupId) { this.putQueryParameter("UserGroupId", userGroupId); this.userGroupId = userGroupId; return this; } @Override public DetachDatabaseAccountsFromUserGroupRequest build() { return new DetachDatabaseAccountsFromUserGroupRequest(this); } } /** * * {@link DetachDatabaseAccountsFromUserGroupRequest} extends {@link TeaModel} * * <p>DetachDatabaseAccountsFromUserGroupRequest</p> */ public static class Databases extends TeaModel { @com.aliyun.core.annotation.NameInMap("DatabaseAccountIds") private java.util.List<String> databaseAccountIds; @com.aliyun.core.annotation.NameInMap("DatabaseId") private String databaseId; private Databases(Builder builder) { this.databaseAccountIds = builder.databaseAccountIds; this.databaseId = builder.databaseId; } public static Builder builder() { return new Builder(); } public static Databases create() { return builder().build(); } /** * @return databaseAccountIds */ public java.util.List<String> getDatabaseAccountIds() { return this.databaseAccountIds; } /** * @return databaseId */ public String getDatabaseId() { return this.databaseId; } public static final class Builder { private java.util.List<String> databaseAccountIds; private String databaseId; private Builder() { } private Builder(Databases model) { this.databaseAccountIds = model.databaseAccountIds; this.databaseId = model.databaseId; } /** * <p>An array that consists of database account IDs.</p> */ public Builder databaseAccountIds(java.util.List<String> databaseAccountIds) { this.databaseAccountIds = databaseAccountIds; return this; } /** * <p>The ID of the database on which the permissions are to be revoked.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder databaseId(String databaseId) { this.databaseId = databaseId; return this; } public Databases build() { return new Databases(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachDatabaseAccountsFromUserGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachDatabaseAccountsFromUserGroupResponse} extends {@link TeaModel} * * <p>DetachDatabaseAccountsFromUserGroupResponse</p> */ public class DetachDatabaseAccountsFromUserGroupResponse 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 DetachDatabaseAccountsFromUserGroupResponseBody body; private DetachDatabaseAccountsFromUserGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DetachDatabaseAccountsFromUserGroupResponse 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 DetachDatabaseAccountsFromUserGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DetachDatabaseAccountsFromUserGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DetachDatabaseAccountsFromUserGroupResponseBody body); @Override DetachDatabaseAccountsFromUserGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DetachDatabaseAccountsFromUserGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DetachDatabaseAccountsFromUserGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DetachDatabaseAccountsFromUserGroupResponse 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(DetachDatabaseAccountsFromUserGroupResponseBody body) { this.body = body; return this; } @Override public DetachDatabaseAccountsFromUserGroupResponse build() { return new DetachDatabaseAccountsFromUserGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachDatabaseAccountsFromUserGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachDatabaseAccountsFromUserGroupResponseBody} extends {@link TeaModel} * * <p>DetachDatabaseAccountsFromUserGroupResponseBody</p> */ public class DetachDatabaseAccountsFromUserGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Results") private java.util.List<Results> results; private DetachDatabaseAccountsFromUserGroupResponseBody(Builder builder) { this.requestId = builder.requestId; this.results = builder.results; } public static Builder builder() { return new Builder(); } public static DetachDatabaseAccountsFromUserGroupResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return results */ public java.util.List<Results> getResults() { return this.results; } public static final class Builder { private String requestId; private java.util.List<Results> results; private Builder() { } private Builder(DetachDatabaseAccountsFromUserGroupResponseBody model) { this.requestId = model.requestId; this.results = model.results; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>AC528ED1-C302-56E5-9CB5-ADA625D64FF9</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The result of the call.</p> */ public Builder results(java.util.List<Results> results) { this.results = results; return this; } public DetachDatabaseAccountsFromUserGroupResponseBody build() { return new DetachDatabaseAccountsFromUserGroupResponseBody(this); } } /** * * {@link DetachDatabaseAccountsFromUserGroupResponseBody} extends {@link TeaModel} * * <p>DetachDatabaseAccountsFromUserGroupResponseBody</p> */ public static class DatabaseAccounts extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("DatabaseAccountId") private String databaseAccountId; @com.aliyun.core.annotation.NameInMap("Message") private String message; private DatabaseAccounts(Builder builder) { this.code = builder.code; this.databaseAccountId = builder.databaseAccountId; this.message = builder.message; } public static Builder builder() { return new Builder(); } public static DatabaseAccounts create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return databaseAccountId */ public String getDatabaseAccountId() { return this.databaseAccountId; } /** * @return message */ public String getMessage() { return this.message; } public static final class Builder { private String code; private String databaseAccountId; private String message; private Builder() { } private Builder(DatabaseAccounts model) { this.code = model.code; this.databaseAccountId = model.databaseAccountId; this.message = model.message; } /** * <p>The error code that is returned. If OK is returned, the operation was successful. If other error codes are returned, the operation failed.</p> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The ID of the database account on which the permissions are revoked.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder databaseAccountId(String databaseAccountId) { this.databaseAccountId = databaseAccountId; return this; } /** * <p>The error message that is returned.</p> * * <strong>example:</strong> * <p>N/A</p> */ public Builder message(String message) { this.message = message; return this; } public DatabaseAccounts build() { return new DatabaseAccounts(this); } } } /** * * {@link DetachDatabaseAccountsFromUserGroupResponseBody} extends {@link TeaModel} * * <p>DetachDatabaseAccountsFromUserGroupResponseBody</p> */ public static class Results extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("DatabaseAccounts") private java.util.List<DatabaseAccounts> databaseAccounts; @com.aliyun.core.annotation.NameInMap("DatabaseId") private String databaseId; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("UserGroupId") private String userGroupId; private Results(Builder builder) { this.code = builder.code; this.databaseAccounts = builder.databaseAccounts; this.databaseId = builder.databaseId; this.message = builder.message; this.userGroupId = builder.userGroupId; } public static Builder builder() { return new Builder(); } public static Results create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return databaseAccounts */ public java.util.List<DatabaseAccounts> getDatabaseAccounts() { return this.databaseAccounts; } /** * @return databaseId */ public String getDatabaseId() { return this.databaseId; } /** * @return message */ public String getMessage() { return this.message; } /** * @return userGroupId */ public String getUserGroupId() { return this.userGroupId; } public static final class Builder { private String code; private java.util.List<DatabaseAccounts> databaseAccounts; private String databaseId; private String message; private String userGroupId; private Builder() { } private Builder(Results model) { this.code = model.code; this.databaseAccounts = model.databaseAccounts; this.databaseId = model.databaseId; this.message = model.message; this.userGroupId = model.userGroupId; } /** * <p>The error code that is returned. If OK is returned, the operation was successful. If other error codes are returned, the operation failed.</p> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>A list that shows the authorization results of the database accounts.</p> */ public Builder databaseAccounts(java.util.List<DatabaseAccounts> databaseAccounts) { this.databaseAccounts = databaseAccounts; return this; } /** * <p>The ID of the database on which the permissions are revoked.</p> * * <strong>example:</strong> * <p>27</p> */ public Builder databaseId(String databaseId) { this.databaseId = databaseId; return this; } /** * <p>The error message that is returned.</p> * * <strong>example:</strong> * <p>N/A</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The user group ID.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder userGroupId(String userGroupId) { this.userGroupId = userGroupId; return this; } public Results build() { return new Results(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachDatabaseAccountsFromUserRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachDatabaseAccountsFromUserRequest} extends {@link RequestModel} * * <p>DetachDatabaseAccountsFromUserRequest</p> */ public class DetachDatabaseAccountsFromUserRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Databases") private java.util.List<Databases> databases; @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") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserId") @com.aliyun.core.annotation.Validation(required = true) private String userId; private DetachDatabaseAccountsFromUserRequest(Builder builder) { super(builder); this.databases = builder.databases; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static DetachDatabaseAccountsFromUserRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return databases */ public java.util.List<Databases> getDatabases() { return this.databases; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder extends Request.Builder<DetachDatabaseAccountsFromUserRequest, Builder> { private java.util.List<Databases> databases; private String instanceId; private String regionId; private String userId; private Builder() { super(); } private Builder(DetachDatabaseAccountsFromUserRequest request) { super(request); this.databases = request.databases; this.instanceId = request.instanceId; this.regionId = request.regionId; this.userId = request.userId; } /** * <p>The databases.</p> */ public Builder databases(java.util.List<Databases> databases) { this.putQueryParameter("Databases", databases); this.databases = databases; return this; } /** * <p>The bastion host ID.</p> * <blockquote> * <p>You can call the DescribeInstances operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-pe335ipfk01</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the user from whom you want to revoke the permissions on databases and database accounts.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/204522.html">ListUsers</a> operation to query the ID of the user.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userId(String userId) { this.putQueryParameter("UserId", userId); this.userId = userId; return this; } @Override public DetachDatabaseAccountsFromUserRequest build() { return new DetachDatabaseAccountsFromUserRequest(this); } } /** * * {@link DetachDatabaseAccountsFromUserRequest} extends {@link TeaModel} * * <p>DetachDatabaseAccountsFromUserRequest</p> */ public static class Databases extends TeaModel { @com.aliyun.core.annotation.NameInMap("DatabaseAccountIds") private java.util.List<String> databaseAccountIds; @com.aliyun.core.annotation.NameInMap("DatabaseId") private String databaseId; private Databases(Builder builder) { this.databaseAccountIds = builder.databaseAccountIds; this.databaseId = builder.databaseId; } public static Builder builder() { return new Builder(); } public static Databases create() { return builder().build(); } /** * @return databaseAccountIds */ public java.util.List<String> getDatabaseAccountIds() { return this.databaseAccountIds; } /** * @return databaseId */ public String getDatabaseId() { return this.databaseId; } public static final class Builder { private java.util.List<String> databaseAccountIds; private String databaseId; private Builder() { } private Builder(Databases model) { this.databaseAccountIds = model.databaseAccountIds; this.databaseId = model.databaseId; } /** * <p>An array that consists of database account IDs.</p> */ public Builder databaseAccountIds(java.util.List<String> databaseAccountIds) { this.databaseAccountIds = databaseAccountIds; return this; } /** * <p>The ID of the database on which you want to revoke permissions.</p> * * <strong>example:</strong> * <p>8</p> */ public Builder databaseId(String databaseId) { this.databaseId = databaseId; return this; } public Databases build() { return new Databases(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachDatabaseAccountsFromUserResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachDatabaseAccountsFromUserResponse} extends {@link TeaModel} * * <p>DetachDatabaseAccountsFromUserResponse</p> */ public class DetachDatabaseAccountsFromUserResponse 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 DetachDatabaseAccountsFromUserResponseBody body; private DetachDatabaseAccountsFromUserResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DetachDatabaseAccountsFromUserResponse 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 DetachDatabaseAccountsFromUserResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DetachDatabaseAccountsFromUserResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DetachDatabaseAccountsFromUserResponseBody body); @Override DetachDatabaseAccountsFromUserResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DetachDatabaseAccountsFromUserResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DetachDatabaseAccountsFromUserResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DetachDatabaseAccountsFromUserResponse 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(DetachDatabaseAccountsFromUserResponseBody body) { this.body = body; return this; } @Override public DetachDatabaseAccountsFromUserResponse build() { return new DetachDatabaseAccountsFromUserResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachDatabaseAccountsFromUserResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachDatabaseAccountsFromUserResponseBody} extends {@link TeaModel} * * <p>DetachDatabaseAccountsFromUserResponseBody</p> */ public class DetachDatabaseAccountsFromUserResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Results") private java.util.List<Results> results; private DetachDatabaseAccountsFromUserResponseBody(Builder builder) { this.requestId = builder.requestId; this.results = builder.results; } public static Builder builder() { return new Builder(); } public static DetachDatabaseAccountsFromUserResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return results */ public java.util.List<Results> getResults() { return this.results; } public static final class Builder { private String requestId; private java.util.List<Results> results; private Builder() { } private Builder(DetachDatabaseAccountsFromUserResponseBody model) { this.requestId = model.requestId; this.results = model.results; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>79D7E114-CB52-5695-AB15-12776C308387</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The result of the call.</p> */ public Builder results(java.util.List<Results> results) { this.results = results; return this; } public DetachDatabaseAccountsFromUserResponseBody build() { return new DetachDatabaseAccountsFromUserResponseBody(this); } } /** * * {@link DetachDatabaseAccountsFromUserResponseBody} extends {@link TeaModel} * * <p>DetachDatabaseAccountsFromUserResponseBody</p> */ public static class DatabaseAccounts extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("DatabaseAccountId") private String databaseAccountId; @com.aliyun.core.annotation.NameInMap("Message") private String message; private DatabaseAccounts(Builder builder) { this.code = builder.code; this.databaseAccountId = builder.databaseAccountId; this.message = builder.message; } public static Builder builder() { return new Builder(); } public static DatabaseAccounts create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return databaseAccountId */ public String getDatabaseAccountId() { return this.databaseAccountId; } /** * @return message */ public String getMessage() { return this.message; } public static final class Builder { private String code; private String databaseAccountId; private String message; private Builder() { } private Builder(DatabaseAccounts model) { this.code = model.code; this.databaseAccountId = model.databaseAccountId; this.message = model.message; } /** * <p>The error code that is returned. If OK is returned, the operation was successful. If another error code is returned, the operation failed.</p> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The ID of the database account on which the permissions are revoked.</p> * * <strong>example:</strong> * <p>9</p> */ public Builder databaseAccountId(String databaseAccountId) { this.databaseAccountId = databaseAccountId; return this; } /** * <p>The error message that is returned.</p> */ public Builder message(String message) { this.message = message; return this; } public DatabaseAccounts build() { return new DatabaseAccounts(this); } } } /** * * {@link DetachDatabaseAccountsFromUserResponseBody} extends {@link TeaModel} * * <p>DetachDatabaseAccountsFromUserResponseBody</p> */ public static class Results extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("DatabaseAccounts") private java.util.List<DatabaseAccounts> databaseAccounts; @com.aliyun.core.annotation.NameInMap("DatabaseId") private String databaseId; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("UserId") private String userId; private Results(Builder builder) { this.code = builder.code; this.databaseAccounts = builder.databaseAccounts; this.databaseId = builder.databaseId; this.message = builder.message; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static Results create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return databaseAccounts */ public java.util.List<DatabaseAccounts> getDatabaseAccounts() { return this.databaseAccounts; } /** * @return databaseId */ public String getDatabaseId() { return this.databaseId; } /** * @return message */ public String getMessage() { return this.message; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder { private String code; private java.util.List<DatabaseAccounts> databaseAccounts; private String databaseId; private String message; private String userId; private Builder() { } private Builder(Results model) { this.code = model.code; this.databaseAccounts = model.databaseAccounts; this.databaseId = model.databaseId; this.message = model.message; this.userId = model.userId; } /** * <p>The error code that is returned. If <strong>OK</strong> is returned, the operation was successful. If another error code is returned, the operation failed.</p> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>A list that shows the operation results of the database accounts.</p> */ public Builder databaseAccounts(java.util.List<DatabaseAccounts> databaseAccounts) { this.databaseAccounts = databaseAccounts; return this; } /** * <p>The ID of the database on which the permissions are revoked.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder databaseId(String databaseId) { this.databaseId = databaseId; return this; } /** * <p>The error message that is returned.</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The user ID.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userId(String userId) { this.userId = userId; return this; } public Results build() { return new Results(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostAccountsFromHostShareKeyRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostAccountsFromHostShareKeyRequest} extends {@link RequestModel} * * <p>DetachHostAccountsFromHostShareKeyRequest</p> */ public class DetachHostAccountsFromHostShareKeyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HostAccountIds") @com.aliyun.core.annotation.Validation(required = true) private String hostAccountIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HostShareKeyId") @com.aliyun.core.annotation.Validation(required = true) private String hostShareKeyId; @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") private String regionId; private DetachHostAccountsFromHostShareKeyRequest(Builder builder) { super(builder); this.hostAccountIds = builder.hostAccountIds; this.hostShareKeyId = builder.hostShareKeyId; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DetachHostAccountsFromHostShareKeyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return hostAccountIds */ public String getHostAccountIds() { return this.hostAccountIds; } /** * @return hostShareKeyId */ public String getHostShareKeyId() { return this.hostShareKeyId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DetachHostAccountsFromHostShareKeyRequest, Builder> { private String hostAccountIds; private String hostShareKeyId; private String instanceId; private String regionId; private Builder() { super(); } private Builder(DetachHostAccountsFromHostShareKeyRequest request) { super(request); this.hostAccountIds = request.hostAccountIds; this.hostShareKeyId = request.hostShareKeyId; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The host account IDs.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/462975.html">ListHostAccountsForHostShareKey</a> operation to query the host account IDs.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[&quot;1&quot;,&quot;2&quot;,&quot;3&quot;]</p> */ public Builder hostAccountIds(String hostAccountIds) { this.putQueryParameter("HostAccountIds", hostAccountIds); this.hostAccountIds = hostAccountIds; return this; } /** * <p>The shared key ID.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/462973.html">ListHostShareKeys</a> operation to query the shared key ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>11</p> */ public Builder hostShareKeyId(String hostShareKeyId) { this.putQueryParameter("HostShareKeyId", hostShareKeyId); this.hostShareKeyId = hostShareKeyId; return this; } /** * <p>The bastion host ID.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p> For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public DetachHostAccountsFromHostShareKeyRequest build() { return new DetachHostAccountsFromHostShareKeyRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostAccountsFromHostShareKeyResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostAccountsFromHostShareKeyResponse} extends {@link TeaModel} * * <p>DetachHostAccountsFromHostShareKeyResponse</p> */ public class DetachHostAccountsFromHostShareKeyResponse 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 DetachHostAccountsFromHostShareKeyResponseBody body; private DetachHostAccountsFromHostShareKeyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DetachHostAccountsFromHostShareKeyResponse 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 DetachHostAccountsFromHostShareKeyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DetachHostAccountsFromHostShareKeyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DetachHostAccountsFromHostShareKeyResponseBody body); @Override DetachHostAccountsFromHostShareKeyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DetachHostAccountsFromHostShareKeyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DetachHostAccountsFromHostShareKeyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DetachHostAccountsFromHostShareKeyResponse 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(DetachHostAccountsFromHostShareKeyResponseBody body) { this.body = body; return this; } @Override public DetachHostAccountsFromHostShareKeyResponse build() { return new DetachHostAccountsFromHostShareKeyResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostAccountsFromHostShareKeyResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostAccountsFromHostShareKeyResponseBody} extends {@link TeaModel} * * <p>DetachHostAccountsFromHostShareKeyResponseBody</p> */ public class DetachHostAccountsFromHostShareKeyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Results") private java.util.List<Results> results; private DetachHostAccountsFromHostShareKeyResponseBody(Builder builder) { this.requestId = builder.requestId; this.results = builder.results; } public static Builder builder() { return new Builder(); } public static DetachHostAccountsFromHostShareKeyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return results */ public java.util.List<Results> getResults() { return this.results; } public static final class Builder { private String requestId; private java.util.List<Results> results; private Builder() { } private Builder(DetachHostAccountsFromHostShareKeyResponseBody model) { this.requestId = model.requestId; this.results = model.results; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The result of the call.</p> */ public Builder results(java.util.List<Results> results) { this.results = results; return this; } public DetachHostAccountsFromHostShareKeyResponseBody build() { return new DetachHostAccountsFromHostShareKeyResponseBody(this); } } /** * * {@link DetachHostAccountsFromHostShareKeyResponseBody} extends {@link TeaModel} * * <p>DetachHostAccountsFromHostShareKeyResponseBody</p> */ public static class Results extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HostAccountId") private String hostAccountId; @com.aliyun.core.annotation.NameInMap("HostShareKeyId") private String hostShareKeyId; @com.aliyun.core.annotation.NameInMap("Message") private String message; private Results(Builder builder) { this.code = builder.code; this.hostAccountId = builder.hostAccountId; this.hostShareKeyId = builder.hostShareKeyId; this.message = builder.message; } public static Builder builder() { return new Builder(); } public static Results create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return hostAccountId */ public String getHostAccountId() { return this.hostAccountId; } /** * @return hostShareKeyId */ public String getHostShareKeyId() { return this.hostShareKeyId; } /** * @return message */ public String getMessage() { return this.message; } public static final class Builder { private String code; private String hostAccountId; private String hostShareKeyId; private String message; private Builder() { } private Builder(Results model) { this.code = model.code; this.hostAccountId = model.hostAccountId; this.hostShareKeyId = model.hostShareKeyId; this.message = model.message; } /** * <p>The error code returned. If <strong>OK</strong> is returned, the disassociation was successful. If a different error code is returned, the disassociation failed.</p> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The ID of the host account.</p> * * <strong>example:</strong> * <p>12407</p> */ public Builder hostAccountId(String hostAccountId) { this.hostAccountId = hostAccountId; return this; } /** * <p>The ID of the shared key.</p> * * <strong>example:</strong> * <p>11</p> */ public Builder hostShareKeyId(String hostShareKeyId) { this.hostShareKeyId = hostShareKeyId; return this; } /** * <p>The error message returned.</p> * * <strong>example:</strong> * <p>The host account does not exist</p> */ public Builder message(String message) { this.message = message; return this; } public Results build() { return new Results(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostAccountsFromUserGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostAccountsFromUserGroupRequest} extends {@link RequestModel} * * <p>DetachHostAccountsFromUserGroupRequest</p> */ public class DetachHostAccountsFromUserGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Hosts") @com.aliyun.core.annotation.Validation(required = true) private String hosts; @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") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserGroupId") @com.aliyun.core.annotation.Validation(required = true) private String userGroupId; private DetachHostAccountsFromUserGroupRequest(Builder builder) { super(builder); this.hosts = builder.hosts; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.userGroupId = builder.userGroupId; } public static Builder builder() { return new Builder(); } public static DetachHostAccountsFromUserGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return hosts */ public String getHosts() { return this.hosts; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return userGroupId */ public String getUserGroupId() { return this.userGroupId; } public static final class Builder extends Request.Builder<DetachHostAccountsFromUserGroupRequest, Builder> { private String hosts; private String instanceId; private String regionId; private String userGroupId; private Builder() { super(); } private Builder(DetachHostAccountsFromUserGroupRequest request) { super(request); this.hosts = request.hosts; this.instanceId = request.instanceId; this.regionId = request.regionId; this.userGroupId = request.userGroupId; } /** * <p>The IDs of the host and host account on which you want to revoke permissions from the user group.</p> * <p>You can specify up to 10 host IDs and up to 10 host account IDs for each host. You can specify only host IDs. In this case, the permissions on both the specified hosts and all host accounts of the hosts are revoked from the user group. For more information about this parameter, see the &quot;Description of the Hosts parameter&quot; section of this topic.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/200665.html">ListHosts</a> operation to query the ID of the host and the <a href="https://help.aliyun.com/document_detail/204372.html">ListHostAccounts</a> operation to query the ID of the host account.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[ {&quot;HostId&quot;:&quot;1&quot;}, {&quot;HostId&quot;:&quot;2&quot;,&quot;HostAccountIds&quot;:[&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,...]}, {&quot;HostId&quot;:&quot;3&quot;,&quot;HostAccountIds&quot;:[&quot;4&quot;,&quot;5&quot;,&quot;6&quot;]}, {&quot;HostId&quot;:&quot;4&quot;,&quot;HostAccountIds&quot;:[&quot;9&quot;,&quot;8&quot;,&quot;7&quot;]} ]</p> */ public Builder hosts(String hosts) { this.putQueryParameter("Hosts", hosts); this.hosts = hosts; return this; } /** * <p>The ID of the bastion host in which you want to revoke permissions on the specified hosts and host accounts from the user group.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host in which you want to revoke permissions on the specified hosts and host accounts from the user group.</p> * <blockquote> * <p> For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the user group from which you want to revoke permissions on the specified hosts and host accounts.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/204509.html">ListUserGroups</a> operation to query the ID of the user group.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userGroupId(String userGroupId) { this.putQueryParameter("UserGroupId", userGroupId); this.userGroupId = userGroupId; return this; } @Override public DetachHostAccountsFromUserGroupRequest build() { return new DetachHostAccountsFromUserGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostAccountsFromUserGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostAccountsFromUserGroupResponse} extends {@link TeaModel} * * <p>DetachHostAccountsFromUserGroupResponse</p> */ public class DetachHostAccountsFromUserGroupResponse 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 DetachHostAccountsFromUserGroupResponseBody body; private DetachHostAccountsFromUserGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DetachHostAccountsFromUserGroupResponse 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 DetachHostAccountsFromUserGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DetachHostAccountsFromUserGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DetachHostAccountsFromUserGroupResponseBody body); @Override DetachHostAccountsFromUserGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DetachHostAccountsFromUserGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DetachHostAccountsFromUserGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DetachHostAccountsFromUserGroupResponse 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(DetachHostAccountsFromUserGroupResponseBody body) { this.body = body; return this; } @Override public DetachHostAccountsFromUserGroupResponse build() { return new DetachHostAccountsFromUserGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostAccountsFromUserGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostAccountsFromUserGroupResponseBody} extends {@link TeaModel} * * <p>DetachHostAccountsFromUserGroupResponseBody</p> */ public class DetachHostAccountsFromUserGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Results") private java.util.List<Results> results; private DetachHostAccountsFromUserGroupResponseBody(Builder builder) { this.requestId = builder.requestId; this.results = builder.results; } public static Builder builder() { return new Builder(); } public static DetachHostAccountsFromUserGroupResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return results */ public java.util.List<Results> getResults() { return this.results; } public static final class Builder { private String requestId; private java.util.List<Results> results; private Builder() { } private Builder(DetachHostAccountsFromUserGroupResponseBody model) { this.requestId = model.requestId; this.results = model.results; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The result of the call.</p> */ public Builder results(java.util.List<Results> results) { this.results = results; return this; } public DetachHostAccountsFromUserGroupResponseBody build() { return new DetachHostAccountsFromUserGroupResponseBody(this); } } /** * * {@link DetachHostAccountsFromUserGroupResponseBody} extends {@link TeaModel} * * <p>DetachHostAccountsFromUserGroupResponseBody</p> */ public static class HostAccounts extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HostAccountId") private String hostAccountId; @com.aliyun.core.annotation.NameInMap("Message") private String message; private HostAccounts(Builder builder) { this.code = builder.code; this.hostAccountId = builder.hostAccountId; this.message = builder.message; } public static Builder builder() { return new Builder(); } public static HostAccounts create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return hostAccountId */ public String getHostAccountId() { return this.hostAccountId; } /** * @return message */ public String getMessage() { return this.message; } public static final class Builder { private String code; private String hostAccountId; private String message; private Builder() { } private Builder(HostAccounts model) { this.code = model.code; this.hostAccountId = model.hostAccountId; this.message = model.message; } /** * <p>The return code that indicates whether permissions on the specified host account were revoked from the user group. Valid values:</p> * <ul> * <li><strong>OK</strong>: The call was successful.</li> * <li><strong>UNEXPECTED</strong>: An unknown error occurred.</li> * <li><strong>INVALID_ARGUMENT</strong>: A request parameter is invalid.</li> * <li><strong>OBJECT_NOT_FOUND</strong>: The specified object on which you want to perform the operation does not exist.</li> * <li><strong>OBJECT_AlREADY_EXISTS</strong>: The specified object on which you want to perform the operation already exists.</li> * </ul> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The ID of the host account.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostAccountId(String hostAccountId) { this.hostAccountId = hostAccountId; return this; } /** * <p>This parameter is deprecated.</p> */ public Builder message(String message) { this.message = message; return this; } public HostAccounts build() { return new HostAccounts(this); } } } /** * * {@link DetachHostAccountsFromUserGroupResponseBody} extends {@link TeaModel} * * <p>DetachHostAccountsFromUserGroupResponseBody</p> */ public static class Results extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HostAccounts") private java.util.List<HostAccounts> hostAccounts; @com.aliyun.core.annotation.NameInMap("HostId") private String hostId; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("UserGroupId") private String userGroupId; private Results(Builder builder) { this.code = builder.code; this.hostAccounts = builder.hostAccounts; this.hostId = builder.hostId; this.message = builder.message; this.userGroupId = builder.userGroupId; } public static Builder builder() { return new Builder(); } public static Results create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return hostAccounts */ public java.util.List<HostAccounts> getHostAccounts() { return this.hostAccounts; } /** * @return hostId */ public String getHostId() { return this.hostId; } /** * @return message */ public String getMessage() { return this.message; } /** * @return userGroupId */ public String getUserGroupId() { return this.userGroupId; } public static final class Builder { private String code; private java.util.List<HostAccounts> hostAccounts; private String hostId; private String message; private String userGroupId; private Builder() { } private Builder(Results model) { this.code = model.code; this.hostAccounts = model.hostAccounts; this.hostId = model.hostId; this.message = model.message; this.userGroupId = model.userGroupId; } /** * <p>The return code that indicates whether the call was successful. Valid values:</p> * <ul> * <li><strong>OK</strong>: The call was successful.</li> * <li><strong>UNEXPECTED</strong>: An unknown error occurred.</li> * <li><strong>INVALID_ARGUMENT</strong>: A request parameter is invalid.</li> * <li><strong>OBJECT_NOT_FOUND</strong>: The specified object on which you want to perform the operation does not exist.</li> * <li><strong>OBJECT_AlREADY_EXISTS</strong>: The specified object on which you want to perform the operation already exists.</li> * </ul> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The result of revoking permissions on the specified host accounts from the user group.</p> */ public Builder hostAccounts(java.util.List<HostAccounts> hostAccounts) { this.hostAccounts = hostAccounts; return this; } /** * <p>The ID of the host.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostId(String hostId) { this.hostId = hostId; return this; } /** * <p>This parameter is deprecated.</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The ID of the group.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userGroupId(String userGroupId) { this.userGroupId = userGroupId; return this; } public Results build() { return new Results(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostAccountsFromUserRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostAccountsFromUserRequest} extends {@link RequestModel} * * <p>DetachHostAccountsFromUserRequest</p> */ public class DetachHostAccountsFromUserRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Hosts") @com.aliyun.core.annotation.Validation(required = true) private String hosts; @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") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserId") @com.aliyun.core.annotation.Validation(required = true) private String userId; private DetachHostAccountsFromUserRequest(Builder builder) { super(builder); this.hosts = builder.hosts; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static DetachHostAccountsFromUserRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return hosts */ public String getHosts() { return this.hosts; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder extends Request.Builder<DetachHostAccountsFromUserRequest, Builder> { private String hosts; private String instanceId; private String regionId; private String userId; private Builder() { super(); } private Builder(DetachHostAccountsFromUserRequest request) { super(request); this.hosts = request.hosts; this.instanceId = request.instanceId; this.regionId = request.regionId; this.userId = request.userId; } /** * <p>The IDs of the hosts and host accounts on which you want to revoke permissions from the user. You can specify up to 10 host IDs and up to 10 host account IDs for each host. You can specify only host IDs. In this case, the permissions on the specified hosts and all accounts of the hosts are revoked from the user. For more information about this parameter, see the Description of the Hosts parameter section of this topic.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/200665.html">ListHosts</a> operation to query the host IDs and the <a href="https://help.aliyun.com/document_detail/466581.html">ListHostAccountsForUser</a> operation to query the host account IDs.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[ {&quot;HostId&quot;:&quot;1&quot;}, {&quot;HostId&quot;:&quot;2&quot;,&quot;HostAccountIds&quot;:[&quot;1&quot;,&quot;2&quot;,&quot;3&quot;]}, {&quot;HostId&quot;:&quot;3&quot;,&quot;HostAccountIds&quot;:[&quot;4&quot;,&quot;5&quot;,&quot;6&quot;]}, {&quot;HostId&quot;:&quot;4&quot;,&quot;HostAccountIds&quot;:[&quot;9&quot;,&quot;8&quot;,&quot;7&quot;]} ]</p> */ public Builder hosts(String hosts) { this.putQueryParameter("Hosts", hosts); this.hosts = hosts; return this; } /** * <p>The ID of the bastion host on which you want to revoke permissions on the specified hosts and host accounts from the user.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host on which you want to revoke permissions on the specified hosts and host accounts from the user.</p> * <blockquote> * <p> For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the user from whom you want to revoke permissions on the specified hosts and host accounts.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/204522.html">ListUsers</a> operation to query the user ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userId(String userId) { this.putQueryParameter("UserId", userId); this.userId = userId; return this; } @Override public DetachHostAccountsFromUserRequest build() { return new DetachHostAccountsFromUserRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostAccountsFromUserResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostAccountsFromUserResponse} extends {@link TeaModel} * * <p>DetachHostAccountsFromUserResponse</p> */ public class DetachHostAccountsFromUserResponse 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 DetachHostAccountsFromUserResponseBody body; private DetachHostAccountsFromUserResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DetachHostAccountsFromUserResponse 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 DetachHostAccountsFromUserResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DetachHostAccountsFromUserResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DetachHostAccountsFromUserResponseBody body); @Override DetachHostAccountsFromUserResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DetachHostAccountsFromUserResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DetachHostAccountsFromUserResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DetachHostAccountsFromUserResponse 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(DetachHostAccountsFromUserResponseBody body) { this.body = body; return this; } @Override public DetachHostAccountsFromUserResponse build() { return new DetachHostAccountsFromUserResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostAccountsFromUserResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostAccountsFromUserResponseBody} extends {@link TeaModel} * * <p>DetachHostAccountsFromUserResponseBody</p> */ public class DetachHostAccountsFromUserResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Results") private java.util.List<Results> results; private DetachHostAccountsFromUserResponseBody(Builder builder) { this.requestId = builder.requestId; this.results = builder.results; } public static Builder builder() { return new Builder(); } public static DetachHostAccountsFromUserResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return results */ public java.util.List<Results> getResults() { return this.results; } public static final class Builder { private String requestId; private java.util.List<Results> results; private Builder() { } private Builder(DetachHostAccountsFromUserResponseBody model) { this.requestId = model.requestId; this.results = model.results; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The result of the call.</p> */ public Builder results(java.util.List<Results> results) { this.results = results; return this; } public DetachHostAccountsFromUserResponseBody build() { return new DetachHostAccountsFromUserResponseBody(this); } } /** * * {@link DetachHostAccountsFromUserResponseBody} extends {@link TeaModel} * * <p>DetachHostAccountsFromUserResponseBody</p> */ public static class HostAccounts extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HostAccountId") private String hostAccountId; @com.aliyun.core.annotation.NameInMap("Message") private String message; private HostAccounts(Builder builder) { this.code = builder.code; this.hostAccountId = builder.hostAccountId; this.message = builder.message; } public static Builder builder() { return new Builder(); } public static HostAccounts create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return hostAccountId */ public String getHostAccountId() { return this.hostAccountId; } /** * @return message */ public String getMessage() { return this.message; } public static final class Builder { private String code; private String hostAccountId; private String message; private Builder() { } private Builder(HostAccounts model) { this.code = model.code; this.hostAccountId = model.hostAccountId; this.message = model.message; } /** * <p>The return code that indicates whether permissions on the specified host accounts were revoked from the user. Valid values:</p> * <ul> * <li><strong>OK</strong>: The call was successful.</li> * <li><strong>UNEXPECTED</strong>: An unknown error occurred.</li> * <li><strong>INVALID_ARGUMENT</strong>: A request parameter is invalid.</li> * <li><strong>OBJECT_NOT_FOUND</strong>: The specified object on which you want to perform the operation does not exist.</li> * <li><strong>OBJECT_AlREADY_EXISTS</strong>: The specified object on which you want to perform the operation already exists.</li> * </ul> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The host account ID.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostAccountId(String hostAccountId) { this.hostAccountId = hostAccountId; return this; } /** * <p>This parameter is deprecated.</p> */ public Builder message(String message) { this.message = message; return this; } public HostAccounts build() { return new HostAccounts(this); } } } /** * * {@link DetachHostAccountsFromUserResponseBody} extends {@link TeaModel} * * <p>DetachHostAccountsFromUserResponseBody</p> */ public static class Results extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HostAccounts") private java.util.List<HostAccounts> hostAccounts; @com.aliyun.core.annotation.NameInMap("HostId") private String hostId; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("UserId") private String userId; private Results(Builder builder) { this.code = builder.code; this.hostAccounts = builder.hostAccounts; this.hostId = builder.hostId; this.message = builder.message; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static Results create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return hostAccounts */ public java.util.List<HostAccounts> getHostAccounts() { return this.hostAccounts; } /** * @return hostId */ public String getHostId() { return this.hostId; } /** * @return message */ public String getMessage() { return this.message; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder { private String code; private java.util.List<HostAccounts> hostAccounts; private String hostId; private String message; private String userId; private Builder() { } private Builder(Results model) { this.code = model.code; this.hostAccounts = model.hostAccounts; this.hostId = model.hostId; this.message = model.message; this.userId = model.userId; } /** * <p>The return code that indicates whether the call was successful. Valid values:</p> * <ul> * <li><strong>OK</strong>: The call was successful.</li> * <li><strong>UNEXPECTED</strong>: An unknown error occurred.</li> * <li><strong>INVALID_ARGUMENT</strong>: A request parameter is invalid.</li> * <li><strong>OBJECT_NOT_FOUND</strong>: The specified object on which you want to perform the operation does not exist.</li> * <li><strong>OBJECT_AlREADY_EXISTS</strong>: The specified object on which you want to perform the operation already exists.</li> * </ul> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The result of revoking permissions on the specified host accounts from the user.</p> */ public Builder hostAccounts(java.util.List<HostAccounts> hostAccounts) { this.hostAccounts = hostAccounts; return this; } /** * <p>The host ID.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostId(String hostId) { this.hostId = hostId; return this; } /** * <p>This parameter is deprecated.</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The user ID.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userId(String userId) { this.userId = userId; return this; } public Results build() { return new Results(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostGroupAccountsFromUserGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostGroupAccountsFromUserGroupRequest} extends {@link RequestModel} * * <p>DetachHostGroupAccountsFromUserGroupRequest</p> */ public class DetachHostGroupAccountsFromUserGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HostGroups") @com.aliyun.core.annotation.Validation(required = true) private String hostGroups; @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") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserGroupId") @com.aliyun.core.annotation.Validation(required = true) private String userGroupId; private DetachHostGroupAccountsFromUserGroupRequest(Builder builder) { super(builder); this.hostGroups = builder.hostGroups; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.userGroupId = builder.userGroupId; } public static Builder builder() { return new Builder(); } public static DetachHostGroupAccountsFromUserGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return hostGroups */ public String getHostGroups() { return this.hostGroups; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return userGroupId */ public String getUserGroupId() { return this.userGroupId; } public static final class Builder extends Request.Builder<DetachHostGroupAccountsFromUserGroupRequest, Builder> { private String hostGroups; private String instanceId; private String regionId; private String userGroupId; private Builder() { super(); } private Builder(DetachHostGroupAccountsFromUserGroupRequest request) { super(request); this.hostGroups = request.hostGroups; this.instanceId = request.instanceId; this.regionId = request.regionId; this.userGroupId = request.userGroupId; } /** * <p>The ID of the host group and the name of host account on which you want to revoke permissions from the user group. You can specify up to 10 host group IDs and up to 10 host account names for each host group. You can specify only host group IDs. In this case, the permissions on the specified host groups and all host accounts in the host groups are revoked from the user group. For more information about this parameter, see the &quot;Description of the HostGroups parameter&quot; section of this topic.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/201307.html">ListHostGroups</a> operation to query the ID of the host group and the <a href="https://help.aliyun.com/document_detail/204372.html">ListHostAccounts</a> operation to query the name of the host account.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[ {&quot;HostGroupId&quot;:&quot;1&quot;}, {&quot;HostGroupId&quot;:&quot;2&quot;,&quot;HostAccountNames&quot;:[&quot;root&quot;,&quot;111&quot;,&quot;abc&quot;]}, {&quot;HostGroupId&quot;:&quot;3&quot;,&quot;HostAccountNames&quot;:[&quot;root&quot;,&quot;111&quot;,&quot;abc&quot;]}, {&quot;HostGroupId&quot;:&quot;4&quot;,&quot;HostAccountNames&quot;:[&quot;root&quot;,&quot;111&quot;,&quot;abc&quot;]}]</p> */ public Builder hostGroups(String hostGroups) { this.putQueryParameter("HostGroups", hostGroups); this.hostGroups = hostGroups; return this; } /** * <p>The ID of the bastion host for which you want to revoke permissions on the specified host groups and host accounts from the user group.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host for which you want to revoke permissions on the specified host groups and host accounts from the user group.</p> * <blockquote> * <p> For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the user group from which you want to revoke permissions on the specified host groups and host accounts.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/204509.html">ListUserGroups</a> operation to query the ID of the user group.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userGroupId(String userGroupId) { this.putQueryParameter("UserGroupId", userGroupId); this.userGroupId = userGroupId; return this; } @Override public DetachHostGroupAccountsFromUserGroupRequest build() { return new DetachHostGroupAccountsFromUserGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostGroupAccountsFromUserGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostGroupAccountsFromUserGroupResponse} extends {@link TeaModel} * * <p>DetachHostGroupAccountsFromUserGroupResponse</p> */ public class DetachHostGroupAccountsFromUserGroupResponse 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 DetachHostGroupAccountsFromUserGroupResponseBody body; private DetachHostGroupAccountsFromUserGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DetachHostGroupAccountsFromUserGroupResponse 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 DetachHostGroupAccountsFromUserGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DetachHostGroupAccountsFromUserGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DetachHostGroupAccountsFromUserGroupResponseBody body); @Override DetachHostGroupAccountsFromUserGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DetachHostGroupAccountsFromUserGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DetachHostGroupAccountsFromUserGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DetachHostGroupAccountsFromUserGroupResponse 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(DetachHostGroupAccountsFromUserGroupResponseBody body) { this.body = body; return this; } @Override public DetachHostGroupAccountsFromUserGroupResponse build() { return new DetachHostGroupAccountsFromUserGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostGroupAccountsFromUserGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostGroupAccountsFromUserGroupResponseBody} extends {@link TeaModel} * * <p>DetachHostGroupAccountsFromUserGroupResponseBody</p> */ public class DetachHostGroupAccountsFromUserGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Results") private java.util.List<Results> results; private DetachHostGroupAccountsFromUserGroupResponseBody(Builder builder) { this.requestId = builder.requestId; this.results = builder.results; } public static Builder builder() { return new Builder(); } public static DetachHostGroupAccountsFromUserGroupResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return results */ public java.util.List<Results> getResults() { return this.results; } public static final class Builder { private String requestId; private java.util.List<Results> results; private Builder() { } private Builder(DetachHostGroupAccountsFromUserGroupResponseBody model) { this.requestId = model.requestId; this.results = model.results; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The result of the call.</p> */ public Builder results(java.util.List<Results> results) { this.results = results; return this; } public DetachHostGroupAccountsFromUserGroupResponseBody build() { return new DetachHostGroupAccountsFromUserGroupResponseBody(this); } } /** * * {@link DetachHostGroupAccountsFromUserGroupResponseBody} extends {@link TeaModel} * * <p>DetachHostGroupAccountsFromUserGroupResponseBody</p> */ public static class HostAccountNames extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HostAccountName") private String hostAccountName; @com.aliyun.core.annotation.NameInMap("Message") private String message; private HostAccountNames(Builder builder) { this.code = builder.code; this.hostAccountName = builder.hostAccountName; this.message = builder.message; } public static Builder builder() { return new Builder(); } public static HostAccountNames create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return hostAccountName */ public String getHostAccountName() { return this.hostAccountName; } /** * @return message */ public String getMessage() { return this.message; } public static final class Builder { private String code; private String hostAccountName; private String message; private Builder() { } private Builder(HostAccountNames model) { this.code = model.code; this.hostAccountName = model.hostAccountName; this.message = model.message; } /** * <p>The return code that indicates whether permissions on the specified host account were revoked from the specified user group. Valid values:</p> * <ul> * <li><strong>OK</strong>: The call was successful.</li> * <li><strong>UNEXPECTED</strong>: An unknown error occurred.</li> * <li><strong>INVALID_ARGUMENT</strong>: A request parameter is invalid.</li> * <li><strong>OBJECT_NOT_FOUND</strong>: The specified object on which you want to perform the operation does not exist.</li> * <li><strong>OBJECT_AlREADY_EXISTS</strong>: The specified object on which you want to perform the operation already exists.</li> * </ul> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The name of the host account.</p> * * <strong>example:</strong> * <p>root</p> */ public Builder hostAccountName(String hostAccountName) { this.hostAccountName = hostAccountName; return this; } /** * <p>This parameter is deprecated.</p> */ public Builder message(String message) { this.message = message; return this; } public HostAccountNames build() { return new HostAccountNames(this); } } } /** * * {@link DetachHostGroupAccountsFromUserGroupResponseBody} extends {@link TeaModel} * * <p>DetachHostGroupAccountsFromUserGroupResponseBody</p> */ public static class Results extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HostAccountNames") private java.util.List<HostAccountNames> hostAccountNames; @com.aliyun.core.annotation.NameInMap("HostGroupId") private String hostGroupId; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("UserGroupId") private String userGroupId; private Results(Builder builder) { this.code = builder.code; this.hostAccountNames = builder.hostAccountNames; this.hostGroupId = builder.hostGroupId; this.message = builder.message; this.userGroupId = builder.userGroupId; } public static Builder builder() { return new Builder(); } public static Results create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return hostAccountNames */ public java.util.List<HostAccountNames> getHostAccountNames() { return this.hostAccountNames; } /** * @return hostGroupId */ public String getHostGroupId() { return this.hostGroupId; } /** * @return message */ public String getMessage() { return this.message; } /** * @return userGroupId */ public String getUserGroupId() { return this.userGroupId; } public static final class Builder { private String code; private java.util.List<HostAccountNames> hostAccountNames; private String hostGroupId; private String message; private String userGroupId; private Builder() { } private Builder(Results model) { this.code = model.code; this.hostAccountNames = model.hostAccountNames; this.hostGroupId = model.hostGroupId; this.message = model.message; this.userGroupId = model.userGroupId; } /** * <p>The return code that indicates whether the call was successful. Valid values:</p> * <ul> * <li><strong>OK</strong>: The call was successful.</li> * <li><strong>UNEXPECTED</strong>: An unknown error occurred.</li> * <li><strong>INVALID_ARGUMENT</strong>: A request parameter is invalid.</li> * <li><strong>OBJECT_NOT_FOUND</strong>: The specified object on which you want to perform the operation does not exist.</li> * <li><strong>OBJECT_AlREADY_EXISTS</strong>: The specified object on which you want to perform the operation already exists.</li> * </ul> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The result of revoking permissions on the specified host accounts from the user group.</p> */ public Builder hostAccountNames(java.util.List<HostAccountNames> hostAccountNames) { this.hostAccountNames = hostAccountNames; return this; } /** * <p>The ID of the host group.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostGroupId(String hostGroupId) { this.hostGroupId = hostGroupId; return this; } /** * <p>This parameter is deprecated.</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The ID of the group.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userGroupId(String userGroupId) { this.userGroupId = userGroupId; return this; } public Results build() { return new Results(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostGroupAccountsFromUserRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostGroupAccountsFromUserRequest} extends {@link RequestModel} * * <p>DetachHostGroupAccountsFromUserRequest</p> */ public class DetachHostGroupAccountsFromUserRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HostGroups") @com.aliyun.core.annotation.Validation(required = true) private String hostGroups; @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") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("UserId") @com.aliyun.core.annotation.Validation(required = true) private String userId; private DetachHostGroupAccountsFromUserRequest(Builder builder) { super(builder); this.hostGroups = builder.hostGroups; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static DetachHostGroupAccountsFromUserRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return hostGroups */ public String getHostGroups() { return this.hostGroups; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder extends Request.Builder<DetachHostGroupAccountsFromUserRequest, Builder> { private String hostGroups; private String instanceId; private String regionId; private String userId; private Builder() { super(); } private Builder(DetachHostGroupAccountsFromUserRequest request) { super(request); this.hostGroups = request.hostGroups; this.instanceId = request.instanceId; this.regionId = request.regionId; this.userId = request.userId; } /** * <p>The ID of the host group and the name of the host account on which you want to revoke permissions from the user. You can specify up to 10 host group IDs and up to 10 host account names for each host group. You can specify only host group IDs. In this case, the permissions on the specified host groups and all host accounts in the host groups are revoked from the user. For more information about this parameter, see the &quot;Description of the HostGroups parameter&quot; section of this topic.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/201307.html">ListHostGroups</a> operation to query the ID of the host group and the <a href="https://help.aliyun.com/document_detail/204372.html">ListHostAccounts</a> operation to query the name of the host account.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>[ {&quot;HostGroupId&quot;:&quot;1&quot;}, {&quot;HostGroupId&quot;:&quot;2&quot;,&quot;HostAccountNames&quot;:[&quot;root&quot;,&quot;111&quot;,&quot;abc&quot;]}]</p> */ public Builder hostGroups(String hostGroups) { this.putQueryParameter("HostGroups", hostGroups); this.hostGroups = hostGroups; return this; } /** * <p>The ID of the bastion host for which you want to revoke permissions on the specified host groups and host accounts from the user.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host for which you want to revoke permissions on the specified host groups and host accounts from the user.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the user from which you want to revoke permissions on the specified host groups and host accounts.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/204522.html">ListUsers</a> operation to query the ID of the user.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userId(String userId) { this.putQueryParameter("UserId", userId); this.userId = userId; return this; } @Override public DetachHostGroupAccountsFromUserRequest build() { return new DetachHostGroupAccountsFromUserRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostGroupAccountsFromUserResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostGroupAccountsFromUserResponse} extends {@link TeaModel} * * <p>DetachHostGroupAccountsFromUserResponse</p> */ public class DetachHostGroupAccountsFromUserResponse 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 DetachHostGroupAccountsFromUserResponseBody body; private DetachHostGroupAccountsFromUserResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DetachHostGroupAccountsFromUserResponse 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 DetachHostGroupAccountsFromUserResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DetachHostGroupAccountsFromUserResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DetachHostGroupAccountsFromUserResponseBody body); @Override DetachHostGroupAccountsFromUserResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DetachHostGroupAccountsFromUserResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DetachHostGroupAccountsFromUserResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DetachHostGroupAccountsFromUserResponse 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(DetachHostGroupAccountsFromUserResponseBody body) { this.body = body; return this; } @Override public DetachHostGroupAccountsFromUserResponse build() { return new DetachHostGroupAccountsFromUserResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DetachHostGroupAccountsFromUserResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DetachHostGroupAccountsFromUserResponseBody} extends {@link TeaModel} * * <p>DetachHostGroupAccountsFromUserResponseBody</p> */ public class DetachHostGroupAccountsFromUserResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Results") private java.util.List<Results> results; private DetachHostGroupAccountsFromUserResponseBody(Builder builder) { this.requestId = builder.requestId; this.results = builder.results; } public static Builder builder() { return new Builder(); } public static DetachHostGroupAccountsFromUserResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return results */ public java.util.List<Results> getResults() { return this.results; } public static final class Builder { private String requestId; private java.util.List<Results> results; private Builder() { } private Builder(DetachHostGroupAccountsFromUserResponseBody model) { this.requestId = model.requestId; this.results = model.results; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The result of the call.</p> */ public Builder results(java.util.List<Results> results) { this.results = results; return this; } public DetachHostGroupAccountsFromUserResponseBody build() { return new DetachHostGroupAccountsFromUserResponseBody(this); } } /** * * {@link DetachHostGroupAccountsFromUserResponseBody} extends {@link TeaModel} * * <p>DetachHostGroupAccountsFromUserResponseBody</p> */ public static class HostAccountNames extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HostAccountName") private String hostAccountName; @com.aliyun.core.annotation.NameInMap("Message") private String message; private HostAccountNames(Builder builder) { this.code = builder.code; this.hostAccountName = builder.hostAccountName; this.message = builder.message; } public static Builder builder() { return new Builder(); } public static HostAccountNames create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return hostAccountName */ public String getHostAccountName() { return this.hostAccountName; } /** * @return message */ public String getMessage() { return this.message; } public static final class Builder { private String code; private String hostAccountName; private String message; private Builder() { } private Builder(HostAccountNames model) { this.code = model.code; this.hostAccountName = model.hostAccountName; this.message = model.message; } /** * <p>The return code that indicates whether permissions on the specified host account were revoked from the user. Valid values:</p> * <ul> * <li><strong>OK</strong>: The call was successful.</li> * <li><strong>UNEXPECTED</strong>: An unknown error occurred.</li> * <li><strong>INVALID_ARGUMENT</strong>: A request parameter is invalid.</li> * <li><strong>OBJECT_NOT_FOUND</strong>: The specified object on which you want to perform the operation does not exist.</li> * <li><strong>OBJECT_AlREADY_EXISTS</strong>: The specified object on which you want to perform the operation already exists.</li> * </ul> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The name of the host account.</p> * * <strong>example:</strong> * <p>root</p> */ public Builder hostAccountName(String hostAccountName) { this.hostAccountName = hostAccountName; return this; } /** * <p>This parameter is deprecated.</p> * * <strong>example:</strong> * <p>N/A</p> */ public Builder message(String message) { this.message = message; return this; } public HostAccountNames build() { return new HostAccountNames(this); } } } /** * * {@link DetachHostGroupAccountsFromUserResponseBody} extends {@link TeaModel} * * <p>DetachHostGroupAccountsFromUserResponseBody</p> */ public static class Results extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("HostAccountNames") private java.util.List<HostAccountNames> hostAccountNames; @com.aliyun.core.annotation.NameInMap("HostGroupId") private String hostGroupId; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("UserId") private String userId; private Results(Builder builder) { this.code = builder.code; this.hostAccountNames = builder.hostAccountNames; this.hostGroupId = builder.hostGroupId; this.message = builder.message; this.userId = builder.userId; } public static Builder builder() { return new Builder(); } public static Results create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return hostAccountNames */ public java.util.List<HostAccountNames> getHostAccountNames() { return this.hostAccountNames; } /** * @return hostGroupId */ public String getHostGroupId() { return this.hostGroupId; } /** * @return message */ public String getMessage() { return this.message; } /** * @return userId */ public String getUserId() { return this.userId; } public static final class Builder { private String code; private java.util.List<HostAccountNames> hostAccountNames; private String hostGroupId; private String message; private String userId; private Builder() { } private Builder(Results model) { this.code = model.code; this.hostAccountNames = model.hostAccountNames; this.hostGroupId = model.hostGroupId; this.message = model.message; this.userId = model.userId; } /** * <p>The return code that indicates whether the call was successful. Valid values:</p> * <ul> * <li><strong>OK</strong>: The call was successful.</li> * <li><strong>UNEXPECTED</strong>: An unknown error occurred.</li> * <li><strong>INVALID_ARGUMENT</strong>: A request parameter is invalid.</li> * <li><strong>OBJECT_NOT_FOUND</strong>: The specified object on which you want to perform the operation does not exist.</li> * <li><strong>OBJECT_AlREADY_EXISTS</strong>: The specified object on which you want to perform the operation already exists.</li> * </ul> * * <strong>example:</strong> * <p>OK</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The result of revoking permissions on the specified host accounts from the user.</p> */ public Builder hostAccountNames(java.util.List<HostAccountNames> hostAccountNames) { this.hostAccountNames = hostAccountNames; return this; } /** * <p>The ID of the host group.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostGroupId(String hostGroupId) { this.hostGroupId = hostGroupId; return this; } /** * <p>This parameter is deprecated.</p> * * <strong>example:</strong> * <p>N/A</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The ID of the user.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder userId(String userId) { this.userId = userId; return this; } public Results build() { return new Results(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DisableInstancePublicAccessRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DisableInstancePublicAccessRequest} extends {@link RequestModel} * * <p>DisableInstancePublicAccessRequest</p> */ public class DisableInstancePublicAccessRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private DisableInstancePublicAccessRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DisableInstancePublicAccessRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<DisableInstancePublicAccessRequest, Builder> { private String instanceId; private String regionId; private Builder() { super(); } private Builder(DisableInstancePublicAccessRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the bastion host whose Internet access you want to disable.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-78v1gh****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public DisableInstancePublicAccessRequest build() { return new DisableInstancePublicAccessRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DisableInstancePublicAccessResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DisableInstancePublicAccessResponse} extends {@link TeaModel} * * <p>DisableInstancePublicAccessResponse</p> */ public class DisableInstancePublicAccessResponse 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 DisableInstancePublicAccessResponseBody body; private DisableInstancePublicAccessResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DisableInstancePublicAccessResponse 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 DisableInstancePublicAccessResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DisableInstancePublicAccessResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DisableInstancePublicAccessResponseBody body); @Override DisableInstancePublicAccessResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DisableInstancePublicAccessResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DisableInstancePublicAccessResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DisableInstancePublicAccessResponse 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(DisableInstancePublicAccessResponseBody body) { this.body = body; return this; } @Override public DisableInstancePublicAccessResponse build() { return new DisableInstancePublicAccessResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DisableInstancePublicAccessResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DisableInstancePublicAccessResponseBody} extends {@link TeaModel} * * <p>DisableInstancePublicAccessResponseBody</p> */ public class DisableInstancePublicAccessResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DisableInstancePublicAccessResponseBody(Builder builder) { this.instanceId = builder.instanceId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DisableInstancePublicAccessResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String instanceId; private String requestId; private Builder() { } private Builder(DisableInstancePublicAccessResponseBody model) { this.instanceId = model.instanceId; this.requestId = model.requestId; } /** * <p>The ID of the bastion host whose Internet access is disabled.</p> * * <strong>example:</strong> * <p>bastionhost-cn-78v1gh****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>76FAAF15-D3A3-4099-9941-FC408D9FDB4C</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DisableInstancePublicAccessResponseBody build() { return new DisableInstancePublicAccessResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DisableRuleRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DisableRuleRequest} extends {@link RequestModel} * * <p>DisableRuleRequest</p> */ public class DisableRuleRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") 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 DisableRuleRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.ruleId = builder.ruleId; } public static Builder builder() { return new Builder(); } public static DisableRuleRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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<DisableRuleRequest, Builder> { private String instanceId; private String regionId; private String ruleId; private Builder() { super(); } private Builder(DisableRuleRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.ruleId = request.ruleId; } /** * <p>The bastion host ID.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-78v1gh****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p> For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the authorization rule to be disabled.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2758868.html">ListRules</a> operation to query the authorization rule ID to be disabled.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder ruleId(String ruleId) { this.putQueryParameter("RuleId", ruleId); this.ruleId = ruleId; return this; } @Override public DisableRuleRequest build() { return new DisableRuleRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DisableRuleResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DisableRuleResponse} extends {@link TeaModel} * * <p>DisableRuleResponse</p> */ public class DisableRuleResponse 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 DisableRuleResponseBody body; private DisableRuleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DisableRuleResponse 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 DisableRuleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DisableRuleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DisableRuleResponseBody body); @Override DisableRuleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DisableRuleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DisableRuleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DisableRuleResponse 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(DisableRuleResponseBody body) { this.body = body; return this; } @Override public DisableRuleResponse build() { return new DisableRuleResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/DisableRuleResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DisableRuleResponseBody} extends {@link TeaModel} * * <p>DisableRuleResponseBody</p> */ public class DisableRuleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DisableRuleResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DisableRuleResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(DisableRuleResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>98DBE5C2-7D7A-5393-9E5A-71074336D33B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DisableRuleResponseBody build() { return new DisableRuleResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/EnableInstancePublicAccessRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link EnableInstancePublicAccessRequest} extends {@link RequestModel} * * <p>EnableInstancePublicAccessRequest</p> */ public class EnableInstancePublicAccessRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private EnableInstancePublicAccessRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static EnableInstancePublicAccessRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<EnableInstancePublicAccessRequest, Builder> { private String instanceId; private String regionId; private Builder() { super(); } private Builder(EnableInstancePublicAccessRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the bastion host.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-78v1gh****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public EnableInstancePublicAccessRequest build() { return new EnableInstancePublicAccessRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/EnableInstancePublicAccessResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link EnableInstancePublicAccessResponse} extends {@link TeaModel} * * <p>EnableInstancePublicAccessResponse</p> */ public class EnableInstancePublicAccessResponse 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 EnableInstancePublicAccessResponseBody body; private EnableInstancePublicAccessResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static EnableInstancePublicAccessResponse 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 EnableInstancePublicAccessResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<EnableInstancePublicAccessResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(EnableInstancePublicAccessResponseBody body); @Override EnableInstancePublicAccessResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<EnableInstancePublicAccessResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private EnableInstancePublicAccessResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(EnableInstancePublicAccessResponse 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(EnableInstancePublicAccessResponseBody body) { this.body = body; return this; } @Override public EnableInstancePublicAccessResponse build() { return new EnableInstancePublicAccessResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/EnableInstancePublicAccessResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link EnableInstancePublicAccessResponseBody} extends {@link TeaModel} * * <p>EnableInstancePublicAccessResponseBody</p> */ public class EnableInstancePublicAccessResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private EnableInstancePublicAccessResponseBody(Builder builder) { this.instanceId = builder.instanceId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static EnableInstancePublicAccessResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String instanceId; private String requestId; private Builder() { } private Builder(EnableInstancePublicAccessResponseBody model) { this.instanceId = model.instanceId; this.requestId = model.requestId; } /** * <p>The ID of the bastion host whose Internet access is enabled.</p> * * <strong>example:</strong> * <p>bastionhost-cn-78v1gh****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>D47B5043-FDD6-4FBE-976E-5FC67A23578F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public EnableInstancePublicAccessResponseBody build() { return new EnableInstancePublicAccessResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/EnableRuleRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link EnableRuleRequest} extends {@link RequestModel} * * <p>EnableRuleRequest</p> */ public class EnableRuleRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") 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 EnableRuleRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.ruleId = builder.ruleId; } public static Builder builder() { return new Builder(); } public static EnableRuleRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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<EnableRuleRequest, Builder> { private String instanceId; private String regionId; private String ruleId; private Builder() { super(); } private Builder(EnableRuleRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; this.ruleId = request.ruleId; } /** * <p>The bastion host ID.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-78v1ghxxxxx</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the authorization rule that you want to enable.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2758868.html">ListRules</a> operation to query the authorization rule ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder ruleId(String ruleId) { this.putQueryParameter("RuleId", ruleId); this.ruleId = ruleId; return this; } @Override public EnableRuleRequest build() { return new EnableRuleRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/EnableRuleResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link EnableRuleResponse} extends {@link TeaModel} * * <p>EnableRuleResponse</p> */ public class EnableRuleResponse 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 EnableRuleResponseBody body; private EnableRuleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static EnableRuleResponse 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 EnableRuleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<EnableRuleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(EnableRuleResponseBody body); @Override EnableRuleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<EnableRuleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private EnableRuleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(EnableRuleResponse 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(EnableRuleResponseBody body) { this.body = body; return this; } @Override public EnableRuleResponse build() { return new EnableRuleResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/EnableRuleResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link EnableRuleResponseBody} extends {@link TeaModel} * * <p>EnableRuleResponseBody</p> */ public class EnableRuleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private EnableRuleResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static EnableRuleResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(EnableRuleResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>4F6C075F-FC86-476E-943B-097BD4E12948</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public EnableRuleResponseBody build() { return new EnableRuleResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GenerateAssetOperationTokenRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GenerateAssetOperationTokenRequest} extends {@link RequestModel} * * <p>GenerateAssetOperationTokenRequest</p> */ public class GenerateAssetOperationTokenRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AssetAccountId") private String assetAccountId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AssetAccountName") private String assetAccountName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AssetAccountPassword") private String assetAccountPassword; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AssetAccountProtocolName") private String assetAccountProtocolName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AssetId") @com.aliyun.core.annotation.Validation(required = true) private String assetId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AssetType") @com.aliyun.core.annotation.Validation(required = true) private String assetType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DatabaseSchema") private String databaseSchema; @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("LoginAttribute") private String loginAttribute; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperationMode") private String operationMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperationNote") private String operationNote; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SsoClient") private String ssoClient; private GenerateAssetOperationTokenRequest(Builder builder) { super(builder); this.assetAccountId = builder.assetAccountId; this.assetAccountName = builder.assetAccountName; this.assetAccountPassword = builder.assetAccountPassword; this.assetAccountProtocolName = builder.assetAccountProtocolName; this.assetId = builder.assetId; this.assetType = builder.assetType; this.databaseSchema = builder.databaseSchema; this.instanceId = builder.instanceId; this.loginAttribute = builder.loginAttribute; this.operationMode = builder.operationMode; this.operationNote = builder.operationNote; this.regionId = builder.regionId; this.ssoClient = builder.ssoClient; } public static Builder builder() { return new Builder(); } public static GenerateAssetOperationTokenRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return assetAccountId */ public String getAssetAccountId() { return this.assetAccountId; } /** * @return assetAccountName */ public String getAssetAccountName() { return this.assetAccountName; } /** * @return assetAccountPassword */ public String getAssetAccountPassword() { return this.assetAccountPassword; } /** * @return assetAccountProtocolName */ public String getAssetAccountProtocolName() { return this.assetAccountProtocolName; } /** * @return assetId */ public String getAssetId() { return this.assetId; } /** * @return assetType */ public String getAssetType() { return this.assetType; } /** * @return databaseSchema */ public String getDatabaseSchema() { return this.databaseSchema; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return loginAttribute */ public String getLoginAttribute() { return this.loginAttribute; } /** * @return operationMode */ public String getOperationMode() { return this.operationMode; } /** * @return operationNote */ public String getOperationNote() { return this.operationNote; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return ssoClient */ public String getSsoClient() { return this.ssoClient; } public static final class Builder extends Request.Builder<GenerateAssetOperationTokenRequest, Builder> { private String assetAccountId; private String assetAccountName; private String assetAccountPassword; private String assetAccountProtocolName; private String assetId; private String assetType; private String databaseSchema; private String instanceId; private String loginAttribute; private String operationMode; private String operationNote; private String regionId; private String ssoClient; private Builder() { super(); } private Builder(GenerateAssetOperationTokenRequest request) { super(request); this.assetAccountId = request.assetAccountId; this.assetAccountName = request.assetAccountName; this.assetAccountPassword = request.assetAccountPassword; this.assetAccountProtocolName = request.assetAccountProtocolName; this.assetId = request.assetId; this.assetType = request.assetType; this.databaseSchema = request.databaseSchema; this.instanceId = request.instanceId; this.loginAttribute = request.loginAttribute; this.operationMode = request.operationMode; this.operationNote = request.operationNote; this.regionId = request.regionId; this.ssoClient = request.ssoClient; } /** * <p>The ID of the account whose assets the O&amp;M token takes effect.</p> * <blockquote> * <p> You must specify at least one of the following parameters: AssetAccountId and AssetAccountName. If you specify both parameters, AssetAccountId takes precedence.</p> * </blockquote> * * <strong>example:</strong> * <p>2</p> */ public Builder assetAccountId(String assetAccountId) { this.putQueryParameter("AssetAccountId", assetAccountId); this.assetAccountId = assetAccountId; return this; } /** * <p>The name of the host account. If you use a custom account, enter a real account name.</p> * <blockquote> * <p> When both AssetAccountId and AssetAccountName are specified, AssetAccountId takes precedence.</p> * </blockquote> * * <strong>example:</strong> * <p>root</p> */ public Builder assetAccountName(String assetAccountName) { this.putQueryParameter("AssetAccountName", assetAccountName); this.assetAccountName = assetAccountName; return this; } /** * <p>The Base64-encoded password. This parameter is required if you want to apply for an O&amp;M token for a custom account.</p> * * <strong>example:</strong> * <p>dGVzdHBhc3N3b3Jk</p> */ public Builder assetAccountPassword(String assetAccountPassword) { this.putQueryParameter("AssetAccountPassword", assetAccountPassword); this.assetAccountPassword = assetAccountPassword; return this; } /** * <p>The name of the protocol. Valid values:</p> * <ul> * <li>SSH</li> * <li>RDP</li> * <li>Oracle</li> * <li>PostgreSQL</li> * <li>MySQL</li> * <li>SQLServer</li> * </ul> * * <strong>example:</strong> * <p>SSH</p> */ public Builder assetAccountProtocolName(String assetAccountProtocolName) { this.putQueryParameter("AssetAccountProtocolName", assetAccountProtocolName); this.assetAccountProtocolName = assetAccountProtocolName; return this; } /** * <p>The ID of the asset for which you want to apply for an O&amp;M token.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>11</p> */ public Builder assetId(String assetId) { this.putQueryParameter("AssetId", assetId); this.assetId = assetId; return this; } /** * <p>The type of the asset for which you want to apply for an O&amp;M token. Valid values:</p> * <ul> * <li><strong>Host</strong></li> * <li><strong>Database</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Host</p> */ public Builder assetType(String assetType) { this.putQueryParameter("AssetType", assetType); this.assetType = assetType; return this; } /** * <p>The name of the database. If you set OperationMode to Sso and AssetAccountProtocolName to PostgreSQL or Oracle and you select Custom Account for the Database Account parameter, you must specify this parameter.</p> * <blockquote> * <p>This parameter is available only for bastion hosts that run V3.2.44 or later.</p> * </blockquote> * * <strong>example:</strong> * <p>orcl</p> */ public Builder databaseSchema(String databaseSchema) { this.putQueryParameter("DatabaseSchema", databaseSchema); this.databaseSchema = databaseSchema; return this; } /** * <p>The ID of the bastion host for which you want to apply an O&amp;M token.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The logon attribute. If you set OperationMode to Sso and AssetAccountProtocolName to Oracle, you must specify this parameter. Valid values:</p> * <ul> * <li><strong>SERVICENAME</strong></li> * <li><strong>SID</strong></li> * </ul> * <blockquote> * <p> This parameter is available only for Bastionhost V3.2.44 and later.</p> * </blockquote> * * <strong>example:</strong> * <p>SID</p> */ public Builder loginAttribute(String loginAttribute) { this.putQueryParameter("LoginAttribute", loginAttribute); this.loginAttribute = loginAttribute; return this; } /** * <p>The O&amp;M logon method. Valid values:</p> * <ul> * <li><strong>WebToken</strong>: O&amp;M token-based logon.</li> * <li><strong>Sso</strong>: local client-based logon.</li> * </ul> * <blockquote> * <p> This parameter is available only for Bastionhost V3.2.44 and later. If you do not specify this parameter, the default value WebToken is used.</p> * </blockquote> * * <strong>example:</strong> * <p>Sso</p> */ public Builder operationMode(String operationMode) { this.putQueryParameter("OperationMode", operationMode); this.operationMode = operationMode; return this; } /** * <p>The logon remarks. This parameter is required if an administrator enables the feature of logon remarks on the Control Policies page.</p> * * <strong>example:</strong> * <p>comment</p> */ public Builder operationNote(String operationNote) { this.putQueryParameter("OperationNote", operationNote); this.operationNote = operationNote; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p> For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The type of the local client that you want to perform O&amp;M operations on Linux assets. If you set OperationMode to Sso and AssetAccountProtocolName to SSH, you must specify this parameter. Valid values:</p> * <ul> * <li><strong>ssh</strong>: Perform O&amp;M operations on Linux assets by connecting to a bastion host from an SSH client.</li> * <li><strong>sftp</strong>: Perform O&amp;M operations on Linux assets by connecting to a bastion host from a Secure File Transfer Protocol (SFTP) client.</li> * </ul> * <blockquote> * <p> This parameter is available only for Bastionhost V3.2.44 and later.</p> * </blockquote> * * <strong>example:</strong> * <p>ssh</p> */ public Builder ssoClient(String ssoClient) { this.putQueryParameter("SsoClient", ssoClient); this.ssoClient = ssoClient; return this; } @Override public GenerateAssetOperationTokenRequest build() { return new GenerateAssetOperationTokenRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GenerateAssetOperationTokenResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GenerateAssetOperationTokenResponse} extends {@link TeaModel} * * <p>GenerateAssetOperationTokenResponse</p> */ public class GenerateAssetOperationTokenResponse 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 GenerateAssetOperationTokenResponseBody body; private GenerateAssetOperationTokenResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GenerateAssetOperationTokenResponse 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 GenerateAssetOperationTokenResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GenerateAssetOperationTokenResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GenerateAssetOperationTokenResponseBody body); @Override GenerateAssetOperationTokenResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GenerateAssetOperationTokenResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GenerateAssetOperationTokenResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GenerateAssetOperationTokenResponse 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(GenerateAssetOperationTokenResponseBody body) { this.body = body; return this; } @Override public GenerateAssetOperationTokenResponse build() { return new GenerateAssetOperationTokenResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GenerateAssetOperationTokenResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GenerateAssetOperationTokenResponseBody} extends {@link TeaModel} * * <p>GenerateAssetOperationTokenResponseBody</p> */ public class GenerateAssetOperationTokenResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssetOperationToken") private AssetOperationToken assetOperationToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GenerateAssetOperationTokenResponseBody(Builder builder) { this.assetOperationToken = builder.assetOperationToken; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GenerateAssetOperationTokenResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return assetOperationToken */ public AssetOperationToken getAssetOperationToken() { return this.assetOperationToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private AssetOperationToken assetOperationToken; private String requestId; private Builder() { } private Builder(GenerateAssetOperationTokenResponseBody model) { this.assetOperationToken = model.assetOperationToken; this.requestId = model.requestId; } /** * <p>The data returned.</p> */ public Builder assetOperationToken(AssetOperationToken assetOperationToken) { this.assetOperationToken = assetOperationToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GenerateAssetOperationTokenResponseBody build() { return new GenerateAssetOperationTokenResponseBody(this); } } /** * * {@link GenerateAssetOperationTokenResponseBody} extends {@link TeaModel} * * <p>GenerateAssetOperationTokenResponseBody</p> */ public static class AssetOperationToken extends TeaModel { @com.aliyun.core.annotation.NameInMap("CountLeft") private Long countLeft; @com.aliyun.core.annotation.NameInMap("ExpireTime") private Long expireTime; @com.aliyun.core.annotation.NameInMap("HasCountLimit") private Boolean hasCountLimit; @com.aliyun.core.annotation.NameInMap("MaxRenewCount") private Long maxRenewCount; @com.aliyun.core.annotation.NameInMap("RenewCount") private Long renewCount; @com.aliyun.core.annotation.NameInMap("SsoUrl") private String ssoUrl; @com.aliyun.core.annotation.NameInMap("Token") private String token; @com.aliyun.core.annotation.NameInMap("TokenId") private String tokenId; private AssetOperationToken(Builder builder) { this.countLeft = builder.countLeft; this.expireTime = builder.expireTime; this.hasCountLimit = builder.hasCountLimit; this.maxRenewCount = builder.maxRenewCount; this.renewCount = builder.renewCount; this.ssoUrl = builder.ssoUrl; this.token = builder.token; this.tokenId = builder.tokenId; } public static Builder builder() { return new Builder(); } public static AssetOperationToken create() { return builder().build(); } /** * @return countLeft */ public Long getCountLeft() { return this.countLeft; } /** * @return expireTime */ public Long getExpireTime() { return this.expireTime; } /** * @return hasCountLimit */ public Boolean getHasCountLimit() { return this.hasCountLimit; } /** * @return maxRenewCount */ public Long getMaxRenewCount() { return this.maxRenewCount; } /** * @return renewCount */ public Long getRenewCount() { return this.renewCount; } /** * @return ssoUrl */ public String getSsoUrl() { return this.ssoUrl; } /** * @return token */ public String getToken() { return this.token; } /** * @return tokenId */ public String getTokenId() { return this.tokenId; } public static final class Builder { private Long countLeft; private Long expireTime; private Boolean hasCountLimit; private Long maxRenewCount; private Long renewCount; private String ssoUrl; private String token; private String tokenId; private Builder() { } private Builder(AssetOperationToken model) { this.countLeft = model.countLeft; this.expireTime = model.expireTime; this.hasCountLimit = model.hasCountLimit; this.maxRenewCount = model.maxRenewCount; this.renewCount = model.renewCount; this.ssoUrl = model.ssoUrl; this.token = model.token; this.tokenId = model.tokenId; } /** * <p>The remaining number of times that you can use the O&amp;M token.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder countLeft(Long countLeft) { this.countLeft = countLeft; return this; } /** * <p>The time when the O&amp;M token expires. The value is a UNIX timestamp.</p> * * <strong>example:</strong> * <p>1709110797</p> */ public Builder expireTime(Long expireTime) { this.expireTime = expireTime; return this; } /** * <p>Indicates whether the number of times that you can use the O&amp;M token is limited.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder hasCountLimit(Boolean hasCountLimit) { this.hasCountLimit = hasCountLimit; return this; } /** * <p>The maximum number of renewals. A value of 0 indicates that renewal is not supported.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxRenewCount(Long maxRenewCount) { this.maxRenewCount = maxRenewCount; return this; } /** * <p>The number of times the O&amp;M token is renewed.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder renewCount(Long renewCount) { this.renewCount = renewCount; return this; } /** * <p>The single sign-on (SSO) URL.</p> * * <strong>example:</strong> * <p>sso://eyJOT0RFX0NPTU1PTiI6eyJNb2R******</p> */ public Builder ssoUrl(String ssoUrl) { this.ssoUrl = ssoUrl; return this; } /** * <p>The O&amp;M token that you apply for.</p> * * <strong>example:</strong> * <p>NmYyMmEzNmMwYzljNGY******</p> */ public Builder token(String token) { this.token = token; return this; } /** * <p>The ID of the O&amp;M token.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder tokenId(String tokenId) { this.tokenId = tokenId; return this; } public AssetOperationToken build() { return new AssetOperationToken(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetDatabaseAccountRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetDatabaseAccountRequest} extends {@link RequestModel} * * <p>GetDatabaseAccountRequest</p> */ public class GetDatabaseAccountRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DatabaseAccountId") @com.aliyun.core.annotation.Validation(required = true) private String databaseAccountId; @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") private String regionId; private GetDatabaseAccountRequest(Builder builder) { super(builder); this.databaseAccountId = builder.databaseAccountId; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetDatabaseAccountRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return databaseAccountId */ public String getDatabaseAccountId() { return this.databaseAccountId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetDatabaseAccountRequest, Builder> { private String databaseAccountId; private String instanceId; private String regionId; private Builder() { super(); } private Builder(GetDatabaseAccountRequest request) { super(request); this.databaseAccountId = request.databaseAccountId; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the database account to query.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2758839.html">ListDatabaseAccounts</a> operation to query the database account ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>9</p> */ public Builder databaseAccountId(String databaseAccountId) { this.putQueryParameter("DatabaseAccountId", databaseAccountId); this.databaseAccountId = databaseAccountId; return this; } /** * <p>The bastion host ID.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-i7m2d7zrw11</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-beijing</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetDatabaseAccountRequest build() { return new GetDatabaseAccountRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetDatabaseAccountResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetDatabaseAccountResponse} extends {@link TeaModel} * * <p>GetDatabaseAccountResponse</p> */ public class GetDatabaseAccountResponse 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 GetDatabaseAccountResponseBody body; private GetDatabaseAccountResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetDatabaseAccountResponse 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 GetDatabaseAccountResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetDatabaseAccountResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetDatabaseAccountResponseBody body); @Override GetDatabaseAccountResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetDatabaseAccountResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetDatabaseAccountResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetDatabaseAccountResponse 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(GetDatabaseAccountResponseBody body) { this.body = body; return this; } @Override public GetDatabaseAccountResponse build() { return new GetDatabaseAccountResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetDatabaseAccountResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetDatabaseAccountResponseBody} extends {@link TeaModel} * * <p>GetDatabaseAccountResponseBody</p> */ public class GetDatabaseAccountResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DatabaseAccount") private DatabaseAccount databaseAccount; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetDatabaseAccountResponseBody(Builder builder) { this.databaseAccount = builder.databaseAccount; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetDatabaseAccountResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return databaseAccount */ public DatabaseAccount getDatabaseAccount() { return this.databaseAccount; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private DatabaseAccount databaseAccount; private String requestId; private Builder() { } private Builder(GetDatabaseAccountResponseBody model) { this.databaseAccount = model.databaseAccount; this.requestId = model.requestId; } /** * <p>The returned information about the database account.</p> */ public Builder databaseAccount(DatabaseAccount databaseAccount) { this.databaseAccount = databaseAccount; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>FA06D274-8D0A-59FB-8B7E-584C0EEBBFFF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetDatabaseAccountResponseBody build() { return new GetDatabaseAccountResponseBody(this); } } /** * * {@link GetDatabaseAccountResponseBody} extends {@link TeaModel} * * <p>GetDatabaseAccountResponseBody</p> */ public static class DatabaseAccount extends TeaModel { @com.aliyun.core.annotation.NameInMap("DatabaseAccountId") private String databaseAccountId; @com.aliyun.core.annotation.NameInMap("DatabaseAccountName") private String databaseAccountName; @com.aliyun.core.annotation.NameInMap("DatabaseSchema") private String databaseSchema; @com.aliyun.core.annotation.NameInMap("HasPassword") private Boolean hasPassword; @com.aliyun.core.annotation.NameInMap("LoginAttribute") private String loginAttribute; private DatabaseAccount(Builder builder) { this.databaseAccountId = builder.databaseAccountId; this.databaseAccountName = builder.databaseAccountName; this.databaseSchema = builder.databaseSchema; this.hasPassword = builder.hasPassword; this.loginAttribute = builder.loginAttribute; } public static Builder builder() { return new Builder(); } public static DatabaseAccount create() { return builder().build(); } /** * @return databaseAccountId */ public String getDatabaseAccountId() { return this.databaseAccountId; } /** * @return databaseAccountName */ public String getDatabaseAccountName() { return this.databaseAccountName; } /** * @return databaseSchema */ public String getDatabaseSchema() { return this.databaseSchema; } /** * @return hasPassword */ public Boolean getHasPassword() { return this.hasPassword; } /** * @return loginAttribute */ public String getLoginAttribute() { return this.loginAttribute; } public static final class Builder { private String databaseAccountId; private String databaseAccountName; private String databaseSchema; private Boolean hasPassword; private String loginAttribute; private Builder() { } private Builder(DatabaseAccount model) { this.databaseAccountId = model.databaseAccountId; this.databaseAccountName = model.databaseAccountName; this.databaseSchema = model.databaseSchema; this.hasPassword = model.hasPassword; this.loginAttribute = model.loginAttribute; } /** * <p>The database account ID.</p> * * <strong>example:</strong> * <p>9</p> */ public Builder databaseAccountId(String databaseAccountId) { this.databaseAccountId = databaseAccountId; return this; } /** * <p>The name of the database account.</p> * * <strong>example:</strong> * <p>uac</p> */ public Builder databaseAccountName(String databaseAccountName) { this.databaseAccountName = databaseAccountName; return this; } /** * <p>The database name. A value is returned for this parameter if the database engine is PostgreSQL or Oracle.</p> * * <strong>example:</strong> * <p>orcl</p> */ public Builder databaseSchema(String databaseSchema) { this.databaseSchema = databaseSchema; return this; } /** * <p>Indicates whether the database account has a password. * Valid values:</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder hasPassword(Boolean hasPassword) { this.hasPassword = hasPassword; return this; } /** * <p>The logon attribute. A value is returned for this parameter if the database engine is Oracle. Valid values:</p> * <ul> * <li>SERVICENAME</li> * <li>SID</li> * </ul> * * <strong>example:</strong> * <p>SID</p> */ public Builder loginAttribute(String loginAttribute) { this.loginAttribute = loginAttribute; return this; } public DatabaseAccount build() { return new DatabaseAccount(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetDatabaseRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetDatabaseRequest} extends {@link RequestModel} * * <p>GetDatabaseRequest</p> */ public class GetDatabaseRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DatabaseId") @com.aliyun.core.annotation.Validation(required = true) private String databaseId; @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") private String regionId; private GetDatabaseRequest(Builder builder) { super(builder); this.databaseId = builder.databaseId; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetDatabaseRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return databaseId */ public String getDatabaseId() { return this.databaseId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetDatabaseRequest, Builder> { private String databaseId; private String instanceId; private String regionId; private Builder() { super(); } private Builder(GetDatabaseRequest request) { super(request); this.databaseId = request.databaseId; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the database to query.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/2758822.html">ListDatabases</a> operation to query the database ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>21</p> */ public Builder databaseId(String databaseId) { this.putQueryParameter("DatabaseId", databaseId); this.databaseId = databaseId; return this; } /** * <p>The ID of the bastion host that manages the database to query.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-wwo36qbv601</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host that manages the database to query.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetDatabaseRequest build() { return new GetDatabaseRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetDatabaseResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetDatabaseResponse} extends {@link TeaModel} * * <p>GetDatabaseResponse</p> */ public class GetDatabaseResponse 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 GetDatabaseResponseBody body; private GetDatabaseResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetDatabaseResponse 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 GetDatabaseResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetDatabaseResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetDatabaseResponseBody body); @Override GetDatabaseResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetDatabaseResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetDatabaseResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetDatabaseResponse 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(GetDatabaseResponseBody body) { this.body = body; return this; } @Override public GetDatabaseResponse build() { return new GetDatabaseResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetDatabaseResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetDatabaseResponseBody} extends {@link TeaModel} * * <p>GetDatabaseResponseBody</p> */ public class GetDatabaseResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Database") private Database database; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetDatabaseResponseBody(Builder builder) { this.database = builder.database; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetDatabaseResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return database */ public Database getDatabase() { return this.database; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Database database; private String requestId; private Builder() { } private Builder(GetDatabaseResponseBody model) { this.database = model.database; this.requestId = model.requestId; } /** * <p>The returned detailed information about the database.</p> */ public Builder database(Database database) { this.database = database; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>4D72B883-9D15-5B05-B987-DFD10EB1FFB4</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetDatabaseResponseBody build() { return new GetDatabaseResponseBody(this); } } /** * * {@link GetDatabaseResponseBody} extends {@link TeaModel} * * <p>GetDatabaseResponseBody</p> */ public static class Database extends TeaModel { @com.aliyun.core.annotation.NameInMap("ActiveAddressType") private String activeAddressType; @com.aliyun.core.annotation.NameInMap("Comment") private String comment; @com.aliyun.core.annotation.NameInMap("DatabaseId") private String databaseId; @com.aliyun.core.annotation.NameInMap("DatabaseName") private String databaseName; @com.aliyun.core.annotation.NameInMap("DatabasePort") private Long databasePort; @com.aliyun.core.annotation.NameInMap("DatabasePrivateAddress") private String databasePrivateAddress; @com.aliyun.core.annotation.NameInMap("DatabasePublicAddress") private String databasePublicAddress; @com.aliyun.core.annotation.NameInMap("DatabaseType") private String databaseType; @com.aliyun.core.annotation.NameInMap("NetworkDomainId") private String networkDomainId; @com.aliyun.core.annotation.NameInMap("Source") private String source; @com.aliyun.core.annotation.NameInMap("SourceInstanceId") private String sourceInstanceId; @com.aliyun.core.annotation.NameInMap("SourceInstanceRegionId") private String sourceInstanceRegionId; @com.aliyun.core.annotation.NameInMap("SourceInstanceState") private String sourceInstanceState; private Database(Builder builder) { this.activeAddressType = builder.activeAddressType; this.comment = builder.comment; this.databaseId = builder.databaseId; this.databaseName = builder.databaseName; this.databasePort = builder.databasePort; this.databasePrivateAddress = builder.databasePrivateAddress; this.databasePublicAddress = builder.databasePublicAddress; this.databaseType = builder.databaseType; this.networkDomainId = builder.networkDomainId; this.source = builder.source; this.sourceInstanceId = builder.sourceInstanceId; this.sourceInstanceRegionId = builder.sourceInstanceRegionId; this.sourceInstanceState = builder.sourceInstanceState; } public static Builder builder() { return new Builder(); } public static Database create() { return builder().build(); } /** * @return activeAddressType */ public String getActiveAddressType() { return this.activeAddressType; } /** * @return comment */ public String getComment() { return this.comment; } /** * @return databaseId */ public String getDatabaseId() { return this.databaseId; } /** * @return databaseName */ public String getDatabaseName() { return this.databaseName; } /** * @return databasePort */ public Long getDatabasePort() { return this.databasePort; } /** * @return databasePrivateAddress */ public String getDatabasePrivateAddress() { return this.databasePrivateAddress; } /** * @return databasePublicAddress */ public String getDatabasePublicAddress() { return this.databasePublicAddress; } /** * @return databaseType */ public String getDatabaseType() { return this.databaseType; } /** * @return networkDomainId */ public String getNetworkDomainId() { return this.networkDomainId; } /** * @return source */ public String getSource() { return this.source; } /** * @return sourceInstanceId */ public String getSourceInstanceId() { return this.sourceInstanceId; } /** * @return sourceInstanceRegionId */ public String getSourceInstanceRegionId() { return this.sourceInstanceRegionId; } /** * @return sourceInstanceState */ public String getSourceInstanceState() { return this.sourceInstanceState; } public static final class Builder { private String activeAddressType; private String comment; private String databaseId; private String databaseName; private Long databasePort; private String databasePrivateAddress; private String databasePublicAddress; private String databaseType; private String networkDomainId; private String source; private String sourceInstanceId; private String sourceInstanceRegionId; private String sourceInstanceState; private Builder() { } private Builder(Database model) { this.activeAddressType = model.activeAddressType; this.comment = model.comment; this.databaseId = model.databaseId; this.databaseName = model.databaseName; this.databasePort = model.databasePort; this.databasePrivateAddress = model.databasePrivateAddress; this.databasePublicAddress = model.databasePublicAddress; this.databaseType = model.databaseType; this.networkDomainId = model.networkDomainId; this.source = model.source; this.sourceInstanceId = model.sourceInstanceId; this.sourceInstanceRegionId = model.sourceInstanceRegionId; this.sourceInstanceState = model.sourceInstanceState; } /** * <p>The address type of the database. Valid values:</p> * <ul> * <li>Public</li> * <li>Private</li> * </ul> * * <strong>example:</strong> * <p>Public</p> */ public Builder activeAddressType(String activeAddressType) { this.activeAddressType = activeAddressType; return this; } /** * <p>The remarks of the database.</p> * * <strong>example:</strong> * <p>comment</p> */ public Builder comment(String comment) { this.comment = comment; return this; } /** * <p>The database ID.</p> * * <strong>example:</strong> * <p>22</p> */ public Builder databaseId(String databaseId) { this.databaseId = databaseId; return this; } /** * <p>The name of the database.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder databaseName(String databaseName) { this.databaseName = databaseName; return this; } /** * <p>The port of the database.</p> * * <strong>example:</strong> * <p>3306</p> */ public Builder databasePort(Long databasePort) { this.databasePort = databasePort; return this; } /** * <p>The internal endpoint of the database.</p> * * <strong>example:</strong> * <p>rm-bp1zq******</p> */ public Builder databasePrivateAddress(String databasePrivateAddress) { this.databasePrivateAddress = databasePrivateAddress; return this; } /** * <p>The public endpoint of the database.</p> * * <strong>example:</strong> * <p>rm-uf65******</p> */ public Builder databasePublicAddress(String databasePublicAddress) { this.databasePublicAddress = databasePublicAddress; return this; } /** * <p>The database engine. Valid values:</p> * <ul> * <li><strong>mysql</strong></li> * <li><strong>sqlserver</strong></li> * <li><strong>postgresql</strong></li> * <li><strong>oracle</strong></li> * </ul> * * <strong>example:</strong> * <p>MySQL</p> */ public Builder databaseType(String databaseType) { this.databaseType = databaseType; return this; } /** * <p>The ID of the network domain to which the database belongs.</p> * * <strong>example:</strong> * <p>45</p> */ public Builder networkDomainId(String networkDomainId) { this.networkDomainId = networkDomainId; return this; } /** * <p>The database type. Valid values:</p> * <ul> * <li><strong>Local</strong>: on-premises database.</li> * <li><strong>Rds</strong>: ApsaraDB RDS instance.</li> * <li><strong>PolarDB</strong>: PolarDB cluster.</li> * </ul> * * <strong>example:</strong> * <p>Local</p> */ public Builder source(String source) { this.source = source; return this; } /** * <p>The ID of the ApsaraDB RDS instance or PolarDB cluster.</p> * <blockquote> * <p>If <strong>Source</strong> is set to <strong>Local</strong>, this parameter is empty.</p> * </blockquote> * * <strong>example:</strong> * <p>i-wz9527ob0e0nftcsffke</p> */ public Builder sourceInstanceId(String sourceInstanceId) { this.sourceInstanceId = sourceInstanceId; return this; } /** * <p>The region ID of the ApsaraDB RDS instance or PolarDB cluster.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder sourceInstanceRegionId(String sourceInstanceRegionId) { this.sourceInstanceRegionId = sourceInstanceRegionId; return this; } /** * <p>The status of the database. Valid values:</p> * <ul> * <li><strong>Normal</strong></li> * <li><strong>Release</strong></li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder sourceInstanceState(String sourceInstanceState) { this.sourceInstanceState = sourceInstanceState; return this; } public Database build() { return new Database(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetExportConfigJobRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetExportConfigJobRequest} extends {@link RequestModel} * * <p>GetExportConfigJobRequest</p> */ public class GetExportConfigJobRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("JobId") @com.aliyun.core.annotation.Validation(required = true) private String jobId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private GetExportConfigJobRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.jobId = builder.jobId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetExportConfigJobRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetExportConfigJobRequest, Builder> { private String instanceId; private String jobId; private String regionId; private Builder() { super(); } private Builder(GetExportConfigJobRequest request) { super(request); this.instanceId = request.instanceId; this.jobId = request.jobId; this.regionId = request.regionId; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder jobId(String jobId) { this.putQueryParameter("JobId", jobId); this.jobId = jobId; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetExportConfigJobRequest build() { return new GetExportConfigJobRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetExportConfigJobResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetExportConfigJobResponse} extends {@link TeaModel} * * <p>GetExportConfigJobResponse</p> */ public class GetExportConfigJobResponse 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 GetExportConfigJobResponseBody body; private GetExportConfigJobResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetExportConfigJobResponse 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 GetExportConfigJobResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetExportConfigJobResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetExportConfigJobResponseBody body); @Override GetExportConfigJobResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetExportConfigJobResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetExportConfigJobResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetExportConfigJobResponse 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(GetExportConfigJobResponseBody body) { this.body = body; return this; } @Override public GetExportConfigJobResponse build() { return new GetExportConfigJobResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetExportConfigJobResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetExportConfigJobResponseBody} extends {@link TeaModel} * * <p>GetExportConfigJobResponseBody</p> */ public class GetExportConfigJobResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DownloadUrl") private String downloadUrl; @com.aliyun.core.annotation.NameInMap("ExpireTime") private Long expireTime; @com.aliyun.core.annotation.NameInMap("JobId") private String jobId; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Status") private String status; private GetExportConfigJobResponseBody(Builder builder) { this.downloadUrl = builder.downloadUrl; this.expireTime = builder.expireTime; this.jobId = builder.jobId; this.message = builder.message; this.requestId = builder.requestId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static GetExportConfigJobResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return downloadUrl */ public String getDownloadUrl() { return this.downloadUrl; } /** * @return expireTime */ public Long getExpireTime() { return this.expireTime; } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String downloadUrl; private Long expireTime; private String jobId; private String message; private String requestId; private String status; private Builder() { } private Builder(GetExportConfigJobResponseBody model) { this.downloadUrl = model.downloadUrl; this.expireTime = model.expireTime; this.jobId = model.jobId; this.message = model.message; this.requestId = model.requestId; this.status = model.status; } /** * DownloadUrl. */ public Builder downloadUrl(String downloadUrl) { this.downloadUrl = downloadUrl; return this; } /** * ExpireTime. */ public Builder expireTime(Long expireTime) { this.expireTime = expireTime; return this; } /** * JobId. */ public Builder jobId(String jobId) { this.jobId = jobId; return this; } /** * Message. */ public Builder message(String message) { this.message = message; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * Status. */ public Builder status(String status) { this.status = status; return this; } public GetExportConfigJobResponseBody build() { return new GetExportConfigJobResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostAccountRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostAccountRequest} extends {@link RequestModel} * * <p>GetHostAccountRequest</p> */ public class GetHostAccountRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HostAccountId") @com.aliyun.core.annotation.Validation(required = true) private String hostAccountId; @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") private String regionId; private GetHostAccountRequest(Builder builder) { super(builder); this.hostAccountId = builder.hostAccountId; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetHostAccountRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return hostAccountId */ public String getHostAccountId() { return this.hostAccountId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetHostAccountRequest, Builder> { private String hostAccountId; private String instanceId; private String regionId; private Builder() { super(); } private Builder(GetHostAccountRequest request) { super(request); this.hostAccountId = request.hostAccountId; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the host account that you want to query.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/204372.html">ListHostAccounts</a> operation to query the ID of the host account.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostAccountId(String hostAccountId) { this.putQueryParameter("HostAccountId", hostAccountId); this.hostAccountId = hostAccountId; return this; } /** * <p>The ID of the bastion host in which you want to query the details of the host account.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host in which you want to query the details of the host account.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetHostAccountRequest build() { return new GetHostAccountRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostAccountResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostAccountResponse} extends {@link TeaModel} * * <p>GetHostAccountResponse</p> */ public class GetHostAccountResponse 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 GetHostAccountResponseBody body; private GetHostAccountResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetHostAccountResponse 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 GetHostAccountResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetHostAccountResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetHostAccountResponseBody body); @Override GetHostAccountResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetHostAccountResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetHostAccountResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetHostAccountResponse 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(GetHostAccountResponseBody body) { this.body = body; return this; } @Override public GetHostAccountResponse build() { return new GetHostAccountResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostAccountResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostAccountResponseBody} extends {@link TeaModel} * * <p>GetHostAccountResponseBody</p> */ public class GetHostAccountResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("HostAccount") private HostAccount hostAccount; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetHostAccountResponseBody(Builder builder) { this.hostAccount = builder.hostAccount; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetHostAccountResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return hostAccount */ public HostAccount getHostAccount() { return this.hostAccount; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private HostAccount hostAccount; private String requestId; private Builder() { } private Builder(GetHostAccountResponseBody model) { this.hostAccount = model.hostAccount; this.requestId = model.requestId; } /** * <p>The details of the host account that was queried.</p> */ public Builder hostAccount(HostAccount hostAccount) { this.hostAccount = hostAccount; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetHostAccountResponseBody build() { return new GetHostAccountResponseBody(this); } } /** * * {@link GetHostAccountResponseBody} extends {@link TeaModel} * * <p>GetHostAccountResponseBody</p> */ public static class HostAccount extends TeaModel { @com.aliyun.core.annotation.NameInMap("HasPassword") private Boolean hasPassword; @com.aliyun.core.annotation.NameInMap("HostAccountId") private String hostAccountId; @com.aliyun.core.annotation.NameInMap("HostAccountName") private String hostAccountName; @com.aliyun.core.annotation.NameInMap("HostId") private String hostId; @com.aliyun.core.annotation.NameInMap("HostShareKeyId") private String hostShareKeyId; @com.aliyun.core.annotation.NameInMap("HostShareKeyName") private String hostShareKeyName; @com.aliyun.core.annotation.NameInMap("PrivateKeyFingerprint") private String privateKeyFingerprint; @com.aliyun.core.annotation.NameInMap("PrivilegeType") private String privilegeType; @com.aliyun.core.annotation.NameInMap("ProtocolName") private String protocolName; @com.aliyun.core.annotation.NameInMap("RotationMode") private String rotationMode; private HostAccount(Builder builder) { this.hasPassword = builder.hasPassword; this.hostAccountId = builder.hostAccountId; this.hostAccountName = builder.hostAccountName; this.hostId = builder.hostId; this.hostShareKeyId = builder.hostShareKeyId; this.hostShareKeyName = builder.hostShareKeyName; this.privateKeyFingerprint = builder.privateKeyFingerprint; this.privilegeType = builder.privilegeType; this.protocolName = builder.protocolName; this.rotationMode = builder.rotationMode; } public static Builder builder() { return new Builder(); } public static HostAccount create() { return builder().build(); } /** * @return hasPassword */ public Boolean getHasPassword() { return this.hasPassword; } /** * @return hostAccountId */ public String getHostAccountId() { return this.hostAccountId; } /** * @return hostAccountName */ public String getHostAccountName() { return this.hostAccountName; } /** * @return hostId */ public String getHostId() { return this.hostId; } /** * @return hostShareKeyId */ public String getHostShareKeyId() { return this.hostShareKeyId; } /** * @return hostShareKeyName */ public String getHostShareKeyName() { return this.hostShareKeyName; } /** * @return privateKeyFingerprint */ public String getPrivateKeyFingerprint() { return this.privateKeyFingerprint; } /** * @return privilegeType */ public String getPrivilegeType() { return this.privilegeType; } /** * @return protocolName */ public String getProtocolName() { return this.protocolName; } /** * @return rotationMode */ public String getRotationMode() { return this.rotationMode; } public static final class Builder { private Boolean hasPassword; private String hostAccountId; private String hostAccountName; private String hostId; private String hostShareKeyId; private String hostShareKeyName; private String privateKeyFingerprint; private String privilegeType; private String protocolName; private String rotationMode; private Builder() { } private Builder(HostAccount model) { this.hasPassword = model.hasPassword; this.hostAccountId = model.hostAccountId; this.hostAccountName = model.hostAccountName; this.hostId = model.hostId; this.hostShareKeyId = model.hostShareKeyId; this.hostShareKeyName = model.hostShareKeyName; this.privateKeyFingerprint = model.privateKeyFingerprint; this.privilegeType = model.privilegeType; this.protocolName = model.protocolName; this.rotationMode = model.rotationMode; } /** * <p>Indicates whether a password is configured for the host account. Valid values:</p> * <ul> * <li><strong>true</strong>: yes</li> * <li><strong>false</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder hasPassword(Boolean hasPassword) { this.hasPassword = hasPassword; return this; } /** * <p>The ID of the host account.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostAccountId(String hostAccountId) { this.hostAccountId = hostAccountId; return this; } /** * <p>The name of the host account.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder hostAccountName(String hostAccountName) { this.hostAccountName = hostAccountName; return this; } /** * <p>The ID of the host to which the host account belongs.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostId(String hostId) { this.hostId = hostId; return this; } /** * <p>The ID of the shared key.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostShareKeyId(String hostShareKeyId) { this.hostShareKeyId = hostShareKeyId; return this; } /** * <p>The name of the shared key.</p> * * <strong>example:</strong> * <p>name</p> */ public Builder hostShareKeyName(String hostShareKeyName) { this.hostShareKeyName = hostShareKeyName; return this; } /** * <p>The fingerprint of the private key.</p> * * <strong>example:</strong> * <p>fe:ca:37:42:30:00:9d:95:e6:73:e5:b0:32:0a:<strong>:</strong></p> */ public Builder privateKeyFingerprint(String privateKeyFingerprint) { this.privateKeyFingerprint = privateKeyFingerprint; return this; } /** * PrivilegeType. */ public Builder privilegeType(String privilegeType) { this.privilegeType = privilegeType; return this; } /** * <p>The protocol that is used by the host. Valid values:</p> * <ul> * <li><strong>SSH</strong></li> * <li><strong>RDP</strong></li> * </ul> * * <strong>example:</strong> * <p>SSH</p> */ public Builder protocolName(String protocolName) { this.protocolName = protocolName; return this; } /** * RotationMode. */ public Builder rotationMode(String rotationMode) { this.rotationMode = rotationMode; return this; } public HostAccount build() { return new HostAccount(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostGroupRequest} extends {@link RequestModel} * * <p>GetHostGroupRequest</p> */ public class GetHostGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HostGroupId") @com.aliyun.core.annotation.Validation(required = true) private String hostGroupId; @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") private String regionId; private GetHostGroupRequest(Builder builder) { super(builder); this.hostGroupId = builder.hostGroupId; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetHostGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return hostGroupId */ public String getHostGroupId() { return this.hostGroupId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetHostGroupRequest, Builder> { private String hostGroupId; private String instanceId; private String regionId; private Builder() { super(); } private Builder(GetHostGroupRequest request) { super(request); this.hostGroupId = request.hostGroupId; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the asset group to query.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/204509.html">ListHostGroups</a> operation to query the asset group ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostGroupId(String hostGroupId) { this.putQueryParameter("HostGroupId", hostGroupId); this.hostGroupId = hostGroupId; return this; } /** * <p>The ID of the bastion host whose asset group you want to query.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host whose asset group you want to query.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, <a href="https://help.aliyun.com/document_detail/40654.html">see Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetHostGroupRequest build() { return new GetHostGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostGroupResponse} extends {@link TeaModel} * * <p>GetHostGroupResponse</p> */ public class GetHostGroupResponse 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 GetHostGroupResponseBody body; private GetHostGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetHostGroupResponse 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 GetHostGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetHostGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetHostGroupResponseBody body); @Override GetHostGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetHostGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetHostGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetHostGroupResponse 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(GetHostGroupResponseBody body) { this.body = body; return this; } @Override public GetHostGroupResponse build() { return new GetHostGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostGroupResponseBody} extends {@link TeaModel} * * <p>GetHostGroupResponseBody</p> */ public class GetHostGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("HostGroup") private HostGroup hostGroup; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetHostGroupResponseBody(Builder builder) { this.hostGroup = builder.hostGroup; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetHostGroupResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return hostGroup */ public HostGroup getHostGroup() { return this.hostGroup; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private HostGroup hostGroup; private String requestId; private Builder() { } private Builder(GetHostGroupResponseBody model) { this.hostGroup = model.hostGroup; this.requestId = model.requestId; } /** * <p>The returned detailed information about the asset group.</p> */ public Builder hostGroup(HostGroup hostGroup) { this.hostGroup = hostGroup; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetHostGroupResponseBody build() { return new GetHostGroupResponseBody(this); } } /** * * {@link GetHostGroupResponseBody} extends {@link TeaModel} * * <p>GetHostGroupResponseBody</p> */ public static class HostGroup extends TeaModel { @com.aliyun.core.annotation.NameInMap("Comment") private String comment; @com.aliyun.core.annotation.NameInMap("HostGroupId") private String hostGroupId; @com.aliyun.core.annotation.NameInMap("HostGroupName") private String hostGroupName; private HostGroup(Builder builder) { this.comment = builder.comment; this.hostGroupId = builder.hostGroupId; this.hostGroupName = builder.hostGroupName; } public static Builder builder() { return new Builder(); } public static HostGroup create() { return builder().build(); } /** * @return comment */ public String getComment() { return this.comment; } /** * @return hostGroupId */ public String getHostGroupId() { return this.hostGroupId; } /** * @return hostGroupName */ public String getHostGroupName() { return this.hostGroupName; } public static final class Builder { private String comment; private String hostGroupId; private String hostGroupName; private Builder() { } private Builder(HostGroup model) { this.comment = model.comment; this.hostGroupId = model.hostGroupId; this.hostGroupName = model.hostGroupName; } /** * <p>The remarks of the asset group.</p> * * <strong>example:</strong> * <p>Description</p> */ public Builder comment(String comment) { this.comment = comment; return this; } /** * <p>The asset group ID.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostGroupId(String hostGroupId) { this.hostGroupId = hostGroupId; return this; } /** * <p>The name of the asset group.</p> * * <strong>example:</strong> * <p>Host group 1</p> */ public Builder hostGroupName(String hostGroupName) { this.hostGroupName = hostGroupName; return this; } public HostGroup build() { return new HostGroup(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostRequest} extends {@link RequestModel} * * <p>GetHostRequest</p> */ public class GetHostRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HostId") @com.aliyun.core.annotation.Validation(required = true) private String hostId; @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") private String regionId; private GetHostRequest(Builder builder) { super(builder); this.hostId = builder.hostId; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetHostRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return hostId */ public String getHostId() { return this.hostId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetHostRequest, Builder> { private String hostId; private String instanceId; private String regionId; private Builder() { super(); } private Builder(GetHostRequest request) { super(request); this.hostId = request.hostId; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the host that you want to query. You can specify only one host ID.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/200665.html">ListHosts</a> operation to query the ID of the host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostId(String hostId) { this.putQueryParameter("HostId", hostId); this.hostId = hostId; return this; } /** * <p>The ID of the bastion host in which you want to query the host.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host in which you want to query the host.</p> * <blockquote> * <p> For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetHostRequest build() { return new GetHostRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostResponse} extends {@link TeaModel} * * <p>GetHostResponse</p> */ public class GetHostResponse 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 GetHostResponseBody body; private GetHostResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetHostResponse 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 GetHostResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetHostResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetHostResponseBody body); @Override GetHostResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetHostResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetHostResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetHostResponse 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(GetHostResponseBody body) { this.body = body; return this; } @Override public GetHostResponse build() { return new GetHostResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostResponseBody} extends {@link TeaModel} * * <p>GetHostResponseBody</p> */ public class GetHostResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Host") private GetHostResponseBodyHost host; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetHostResponseBody(Builder builder) { this.host = builder.host; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetHostResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return host */ public GetHostResponseBodyHost getHost() { return this.host; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private GetHostResponseBodyHost host; private String requestId; private Builder() { } private Builder(GetHostResponseBody model) { this.host = model.host; this.requestId = model.requestId; } /** * <p>The returned information about the host.</p> */ public Builder host(GetHostResponseBodyHost host) { this.host = host; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetHostResponseBody build() { return new GetHostResponseBody(this); } } /** * * {@link GetHostResponseBody} extends {@link TeaModel} * * <p>GetHostResponseBody</p> */ public static class Protocols extends TeaModel { @com.aliyun.core.annotation.NameInMap("HostFingerPrint") private String hostFingerPrint; @com.aliyun.core.annotation.NameInMap("Port") private Integer port; @com.aliyun.core.annotation.NameInMap("ProtocolName") private String protocolName; private Protocols(Builder builder) { this.hostFingerPrint = builder.hostFingerPrint; this.port = builder.port; this.protocolName = builder.protocolName; } public static Builder builder() { return new Builder(); } public static Protocols create() { return builder().build(); } /** * @return hostFingerPrint */ public String getHostFingerPrint() { return this.hostFingerPrint; } /** * @return port */ public Integer getPort() { return this.port; } /** * @return protocolName */ public String getProtocolName() { return this.protocolName; } public static final class Builder { private String hostFingerPrint; private Integer port; private String protocolName; private Builder() { } private Builder(Protocols model) { this.hostFingerPrint = model.hostFingerPrint; this.port = model.port; this.protocolName = model.protocolName; } /** * <p>The fingerprint of the host. This parameter uniquely identifies a host. A value is returned for this parameter only if you have performed O&amp;M operations on the host by using the bastion host. Otherwise, no value is returned.</p> * * <strong>example:</strong> * <p>ssh-ed25519|3e:46:5a:e1:1f:0d:39:7e:61:35:d5:fa:7b:2b:<strong>:</strong></p> */ public Builder hostFingerPrint(String hostFingerPrint) { this.hostFingerPrint = hostFingerPrint; return this; } /** * <p>The service port of the host.</p> * * <strong>example:</strong> * <p>22</p> */ public Builder port(Integer port) { this.port = port; return this; } /** * <p>The protocol that is used to connect to the host. Valid values:</p> * <ul> * <li><strong>SSH</strong></li> * <li><strong>RDP</strong></li> * </ul> * * <strong>example:</strong> * <p>SSH</p> */ public Builder protocolName(String protocolName) { this.protocolName = protocolName; return this; } public Protocols build() { return new Protocols(this); } } } /** * * {@link GetHostResponseBody} extends {@link TeaModel} * * <p>GetHostResponseBody</p> */ public static class GetHostResponseBodyHost extends TeaModel { @com.aliyun.core.annotation.NameInMap("ActiveAddressType") private String activeAddressType; @com.aliyun.core.annotation.NameInMap("Comment") private String comment; @com.aliyun.core.annotation.NameInMap("HostId") private String hostId; @com.aliyun.core.annotation.NameInMap("HostName") private String hostName; @com.aliyun.core.annotation.NameInMap("HostPrivateAddress") private String hostPrivateAddress; @com.aliyun.core.annotation.NameInMap("HostPublicAddress") private String hostPublicAddress; @com.aliyun.core.annotation.NameInMap("NetworkDomainId") private String networkDomainId; @com.aliyun.core.annotation.NameInMap("OSType") private String OSType; @com.aliyun.core.annotation.NameInMap("PrefKex") private String prefKex; @com.aliyun.core.annotation.NameInMap("Protocols") private java.util.List<Protocols> protocols; @com.aliyun.core.annotation.NameInMap("Source") private String source; @com.aliyun.core.annotation.NameInMap("SourceInstanceId") private String sourceInstanceId; @com.aliyun.core.annotation.NameInMap("SourceInstanceState") private String sourceInstanceState; private GetHostResponseBodyHost(Builder builder) { this.activeAddressType = builder.activeAddressType; this.comment = builder.comment; this.hostId = builder.hostId; this.hostName = builder.hostName; this.hostPrivateAddress = builder.hostPrivateAddress; this.hostPublicAddress = builder.hostPublicAddress; this.networkDomainId = builder.networkDomainId; this.OSType = builder.OSType; this.prefKex = builder.prefKex; this.protocols = builder.protocols; this.source = builder.source; this.sourceInstanceId = builder.sourceInstanceId; this.sourceInstanceState = builder.sourceInstanceState; } public static Builder builder() { return new Builder(); } public static GetHostResponseBodyHost create() { return builder().build(); } /** * @return activeAddressType */ public String getActiveAddressType() { return this.activeAddressType; } /** * @return comment */ public String getComment() { return this.comment; } /** * @return hostId */ public String getHostId() { return this.hostId; } /** * @return hostName */ public String getHostName() { return this.hostName; } /** * @return hostPrivateAddress */ public String getHostPrivateAddress() { return this.hostPrivateAddress; } /** * @return hostPublicAddress */ public String getHostPublicAddress() { return this.hostPublicAddress; } /** * @return networkDomainId */ public String getNetworkDomainId() { return this.networkDomainId; } /** * @return OSType */ public String getOSType() { return this.OSType; } /** * @return prefKex */ public String getPrefKex() { return this.prefKex; } /** * @return protocols */ public java.util.List<Protocols> getProtocols() { return this.protocols; } /** * @return source */ public String getSource() { return this.source; } /** * @return sourceInstanceId */ public String getSourceInstanceId() { return this.sourceInstanceId; } /** * @return sourceInstanceState */ public String getSourceInstanceState() { return this.sourceInstanceState; } public static final class Builder { private String activeAddressType; private String comment; private String hostId; private String hostName; private String hostPrivateAddress; private String hostPublicAddress; private String networkDomainId; private String OSType; private String prefKex; private java.util.List<Protocols> protocols; private String source; private String sourceInstanceId; private String sourceInstanceState; private Builder() { } private Builder(GetHostResponseBodyHost model) { this.activeAddressType = model.activeAddressType; this.comment = model.comment; this.hostId = model.hostId; this.hostName = model.hostName; this.hostPrivateAddress = model.hostPrivateAddress; this.hostPublicAddress = model.hostPublicAddress; this.networkDomainId = model.networkDomainId; this.OSType = model.OSType; this.prefKex = model.prefKex; this.protocols = model.protocols; this.source = model.source; this.sourceInstanceId = model.sourceInstanceId; this.sourceInstanceState = model.sourceInstanceState; } /** * <p>The address type of the host. Valid values:</p> * <ul> * <li><strong>Public</strong>: a public address</li> * <li><strong>Private</strong>: a private address</li> * </ul> * * <strong>example:</strong> * <p>Public</p> */ public Builder activeAddressType(String activeAddressType) { this.activeAddressType = activeAddressType; return this; } /** * <p>The description of the host.</p> * * <strong>example:</strong> * <p>host</p> */ public Builder comment(String comment) { this.comment = comment; return this; } /** * <p>The ID of the host.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hostId(String hostId) { this.hostId = hostId; return this; } /** * <p>The hostname.</p> * * <strong>example:</strong> * <p>host</p> */ public Builder hostName(String hostName) { this.hostName = hostName; return this; } /** * <p>The internal endpoint of the host. The value is a domain name or an IP address.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder hostPrivateAddress(String hostPrivateAddress) { this.hostPrivateAddress = hostPrivateAddress; return this; } /** * <p>The public address of the host. The value is a domain name or an IP address.</p> * * <strong>example:</strong> * <p>1.1.XX.XX</p> */ public Builder hostPublicAddress(String hostPublicAddress) { this.hostPublicAddress = hostPublicAddress; return this; } /** * <p>The ID of the network domain to which the host belongs.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder networkDomainId(String networkDomainId) { this.networkDomainId = networkDomainId; return this; } /** * <p>The operating system of the host. Valid values:</p> * <ul> * <li><strong>Linux</strong></li> * <li><strong>Windows</strong></li> * </ul> * * <strong>example:</strong> * <p>Linux</p> */ public Builder OSType(String OSType) { this.OSType = OSType; return this; } /** * <p>The preferred key exchange algorithm of the host. The value of this parameter is returned if OSType is set to Linux. Valid values:</p> * <ul> * <li><strong>default</strong></li> * <li><strong>diffie-hellman-group1-sha1</strong></li> * <li><strong>diffie-hellman-group14-sha1</strong></li> * <li><strong>diffie-hellman-group-exchange-sha1</strong></li> * </ul> * * <strong>example:</strong> * <p>default</p> */ public Builder prefKex(String prefKex) { this.prefKex = prefKex; return this; } /** * <p>The protocol information about the host.</p> */ public Builder protocols(java.util.List<Protocols> protocols) { this.protocols = protocols; return this; } /** * <p>The source of the host. Valid values:</p> * <ul> * <li><strong>Local</strong>: a host in a data center</li> * <li><strong>Ecs</strong>: an Elastic Compute Service (ECS) instance</li> * <li><strong>Rds</strong>: a host in an ApsaraDB MyBase dedicated cluster</li> * </ul> * * <strong>example:</strong> * <p>Local</p> */ public Builder source(String source) { this.source = source; return this; } /** * <p>The ID of the ECS instance or the host in an ApsaraDB MyBase dedicated cluster.</p> * <blockquote> * <p> If <strong>Local</strong> is returned for the <strong>Source</strong> parameter, no value is returned for this parameter.</p> * </blockquote> * * <strong>example:</strong> * <p>i-bp19ienyt0yax748****</p> */ public Builder sourceInstanceId(String sourceInstanceId) { this.sourceInstanceId = sourceInstanceId; return this; } /** * <p>The status of the host. Valid values:</p> * <ul> * <li><strong>Normal</strong>: normal</li> * <li><strong>Release</strong>: released</li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder sourceInstanceState(String sourceInstanceState) { this.sourceInstanceState = sourceInstanceState; return this; } public GetHostResponseBodyHost build() { return new GetHostResponseBodyHost(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostShareKeyRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostShareKeyRequest} extends {@link RequestModel} * * <p>GetHostShareKeyRequest</p> */ public class GetHostShareKeyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HostShareKeyId") @com.aliyun.core.annotation.Validation(required = true) private String hostShareKeyId; @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") private String regionId; private GetHostShareKeyRequest(Builder builder) { super(builder); this.hostShareKeyId = builder.hostShareKeyId; this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetHostShareKeyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return hostShareKeyId */ public String getHostShareKeyId() { return this.hostShareKeyId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetHostShareKeyRequest, Builder> { private String hostShareKeyId; private String instanceId; private String regionId; private Builder() { super(); } private Builder(GetHostShareKeyRequest request) { super(request); this.hostShareKeyId = request.hostShareKeyId; this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the shared key whose information you want to query.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/462973.html">ListHostShareKeys</a> operation to query the shared key ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10427</p> */ public Builder hostShareKeyId(String hostShareKeyId) { this.putQueryParameter("HostShareKeyId", hostShareKeyId); this.hostShareKeyId = hostShareKeyId; return this; } /** * <p>The bastion host ID.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p> For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetHostShareKeyRequest build() { return new GetHostShareKeyRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostShareKeyResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostShareKeyResponse} extends {@link TeaModel} * * <p>GetHostShareKeyResponse</p> */ public class GetHostShareKeyResponse 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 GetHostShareKeyResponseBody body; private GetHostShareKeyResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetHostShareKeyResponse 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 GetHostShareKeyResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetHostShareKeyResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetHostShareKeyResponseBody body); @Override GetHostShareKeyResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetHostShareKeyResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetHostShareKeyResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetHostShareKeyResponse 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(GetHostShareKeyResponseBody body) { this.body = body; return this; } @Override public GetHostShareKeyResponse build() { return new GetHostShareKeyResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetHostShareKeyResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetHostShareKeyResponseBody} extends {@link TeaModel} * * <p>GetHostShareKeyResponseBody</p> */ public class GetHostShareKeyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("HostShareKey") private HostShareKey hostShareKey; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetHostShareKeyResponseBody(Builder builder) { this.hostShareKey = builder.hostShareKey; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetHostShareKeyResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return hostShareKey */ public HostShareKey getHostShareKey() { return this.hostShareKey; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private HostShareKey hostShareKey; private String requestId; private Builder() { } private Builder(GetHostShareKeyResponseBody model) { this.hostShareKey = model.hostShareKey; this.requestId = model.requestId; } /** * <p>The returned information about the shared key.</p> */ public Builder hostShareKey(HostShareKey hostShareKey) { this.hostShareKey = hostShareKey; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetHostShareKeyResponseBody build() { return new GetHostShareKeyResponseBody(this); } } /** * * {@link GetHostShareKeyResponseBody} extends {@link TeaModel} * * <p>GetHostShareKeyResponseBody</p> */ public static class HostShareKey extends TeaModel { @com.aliyun.core.annotation.NameInMap("HostShareKeyId") private String hostShareKeyId; @com.aliyun.core.annotation.NameInMap("HostShareKeyName") private String hostShareKeyName; @com.aliyun.core.annotation.NameInMap("LastModifyKeyAt") private Long lastModifyKeyAt; @com.aliyun.core.annotation.NameInMap("PrivateKeyFingerPrint") private String privateKeyFingerPrint; private HostShareKey(Builder builder) { this.hostShareKeyId = builder.hostShareKeyId; this.hostShareKeyName = builder.hostShareKeyName; this.lastModifyKeyAt = builder.lastModifyKeyAt; this.privateKeyFingerPrint = builder.privateKeyFingerPrint; } public static Builder builder() { return new Builder(); } public static HostShareKey create() { return builder().build(); } /** * @return hostShareKeyId */ public String getHostShareKeyId() { return this.hostShareKeyId; } /** * @return hostShareKeyName */ public String getHostShareKeyName() { return this.hostShareKeyName; } /** * @return lastModifyKeyAt */ public Long getLastModifyKeyAt() { return this.lastModifyKeyAt; } /** * @return privateKeyFingerPrint */ public String getPrivateKeyFingerPrint() { return this.privateKeyFingerPrint; } public static final class Builder { private String hostShareKeyId; private String hostShareKeyName; private Long lastModifyKeyAt; private String privateKeyFingerPrint; private Builder() { } private Builder(HostShareKey model) { this.hostShareKeyId = model.hostShareKeyId; this.hostShareKeyName = model.hostShareKeyName; this.lastModifyKeyAt = model.lastModifyKeyAt; this.privateKeyFingerPrint = model.privateKeyFingerPrint; } /** * <p>The ID of the shared key.</p> * * <strong>example:</strong> * <p>10427</p> */ public Builder hostShareKeyId(String hostShareKeyId) { this.hostShareKeyId = hostShareKeyId; return this; } /** * <p>The name of the shared key.</p> * * <strong>example:</strong> * <p>name</p> */ public Builder hostShareKeyName(String hostShareKeyName) { this.hostShareKeyName = hostShareKeyName; return this; } /** * <p>The time when the information about the shared key was last modified. The value is a UNIX timestamp. Unit: seconds.</p> * * <strong>example:</strong> * <p>1644287246</p> */ public Builder lastModifyKeyAt(Long lastModifyKeyAt) { this.lastModifyKeyAt = lastModifyKeyAt; return this; } /** * <p>The fingerprint of the private key.</p> * * <strong>example:</strong> * <hr> */ public Builder privateKeyFingerPrint(String privateKeyFingerPrint) { this.privateKeyFingerPrint = privateKeyFingerPrint; return this; } public HostShareKey build() { return new HostShareKey(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceADAuthServerRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceADAuthServerRequest} extends {@link RequestModel} * * <p>GetInstanceADAuthServerRequest</p> */ public class GetInstanceADAuthServerRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private GetInstanceADAuthServerRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetInstanceADAuthServerRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetInstanceADAuthServerRequest, Builder> { private String instanceId; private String regionId; private Builder() { super(); } private Builder(GetInstanceADAuthServerRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The bastion host ID.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetInstanceADAuthServerRequest build() { return new GetInstanceADAuthServerRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceADAuthServerResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceADAuthServerResponse} extends {@link TeaModel} * * <p>GetInstanceADAuthServerResponse</p> */ public class GetInstanceADAuthServerResponse 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 GetInstanceADAuthServerResponseBody body; private GetInstanceADAuthServerResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetInstanceADAuthServerResponse 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 GetInstanceADAuthServerResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetInstanceADAuthServerResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetInstanceADAuthServerResponseBody body); @Override GetInstanceADAuthServerResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetInstanceADAuthServerResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetInstanceADAuthServerResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetInstanceADAuthServerResponse 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(GetInstanceADAuthServerResponseBody body) { this.body = body; return this; } @Override public GetInstanceADAuthServerResponse build() { return new GetInstanceADAuthServerResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceADAuthServerResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceADAuthServerResponseBody} extends {@link TeaModel} * * <p>GetInstanceADAuthServerResponseBody</p> */ public class GetInstanceADAuthServerResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AD") private Ad ad; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetInstanceADAuthServerResponseBody(Builder builder) { this.ad = builder.ad; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetInstanceADAuthServerResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return ad */ public Ad getAd() { return this.ad; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Ad ad; private String requestId; private Builder() { } private Builder(GetInstanceADAuthServerResponseBody model) { this.ad = model.ad; this.requestId = model.requestId; } /** * <p>The settings of AD authentication.</p> */ public Builder ad(Ad ad) { this.ad = ad; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>89398CFB-4EB6-4C7E-BB3C-EF213AC8FA50</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetInstanceADAuthServerResponseBody build() { return new GetInstanceADAuthServerResponseBody(this); } } /** * * {@link GetInstanceADAuthServerResponseBody} extends {@link TeaModel} * * <p>GetInstanceADAuthServerResponseBody</p> */ public static class Ad extends TeaModel { @com.aliyun.core.annotation.NameInMap("Account") private String account; @com.aliyun.core.annotation.NameInMap("BaseDN") private String baseDN; @com.aliyun.core.annotation.NameInMap("Domain") private String domain; @com.aliyun.core.annotation.NameInMap("EmailMapping") private String emailMapping; @com.aliyun.core.annotation.NameInMap("Filter") private String filter; @com.aliyun.core.annotation.NameInMap("HasPassword") private Boolean hasPassword; @com.aliyun.core.annotation.NameInMap("IsSSL") private Boolean isSSL; @com.aliyun.core.annotation.NameInMap("MobileMapping") private String mobileMapping; @com.aliyun.core.annotation.NameInMap("NameMapping") private String nameMapping; @com.aliyun.core.annotation.NameInMap("Port") private Long port; @com.aliyun.core.annotation.NameInMap("Server") private String server; @com.aliyun.core.annotation.NameInMap("StandbyServer") private String standbyServer; private Ad(Builder builder) { this.account = builder.account; this.baseDN = builder.baseDN; this.domain = builder.domain; this.emailMapping = builder.emailMapping; this.filter = builder.filter; this.hasPassword = builder.hasPassword; this.isSSL = builder.isSSL; this.mobileMapping = builder.mobileMapping; this.nameMapping = builder.nameMapping; this.port = builder.port; this.server = builder.server; this.standbyServer = builder.standbyServer; } public static Builder builder() { return new Builder(); } public static Ad create() { return builder().build(); } /** * @return account */ public String getAccount() { return this.account; } /** * @return baseDN */ public String getBaseDN() { return this.baseDN; } /** * @return domain */ public String getDomain() { return this.domain; } /** * @return emailMapping */ public String getEmailMapping() { return this.emailMapping; } /** * @return filter */ public String getFilter() { return this.filter; } /** * @return hasPassword */ public Boolean getHasPassword() { return this.hasPassword; } /** * @return isSSL */ public Boolean getIsSSL() { return this.isSSL; } /** * @return mobileMapping */ public String getMobileMapping() { return this.mobileMapping; } /** * @return nameMapping */ public String getNameMapping() { return this.nameMapping; } /** * @return port */ public Long getPort() { return this.port; } /** * @return server */ public String getServer() { return this.server; } /** * @return standbyServer */ public String getStandbyServer() { return this.standbyServer; } public static final class Builder { private String account; private String baseDN; private String domain; private String emailMapping; private String filter; private Boolean hasPassword; private Boolean isSSL; private String mobileMapping; private String nameMapping; private Long port; private String server; private String standbyServer; private Builder() { } private Builder(Ad model) { this.account = model.account; this.baseDN = model.baseDN; this.domain = model.domain; this.emailMapping = model.emailMapping; this.filter = model.filter; this.hasPassword = model.hasPassword; this.isSSL = model.isSSL; this.mobileMapping = model.mobileMapping; this.nameMapping = model.nameMapping; this.port = model.port; this.server = model.server; this.standbyServer = model.standbyServer; } /** * <p>The distinguished name (DN) of the AD server account.</p> * * <strong>example:</strong> * <p>cn=Manager,dc=test,dc=com</p> */ public Builder account(String account) { this.account = account; return this; } /** * <p>The Base DN of the AD server.</p> * * <strong>example:</strong> * <p>dc=test,dc=com</p> */ public Builder baseDN(String baseDN) { this.baseDN = baseDN; return this; } /** * <p>The domain on the AD server.</p> * * <strong>example:</strong> * <p>domain</p> */ public Builder domain(String domain) { this.domain = domain; return this; } /** * <p>The field that is used to indicate the email address of a user on the AD server.</p> * * <strong>example:</strong> * <p>emailAttr</p> */ public Builder emailMapping(String emailMapping) { this.emailMapping = emailMapping; return this; } /** * <p>The condition that is used to filter users.</p> * * <strong>example:</strong> * <p>(&amp;(objectClass=top))</p> */ public Builder filter(String filter) { this.filter = filter; return this; } /** * <p>Indicates whether passwords are required. Valid values:</p> * <ul> * <li><strong>true</strong>:</li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder hasPassword(Boolean hasPassword) { this.hasPassword = hasPassword; return this; } /** * <p>Indicates whether SSL is supported. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isSSL(Boolean isSSL) { this.isSSL = isSSL; return this; } /** * <p>The field that is used to indicate the mobile phone number of a user on the AD server.</p> * * <strong>example:</strong> * <p>mobileAttr</p> */ public Builder mobileMapping(String mobileMapping) { this.mobileMapping = mobileMapping; return this; } /** * <p>The field that is used to indicate the name of a user on the AD server.</p> * * <strong>example:</strong> * <p>nameAttr</p> */ public Builder nameMapping(String nameMapping) { this.nameMapping = nameMapping; return this; } /** * <p>The port that is used to access the AD server.</p> * * <strong>example:</strong> * <p>389</p> */ public Builder port(Long port) { this.port = port; return this; } /** * <p>The address of the AD server.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder server(String server) { this.server = server; return this; } /** * <p>The address of the secondary AD server.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder standbyServer(String standbyServer) { this.standbyServer = standbyServer; return this; } public Ad build() { return new Ad(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceLDAPAuthServerRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceLDAPAuthServerRequest} extends {@link RequestModel} * * <p>GetInstanceLDAPAuthServerRequest</p> */ public class GetInstanceLDAPAuthServerRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private GetInstanceLDAPAuthServerRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetInstanceLDAPAuthServerRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetInstanceLDAPAuthServerRequest, Builder> { private String instanceId; private String regionId; private Builder() { super(); } private Builder(GetInstanceLDAPAuthServerRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the bastion host.</p> * <blockquote> * <p> You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p> For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetInstanceLDAPAuthServerRequest build() { return new GetInstanceLDAPAuthServerRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceLDAPAuthServerResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceLDAPAuthServerResponse} extends {@link TeaModel} * * <p>GetInstanceLDAPAuthServerResponse</p> */ public class GetInstanceLDAPAuthServerResponse 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 GetInstanceLDAPAuthServerResponseBody body; private GetInstanceLDAPAuthServerResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetInstanceLDAPAuthServerResponse 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 GetInstanceLDAPAuthServerResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetInstanceLDAPAuthServerResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetInstanceLDAPAuthServerResponseBody body); @Override GetInstanceLDAPAuthServerResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetInstanceLDAPAuthServerResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetInstanceLDAPAuthServerResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetInstanceLDAPAuthServerResponse 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(GetInstanceLDAPAuthServerResponseBody body) { this.body = body; return this; } @Override public GetInstanceLDAPAuthServerResponse build() { return new GetInstanceLDAPAuthServerResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceLDAPAuthServerResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceLDAPAuthServerResponseBody} extends {@link TeaModel} * * <p>GetInstanceLDAPAuthServerResponseBody</p> */ public class GetInstanceLDAPAuthServerResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("LDAP") private LDAP LDAP; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetInstanceLDAPAuthServerResponseBody(Builder builder) { this.LDAP = builder.LDAP; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetInstanceLDAPAuthServerResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return LDAP */ public LDAP getLDAP() { return this.LDAP; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private LDAP LDAP; private String requestId; private Builder() { } private Builder(GetInstanceLDAPAuthServerResponseBody model) { this.LDAP = model.LDAP; this.requestId = model.requestId; } /** * <p>The settings of LDAP authentication.</p> */ public Builder LDAP(LDAP LDAP) { this.LDAP = LDAP; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>1C60E741-102D-5E8F-9710-B06D3F0183FE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetInstanceLDAPAuthServerResponseBody build() { return new GetInstanceLDAPAuthServerResponseBody(this); } } /** * * {@link GetInstanceLDAPAuthServerResponseBody} extends {@link TeaModel} * * <p>GetInstanceLDAPAuthServerResponseBody</p> */ public static class LDAP extends TeaModel { @com.aliyun.core.annotation.NameInMap("Account") private String account; @com.aliyun.core.annotation.NameInMap("BaseDN") private String baseDN; @com.aliyun.core.annotation.NameInMap("EmailMapping") private String emailMapping; @com.aliyun.core.annotation.NameInMap("Filter") private String filter; @com.aliyun.core.annotation.NameInMap("HasPassword") private String hasPassword; @com.aliyun.core.annotation.NameInMap("IsSSL") private Boolean isSSL; @com.aliyun.core.annotation.NameInMap("LoginNameMapping") private String loginNameMapping; @com.aliyun.core.annotation.NameInMap("MobileMapping") private String mobileMapping; @com.aliyun.core.annotation.NameInMap("NameMapping") private String nameMapping; @com.aliyun.core.annotation.NameInMap("Port") private Long port; @com.aliyun.core.annotation.NameInMap("Server") private String server; @com.aliyun.core.annotation.NameInMap("StandbyServer") private String standbyServer; private LDAP(Builder builder) { this.account = builder.account; this.baseDN = builder.baseDN; this.emailMapping = builder.emailMapping; this.filter = builder.filter; this.hasPassword = builder.hasPassword; this.isSSL = builder.isSSL; this.loginNameMapping = builder.loginNameMapping; this.mobileMapping = builder.mobileMapping; this.nameMapping = builder.nameMapping; this.port = builder.port; this.server = builder.server; this.standbyServer = builder.standbyServer; } public static Builder builder() { return new Builder(); } public static LDAP create() { return builder().build(); } /** * @return account */ public String getAccount() { return this.account; } /** * @return baseDN */ public String getBaseDN() { return this.baseDN; } /** * @return emailMapping */ public String getEmailMapping() { return this.emailMapping; } /** * @return filter */ public String getFilter() { return this.filter; } /** * @return hasPassword */ public String getHasPassword() { return this.hasPassword; } /** * @return isSSL */ public Boolean getIsSSL() { return this.isSSL; } /** * @return loginNameMapping */ public String getLoginNameMapping() { return this.loginNameMapping; } /** * @return mobileMapping */ public String getMobileMapping() { return this.mobileMapping; } /** * @return nameMapping */ public String getNameMapping() { return this.nameMapping; } /** * @return port */ public Long getPort() { return this.port; } /** * @return server */ public String getServer() { return this.server; } /** * @return standbyServer */ public String getStandbyServer() { return this.standbyServer; } public static final class Builder { private String account; private String baseDN; private String emailMapping; private String filter; private String hasPassword; private Boolean isSSL; private String loginNameMapping; private String mobileMapping; private String nameMapping; private Long port; private String server; private String standbyServer; private Builder() { } private Builder(LDAP model) { this.account = model.account; this.baseDN = model.baseDN; this.emailMapping = model.emailMapping; this.filter = model.filter; this.hasPassword = model.hasPassword; this.isSSL = model.isSSL; this.loginNameMapping = model.loginNameMapping; this.mobileMapping = model.mobileMapping; this.nameMapping = model.nameMapping; this.port = model.port; this.server = model.server; this.standbyServer = model.standbyServer; } /** * <p>The account of the LDAP server.</p> * * <strong>example:</strong> * <p>cn=Manager,dc=test,dc=com</p> */ public Builder account(String account) { this.account = account; return this; } /** * <p>The Base distinguished name (DN).</p> * * <strong>example:</strong> * <p>dc=test,dc=com</p> */ public Builder baseDN(String baseDN) { this.baseDN = baseDN; return this; } /** * <p>The field that is used to indicate the email address of a user on the LDAP server.</p> * * <strong>example:</strong> * <p>emailAttr</p> */ public Builder emailMapping(String emailMapping) { this.emailMapping = emailMapping; return this; } /** * <p>The condition that is used to filter users.</p> * * <strong>example:</strong> * <p>(&amp;(objectClass=top))</p> */ public Builder filter(String filter) { this.filter = filter; return this; } /** * <p>Indicates whether passwords are required. Valid values:</p> * <ul> * <li><strong>true</strong>: required</li> * <li><strong>false</strong>: not required</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder hasPassword(String hasPassword) { this.hasPassword = hasPassword; return this; } /** * <p>Indicates whether SSL is supported. Valid values:</p> * <ul> * <li><strong>true</strong>: supported</li> * <li><strong>false</strong>: not supported</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isSSL(Boolean isSSL) { this.isSSL = isSSL; return this; } /** * <p>The field that is used to indicate the logon name of a user on the LDAP server.</p> * * <strong>example:</strong> * <p>userNameAttr</p> */ public Builder loginNameMapping(String loginNameMapping) { this.loginNameMapping = loginNameMapping; return this; } /** * <p>The field that is used to indicate the mobile phone number of a user on the LDAP server.</p> * * <strong>example:</strong> * <p>mobileAttr</p> */ public Builder mobileMapping(String mobileMapping) { this.mobileMapping = mobileMapping; return this; } /** * <p>The field that is used to indicate the name of a user on the LDAP server.</p> * * <strong>example:</strong> * <p>nameAttr</p> */ public Builder nameMapping(String nameMapping) { this.nameMapping = nameMapping; return this; } /** * <p>The port that is used to access the LDAP server.</p> * * <strong>example:</strong> * <p>389</p> */ public Builder port(Long port) { this.port = port; return this; } /** * <p>The address of the LDAP server.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder server(String server) { this.server = server; return this; } /** * <p>The address of the secondary LDAP server.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder standbyServer(String standbyServer) { this.standbyServer = standbyServer; return this; } public LDAP build() { return new LDAP(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceStoreInfoRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceStoreInfoRequest} extends {@link RequestModel} * * <p>GetInstanceStoreInfoRequest</p> */ public class GetInstanceStoreInfoRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private GetInstanceStoreInfoRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetInstanceStoreInfoRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetInstanceStoreInfoRequest, Builder> { private String instanceId; private String regionId; private Builder() { super(); } private Builder(GetInstanceStoreInfoRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetInstanceStoreInfoRequest build() { return new GetInstanceStoreInfoRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceStoreInfoResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceStoreInfoResponse} extends {@link TeaModel} * * <p>GetInstanceStoreInfoResponse</p> */ public class GetInstanceStoreInfoResponse 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 GetInstanceStoreInfoResponseBody body; private GetInstanceStoreInfoResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetInstanceStoreInfoResponse 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 GetInstanceStoreInfoResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetInstanceStoreInfoResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetInstanceStoreInfoResponseBody body); @Override GetInstanceStoreInfoResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetInstanceStoreInfoResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetInstanceStoreInfoResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetInstanceStoreInfoResponse 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(GetInstanceStoreInfoResponseBody body) { this.body = body; return this; } @Override public GetInstanceStoreInfoResponse build() { return new GetInstanceStoreInfoResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceStoreInfoResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceStoreInfoResponseBody} extends {@link TeaModel} * * <p>GetInstanceStoreInfoResponseBody</p> */ public class GetInstanceStoreInfoResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Max") private Long max; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Usage") private Long usage; private GetInstanceStoreInfoResponseBody(Builder builder) { this.max = builder.max; this.requestId = builder.requestId; this.usage = builder.usage; } public static Builder builder() { return new Builder(); } public static GetInstanceStoreInfoResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return max */ public Long getMax() { return this.max; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return usage */ public Long getUsage() { return this.usage; } public static final class Builder { private Long max; private String requestId; private Long usage; private Builder() { } private Builder(GetInstanceStoreInfoResponseBody model) { this.max = model.max; this.requestId = model.requestId; this.usage = model.usage; } /** * Max. */ public Builder max(Long max) { this.max = max; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * Usage. */ public Builder usage(Long usage) { this.usage = usage; return this; } public GetInstanceStoreInfoResponseBody build() { return new GetInstanceStoreInfoResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceTwoFactorRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceTwoFactorRequest} extends {@link RequestModel} * * <p>GetInstanceTwoFactorRequest</p> */ public class GetInstanceTwoFactorRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private GetInstanceTwoFactorRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetInstanceTwoFactorRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetInstanceTwoFactorRequest, Builder> { private String instanceId; private String regionId; private Builder() { super(); } private Builder(GetInstanceTwoFactorRequest request) { super(request); this.instanceId = request.instanceId; this.regionId = request.regionId; } /** * <p>The ID of the bastion host.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances</a> operation to query the ID of the bastion host.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-st220aw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetInstanceTwoFactorRequest build() { return new GetInstanceTwoFactorRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceTwoFactorResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceTwoFactorResponse} extends {@link TeaModel} * * <p>GetInstanceTwoFactorResponse</p> */ public class GetInstanceTwoFactorResponse 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 GetInstanceTwoFactorResponseBody body; private GetInstanceTwoFactorResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetInstanceTwoFactorResponse 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 GetInstanceTwoFactorResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetInstanceTwoFactorResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetInstanceTwoFactorResponseBody body); @Override GetInstanceTwoFactorResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetInstanceTwoFactorResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetInstanceTwoFactorResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetInstanceTwoFactorResponse 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(GetInstanceTwoFactorResponseBody body) { this.body = body; return this; } @Override public GetInstanceTwoFactorResponse build() { return new GetInstanceTwoFactorResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetInstanceTwoFactorResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetInstanceTwoFactorResponseBody} extends {@link TeaModel} * * <p>GetInstanceTwoFactorResponseBody</p> */ public class GetInstanceTwoFactorResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Config") private Config config; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private GetInstanceTwoFactorResponseBody(Builder builder) { this.config = builder.config; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetInstanceTwoFactorResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return config */ public Config getConfig() { return this.config; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Config config; private String requestId; private Builder() { } private Builder(GetInstanceTwoFactorResponseBody model) { this.config = model.config; this.requestId = model.requestId; } /** * <p>The settings of two-factor authentication.</p> */ public Builder config(Config config) { this.config = config; return this; } /** * <p>The ID of the request, which is used to locate and troubleshoot issues.</p> * * <strong>example:</strong> * <p>EC9BF0F4-8983-491A-BC8C-1B4DD94976DE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetInstanceTwoFactorResponseBody build() { return new GetInstanceTwoFactorResponseBody(this); } } /** * * {@link GetInstanceTwoFactorResponseBody} extends {@link TeaModel} * * <p>GetInstanceTwoFactorResponseBody</p> */ public static class Config extends TeaModel { @com.aliyun.core.annotation.NameInMap("EnableTwoFactor") private Boolean enableTwoFactor; @com.aliyun.core.annotation.NameInMap("SkipTwoFactorTime") private Long skipTwoFactorTime; @com.aliyun.core.annotation.NameInMap("TwoFactorMethods") private java.util.List<String> twoFactorMethods; private Config(Builder builder) { this.enableTwoFactor = builder.enableTwoFactor; this.skipTwoFactorTime = builder.skipTwoFactorTime; this.twoFactorMethods = builder.twoFactorMethods; } public static Builder builder() { return new Builder(); } public static Config create() { return builder().build(); } /** * @return enableTwoFactor */ public Boolean getEnableTwoFactor() { return this.enableTwoFactor; } /** * @return skipTwoFactorTime */ public Long getSkipTwoFactorTime() { return this.skipTwoFactorTime; } /** * @return twoFactorMethods */ public java.util.List<String> getTwoFactorMethods() { return this.twoFactorMethods; } public static final class Builder { private Boolean enableTwoFactor; private Long skipTwoFactorTime; private java.util.List<String> twoFactorMethods; private Builder() { } private Builder(Config model) { this.enableTwoFactor = model.enableTwoFactor; this.skipTwoFactorTime = model.skipTwoFactorTime; this.twoFactorMethods = model.twoFactorMethods; } /** * <p>Indicates whether two-factor authentication is enabled. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableTwoFactor(Boolean enableTwoFactor) { this.enableTwoFactor = enableTwoFactor; return this; } /** * <p>The duration within which two-factor authentication is not required after a local user passes two-factor authentication. Valid values: <code>0 to 168</code>. Unit: hours.</p> * <blockquote> * <p>If 0 is returned, a local user must pass two-factor authentication every time the local user logs on to the bastion host.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder skipTwoFactorTime(Long skipTwoFactorTime) { this.skipTwoFactorTime = skipTwoFactorTime; return this; } /** * <p>The two-factor authentication methods.</p> */ public Builder twoFactorMethods(java.util.List<String> twoFactorMethods) { this.twoFactorMethods = twoFactorMethods; return this; } public Config build() { return new Config(this); } } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetNetworkDomainRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetNetworkDomainRequest} extends {@link RequestModel} * * <p>GetNetworkDomainRequest</p> */ public class GetNetworkDomainRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkDomainId") @com.aliyun.core.annotation.Validation(required = true) private String networkDomainId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; private GetNetworkDomainRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.networkDomainId = builder.networkDomainId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static GetNetworkDomainRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return networkDomainId */ public String getNetworkDomainId() { return this.networkDomainId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder<GetNetworkDomainRequest, Builder> { private String instanceId; private String networkDomainId; private String regionId; private Builder() { super(); } private Builder(GetNetworkDomainRequest request) { super(request); this.instanceId = request.instanceId; this.networkDomainId = request.networkDomainId; this.regionId = request.regionId; } /** * <p>The bastion host ID.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/153281.html">DescribeInstances </a>operation to query the bastion host ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bastionhost-cn-i7m2btk6g48</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The ID of the network domain to query.</p> * <blockquote> * <p>You can call the <a href="https://help.aliyun.com/document_detail/2758827.html">ListNetworkDomains </a>operation to query the network domain ID.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder networkDomainId(String networkDomainId) { this.putQueryParameter("NetworkDomainId", networkDomainId); this.networkDomainId = networkDomainId; return this; } /** * <p>The region ID of the bastion host.</p> * <blockquote> * <p>For more information about the mapping between region IDs and region names, see <a href="https://help.aliyun.com/document_detail/40654.html">Regions and zones</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } @Override public GetNetworkDomainRequest build() { return new GetNetworkDomainRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209
java-sources/com/aliyun/alibabacloud-yundun_bastionhost20191209/1.0.10/com/aliyun/sdk/service/yundun_bastionhost20191209/models/GetNetworkDomainResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.yundun_bastionhost20191209.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link GetNetworkDomainResponse} extends {@link TeaModel} * * <p>GetNetworkDomainResponse</p> */ public class GetNetworkDomainResponse 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 GetNetworkDomainResponseBody body; private GetNetworkDomainResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static GetNetworkDomainResponse 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 GetNetworkDomainResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<GetNetworkDomainResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(GetNetworkDomainResponseBody body); @Override GetNetworkDomainResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<GetNetworkDomainResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private GetNetworkDomainResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(GetNetworkDomainResponse 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(GetNetworkDomainResponseBody body) { this.body = body; return this; } @Override public GetNetworkDomainResponse build() { return new GetNetworkDomainResponse(this); } } }