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/GetNetworkDomainResponseBody.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 GetNetworkDomainResponseBody} extends {@link TeaModel}
*
* <p>GetNetworkDomainResponseBody</p>
*/
public class GetNetworkDomainResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NetworkDomain")
private NetworkDomain networkDomain;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetNetworkDomainResponseBody(Builder builder) {
this.networkDomain = builder.networkDomain;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetNetworkDomainResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return networkDomain
*/
public NetworkDomain getNetworkDomain() {
return this.networkDomain;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private NetworkDomain networkDomain;
private String requestId;
private Builder() {
}
private Builder(GetNetworkDomainResponseBody model) {
this.networkDomain = model.networkDomain;
this.requestId = model.requestId;
}
/**
* <p>The detailed information about the network domain.</p>
*/
public Builder networkDomain(NetworkDomain networkDomain) {
this.networkDomain = networkDomain;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>05F59944-2E24-595C-B21A-8C9955E60FAF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetNetworkDomainResponseBody build() {
return new GetNetworkDomainResponseBody(this);
}
}
/**
*
* {@link GetNetworkDomainResponseBody} extends {@link TeaModel}
*
* <p>GetNetworkDomainResponseBody</p>
*/
public static class Proxies extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Address")
private String address;
@com.aliyun.core.annotation.NameInMap("HasPassword")
private Boolean hasPassword;
@com.aliyun.core.annotation.NameInMap("NodeType")
private String nodeType;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("ProxyState")
private String proxyState;
@com.aliyun.core.annotation.NameInMap("ProxyStateErrorCode")
private String proxyStateErrorCode;
@com.aliyun.core.annotation.NameInMap("ProxyType")
private String proxyType;
@com.aliyun.core.annotation.NameInMap("User")
private String user;
private Proxies(Builder builder) {
this.address = builder.address;
this.hasPassword = builder.hasPassword;
this.nodeType = builder.nodeType;
this.port = builder.port;
this.proxyState = builder.proxyState;
this.proxyStateErrorCode = builder.proxyStateErrorCode;
this.proxyType = builder.proxyType;
this.user = builder.user;
}
public static Builder builder() {
return new Builder();
}
public static Proxies create() {
return builder().build();
}
/**
* @return address
*/
public String getAddress() {
return this.address;
}
/**
* @return hasPassword
*/
public Boolean getHasPassword() {
return this.hasPassword;
}
/**
* @return nodeType
*/
public String getNodeType() {
return this.nodeType;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return proxyState
*/
public String getProxyState() {
return this.proxyState;
}
/**
* @return proxyStateErrorCode
*/
public String getProxyStateErrorCode() {
return this.proxyStateErrorCode;
}
/**
* @return proxyType
*/
public String getProxyType() {
return this.proxyType;
}
/**
* @return user
*/
public String getUser() {
return this.user;
}
public static final class Builder {
private String address;
private Boolean hasPassword;
private String nodeType;
private Integer port;
private String proxyState;
private String proxyStateErrorCode;
private String proxyType;
private String user;
private Builder() {
}
private Builder(Proxies model) {
this.address = model.address;
this.hasPassword = model.hasPassword;
this.nodeType = model.nodeType;
this.port = model.port;
this.proxyState = model.proxyState;
this.proxyStateErrorCode = model.proxyStateErrorCode;
this.proxyType = model.proxyType;
this.user = model.user;
}
/**
* <p>The IP address of the proxy server.</p>
*
* <strong>example:</strong>
* <p><code>47.102.**.**</code></p>
*/
public Builder address(String address) {
this.address = address;
return this;
}
/**
* <p>Indicates whether the proxy server has a password. 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>The node type of the proxy server. Valid values:</p>
* <ul>
* <li><strong>Master</strong>: primary proxy server.</li>
* <li><strong>Slave</strong>: secondary proxy server.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Master</p>
*/
public Builder nodeType(String nodeType) {
this.nodeType = nodeType;
return this;
}
/**
* <p>The port of the proxy server.</p>
*
* <strong>example:</strong>
* <p>22</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The status of the proxy server.</p>
* <ul>
* <li><strong>Available</strong></li>
* <li><strong>Unavailable</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Unavailable</p>
*/
public Builder proxyState(String proxyState) {
this.proxyState = proxyState;
return this;
}
/**
* <p>The error code that indicates the status of the proxy server.</p>
* <ul>
* <li><strong>CHECK_PWD_FAILED</strong>: The password is invalid.</li>
* <li><strong>CHECK_PWD_TIMEOUT</strong>: The password verification session timed out.</li>
* <li><strong>CHECK_PWD_NETWORK_ERR</strong>: A network error occurred.</li>
* <li><strong>UNEXPECTED</strong>: An unknown error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CHECK_PWD_TIMEOUT</p>
*/
public Builder proxyStateErrorCode(String proxyStateErrorCode) {
this.proxyStateErrorCode = proxyStateErrorCode;
return this;
}
/**
* <p>The proxy type. Valid values:</p>
* <ul>
* <li><strong>SSHProxy</strong></li>
* <li><strong>HTTPProxy</strong></li>
* <li><strong>Socks5Proxy</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>HTTPProxy</p>
*/
public Builder proxyType(String proxyType) {
this.proxyType = proxyType;
return this;
}
/**
* <p>The username of the proxy server.</p>
*
* <strong>example:</strong>
* <p>root</p>
*/
public Builder user(String user) {
this.user = user;
return this;
}
public Proxies build() {
return new Proxies(this);
}
}
}
/**
*
* {@link GetNetworkDomainResponseBody} extends {@link TeaModel}
*
* <p>GetNetworkDomainResponseBody</p>
*/
public static class NetworkDomain extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Comment")
private String comment;
@com.aliyun.core.annotation.NameInMap("Default")
private Boolean _default;
@com.aliyun.core.annotation.NameInMap("NetworkDomainId")
private String networkDomainId;
@com.aliyun.core.annotation.NameInMap("NetworkDomainName")
private String networkDomainName;
@com.aliyun.core.annotation.NameInMap("NetworkDomainType")
private String networkDomainType;
@com.aliyun.core.annotation.NameInMap("Proxies")
private java.util.List<Proxies> proxies;
private NetworkDomain(Builder builder) {
this.comment = builder.comment;
this._default = builder._default;
this.networkDomainId = builder.networkDomainId;
this.networkDomainName = builder.networkDomainName;
this.networkDomainType = builder.networkDomainType;
this.proxies = builder.proxies;
}
public static Builder builder() {
return new Builder();
}
public static NetworkDomain create() {
return builder().build();
}
/**
* @return comment
*/
public String getComment() {
return this.comment;
}
/**
* @return _default
*/
public Boolean get_default() {
return this._default;
}
/**
* @return networkDomainId
*/
public String getNetworkDomainId() {
return this.networkDomainId;
}
/**
* @return networkDomainName
*/
public String getNetworkDomainName() {
return this.networkDomainName;
}
/**
* @return networkDomainType
*/
public String getNetworkDomainType() {
return this.networkDomainType;
}
/**
* @return proxies
*/
public java.util.List<Proxies> getProxies() {
return this.proxies;
}
public static final class Builder {
private String comment;
private Boolean _default;
private String networkDomainId;
private String networkDomainName;
private String networkDomainType;
private java.util.List<Proxies> proxies;
private Builder() {
}
private Builder(NetworkDomain model) {
this.comment = model.comment;
this._default = model._default;
this.networkDomainId = model.networkDomainId;
this.networkDomainName = model.networkDomainName;
this.networkDomainType = model.networkDomainType;
this.proxies = model.proxies;
}
/**
* <p>The remarks of the network domain.</p>
*
* <strong>example:</strong>
* <p>comment</p>
*/
public Builder comment(String comment) {
this.comment = comment;
return this;
}
/**
* <p>Indicates whether the network domain is a built-in network domain.</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder _default(Boolean _default) {
this._default = _default;
return this;
}
/**
* <p>The network domain ID.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder networkDomainId(String networkDomainId) {
this.networkDomainId = networkDomainId;
return this;
}
/**
* <p>The name of the network domain.</p>
*
* <strong>example:</strong>
* <p>SSH Proxy</p>
*/
public Builder networkDomainName(String networkDomainName) {
this.networkDomainName = networkDomainName;
return this;
}
/**
* <p>The connection mode of the network domain. Valid values:</p>
* <ul>
* <li>Direct</li>
* <li>Proxy</li>
* </ul>
*
* <strong>example:</strong>
* <p>Proxy</p>
*/
public Builder networkDomainType(String networkDomainType) {
this.networkDomainType = networkDomainType;
return this;
}
/**
* <p>The information about the proxy servers.</p>
*/
public Builder proxies(java.util.List<Proxies> proxies) {
this.proxies = proxies;
return this;
}
public NetworkDomain build() {
return new NetworkDomain(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/GetPolicyAssetScopeRequest.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 GetPolicyAssetScopeRequest} extends {@link RequestModel}
*
* <p>GetPolicyAssetScopeRequest</p>
*/
public class GetPolicyAssetScopeRequest 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 GetPolicyAssetScopeRequest(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 GetPolicyAssetScopeRequest 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<GetPolicyAssetScopeRequest, Builder> {
private String instanceId;
private String policyId;
private String regionId;
private Builder() {
super();
}
private Builder(GetPolicyAssetScopeRequest request) {
super(request);
this.instanceId = request.instanceId;
this.policyId = request.policyId;
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 control policy ID.</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>7</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 GetPolicyAssetScopeRequest build() {
return new GetPolicyAssetScopeRequest(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/GetPolicyAssetScopeResponse.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 GetPolicyAssetScopeResponse} extends {@link TeaModel}
*
* <p>GetPolicyAssetScopeResponse</p>
*/
public class GetPolicyAssetScopeResponse 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 GetPolicyAssetScopeResponseBody body;
private GetPolicyAssetScopeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetPolicyAssetScopeResponse 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 GetPolicyAssetScopeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetPolicyAssetScopeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetPolicyAssetScopeResponseBody body);
@Override
GetPolicyAssetScopeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetPolicyAssetScopeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetPolicyAssetScopeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetPolicyAssetScopeResponse 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(GetPolicyAssetScopeResponseBody body) {
this.body = body;
return this;
}
@Override
public GetPolicyAssetScopeResponse build() {
return new GetPolicyAssetScopeResponse(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/GetPolicyAssetScopeResponseBody.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 GetPolicyAssetScopeResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyAssetScopeResponseBody</p>
*/
public class GetPolicyAssetScopeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssetScope")
private AssetScope assetScope;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetPolicyAssetScopeResponseBody(Builder builder) {
this.assetScope = builder.assetScope;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetPolicyAssetScopeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assetScope
*/
public AssetScope getAssetScope() {
return this.assetScope;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private AssetScope assetScope;
private String requestId;
private Builder() {
}
private Builder(GetPolicyAssetScopeResponseBody model) {
this.assetScope = model.assetScope;
this.requestId = model.requestId;
}
/**
* <p>The assets to which the control policy applies.</p>
*/
public Builder assetScope(AssetScope assetScope) {
this.assetScope = assetScope;
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 GetPolicyAssetScopeResponseBody build() {
return new GetPolicyAssetScopeResponseBody(this);
}
}
/**
*
* {@link GetPolicyAssetScopeResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyAssetScopeResponseBody</p>
*/
public static class Databases extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccountScopeType")
private String accountScopeType;
@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.accountScopeType = builder.accountScopeType;
this.databaseAccountIds = builder.databaseAccountIds;
this.databaseId = builder.databaseId;
}
public static Builder builder() {
return new Builder();
}
public static Databases create() {
return builder().build();
}
/**
* @return accountScopeType
*/
public String getAccountScopeType() {
return this.accountScopeType;
}
/**
* @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 String accountScopeType;
private java.util.List<String> databaseAccountIds;
private String databaseId;
private Builder() {
}
private Builder(Databases model) {
this.accountScopeType = model.accountScopeType;
this.databaseAccountIds = model.databaseAccountIds;
this.databaseId = model.databaseId;
}
/**
* <p>The scope of database accounts to which the control policy applies. Valid values:</p>
* <ul>
* <li><strong>All</strong>: The control policy applies to all database accounts of the database.</li>
* <li><strong>AccountId</strong>: The control policy applies to specified database accounts of the database.</li>
* </ul>
*
* <strong>example:</strong>
* <p>AccountId</p>
*/
public Builder accountScopeType(String accountScopeType) {
this.accountScopeType = accountScopeType;
return this;
}
/**
* <p>The IDs of database accounts to which the control policy applies.</p>
*/
public Builder databaseAccountIds(java.util.List<String> databaseAccountIds) {
this.databaseAccountIds = databaseAccountIds;
return this;
}
/**
* <p>The database ID.</p>
*
* <strong>example:</strong>
* <p>17</p>
*/
public Builder databaseId(String databaseId) {
this.databaseId = databaseId;
return this;
}
public Databases build() {
return new Databases(this);
}
}
}
/**
*
* {@link GetPolicyAssetScopeResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyAssetScopeResponseBody</p>
*/
public static class HostGroups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccountNames")
private java.util.List<String> accountNames;
@com.aliyun.core.annotation.NameInMap("AccountScopeType")
private String accountScopeType;
@com.aliyun.core.annotation.NameInMap("HostGroupId")
private String hostGroupId;
private HostGroups(Builder builder) {
this.accountNames = builder.accountNames;
this.accountScopeType = builder.accountScopeType;
this.hostGroupId = builder.hostGroupId;
}
public static Builder builder() {
return new Builder();
}
public static HostGroups create() {
return builder().build();
}
/**
* @return accountNames
*/
public java.util.List<String> getAccountNames() {
return this.accountNames;
}
/**
* @return accountScopeType
*/
public String getAccountScopeType() {
return this.accountScopeType;
}
/**
* @return hostGroupId
*/
public String getHostGroupId() {
return this.hostGroupId;
}
public static final class Builder {
private java.util.List<String> accountNames;
private String accountScopeType;
private String hostGroupId;
private Builder() {
}
private Builder(HostGroups model) {
this.accountNames = model.accountNames;
this.accountScopeType = model.accountScopeType;
this.hostGroupId = model.hostGroupId;
}
/**
* <p>The asset accounts to which the control policy applies.</p>
*/
public Builder accountNames(java.util.List<String> accountNames) {
this.accountNames = accountNames;
return this;
}
/**
* <p>The scope of asset accounts to which the control policy applies. Valid values:</p>
* <ul>
* <li><strong>All</strong>: The control policy applies to all accounts in the asset group.</li>
* <li><strong>AccountName</strong>: The control policy applies to specified accounts in the asset group.</li>
* </ul>
*
* <strong>example:</strong>
* <p>All</p>
*/
public Builder accountScopeType(String accountScopeType) {
this.accountScopeType = accountScopeType;
return this;
}
/**
* <p>The asset group ID.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder hostGroupId(String hostGroupId) {
this.hostGroupId = hostGroupId;
return this;
}
public HostGroups build() {
return new HostGroups(this);
}
}
}
/**
*
* {@link GetPolicyAssetScopeResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyAssetScopeResponseBody</p>
*/
public static class Hosts extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccountScopeType")
private String accountScopeType;
@com.aliyun.core.annotation.NameInMap("HostAccountIds")
private java.util.List<String> hostAccountIds;
@com.aliyun.core.annotation.NameInMap("HostId")
private String hostId;
private Hosts(Builder builder) {
this.accountScopeType = builder.accountScopeType;
this.hostAccountIds = builder.hostAccountIds;
this.hostId = builder.hostId;
}
public static Builder builder() {
return new Builder();
}
public static Hosts create() {
return builder().build();
}
/**
* @return accountScopeType
*/
public String getAccountScopeType() {
return this.accountScopeType;
}
/**
* @return hostAccountIds
*/
public java.util.List<String> getHostAccountIds() {
return this.hostAccountIds;
}
/**
* @return hostId
*/
public String getHostId() {
return this.hostId;
}
public static final class Builder {
private String accountScopeType;
private java.util.List<String> hostAccountIds;
private String hostId;
private Builder() {
}
private Builder(Hosts model) {
this.accountScopeType = model.accountScopeType;
this.hostAccountIds = model.hostAccountIds;
this.hostId = model.hostId;
}
/**
* <p>The scope of host accounts to which the control policy applies. Valid values:</p>
* <ul>
* <li><strong>All</strong>: The control policy applies to all accounts of the host.</li>
* <li><strong>AccountId</strong>: The control policy applies to specified accounts of the host.</li>
* </ul>
*
* <strong>example:</strong>
* <p>All</p>
*/
public Builder accountScopeType(String accountScopeType) {
this.accountScopeType = accountScopeType;
return this;
}
/**
* <p>The host accounts to which the control policy applies.</p>
*/
public Builder hostAccountIds(java.util.List<String> hostAccountIds) {
this.hostAccountIds = hostAccountIds;
return this;
}
/**
* <p>The host ID.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hostId(String hostId) {
this.hostId = hostId;
return this;
}
public Hosts build() {
return new Hosts(this);
}
}
}
/**
*
* {@link GetPolicyAssetScopeResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyAssetScopeResponseBody</p>
*/
public static class AssetScope extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Databases")
private java.util.List<Databases> databases;
@com.aliyun.core.annotation.NameInMap("HostGroups")
private java.util.List<HostGroups> hostGroups;
@com.aliyun.core.annotation.NameInMap("Hosts")
private java.util.List<Hosts> hosts;
@com.aliyun.core.annotation.NameInMap("ScopeType")
private String scopeType;
private AssetScope(Builder builder) {
this.databases = builder.databases;
this.hostGroups = builder.hostGroups;
this.hosts = builder.hosts;
this.scopeType = builder.scopeType;
}
public static Builder builder() {
return new Builder();
}
public static AssetScope create() {
return builder().build();
}
/**
* @return databases
*/
public java.util.List<Databases> getDatabases() {
return this.databases;
}
/**
* @return hostGroups
*/
public java.util.List<HostGroups> getHostGroups() {
return this.hostGroups;
}
/**
* @return hosts
*/
public java.util.List<Hosts> getHosts() {
return this.hosts;
}
/**
* @return scopeType
*/
public String getScopeType() {
return this.scopeType;
}
public static final class Builder {
private java.util.List<Databases> databases;
private java.util.List<HostGroups> hostGroups;
private java.util.List<Hosts> hosts;
private String scopeType;
private Builder() {
}
private Builder(AssetScope model) {
this.databases = model.databases;
this.hostGroups = model.hostGroups;
this.hosts = model.hosts;
this.scopeType = model.scopeType;
}
/**
* <p>The databases and database accounts to which the control policy applies.</p>
*/
public Builder databases(java.util.List<Databases> databases) {
this.databases = databases;
return this;
}
/**
* <p>The asset groups and asset accounts to which the control policy applies.</p>
*/
public Builder hostGroups(java.util.List<HostGroups> hostGroups) {
this.hostGroups = hostGroups;
return this;
}
/**
* <p>The hosts and host accounts to which the control policy applies.</p>
*/
public Builder hosts(java.util.List<Hosts> hosts) {
this.hosts = hosts;
return this;
}
/**
* <p>The scope of assets to which the control policy applies.</p>
* <ul>
* <li><p>If <strong>All</strong> is returned for this parameter, the control policy applies to all assets.</p>
* </li>
* <li><p>If no value is returned for this parameter, the control policy applies to the assets specified in the return values of Databases, HostGroups, and Hosts.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>All</p>
*/
public Builder scopeType(String scopeType) {
this.scopeType = scopeType;
return this;
}
public AssetScope build() {
return new AssetScope(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/GetPolicyRequest.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 GetPolicyRequest} extends {@link RequestModel}
*
* <p>GetPolicyRequest</p>
*/
public class GetPolicyRequest 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 GetPolicyRequest(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 GetPolicyRequest 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<GetPolicyRequest, Builder> {
private String instanceId;
private String policyId;
private String regionId;
private Builder() {
super();
}
private Builder(GetPolicyRequest request) {
super(request);
this.instanceId = request.instanceId;
this.policyId = request.policyId;
this.regionId = request.regionId;
}
/**
* <p>The ID of the bastion host to which the control policy to query belongs.</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-zvp2d3syb0g</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The ID of the control policy that you want to query.</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>3</p>
*/
public Builder policyId(String policyId) {
this.putQueryParameter("PolicyId", policyId);
this.policyId = policyId;
return this;
}
/**
* <p>The region ID of the bastion host to which the control policy to query 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;
}
@Override
public GetPolicyRequest build() {
return new GetPolicyRequest(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/GetPolicyResponse.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 GetPolicyResponse} extends {@link TeaModel}
*
* <p>GetPolicyResponse</p>
*/
public class GetPolicyResponse 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 GetPolicyResponseBody body;
private GetPolicyResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetPolicyResponse 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 GetPolicyResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetPolicyResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetPolicyResponseBody body);
@Override
GetPolicyResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetPolicyResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetPolicyResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetPolicyResponse 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(GetPolicyResponseBody body) {
this.body = body;
return this;
}
@Override
public GetPolicyResponse build() {
return new GetPolicyResponse(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/GetPolicyResponseBody.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 GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public class GetPolicyResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Policy")
private Policy policy;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetPolicyResponseBody(Builder builder) {
this.policy = builder.policy;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetPolicyResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return policy
*/
public Policy getPolicy() {
return this.policy;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Policy policy;
private String requestId;
private Builder() {
}
private Builder(GetPolicyResponseBody model) {
this.policy = model.policy;
this.requestId = model.requestId;
}
/**
* <p>The details of the control policy.</p>
*/
public Builder policy(Policy policy) {
this.policy = policy;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0D29F2C0-8B4B-5861-9474-F3F23D25594B</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetPolicyResponseBody build() {
return new GetPolicyResponseBody(this);
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class EffectiveTime extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Days")
private java.util.List<String> days;
@com.aliyun.core.annotation.NameInMap("Hours")
private java.util.List<String> hours;
private EffectiveTime(Builder builder) {
this.days = builder.days;
this.hours = builder.hours;
}
public static Builder builder() {
return new Builder();
}
public static EffectiveTime create() {
return builder().build();
}
/**
* @return days
*/
public java.util.List<String> getDays() {
return this.days;
}
/**
* @return hours
*/
public java.util.List<String> getHours() {
return this.hours;
}
public static final class Builder {
private java.util.List<String> days;
private java.util.List<String> hours;
private Builder() {
}
private Builder(EffectiveTime model) {
this.days = model.days;
this.hours = model.hours;
}
/**
* <p>The days of a week on which logons are allowed.</p>
*/
public Builder days(java.util.List<String> days) {
this.days = days;
return this;
}
/**
* <p>The time periods during which logons are allowed.</p>
*/
public Builder hours(java.util.List<String> hours) {
this.hours = hours;
return this;
}
public EffectiveTime build() {
return new EffectiveTime(this);
}
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class AccessTimeRangeConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EffectiveTime")
private java.util.List<EffectiveTime> effectiveTime;
private AccessTimeRangeConfig(Builder builder) {
this.effectiveTime = builder.effectiveTime;
}
public static Builder builder() {
return new Builder();
}
public static AccessTimeRangeConfig create() {
return builder().build();
}
/**
* @return effectiveTime
*/
public java.util.List<EffectiveTime> getEffectiveTime() {
return this.effectiveTime;
}
public static final class Builder {
private java.util.List<EffectiveTime> effectiveTime;
private Builder() {
}
private Builder(AccessTimeRangeConfig model) {
this.effectiveTime = model.effectiveTime;
}
/**
* <p>The details of the periods during which logons are allowed.</p>
*/
public Builder effectiveTime(java.util.List<EffectiveTime> effectiveTime) {
this.effectiveTime = effectiveTime;
return this;
}
public AccessTimeRangeConfig build() {
return new AccessTimeRangeConfig(this);
}
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class ApprovalConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SwitchStatus")
private String switchStatus;
private ApprovalConfig(Builder builder) {
this.switchStatus = builder.switchStatus;
}
public static Builder builder() {
return new Builder();
}
public static ApprovalConfig create() {
return builder().build();
}
/**
* @return switchStatus
*/
public String getSwitchStatus() {
return this.switchStatus;
}
public static final class Builder {
private String switchStatus;
private Builder() {
}
private Builder(ApprovalConfig model) {
this.switchStatus = model.switchStatus;
}
/**
* <p>Indicates whether O&M approval is enabled in the control policy. Valid values:</p>
* <ul>
* <li><strong>On</strong>: O&M approval is enabled.</li>
* <li><strong>Off</strong>: O&M approval is disabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Off</p>
*/
public Builder switchStatus(String switchStatus) {
this.switchStatus = switchStatus;
return this;
}
public ApprovalConfig build() {
return new ApprovalConfig(this);
}
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class Approval extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Commands")
private java.util.List<String> commands;
private Approval(Builder builder) {
this.commands = builder.commands;
}
public static Builder builder() {
return new Builder();
}
public static Approval create() {
return builder().build();
}
/**
* @return commands
*/
public java.util.List<String> getCommands() {
return this.commands;
}
public static final class Builder {
private java.util.List<String> commands;
private Builder() {
}
private Builder(Approval model) {
this.commands = model.commands;
}
/**
* <p>An array of commands that can be run only after approval.</p>
*/
public Builder commands(java.util.List<String> commands) {
this.commands = commands;
return this;
}
public Approval build() {
return new Approval(this);
}
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class Deny extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclType")
private String aclType;
@com.aliyun.core.annotation.NameInMap("Commands")
private java.util.List<String> commands;
private Deny(Builder builder) {
this.aclType = builder.aclType;
this.commands = builder.commands;
}
public static Builder builder() {
return new Builder();
}
public static Deny create() {
return builder().build();
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return commands
*/
public java.util.List<String> getCommands() {
return this.commands;
}
public static final class Builder {
private String aclType;
private java.util.List<String> commands;
private Builder() {
}
private Builder(Deny model) {
this.aclType = model.aclType;
this.commands = model.commands;
}
/**
* <p>The type of command control. Valid values:</p>
* <ul>
* <li>white: whitelist mode.</li>
* <li>black: blacklist mode.</li>
* </ul>
*
* <strong>example:</strong>
* <p>black</p>
*/
public Builder aclType(String aclType) {
this.aclType = aclType;
return this;
}
/**
* <p>An array of controlled commands.</p>
*/
public Builder commands(java.util.List<String> commands) {
this.commands = commands;
return this;
}
public Deny build() {
return new Deny(this);
}
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class CommandConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Approval")
private Approval approval;
@com.aliyun.core.annotation.NameInMap("Deny")
private Deny deny;
private CommandConfig(Builder builder) {
this.approval = builder.approval;
this.deny = builder.deny;
}
public static Builder builder() {
return new Builder();
}
public static CommandConfig create() {
return builder().build();
}
/**
* @return approval
*/
public Approval getApproval() {
return this.approval;
}
/**
* @return deny
*/
public Deny getDeny() {
return this.deny;
}
public static final class Builder {
private Approval approval;
private Deny deny;
private Builder() {
}
private Builder(CommandConfig model) {
this.approval = model.approval;
this.deny = model.deny;
}
/**
* <p>The details of the command approval settings.</p>
*/
public Builder approval(Approval approval) {
this.approval = approval;
return this;
}
/**
* <p>The details of the command control setting.</p>
*/
public Builder deny(Deny deny) {
this.deny = deny;
return this;
}
public CommandConfig build() {
return new CommandConfig(this);
}
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class IPAclConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AclType")
private String aclType;
@com.aliyun.core.annotation.NameInMap("IPs")
private java.util.List<String> iPs;
private IPAclConfig(Builder builder) {
this.aclType = builder.aclType;
this.iPs = builder.iPs;
}
public static Builder builder() {
return new Builder();
}
public static IPAclConfig create() {
return builder().build();
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return iPs
*/
public java.util.List<String> getIPs() {
return this.iPs;
}
public static final class Builder {
private String aclType;
private java.util.List<String> iPs;
private Builder() {
}
private Builder(IPAclConfig model) {
this.aclType = model.aclType;
this.iPs = model.iPs;
}
/**
* <p>The mode of access control on source IP addresses. Valid values:</p>
* <ul>
* <li>white: whitelist mode.</li>
* <li>black: blacklist mode.</li>
* </ul>
*
* <strong>example:</strong>
* <p>black</p>
*/
public Builder aclType(String aclType) {
this.aclType = aclType;
return this;
}
/**
* <p>The IP addresses from which logons are not allowed.</p>
*/
public Builder iPs(java.util.List<String> iPs) {
this.iPs = iPs;
return this;
}
public IPAclConfig build() {
return new IPAclConfig(this);
}
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class RDP extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ClipboardDownload")
private String clipboardDownload;
@com.aliyun.core.annotation.NameInMap("ClipboardUpload")
private String clipboardUpload;
@com.aliyun.core.annotation.NameInMap("DiskRedirection")
private String diskRedirection;
@com.aliyun.core.annotation.NameInMap("RecordKeyboard")
private String recordKeyboard;
private RDP(Builder builder) {
this.clipboardDownload = builder.clipboardDownload;
this.clipboardUpload = builder.clipboardUpload;
this.diskRedirection = builder.diskRedirection;
this.recordKeyboard = builder.recordKeyboard;
}
public static Builder builder() {
return new Builder();
}
public static RDP create() {
return builder().build();
}
/**
* @return clipboardDownload
*/
public String getClipboardDownload() {
return this.clipboardDownload;
}
/**
* @return clipboardUpload
*/
public String getClipboardUpload() {
return this.clipboardUpload;
}
/**
* @return diskRedirection
*/
public String getDiskRedirection() {
return this.diskRedirection;
}
/**
* @return recordKeyboard
*/
public String getRecordKeyboard() {
return this.recordKeyboard;
}
public static final class Builder {
private String clipboardDownload;
private String clipboardUpload;
private String diskRedirection;
private String recordKeyboard;
private Builder() {
}
private Builder(RDP model) {
this.clipboardDownload = model.clipboardDownload;
this.clipboardUpload = model.clipboardUpload;
this.diskRedirection = model.diskRedirection;
this.recordKeyboard = model.recordKeyboard;
}
/**
* <p>Indicates whether downloading from the clipboard is enabled. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder clipboardDownload(String clipboardDownload) {
this.clipboardDownload = clipboardDownload;
return this;
}
/**
* <p>Indicates whether file uploading from the clipboard is enabled. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder clipboardUpload(String clipboardUpload) {
this.clipboardUpload = clipboardUpload;
return this;
}
/**
* <p>Indicates whether driver mapping is enabled. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder diskRedirection(String diskRedirection) {
this.diskRedirection = diskRedirection;
return this;
}
/**
* <p>Indicates whether keyboard recording is enabled. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder recordKeyboard(String recordKeyboard) {
this.recordKeyboard = recordKeyboard;
return this;
}
public RDP build() {
return new RDP(this);
}
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class SSH extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ExecCommand")
private String execCommand;
@com.aliyun.core.annotation.NameInMap("SFTPChannel")
private String SFTPChannel;
@com.aliyun.core.annotation.NameInMap("SFTPDownloadFile")
private String SFTPDownloadFile;
@com.aliyun.core.annotation.NameInMap("SFTPMkdir")
private String SFTPMkdir;
@com.aliyun.core.annotation.NameInMap("SFTPRemoveFile")
private String SFTPRemoveFile;
@com.aliyun.core.annotation.NameInMap("SFTPRenameFile")
private String SFTPRenameFile;
@com.aliyun.core.annotation.NameInMap("SFTPRmdir")
private String SFTPRmdir;
@com.aliyun.core.annotation.NameInMap("SFTPUploadFile")
private String SFTPUploadFile;
@com.aliyun.core.annotation.NameInMap("SSHChannel")
private String SSHChannel;
@com.aliyun.core.annotation.NameInMap("X11Forwarding")
private String x11Forwarding;
private SSH(Builder builder) {
this.execCommand = builder.execCommand;
this.SFTPChannel = builder.SFTPChannel;
this.SFTPDownloadFile = builder.SFTPDownloadFile;
this.SFTPMkdir = builder.SFTPMkdir;
this.SFTPRemoveFile = builder.SFTPRemoveFile;
this.SFTPRenameFile = builder.SFTPRenameFile;
this.SFTPRmdir = builder.SFTPRmdir;
this.SFTPUploadFile = builder.SFTPUploadFile;
this.SSHChannel = builder.SSHChannel;
this.x11Forwarding = builder.x11Forwarding;
}
public static Builder builder() {
return new Builder();
}
public static SSH create() {
return builder().build();
}
/**
* @return execCommand
*/
public String getExecCommand() {
return this.execCommand;
}
/**
* @return SFTPChannel
*/
public String getSFTPChannel() {
return this.SFTPChannel;
}
/**
* @return SFTPDownloadFile
*/
public String getSFTPDownloadFile() {
return this.SFTPDownloadFile;
}
/**
* @return SFTPMkdir
*/
public String getSFTPMkdir() {
return this.SFTPMkdir;
}
/**
* @return SFTPRemoveFile
*/
public String getSFTPRemoveFile() {
return this.SFTPRemoveFile;
}
/**
* @return SFTPRenameFile
*/
public String getSFTPRenameFile() {
return this.SFTPRenameFile;
}
/**
* @return SFTPRmdir
*/
public String getSFTPRmdir() {
return this.SFTPRmdir;
}
/**
* @return SFTPUploadFile
*/
public String getSFTPUploadFile() {
return this.SFTPUploadFile;
}
/**
* @return SSHChannel
*/
public String getSSHChannel() {
return this.SSHChannel;
}
/**
* @return x11Forwarding
*/
public String getX11Forwarding() {
return this.x11Forwarding;
}
public static final class Builder {
private String execCommand;
private String SFTPChannel;
private String SFTPDownloadFile;
private String SFTPMkdir;
private String SFTPRemoveFile;
private String SFTPRenameFile;
private String SFTPRmdir;
private String SFTPUploadFile;
private String SSHChannel;
private String x11Forwarding;
private Builder() {
}
private Builder(SSH model) {
this.execCommand = model.execCommand;
this.SFTPChannel = model.SFTPChannel;
this.SFTPDownloadFile = model.SFTPDownloadFile;
this.SFTPMkdir = model.SFTPMkdir;
this.SFTPRemoveFile = model.SFTPRemoveFile;
this.SFTPRenameFile = model.SFTPRenameFile;
this.SFTPRmdir = model.SFTPRmdir;
this.SFTPUploadFile = model.SFTPUploadFile;
this.SSHChannel = model.SSHChannel;
this.x11Forwarding = model.x11Forwarding;
}
/**
* <p>Indicates whether remote command execution is enabled. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder execCommand(String execCommand) {
this.execCommand = execCommand;
return this;
}
/**
* <p>Indicates whether the SFTP channel option is enabled. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder SFTPChannel(String SFTPChannel) {
this.SFTPChannel = SFTPChannel;
return this;
}
/**
* <p>Indicates whether file downloading is enabled in SFTP-based O&M. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder SFTPDownloadFile(String SFTPDownloadFile) {
this.SFTPDownloadFile = SFTPDownloadFile;
return this;
}
/**
* <p>Indicates whether folder creation is enabled in SFTP-based O&M. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder SFTPMkdir(String SFTPMkdir) {
this.SFTPMkdir = SFTPMkdir;
return this;
}
/**
* <p>Indicates whether file deletion is enabled in SFTP-based O&M. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder SFTPRemoveFile(String SFTPRemoveFile) {
this.SFTPRemoveFile = SFTPRemoveFile;
return this;
}
/**
* <p>Indicates whether file renaming is enabled in SFTP-based O&M. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder SFTPRenameFile(String SFTPRenameFile) {
this.SFTPRenameFile = SFTPRenameFile;
return this;
}
/**
* <p>Indicates whether folder deletion is enabled in SFTP-based O&M. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder SFTPRmdir(String SFTPRmdir) {
this.SFTPRmdir = SFTPRmdir;
return this;
}
/**
* <p>Indicates whether file uploading is enabled in SFTP-based O&M. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder SFTPUploadFile(String SFTPUploadFile) {
this.SFTPUploadFile = SFTPUploadFile;
return this;
}
/**
* <p>Indicates whether the SSH channel option is enabled. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder SSHChannel(String SSHChannel) {
this.SSHChannel = SSHChannel;
return this;
}
/**
* <p>Indicates whether X11 forwarding is enabled. Valid values:</p>
* <ul>
* <li>Enable</li>
* <li>Disable</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder x11Forwarding(String x11Forwarding) {
this.x11Forwarding = x11Forwarding;
return this;
}
public SSH build() {
return new SSH(this);
}
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class ProtocolConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RDP")
private RDP RDP;
@com.aliyun.core.annotation.NameInMap("SSH")
private SSH SSH;
private ProtocolConfig(Builder builder) {
this.RDP = builder.RDP;
this.SSH = builder.SSH;
}
public static Builder builder() {
return new Builder();
}
public static ProtocolConfig create() {
return builder().build();
}
/**
* @return RDP
*/
public RDP getRDP() {
return this.RDP;
}
/**
* @return SSH
*/
public SSH getSSH() {
return this.SSH;
}
public static final class Builder {
private RDP RDP;
private SSH SSH;
private Builder() {
}
private Builder(ProtocolConfig model) {
this.RDP = model.RDP;
this.SSH = model.SSH;
}
/**
* <p>The configuration details of Remote Desktop Protocol (RDP) options.</p>
*/
public Builder RDP(RDP RDP) {
this.RDP = RDP;
return this;
}
/**
* <p>The configuration details of SSH and SSH File Transfer Protocol (SFTP) options.</p>
*/
public Builder SSH(SSH SSH) {
this.SSH = SSH;
return this;
}
public ProtocolConfig build() {
return new ProtocolConfig(this);
}
}
}
/**
*
* {@link GetPolicyResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyResponseBody</p>
*/
public static class Policy extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessTimeRangeConfig")
private AccessTimeRangeConfig accessTimeRangeConfig;
@com.aliyun.core.annotation.NameInMap("ApprovalConfig")
private ApprovalConfig approvalConfig;
@com.aliyun.core.annotation.NameInMap("CommandConfig")
private CommandConfig commandConfig;
@com.aliyun.core.annotation.NameInMap("Comment")
private String comment;
@com.aliyun.core.annotation.NameInMap("IPAclConfig")
private IPAclConfig IPAclConfig;
@com.aliyun.core.annotation.NameInMap("PolicyId")
private String policyId;
@com.aliyun.core.annotation.NameInMap("PolicyName")
private String policyName;
@com.aliyun.core.annotation.NameInMap("Priority")
private Long priority;
@com.aliyun.core.annotation.NameInMap("ProtocolConfig")
private ProtocolConfig protocolConfig;
private Policy(Builder builder) {
this.accessTimeRangeConfig = builder.accessTimeRangeConfig;
this.approvalConfig = builder.approvalConfig;
this.commandConfig = builder.commandConfig;
this.comment = builder.comment;
this.IPAclConfig = builder.IPAclConfig;
this.policyId = builder.policyId;
this.policyName = builder.policyName;
this.priority = builder.priority;
this.protocolConfig = builder.protocolConfig;
}
public static Builder builder() {
return new Builder();
}
public static Policy create() {
return builder().build();
}
/**
* @return accessTimeRangeConfig
*/
public AccessTimeRangeConfig getAccessTimeRangeConfig() {
return this.accessTimeRangeConfig;
}
/**
* @return approvalConfig
*/
public ApprovalConfig getApprovalConfig() {
return this.approvalConfig;
}
/**
* @return commandConfig
*/
public CommandConfig getCommandConfig() {
return this.commandConfig;
}
/**
* @return comment
*/
public String getComment() {
return this.comment;
}
/**
* @return IPAclConfig
*/
public IPAclConfig getIPAclConfig() {
return this.IPAclConfig;
}
/**
* @return policyId
*/
public String getPolicyId() {
return this.policyId;
}
/**
* @return policyName
*/
public String getPolicyName() {
return this.policyName;
}
/**
* @return priority
*/
public Long getPriority() {
return this.priority;
}
/**
* @return protocolConfig
*/
public ProtocolConfig getProtocolConfig() {
return this.protocolConfig;
}
public static final class Builder {
private AccessTimeRangeConfig accessTimeRangeConfig;
private ApprovalConfig approvalConfig;
private CommandConfig commandConfig;
private String comment;
private IPAclConfig IPAclConfig;
private String policyId;
private String policyName;
private Long priority;
private ProtocolConfig protocolConfig;
private Builder() {
}
private Builder(Policy model) {
this.accessTimeRangeConfig = model.accessTimeRangeConfig;
this.approvalConfig = model.approvalConfig;
this.commandConfig = model.commandConfig;
this.comment = model.comment;
this.IPAclConfig = model.IPAclConfig;
this.policyId = model.policyId;
this.policyName = model.policyName;
this.priority = model.priority;
this.protocolConfig = model.protocolConfig;
}
/**
* <p>The details of the logon period restrictions.</p>
*/
public Builder accessTimeRangeConfig(AccessTimeRangeConfig accessTimeRangeConfig) {
this.accessTimeRangeConfig = accessTimeRangeConfig;
return this;
}
/**
* <p>The O&M approval setting.</p>
*/
public Builder approvalConfig(ApprovalConfig approvalConfig) {
this.approvalConfig = approvalConfig;
return this;
}
/**
* <p>The details of the command policy.</p>
*/
public Builder commandConfig(CommandConfig commandConfig) {
this.commandConfig = commandConfig;
return this;
}
/**
* <p>The description of the control policy.</p>
*
* <strong>example:</strong>
* <p>comment</p>
*/
public Builder comment(String comment) {
this.comment = comment;
return this;
}
/**
* <p>The access control settings on source IP addresses.</p>
*/
public Builder IPAclConfig(IPAclConfig IPAclConfig) {
this.IPAclConfig = IPAclConfig;
return this;
}
/**
* <p>The ID of the control policy.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder policyId(String policyId) {
this.policyId = policyId;
return this;
}
/**
* <p>The name of the control policy.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder policyName(String policyName) {
this.policyName = policyName;
return this;
}
/**
* <p>The priority of the control policy. A smaller value indicates a higher priority.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder priority(Long priority) {
this.priority = priority;
return this;
}
/**
* <p>The details of protocol control.</p>
*/
public Builder protocolConfig(ProtocolConfig protocolConfig) {
this.protocolConfig = protocolConfig;
return this;
}
public Policy build() {
return new Policy(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/GetPolicyUserScopeRequest.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 GetPolicyUserScopeRequest} extends {@link RequestModel}
*
* <p>GetPolicyUserScopeRequest</p>
*/
public class GetPolicyUserScopeRequest 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 GetPolicyUserScopeRequest(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 GetPolicyUserScopeRequest 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<GetPolicyUserScopeRequest, Builder> {
private String instanceId;
private String policyId;
private String regionId;
private Builder() {
super();
}
private Builder(GetPolicyUserScopeRequest request) {
super(request);
this.instanceId = request.instanceId;
this.policyId = request.policyId;
this.regionId = request.regionId;
}
/**
* <p>The ID of the bastion host to which the control policy to query belongs.</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>bastion-xxxx-xx</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The ID of the control policy that you want to query.</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 to which the control policy to query 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;
}
@Override
public GetPolicyUserScopeRequest build() {
return new GetPolicyUserScopeRequest(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/GetPolicyUserScopeResponse.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 GetPolicyUserScopeResponse} extends {@link TeaModel}
*
* <p>GetPolicyUserScopeResponse</p>
*/
public class GetPolicyUserScopeResponse 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 GetPolicyUserScopeResponseBody body;
private GetPolicyUserScopeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetPolicyUserScopeResponse 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 GetPolicyUserScopeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetPolicyUserScopeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetPolicyUserScopeResponseBody body);
@Override
GetPolicyUserScopeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetPolicyUserScopeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetPolicyUserScopeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetPolicyUserScopeResponse 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(GetPolicyUserScopeResponseBody body) {
this.body = body;
return this;
}
@Override
public GetPolicyUserScopeResponse build() {
return new GetPolicyUserScopeResponse(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/GetPolicyUserScopeResponseBody.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 GetPolicyUserScopeResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyUserScopeResponseBody</p>
*/
public class GetPolicyUserScopeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("UserScope")
private UserScope userScope;
private GetPolicyUserScopeResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.userScope = builder.userScope;
}
public static Builder builder() {
return new Builder();
}
public static GetPolicyUserScopeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return userScope
*/
public UserScope getUserScope() {
return this.userScope;
}
public static final class Builder {
private String requestId;
private UserScope userScope;
private Builder() {
}
private Builder(GetPolicyUserScopeResponseBody model) {
this.requestId = model.requestId;
this.userScope = model.userScope;
}
/**
* <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 users to whom the control policy applies.</p>
*/
public Builder userScope(UserScope userScope) {
this.userScope = userScope;
return this;
}
public GetPolicyUserScopeResponseBody build() {
return new GetPolicyUserScopeResponseBody(this);
}
}
/**
*
* {@link GetPolicyUserScopeResponseBody} extends {@link TeaModel}
*
* <p>GetPolicyUserScopeResponseBody</p>
*/
public static class UserScope extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ScopeType")
private String scopeType;
@com.aliyun.core.annotation.NameInMap("UserGroupIds")
private java.util.List<String> userGroupIds;
@com.aliyun.core.annotation.NameInMap("UserIds")
private java.util.List<String> userIds;
private UserScope(Builder builder) {
this.scopeType = builder.scopeType;
this.userGroupIds = builder.userGroupIds;
this.userIds = builder.userIds;
}
public static Builder builder() {
return new Builder();
}
public static UserScope create() {
return builder().build();
}
/**
* @return scopeType
*/
public String getScopeType() {
return this.scopeType;
}
/**
* @return userGroupIds
*/
public java.util.List<String> getUserGroupIds() {
return this.userGroupIds;
}
/**
* @return userIds
*/
public java.util.List<String> getUserIds() {
return this.userIds;
}
public static final class Builder {
private String scopeType;
private java.util.List<String> userGroupIds;
private java.util.List<String> userIds;
private Builder() {
}
private Builder(UserScope model) {
this.scopeType = model.scopeType;
this.userGroupIds = model.userGroupIds;
this.userIds = model.userIds;
}
/**
* <p>The scope of users to whom the control policy applies.</p>
* <ul>
* <li><p>If <strong>All</strong> is returned for this parameter, the control policy applies to all users.</p>
* </li>
* <li><p>If no value is returned for this parameter, the control policy applies to the assets specified in the return values of UserGroupIds and UserIds.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>All</p>
*/
public Builder scopeType(String scopeType) {
this.scopeType = scopeType;
return this;
}
/**
* <p>The user groups to which the control policy applies.</p>
*/
public Builder userGroupIds(java.util.List<String> userGroupIds) {
this.userGroupIds = userGroupIds;
return this;
}
/**
* <p>The users to whom the control policy applies.</p>
*/
public Builder userIds(java.util.List<String> userIds) {
this.userIds = userIds;
return this;
}
public UserScope build() {
return new UserScope(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/GetRuleRequest.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 GetRuleRequest} extends {@link RequestModel}
*
* <p>GetRuleRequest</p>
*/
public class GetRuleRequest 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 GetRuleRequest(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 GetRuleRequest 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<GetRuleRequest, Builder> {
private String instanceId;
private String regionId;
private String ruleId;
private Builder() {
super();
}
private Builder(GetRuleRequest 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-wwo35essw07</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;
}
/**
* <p>The ID of the authorization rule to query.</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>18</p>
*/
public Builder ruleId(String ruleId) {
this.putQueryParameter("RuleId", ruleId);
this.ruleId = ruleId;
return this;
}
@Override
public GetRuleRequest build() {
return new GetRuleRequest(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/GetRuleResponse.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 GetRuleResponse} extends {@link TeaModel}
*
* <p>GetRuleResponse</p>
*/
public class GetRuleResponse 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 GetRuleResponseBody body;
private GetRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetRuleResponse 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 GetRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetRuleResponseBody body);
@Override
GetRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetRuleResponse 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(GetRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public GetRuleResponse build() {
return new GetRuleResponse(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/GetRuleResponseBody.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 GetRuleResponseBody} extends {@link TeaModel}
*
* <p>GetRuleResponseBody</p>
*/
public class GetRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Rule")
private Rule rule;
private GetRuleResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.rule = builder.rule;
}
public static Builder builder() {
return new Builder();
}
public static GetRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return rule
*/
public Rule getRule() {
return this.rule;
}
public static final class Builder {
private String requestId;
private Rule rule;
private Builder() {
}
private Builder(GetRuleResponseBody model) {
this.requestId = model.requestId;
this.rule = model.rule;
}
/**
* <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 returned information about the authorization rule.</p>
*/
public Builder rule(Rule rule) {
this.rule = rule;
return this;
}
public GetRuleResponseBody build() {
return new GetRuleResponseBody(this);
}
}
/**
*
* {@link GetRuleResponseBody} extends {@link TeaModel}
*
* <p>GetRuleResponseBody</p>
*/
public static class DatabaseAccounts extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DatabaseAccountId")
private String databaseAccountId;
private DatabaseAccounts(Builder builder) {
this.databaseAccountId = builder.databaseAccountId;
}
public static Builder builder() {
return new Builder();
}
public static DatabaseAccounts create() {
return builder().build();
}
/**
* @return databaseAccountId
*/
public String getDatabaseAccountId() {
return this.databaseAccountId;
}
public static final class Builder {
private String databaseAccountId;
private Builder() {
}
private Builder(DatabaseAccounts model) {
this.databaseAccountId = model.databaseAccountId;
}
/**
* <p>The ID of the database account that the policy authorizes users to manage.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder databaseAccountId(String databaseAccountId) {
this.databaseAccountId = databaseAccountId;
return this;
}
public DatabaseAccounts build() {
return new DatabaseAccounts(this);
}
}
}
/**
*
* {@link GetRuleResponseBody} extends {@link TeaModel}
*
* <p>GetRuleResponseBody</p>
*/
public static class Databases extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DatabaseAccounts")
private java.util.List<DatabaseAccounts> databaseAccounts;
@com.aliyun.core.annotation.NameInMap("DatabaseId")
private String databaseId;
private Databases(Builder builder) {
this.databaseAccounts = builder.databaseAccounts;
this.databaseId = builder.databaseId;
}
public static Builder builder() {
return new Builder();
}
public static Databases create() {
return builder().build();
}
/**
* @return databaseAccounts
*/
public java.util.List<DatabaseAccounts> getDatabaseAccounts() {
return this.databaseAccounts;
}
/**
* @return databaseId
*/
public String getDatabaseId() {
return this.databaseId;
}
public static final class Builder {
private java.util.List<DatabaseAccounts> databaseAccounts;
private String databaseId;
private Builder() {
}
private Builder(Databases model) {
this.databaseAccounts = model.databaseAccounts;
this.databaseId = model.databaseId;
}
/**
* <p>The database accounts on which permissions are granted by using the authorization rule.</p>
*/
public Builder databaseAccounts(java.util.List<DatabaseAccounts> databaseAccounts) {
this.databaseAccounts = databaseAccounts;
return this;
}
/**
* <p>The ID of the database that the policy authorizes users to manage.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder databaseId(String databaseId) {
this.databaseId = databaseId;
return this;
}
public Databases build() {
return new Databases(this);
}
}
}
/**
*
* {@link GetRuleResponseBody} extends {@link TeaModel}
*
* <p>GetRuleResponseBody</p>
*/
public static class HostGroups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccountNames")
private java.util.List<String> hostAccountNames;
@com.aliyun.core.annotation.NameInMap("HostGroupId")
private String hostGroupId;
private HostGroups(Builder builder) {
this.hostAccountNames = builder.hostAccountNames;
this.hostGroupId = builder.hostGroupId;
}
public static Builder builder() {
return new Builder();
}
public static HostGroups create() {
return builder().build();
}
/**
* @return hostAccountNames
*/
public java.util.List<String> getHostAccountNames() {
return this.hostAccountNames;
}
/**
* @return hostGroupId
*/
public String getHostGroupId() {
return this.hostGroupId;
}
public static final class Builder {
private java.util.List<String> hostAccountNames;
private String hostGroupId;
private Builder() {
}
private Builder(HostGroups model) {
this.hostAccountNames = model.hostAccountNames;
this.hostGroupId = model.hostGroupId;
}
/**
* <p>The asset accounts on which permissions are granted by using the authorization rule.</p>
*/
public Builder hostAccountNames(java.util.List<String> hostAccountNames) {
this.hostAccountNames = hostAccountNames;
return this;
}
/**
* <p>The ID of the asset group that the policy authorizes users to manage.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder hostGroupId(String hostGroupId) {
this.hostGroupId = hostGroupId;
return this;
}
public HostGroups build() {
return new HostGroups(this);
}
}
}
/**
*
* {@link GetRuleResponseBody} extends {@link TeaModel}
*
* <p>GetRuleResponseBody</p>
*/
public static class HostAccounts extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccountId")
private String hostAccountId;
private HostAccounts(Builder builder) {
this.hostAccountId = builder.hostAccountId;
}
public static Builder builder() {
return new Builder();
}
public static HostAccounts create() {
return builder().build();
}
/**
* @return hostAccountId
*/
public String getHostAccountId() {
return this.hostAccountId;
}
public static final class Builder {
private String hostAccountId;
private Builder() {
}
private Builder(HostAccounts model) {
this.hostAccountId = model.hostAccountId;
}
/**
* <p>The ID of the host account that the policy authorizes users to manage.</p>
*
* <strong>example:</strong>
* <p>9</p>
*/
public Builder hostAccountId(String hostAccountId) {
this.hostAccountId = hostAccountId;
return this;
}
public HostAccounts build() {
return new HostAccounts(this);
}
}
}
/**
*
* {@link GetRuleResponseBody} extends {@link TeaModel}
*
* <p>GetRuleResponseBody</p>
*/
public static class Hosts extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccounts")
private java.util.List<HostAccounts> hostAccounts;
@com.aliyun.core.annotation.NameInMap("HostId")
private String hostId;
private Hosts(Builder builder) {
this.hostAccounts = builder.hostAccounts;
this.hostId = builder.hostId;
}
public static Builder builder() {
return new Builder();
}
public static Hosts create() {
return builder().build();
}
/**
* @return hostAccounts
*/
public java.util.List<HostAccounts> getHostAccounts() {
return this.hostAccounts;
}
/**
* @return hostId
*/
public String getHostId() {
return this.hostId;
}
public static final class Builder {
private java.util.List<HostAccounts> hostAccounts;
private String hostId;
private Builder() {
}
private Builder(Hosts model) {
this.hostAccounts = model.hostAccounts;
this.hostId = model.hostId;
}
/**
* <p>The host accounts that the policy authorizes users to manage.</p>
*/
public Builder hostAccounts(java.util.List<HostAccounts> hostAccounts) {
this.hostAccounts = hostAccounts;
return this;
}
/**
* <p>The ID of the host that the policy authorizes users to manage.</p>
*
* <strong>example:</strong>
* <p>52</p>
*/
public Builder hostId(String hostId) {
this.hostId = hostId;
return this;
}
public Hosts build() {
return new Hosts(this);
}
}
}
/**
*
* {@link GetRuleResponseBody} extends {@link TeaModel}
*
* <p>GetRuleResponseBody</p>
*/
public static class UserGroups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("UserGroupId")
private String userGroupId;
private UserGroups(Builder builder) {
this.userGroupId = builder.userGroupId;
}
public static Builder builder() {
return new Builder();
}
public static UserGroups create() {
return builder().build();
}
/**
* @return userGroupId
*/
public String getUserGroupId() {
return this.userGroupId;
}
public static final class Builder {
private String userGroupId;
private Builder() {
}
private Builder(UserGroups model) {
this.userGroupId = model.userGroupId;
}
/**
* <p>The ID of the authorized user group.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder userGroupId(String userGroupId) {
this.userGroupId = userGroupId;
return this;
}
public UserGroups build() {
return new UserGroups(this);
}
}
}
/**
*
* {@link GetRuleResponseBody} extends {@link TeaModel}
*
* <p>GetRuleResponseBody</p>
*/
public static class Users extends TeaModel {
@com.aliyun.core.annotation.NameInMap("UserId")
private String userId;
private Users(Builder builder) {
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static Users create() {
return builder().build();
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
public static final class Builder {
private String userId;
private Builder() {
}
private Builder(Users model) {
this.userId = model.userId;
}
/**
* <p>The ID of the authorized user.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder userId(String userId) {
this.userId = userId;
return this;
}
public Users build() {
return new Users(this);
}
}
}
/**
*
* {@link GetRuleResponseBody} extends {@link TeaModel}
*
* <p>GetRuleResponseBody</p>
*/
public static class Rule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Comment")
private String comment;
@com.aliyun.core.annotation.NameInMap("Databases")
private java.util.List<Databases> databases;
@com.aliyun.core.annotation.NameInMap("EffectiveEndTime")
private String effectiveEndTime;
@com.aliyun.core.annotation.NameInMap("EffectiveStartTime")
private String effectiveStartTime;
@com.aliyun.core.annotation.NameInMap("HostGroups")
private java.util.List<HostGroups> hostGroups;
@com.aliyun.core.annotation.NameInMap("Hosts")
private java.util.List<Hosts> hosts;
@com.aliyun.core.annotation.NameInMap("RuleId")
private String ruleId;
@com.aliyun.core.annotation.NameInMap("RuleName")
private String ruleName;
@com.aliyun.core.annotation.NameInMap("UserGroups")
private java.util.List<UserGroups> userGroups;
@com.aliyun.core.annotation.NameInMap("Users")
private java.util.List<Users> users;
private Rule(Builder builder) {
this.comment = builder.comment;
this.databases = builder.databases;
this.effectiveEndTime = builder.effectiveEndTime;
this.effectiveStartTime = builder.effectiveStartTime;
this.hostGroups = builder.hostGroups;
this.hosts = builder.hosts;
this.ruleId = builder.ruleId;
this.ruleName = builder.ruleName;
this.userGroups = builder.userGroups;
this.users = builder.users;
}
public static Builder builder() {
return new Builder();
}
public static Rule create() {
return builder().build();
}
/**
* @return comment
*/
public String getComment() {
return this.comment;
}
/**
* @return databases
*/
public java.util.List<Databases> getDatabases() {
return this.databases;
}
/**
* @return effectiveEndTime
*/
public String getEffectiveEndTime() {
return this.effectiveEndTime;
}
/**
* @return effectiveStartTime
*/
public String getEffectiveStartTime() {
return this.effectiveStartTime;
}
/**
* @return hostGroups
*/
public java.util.List<HostGroups> getHostGroups() {
return this.hostGroups;
}
/**
* @return hosts
*/
public java.util.List<Hosts> getHosts() {
return this.hosts;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
/**
* @return userGroups
*/
public java.util.List<UserGroups> getUserGroups() {
return this.userGroups;
}
/**
* @return users
*/
public java.util.List<Users> getUsers() {
return this.users;
}
public static final class Builder {
private String comment;
private java.util.List<Databases> databases;
private String effectiveEndTime;
private String effectiveStartTime;
private java.util.List<HostGroups> hostGroups;
private java.util.List<Hosts> hosts;
private String ruleId;
private String ruleName;
private java.util.List<UserGroups> userGroups;
private java.util.List<Users> users;
private Builder() {
}
private Builder(Rule model) {
this.comment = model.comment;
this.databases = model.databases;
this.effectiveEndTime = model.effectiveEndTime;
this.effectiveStartTime = model.effectiveStartTime;
this.hostGroups = model.hostGroups;
this.hosts = model.hosts;
this.ruleId = model.ruleId;
this.ruleName = model.ruleName;
this.userGroups = model.userGroups;
this.users = model.users;
}
/**
* <p>The remarks of the authorization rule.</p>
*
* <strong>example:</strong>
* <p>comment</p>
*/
public Builder comment(String comment) {
this.comment = comment;
return this;
}
/**
* <p>The databases on which permissions are granted by using the authorization rule.</p>
*/
public Builder databases(java.util.List<Databases> databases) {
this.databases = databases;
return this;
}
/**
* <p>The end time of the validity period of the authorization rule. The value is a UNIX timestamp. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1698720972</p>
*/
public Builder effectiveEndTime(String effectiveEndTime) {
this.effectiveEndTime = effectiveEndTime;
return this;
}
/**
* <p>The start time of the validity period of the authorization rule. The value is a UNIX timestamp. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1687140883</p>
*/
public Builder effectiveStartTime(String effectiveStartTime) {
this.effectiveStartTime = effectiveStartTime;
return this;
}
/**
* <p>The asset groups on which permissions are granted by using the authorization rule.</p>
*/
public Builder hostGroups(java.util.List<HostGroups> hostGroups) {
this.hostGroups = hostGroups;
return this;
}
/**
* <p>The information about the hosts that the policy authorizes users to manage.</p>
*/
public Builder hosts(java.util.List<Hosts> hosts) {
this.hosts = hosts;
return this;
}
/**
* <p>The ID of the authorization rule.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}
/**
* <p>The name of the authorization rule.</p>
*
* <strong>example:</strong>
* <p>rule</p>
*/
public Builder ruleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
/**
* <p>The authorized user groups.</p>
*/
public Builder userGroups(java.util.List<UserGroups> userGroups) {
this.userGroups = userGroups;
return this;
}
/**
* <p>The authorized users.</p>
*/
public Builder users(java.util.List<Users> users) {
this.users = users;
return this;
}
public Rule build() {
return new Rule(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/GetUserGroupRequest.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 GetUserGroupRequest} extends {@link RequestModel}
*
* <p>GetUserGroupRequest</p>
*/
public class GetUserGroupRequest 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 GetUserGroupRequest(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 GetUserGroupRequest 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<GetUserGroupRequest, Builder> {
private String instanceId;
private String regionId;
private String userGroupId;
private Builder() {
super();
}
private Builder(GetUserGroupRequest request) {
super(request);
this.instanceId = request.instanceId;
this.regionId = request.regionId;
this.userGroupId = request.userGroupId;
}
/**
* <p>The ID of the bastion host in which you want to query the details of 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 query the details of 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.</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 GetUserGroupRequest build() {
return new GetUserGroupRequest(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/GetUserGroupResponse.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 GetUserGroupResponse} extends {@link TeaModel}
*
* <p>GetUserGroupResponse</p>
*/
public class GetUserGroupResponse 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 GetUserGroupResponseBody body;
private GetUserGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetUserGroupResponse 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 GetUserGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetUserGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetUserGroupResponseBody body);
@Override
GetUserGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetUserGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetUserGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetUserGroupResponse 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(GetUserGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public GetUserGroupResponse build() {
return new GetUserGroupResponse(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/GetUserGroupResponseBody.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 GetUserGroupResponseBody} extends {@link TeaModel}
*
* <p>GetUserGroupResponseBody</p>
*/
public class GetUserGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("UserGroup")
private UserGroup userGroup;
private GetUserGroupResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.userGroup = builder.userGroup;
}
public static Builder builder() {
return new Builder();
}
public static GetUserGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return userGroup
*/
public UserGroup getUserGroup() {
return this.userGroup;
}
public static final class Builder {
private String requestId;
private UserGroup userGroup;
private Builder() {
}
private Builder(GetUserGroupResponseBody model) {
this.requestId = model.requestId;
this.userGroup = model.userGroup;
}
/**
* <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 details of the user group returned.</p>
*/
public Builder userGroup(UserGroup userGroup) {
this.userGroup = userGroup;
return this;
}
public GetUserGroupResponseBody build() {
return new GetUserGroupResponseBody(this);
}
}
/**
*
* {@link GetUserGroupResponseBody} extends {@link TeaModel}
*
* <p>GetUserGroupResponseBody</p>
*/
public static class UserGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Comment")
private String comment;
@com.aliyun.core.annotation.NameInMap("UserGroupId")
private String userGroupId;
@com.aliyun.core.annotation.NameInMap("UserGroupName")
private String userGroupName;
private UserGroup(Builder builder) {
this.comment = builder.comment;
this.userGroupId = builder.userGroupId;
this.userGroupName = builder.userGroupName;
}
public static Builder builder() {
return new Builder();
}
public static UserGroup create() {
return builder().build();
}
/**
* @return comment
*/
public String getComment() {
return this.comment;
}
/**
* @return userGroupId
*/
public String getUserGroupId() {
return this.userGroupId;
}
/**
* @return userGroupName
*/
public String getUserGroupName() {
return this.userGroupName;
}
public static final class Builder {
private String comment;
private String userGroupId;
private String userGroupName;
private Builder() {
}
private Builder(UserGroup model) {
this.comment = model.comment;
this.userGroupId = model.userGroupId;
this.userGroupName = model.userGroupName;
}
/**
* <p>The description of the user group.</p>
*
* <strong>example:</strong>
* <p>comment</p>
*/
public Builder comment(String comment) {
this.comment = comment;
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;
}
/**
* <p>The name of the user group.</p>
*
* <strong>example:</strong>
* <p>UserGroup01</p>
*/
public Builder userGroupName(String userGroupName) {
this.userGroupName = userGroupName;
return this;
}
public UserGroup build() {
return new UserGroup(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/GetUserRequest.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 GetUserRequest} extends {@link RequestModel}
*
* <p>GetUserRequest</p>
*/
public class GetUserRequest 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 GetUserRequest(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 GetUserRequest 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<GetUserRequest, Builder> {
private String instanceId;
private String regionId;
private String userId;
private Builder() {
super();
}
private Builder(GetUserRequest request) {
super(request);
this.instanceId = request.instanceId;
this.regionId = request.regionId;
this.userId = request.userId;
}
/**
* <p>The ID of the bastion host on which you want to query 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 on which you want to query 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.</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 GetUserRequest build() {
return new GetUserRequest(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/GetUserResponse.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 GetUserResponse} extends {@link TeaModel}
*
* <p>GetUserResponse</p>
*/
public class GetUserResponse 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 GetUserResponseBody body;
private GetUserResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetUserResponse 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 GetUserResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetUserResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetUserResponseBody body);
@Override
GetUserResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetUserResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetUserResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetUserResponse 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(GetUserResponseBody body) {
this.body = body;
return this;
}
@Override
public GetUserResponse build() {
return new GetUserResponse(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/GetUserResponseBody.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 GetUserResponseBody} extends {@link TeaModel}
*
* <p>GetUserResponseBody</p>
*/
public class GetUserResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("User")
private User user;
private GetUserResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.user = builder.user;
}
public static Builder builder() {
return new Builder();
}
public static GetUserResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return user
*/
public User getUser() {
return this.user;
}
public static final class Builder {
private String requestId;
private User user;
private Builder() {
}
private Builder(GetUserResponseBody model) {
this.requestId = model.requestId;
this.user = model.user;
}
/**
* <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 detailed information about the queried user.</p>
*/
public Builder user(User user) {
this.user = user;
return this;
}
public GetUserResponseBody build() {
return new GetUserResponseBody(this);
}
}
/**
*
* {@link GetUserResponseBody} extends {@link TeaModel}
*
* <p>GetUserResponseBody</p>
*/
public static class User extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Comment")
private String comment;
@com.aliyun.core.annotation.NameInMap("DisplayName")
private String displayName;
@com.aliyun.core.annotation.NameInMap("EffectiveEndTime")
private Long effectiveEndTime;
@com.aliyun.core.annotation.NameInMap("EffectiveStartTime")
private Long effectiveStartTime;
@com.aliyun.core.annotation.NameInMap("Email")
private String email;
@com.aliyun.core.annotation.NameInMap("Language")
private String language;
@com.aliyun.core.annotation.NameInMap("LanguageStatus")
private String languageStatus;
@com.aliyun.core.annotation.NameInMap("Mobile")
private String mobile;
@com.aliyun.core.annotation.NameInMap("MobileCountryCode")
private String mobileCountryCode;
@com.aliyun.core.annotation.NameInMap("NeedResetPassword")
private Boolean needResetPassword;
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.NameInMap("SourceUserId")
private String sourceUserId;
@com.aliyun.core.annotation.NameInMap("TwoFactorMethods")
private java.util.List<String> twoFactorMethods;
@com.aliyun.core.annotation.NameInMap("TwoFactorStatus")
private String twoFactorStatus;
@com.aliyun.core.annotation.NameInMap("UserId")
private String userId;
@com.aliyun.core.annotation.NameInMap("UserName")
private String userName;
@com.aliyun.core.annotation.NameInMap("UserState")
private java.util.List<String> userState;
private User(Builder builder) {
this.comment = builder.comment;
this.displayName = builder.displayName;
this.effectiveEndTime = builder.effectiveEndTime;
this.effectiveStartTime = builder.effectiveStartTime;
this.email = builder.email;
this.language = builder.language;
this.languageStatus = builder.languageStatus;
this.mobile = builder.mobile;
this.mobileCountryCode = builder.mobileCountryCode;
this.needResetPassword = builder.needResetPassword;
this.source = builder.source;
this.sourceUserId = builder.sourceUserId;
this.twoFactorMethods = builder.twoFactorMethods;
this.twoFactorStatus = builder.twoFactorStatus;
this.userId = builder.userId;
this.userName = builder.userName;
this.userState = builder.userState;
}
public static Builder builder() {
return new Builder();
}
public static User create() {
return builder().build();
}
/**
* @return comment
*/
public String getComment() {
return this.comment;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return effectiveEndTime
*/
public Long getEffectiveEndTime() {
return this.effectiveEndTime;
}
/**
* @return effectiveStartTime
*/
public Long getEffectiveStartTime() {
return this.effectiveStartTime;
}
/**
* @return email
*/
public String getEmail() {
return this.email;
}
/**
* @return language
*/
public String getLanguage() {
return this.language;
}
/**
* @return languageStatus
*/
public String getLanguageStatus() {
return this.languageStatus;
}
/**
* @return mobile
*/
public String getMobile() {
return this.mobile;
}
/**
* @return mobileCountryCode
*/
public String getMobileCountryCode() {
return this.mobileCountryCode;
}
/**
* @return needResetPassword
*/
public Boolean getNeedResetPassword() {
return this.needResetPassword;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return sourceUserId
*/
public String getSourceUserId() {
return this.sourceUserId;
}
/**
* @return twoFactorMethods
*/
public java.util.List<String> getTwoFactorMethods() {
return this.twoFactorMethods;
}
/**
* @return twoFactorStatus
*/
public String getTwoFactorStatus() {
return this.twoFactorStatus;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
/**
* @return userName
*/
public String getUserName() {
return this.userName;
}
/**
* @return userState
*/
public java.util.List<String> getUserState() {
return this.userState;
}
public static final class Builder {
private String comment;
private String displayName;
private Long effectiveEndTime;
private Long effectiveStartTime;
private String email;
private String language;
private String languageStatus;
private String mobile;
private String mobileCountryCode;
private Boolean needResetPassword;
private String source;
private String sourceUserId;
private java.util.List<String> twoFactorMethods;
private String twoFactorStatus;
private String userId;
private String userName;
private java.util.List<String> userState;
private Builder() {
}
private Builder(User model) {
this.comment = model.comment;
this.displayName = model.displayName;
this.effectiveEndTime = model.effectiveEndTime;
this.effectiveStartTime = model.effectiveStartTime;
this.email = model.email;
this.language = model.language;
this.languageStatus = model.languageStatus;
this.mobile = model.mobile;
this.mobileCountryCode = model.mobileCountryCode;
this.needResetPassword = model.needResetPassword;
this.source = model.source;
this.sourceUserId = model.sourceUserId;
this.twoFactorMethods = model.twoFactorMethods;
this.twoFactorStatus = model.twoFactorStatus;
this.userId = model.userId;
this.userName = model.userName;
this.userState = model.userState;
}
/**
* <p>The description of the user.</p>
*
* <strong>example:</strong>
* <p>comment</p>
*/
public Builder comment(String comment) {
this.comment = comment;
return this;
}
/**
* <p>The display name of the user.</p>
*
* <strong>example:</strong>
* <p>Bob</p>
*/
public Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* <p>The end of the validity period of the user. The value is a UNIX timestamp. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1672502400</p>
*/
public Builder effectiveEndTime(Long effectiveEndTime) {
this.effectiveEndTime = effectiveEndTime;
return this;
}
/**
* <p>The beginning of the validity period of the user. The value is a UNIX timestamp. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1669630029</p>
*/
public Builder effectiveStartTime(Long effectiveStartTime) {
this.effectiveStartTime = effectiveStartTime;
return this;
}
/**
* <p>The email address of the user.</p>
*
* <strong>example:</strong>
* <p>1099**@qq.com</p>
*/
public Builder email(String email) {
this.email = email;
return this;
}
/**
* <p>This parameter is required if LanguageStatus is set to Custom.</p>
* <ul>
* <li><strong>zh-cn</strong>: simplified Chinese.</li>
* <li><strong>en</strong>: English.</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder language(String language) {
this.language = language;
return this;
}
/**
* <p>Indicates whether notifications are sent in the language specified in the global settings or a custom language.</p>
* <ul>
* <li><strong>Global</strong>: Global</li>
* <li><strong>Custom</strong>: Custom</li>
* </ul>
*
* <strong>example:</strong>
* <p>Custom</p>
*/
public Builder languageStatus(String languageStatus) {
this.languageStatus = languageStatus;
return this;
}
/**
* <p>The mobile phone number of the user.</p>
*
* <strong>example:</strong>
* <p>1359999****</p>
*/
public Builder mobile(String mobile) {
this.mobile = mobile;
return this;
}
/**
* <p>The location in which the mobile number of the user is registered. Valid values:</p>
* <ul>
* <li><strong>CN</strong>: the Chinese mainland, whose country calling code is +86</li>
* <li><strong>HK</strong>: Hong Kong (China), whose country calling code is +852</li>
* <li><strong>MO</strong>: Macao (China), whose country calling code is +853</li>
* <li><strong>TW</strong>: Taiwan (China), whose country calling code is +886</li>
* <li><strong>RU</strong>: Russia, whose country calling code is +7</li>
* <li><strong>SG</strong>: Singapore, whose country calling code is +65</li>
* <li><strong>MY</strong>: Malaysia, whose country calling code is +60</li>
* <li><strong>ID</strong>: Indonesia, whose country calling code is +62</li>
* <li><strong>DE</strong>: Germany, whose country calling code is +49</li>
* <li><strong>AU</strong>: Australia, whose country calling code is +61</li>
* <li><strong>US</strong>: US, whose country calling code is +1</li>
* <li><strong>AE</strong>: United Arab Emirates, whose country calling code is +971</li>
* <li><strong>JP:</strong> Japan, whose country calling code is +81</li>
* <li><strong>GB</strong>: UK, whose country calling code is +44</li>
* <li><strong>IN</strong>: India, whose country calling code is +91</li>
* <li><strong>KR</strong>: Republic of Korea, whose country calling code is +82</li>
* <li><strong>PH</strong>: Philippines, whose country calling code is +63</li>
* <li><strong>CH</strong>: Switzerland, whose country calling code is +41</li>
* <li><strong>SE</strong>: Sweden, whose country calling code is +46</li>
* </ul>
*
* <strong>example:</strong>
* <p>CN</p>
*/
public Builder mobileCountryCode(String mobileCountryCode) {
this.mobileCountryCode = mobileCountryCode;
return this;
}
/**
* <p>Specifies whether password reset is required upon the next logon. 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 needResetPassword(Boolean needResetPassword) {
this.needResetPassword = needResetPassword;
return this;
}
/**
* <p>The source of the user. Valid values:</p>
* <ul>
* <li><strong>Local</strong>: a local user</li>
* <li><strong>Ram</strong>: a RAM user</li>
* </ul>
*
* <strong>example:</strong>
* <p>Local</p>
*/
public Builder source(String source) {
this.source = source;
return this;
}
/**
* <p>The unique ID of the user.</p>
* <blockquote>
* <p>This parameter uniquely identifies a RAM user of the bastion host. A value is returned for this parameter if the <strong>Source</strong> parameter is set to <strong>Ram</strong>. No value is returned for this parameter if the <strong>Source</strong> parameter is set to <strong>Local</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>122748924538****</p>
*/
public Builder sourceUserId(String sourceUserId) {
this.sourceUserId = sourceUserId;
return this;
}
/**
* <p>An array that consists of the details of the two-factor authentication method.</p>
*/
public Builder twoFactorMethods(java.util.List<String> twoFactorMethods) {
this.twoFactorMethods = twoFactorMethods;
return this;
}
/**
* <p>The two-factor authentication status of the user. Valid values:</p>
* <ul>
* <li><strong>Global</strong>: The global settings are used.</li>
* <li><strong>Disable</strong>: The two-factor authentication is disabled.</li>
* <li><strong>Enable</strong>: The two-factor authentication is enabled and the user-specific setting is used.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder twoFactorStatus(String twoFactorStatus) {
this.twoFactorStatus = twoFactorStatus;
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;
}
/**
* <p>The logon name of the user.</p>
*
* <strong>example:</strong>
* <p>abcabc_def</p>
*/
public Builder userName(String userName) {
this.userName = userName;
return this;
}
/**
* <p>An array that consists of the details of the user status.</p>
*/
public Builder userState(java.util.List<String> userState) {
this.userState = userState;
return this;
}
public User build() {
return new User(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/ListApproveCommandsRequest.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 ListApproveCommandsRequest} extends {@link RequestModel}
*
* <p>ListApproveCommandsRequest</p>
*/
public class ListApproveCommandsRequest 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("PageNumber")
@com.aliyun.core.annotation.Validation(required = true)
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListApproveCommandsRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListApproveCommandsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListApproveCommandsRequest, Builder> {
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private Builder() {
super();
}
private Builder(ListApproveCommandsRequest request) {
super(request);
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
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-zvp2xvysf08</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The number of the page. Default value: <strong>1</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Maximum value: 1000. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 ListApproveCommandsRequest build() {
return new ListApproveCommandsRequest(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/ListApproveCommandsResponse.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 ListApproveCommandsResponse} extends {@link TeaModel}
*
* <p>ListApproveCommandsResponse</p>
*/
public class ListApproveCommandsResponse 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 ListApproveCommandsResponseBody body;
private ListApproveCommandsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListApproveCommandsResponse 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 ListApproveCommandsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListApproveCommandsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListApproveCommandsResponseBody body);
@Override
ListApproveCommandsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListApproveCommandsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListApproveCommandsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListApproveCommandsResponse 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(ListApproveCommandsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListApproveCommandsResponse build() {
return new ListApproveCommandsResponse(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/ListApproveCommandsResponseBody.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 ListApproveCommandsResponseBody} extends {@link TeaModel}
*
* <p>ListApproveCommandsResponseBody</p>
*/
public class ListApproveCommandsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ApproveCommands")
private java.util.List<ApproveCommands> approveCommands;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListApproveCommandsResponseBody(Builder builder) {
this.approveCommands = builder.approveCommands;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListApproveCommandsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return approveCommands
*/
public java.util.List<ApproveCommands> getApproveCommands() {
return this.approveCommands;
}
/**
* @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<ApproveCommands> approveCommands;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListApproveCommandsResponseBody model) {
this.approveCommands = model.approveCommands;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The commands to be reviewed.</p>
*/
public Builder approveCommands(java.util.List<ApproveCommands> approveCommands) {
this.approveCommands = approveCommands;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>E3EF7711-766D-5888-997B-EFBA76809229</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of commands to be reviewed.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListApproveCommandsResponseBody build() {
return new ListApproveCommandsResponseBody(this);
}
}
/**
*
* {@link ListApproveCommandsResponseBody} extends {@link TeaModel}
*
* <p>ListApproveCommandsResponseBody</p>
*/
public static class ApproveCommands extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ApproveCommandId")
private String approveCommandId;
@com.aliyun.core.annotation.NameInMap("AssetAccountName")
private String assetAccountName;
@com.aliyun.core.annotation.NameInMap("AssetIp")
private String assetIp;
@com.aliyun.core.annotation.NameInMap("AssetName")
private String assetName;
@com.aliyun.core.annotation.NameInMap("ClientIp")
private String clientIp;
@com.aliyun.core.annotation.NameInMap("ClientUser")
private String clientUser;
@com.aliyun.core.annotation.NameInMap("Command")
private String command;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("ProtocolName")
private String protocolName;
@com.aliyun.core.annotation.NameInMap("SessionId")
private String sessionId;
@com.aliyun.core.annotation.NameInMap("State")
private String state;
private ApproveCommands(Builder builder) {
this.approveCommandId = builder.approveCommandId;
this.assetAccountName = builder.assetAccountName;
this.assetIp = builder.assetIp;
this.assetName = builder.assetName;
this.clientIp = builder.clientIp;
this.clientUser = builder.clientUser;
this.command = builder.command;
this.createTime = builder.createTime;
this.protocolName = builder.protocolName;
this.sessionId = builder.sessionId;
this.state = builder.state;
}
public static Builder builder() {
return new Builder();
}
public static ApproveCommands create() {
return builder().build();
}
/**
* @return approveCommandId
*/
public String getApproveCommandId() {
return this.approveCommandId;
}
/**
* @return assetAccountName
*/
public String getAssetAccountName() {
return this.assetAccountName;
}
/**
* @return assetIp
*/
public String getAssetIp() {
return this.assetIp;
}
/**
* @return assetName
*/
public String getAssetName() {
return this.assetName;
}
/**
* @return clientIp
*/
public String getClientIp() {
return this.clientIp;
}
/**
* @return clientUser
*/
public String getClientUser() {
return this.clientUser;
}
/**
* @return command
*/
public String getCommand() {
return this.command;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
/**
* @return sessionId
*/
public String getSessionId() {
return this.sessionId;
}
/**
* @return state
*/
public String getState() {
return this.state;
}
public static final class Builder {
private String approveCommandId;
private String assetAccountName;
private String assetIp;
private String assetName;
private String clientIp;
private String clientUser;
private String command;
private String createTime;
private String protocolName;
private String sessionId;
private String state;
private Builder() {
}
private Builder(ApproveCommands model) {
this.approveCommandId = model.approveCommandId;
this.assetAccountName = model.assetAccountName;
this.assetIp = model.assetIp;
this.assetName = model.assetName;
this.clientIp = model.clientIp;
this.clientUser = model.clientUser;
this.command = model.command;
this.createTime = model.createTime;
this.protocolName = model.protocolName;
this.sessionId = model.sessionId;
this.state = model.state;
}
/**
* <p>The ID of the command to be reviewed.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder approveCommandId(String approveCommandId) {
this.approveCommandId = approveCommandId;
return this;
}
/**
* <p>The username of the asset account that is used for O&M.</p>
*
* <strong>example:</strong>
* <p>root</p>
*/
public Builder assetAccountName(String assetAccountName) {
this.assetAccountName = assetAccountName;
return this;
}
/**
* <p>The IP address of the asset for O&M.</p>
*
* <strong>example:</strong>
* <p>10.167.XX.XX</p>
*/
public Builder assetIp(String assetIp) {
this.assetIp = assetIp;
return this;
}
/**
* <p>The name of the asset.</p>
*
* <strong>example:</strong>
* <p>poros-test</p>
*/
public Builder assetName(String assetName) {
this.assetName = assetName;
return this;
}
/**
* <p>The source IP address from which the application is submitted.</p>
*
* <strong>example:</strong>
* <p>172.18.XX.XX</p>
*/
public Builder clientIp(String clientIp) {
this.clientIp = clientIp;
return this;
}
/**
* <p>The Bastionhost user who submitted the O&M application.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder clientUser(String clientUser) {
this.clientUser = clientUser;
return this;
}
/**
* <p>The command to be reviewed.</p>
*
* <strong>example:</strong>
* <p>/bin/bash</p>
*/
public Builder command(String command) {
this.command = command;
return this;
}
/**
* <p>The time when the O&M application was submitted. The value is a UNIX timestamp. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1679393152</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The O&M protocol.</p>
*
* <strong>example:</strong>
* <p>SSH</p>
*/
public Builder protocolName(String protocolName) {
this.protocolName = protocolName;
return this;
}
/**
* <p>The ID of the O&M session that triggered the review.</p>
*
* <strong>example:</strong>
* <p>95f873ab64a76d5b0000000000004d5e</p>
*/
public Builder sessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}
/**
* <p>The status of the review. Valid values: <strong>Wait</strong>: The command is pending review.</p>
*
* <strong>example:</strong>
* <p>Wait</p>
*/
public Builder state(String state) {
this.state = state;
return this;
}
public ApproveCommands build() {
return new ApproveCommands(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/ListDatabaseAccountsForUserGroupRequest.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 ListDatabaseAccountsForUserGroupRequest} extends {@link RequestModel}
*
* <p>ListDatabaseAccountsForUserGroupRequest</p>
*/
public class ListDatabaseAccountsForUserGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseAccountName")
private String databaseAccountName;
@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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
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 ListDatabaseAccountsForUserGroupRequest(Builder builder) {
super(builder);
this.databaseAccountName = builder.databaseAccountName;
this.databaseId = builder.databaseId;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.userGroupId = builder.userGroupId;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabaseAccountsForUserGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAccountName
*/
public String getDatabaseAccountName() {
return this.databaseAccountName;
}
/**
* @return databaseId
*/
public String getDatabaseId() {
return this.databaseId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return userGroupId
*/
public String getUserGroupId() {
return this.userGroupId;
}
public static final class Builder extends Request.Builder<ListDatabaseAccountsForUserGroupRequest, Builder> {
private String databaseAccountName;
private String databaseId;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private String userGroupId;
private Builder() {
super();
}
private Builder(ListDatabaseAccountsForUserGroupRequest request) {
super(request);
this.databaseAccountName = request.databaseAccountName;
this.databaseId = request.databaseId;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.userGroupId = request.userGroupId;
}
/**
* <p>The name of the database account to query. The name can be up to 128 characters in length. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder databaseAccountName(String databaseAccountName) {
this.putQueryParameter("DatabaseAccountName", databaseAccountName);
this.databaseAccountName = databaseAccountName;
return this;
}
/**
* <p>The ID of the database whose database accounts you want 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>36</p>
*/
public Builder databaseId(String databaseId) {
this.putQueryParameter("DatabaseId", databaseId);
this.databaseId = databaseId;
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-pe334a03o0h</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Valid values: 1 to 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 to query. This operation returns whether the user group is authorized to manage each database account.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/204509.html">ListUserGroups</a> operation to query the user group ID.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder userGroupId(String userGroupId) {
this.putQueryParameter("UserGroupId", userGroupId);
this.userGroupId = userGroupId;
return this;
}
@Override
public ListDatabaseAccountsForUserGroupRequest build() {
return new ListDatabaseAccountsForUserGroupRequest(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/ListDatabaseAccountsForUserGroupResponse.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 ListDatabaseAccountsForUserGroupResponse} extends {@link TeaModel}
*
* <p>ListDatabaseAccountsForUserGroupResponse</p>
*/
public class ListDatabaseAccountsForUserGroupResponse 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 ListDatabaseAccountsForUserGroupResponseBody body;
private ListDatabaseAccountsForUserGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListDatabaseAccountsForUserGroupResponse 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 ListDatabaseAccountsForUserGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListDatabaseAccountsForUserGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListDatabaseAccountsForUserGroupResponseBody body);
@Override
ListDatabaseAccountsForUserGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListDatabaseAccountsForUserGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListDatabaseAccountsForUserGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListDatabaseAccountsForUserGroupResponse 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(ListDatabaseAccountsForUserGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public ListDatabaseAccountsForUserGroupResponse build() {
return new ListDatabaseAccountsForUserGroupResponse(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/ListDatabaseAccountsForUserGroupResponseBody.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 ListDatabaseAccountsForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListDatabaseAccountsForUserGroupResponseBody</p>
*/
public class ListDatabaseAccountsForUserGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DatabaseAccounts")
private java.util.List<DatabaseAccounts> databaseAccounts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListDatabaseAccountsForUserGroupResponseBody(Builder builder) {
this.databaseAccounts = builder.databaseAccounts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabaseAccountsForUserGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAccounts
*/
public java.util.List<DatabaseAccounts> getDatabaseAccounts() {
return this.databaseAccounts;
}
/**
* @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<DatabaseAccounts> databaseAccounts;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListDatabaseAccountsForUserGroupResponseBody model) {
this.databaseAccounts = model.databaseAccounts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The database accounts returned.</p>
*/
public Builder databaseAccounts(java.util.List<DatabaseAccounts> databaseAccounts) {
this.databaseAccounts = databaseAccounts;
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;
}
/**
* <p>The total number of database accounts returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListDatabaseAccountsForUserGroupResponseBody build() {
return new ListDatabaseAccountsForUserGroupResponseBody(this);
}
}
/**
*
* {@link ListDatabaseAccountsForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListDatabaseAccountsForUserGroupResponseBody</p>
*/
public static class DatabaseAccounts 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("DatabaseId")
private String databaseId;
@com.aliyun.core.annotation.NameInMap("IsAuthorized")
private Boolean isAuthorized;
@com.aliyun.core.annotation.NameInMap("ProtocolName")
private String protocolName;
private DatabaseAccounts(Builder builder) {
this.databaseAccountId = builder.databaseAccountId;
this.databaseAccountName = builder.databaseAccountName;
this.databaseId = builder.databaseId;
this.isAuthorized = builder.isAuthorized;
this.protocolName = builder.protocolName;
}
public static Builder builder() {
return new Builder();
}
public static DatabaseAccounts create() {
return builder().build();
}
/**
* @return databaseAccountId
*/
public String getDatabaseAccountId() {
return this.databaseAccountId;
}
/**
* @return databaseAccountName
*/
public String getDatabaseAccountName() {
return this.databaseAccountName;
}
/**
* @return databaseId
*/
public String getDatabaseId() {
return this.databaseId;
}
/**
* @return isAuthorized
*/
public Boolean getIsAuthorized() {
return this.isAuthorized;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
public static final class Builder {
private String databaseAccountId;
private String databaseAccountName;
private String databaseId;
private Boolean isAuthorized;
private String protocolName;
private Builder() {
}
private Builder(DatabaseAccounts model) {
this.databaseAccountId = model.databaseAccountId;
this.databaseAccountName = model.databaseAccountName;
this.databaseId = model.databaseId;
this.isAuthorized = model.isAuthorized;
this.protocolName = model.protocolName;
}
/**
* <p>The ID of the database account.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder databaseAccountId(String databaseAccountId) {
this.databaseAccountId = databaseAccountId;
return this;
}
/**
* <p>The name of the database account.</p>
*
* <strong>example:</strong>
* <p>root</p>
*/
public Builder databaseAccountName(String databaseAccountName) {
this.databaseAccountName = databaseAccountName;
return this;
}
/**
* <p>The ID of the database to which the database account belongs.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder databaseId(String databaseId) {
this.databaseId = databaseId;
return this;
}
/**
* <p>Indicates whether the user group is authorized to manage the database account. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder isAuthorized(Boolean isAuthorized) {
this.isAuthorized = isAuthorized;
return this;
}
/**
* <p>The protocol used by the database account. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder protocolName(String protocolName) {
this.protocolName = protocolName;
return this;
}
public DatabaseAccounts build() {
return new DatabaseAccounts(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/ListDatabaseAccountsForUserRequest.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 ListDatabaseAccountsForUserRequest} extends {@link RequestModel}
*
* <p>ListDatabaseAccountsForUserRequest</p>
*/
public class ListDatabaseAccountsForUserRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseAccountName")
private String databaseAccountName;
@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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
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 ListDatabaseAccountsForUserRequest(Builder builder) {
super(builder);
this.databaseAccountName = builder.databaseAccountName;
this.databaseId = builder.databaseId;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabaseAccountsForUserRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAccountName
*/
public String getDatabaseAccountName() {
return this.databaseAccountName;
}
/**
* @return databaseId
*/
public String getDatabaseId() {
return this.databaseId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
public static final class Builder extends Request.Builder<ListDatabaseAccountsForUserRequest, Builder> {
private String databaseAccountName;
private String databaseId;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private String userId;
private Builder() {
super();
}
private Builder(ListDatabaseAccountsForUserRequest request) {
super(request);
this.databaseAccountName = request.databaseAccountName;
this.databaseId = request.databaseId;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.userId = request.userId;
}
/**
* <p>The name of the database account to query. The name can be up to 128 characters in length. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder databaseAccountName(String databaseAccountName) {
this.putQueryParameter("DatabaseAccountName", databaseAccountName);
this.databaseAccountName = databaseAccountName;
return this;
}
/**
* <p>The ID of the database whose accounts you want to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>89</p>
*/
public Builder databaseId(String databaseId) {
this.putQueryParameter("DatabaseId", databaseId);
this.databaseId = databaseId;
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-zz42zoqql01</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Valid values: 1 to 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 to query. This operation returns whether the user is authorized to manage each database account.</p>
* <blockquote>
* <p>You can call the ListUsers operation to query the ID of the user.<a href="~~204522~~"></a></p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder userId(String userId) {
this.putQueryParameter("UserId", userId);
this.userId = userId;
return this;
}
@Override
public ListDatabaseAccountsForUserRequest build() {
return new ListDatabaseAccountsForUserRequest(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/ListDatabaseAccountsForUserResponse.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 ListDatabaseAccountsForUserResponse} extends {@link TeaModel}
*
* <p>ListDatabaseAccountsForUserResponse</p>
*/
public class ListDatabaseAccountsForUserResponse 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 ListDatabaseAccountsForUserResponseBody body;
private ListDatabaseAccountsForUserResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListDatabaseAccountsForUserResponse 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 ListDatabaseAccountsForUserResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListDatabaseAccountsForUserResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListDatabaseAccountsForUserResponseBody body);
@Override
ListDatabaseAccountsForUserResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListDatabaseAccountsForUserResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListDatabaseAccountsForUserResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListDatabaseAccountsForUserResponse 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(ListDatabaseAccountsForUserResponseBody body) {
this.body = body;
return this;
}
@Override
public ListDatabaseAccountsForUserResponse build() {
return new ListDatabaseAccountsForUserResponse(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/ListDatabaseAccountsForUserResponseBody.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 ListDatabaseAccountsForUserResponseBody} extends {@link TeaModel}
*
* <p>ListDatabaseAccountsForUserResponseBody</p>
*/
public class ListDatabaseAccountsForUserResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DatabaseAccounts")
private java.util.List<DatabaseAccounts> databaseAccounts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListDatabaseAccountsForUserResponseBody(Builder builder) {
this.databaseAccounts = builder.databaseAccounts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabaseAccountsForUserResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAccounts
*/
public java.util.List<DatabaseAccounts> getDatabaseAccounts() {
return this.databaseAccounts;
}
/**
* @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<DatabaseAccounts> databaseAccounts;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListDatabaseAccountsForUserResponseBody model) {
this.databaseAccounts = model.databaseAccounts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The database accounts returned.</p>
*/
public Builder databaseAccounts(java.util.List<DatabaseAccounts> databaseAccounts) {
this.databaseAccounts = databaseAccounts;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>00E3701B-3616-55FE-93EC-E7CF5480B654</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of database accounts that are returned.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListDatabaseAccountsForUserResponseBody build() {
return new ListDatabaseAccountsForUserResponseBody(this);
}
}
/**
*
* {@link ListDatabaseAccountsForUserResponseBody} extends {@link TeaModel}
*
* <p>ListDatabaseAccountsForUserResponseBody</p>
*/
public static class DatabaseAccounts 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("DatabaseId")
private String databaseId;
@com.aliyun.core.annotation.NameInMap("IsAuthorized")
private Boolean isAuthorized;
@com.aliyun.core.annotation.NameInMap("ProtocolName")
private String protocolName;
private DatabaseAccounts(Builder builder) {
this.databaseAccountId = builder.databaseAccountId;
this.databaseAccountName = builder.databaseAccountName;
this.databaseId = builder.databaseId;
this.isAuthorized = builder.isAuthorized;
this.protocolName = builder.protocolName;
}
public static Builder builder() {
return new Builder();
}
public static DatabaseAccounts create() {
return builder().build();
}
/**
* @return databaseAccountId
*/
public String getDatabaseAccountId() {
return this.databaseAccountId;
}
/**
* @return databaseAccountName
*/
public String getDatabaseAccountName() {
return this.databaseAccountName;
}
/**
* @return databaseId
*/
public String getDatabaseId() {
return this.databaseId;
}
/**
* @return isAuthorized
*/
public Boolean getIsAuthorized() {
return this.isAuthorized;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
public static final class Builder {
private String databaseAccountId;
private String databaseAccountName;
private String databaseId;
private Boolean isAuthorized;
private String protocolName;
private Builder() {
}
private Builder(DatabaseAccounts model) {
this.databaseAccountId = model.databaseAccountId;
this.databaseAccountName = model.databaseAccountName;
this.databaseId = model.databaseId;
this.isAuthorized = model.isAuthorized;
this.protocolName = model.protocolName;
}
/**
* <p>The database account ID.</p>
*
* <strong>example:</strong>
* <p>6</p>
*/
public Builder databaseAccountId(String databaseAccountId) {
this.databaseAccountId = databaseAccountId;
return this;
}
/**
* <p>The name of the database account.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder databaseAccountName(String databaseAccountName) {
this.databaseAccountName = databaseAccountName;
return this;
}
/**
* <p>The ID of the database to which the database account belongs.</p>
*
* <strong>example:</strong>
* <p>70</p>
*/
public Builder databaseId(String databaseId) {
this.databaseId = databaseId;
return this;
}
/**
* <p>Indicates whether the user is authorized to manage the database account. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder isAuthorized(Boolean isAuthorized) {
this.isAuthorized = isAuthorized;
return this;
}
/**
* <p>The protocol used by the database account. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder protocolName(String protocolName) {
this.protocolName = protocolName;
return this;
}
public DatabaseAccounts build() {
return new DatabaseAccounts(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/ListDatabaseAccountsRequest.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 ListDatabaseAccountsRequest} extends {@link RequestModel}
*
* <p>ListDatabaseAccountsRequest</p>
*/
public class ListDatabaseAccountsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseAccountName")
private String databaseAccountName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseId")
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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListDatabaseAccountsRequest(Builder builder) {
super(builder);
this.databaseAccountName = builder.databaseAccountName;
this.databaseId = builder.databaseId;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabaseAccountsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAccountName
*/
public String getDatabaseAccountName() {
return this.databaseAccountName;
}
/**
* @return databaseId
*/
public String getDatabaseId() {
return this.databaseId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListDatabaseAccountsRequest, Builder> {
private String databaseAccountName;
private String databaseId;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private Builder() {
super();
}
private Builder(ListDatabaseAccountsRequest request) {
super(request);
this.databaseAccountName = request.databaseAccountName;
this.databaseId = request.databaseId;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
}
/**
* <p>The name of the database account to query. The name can be up to 128 characters in length. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder databaseAccountName(String databaseAccountName) {
this.putQueryParameter("DatabaseAccountName", databaseAccountName);
this.databaseAccountName = databaseAccountName;
return this;
}
/**
* <p>The ID of the database whose database accounts you want 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>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder databaseId(String databaseId) {
this.putQueryParameter("DatabaseId", databaseId);
this.databaseId = databaseId;
return this;
}
/**
* <p>The bastion host ID.</p>
* <blockquote>
* <p>You can call the DescribeInstances operation to query the bastion host ID.<a href="~~153281~~"></a></p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>bastionhost-cn-7mz2za0ro06</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The page number. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Valid values: 1 to 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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;
}
@Override
public ListDatabaseAccountsRequest build() {
return new ListDatabaseAccountsRequest(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/ListDatabaseAccountsResponse.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 ListDatabaseAccountsResponse} extends {@link TeaModel}
*
* <p>ListDatabaseAccountsResponse</p>
*/
public class ListDatabaseAccountsResponse 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 ListDatabaseAccountsResponseBody body;
private ListDatabaseAccountsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListDatabaseAccountsResponse 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 ListDatabaseAccountsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListDatabaseAccountsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListDatabaseAccountsResponseBody body);
@Override
ListDatabaseAccountsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListDatabaseAccountsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListDatabaseAccountsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListDatabaseAccountsResponse 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(ListDatabaseAccountsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListDatabaseAccountsResponse build() {
return new ListDatabaseAccountsResponse(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/ListDatabaseAccountsResponseBody.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 ListDatabaseAccountsResponseBody} extends {@link TeaModel}
*
* <p>ListDatabaseAccountsResponseBody</p>
*/
public class ListDatabaseAccountsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DatabaseAccounts")
private java.util.List<DatabaseAccounts> databaseAccounts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListDatabaseAccountsResponseBody(Builder builder) {
this.databaseAccounts = builder.databaseAccounts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabaseAccountsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAccounts
*/
public java.util.List<DatabaseAccounts> getDatabaseAccounts() {
return this.databaseAccounts;
}
/**
* @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<DatabaseAccounts> databaseAccounts;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListDatabaseAccountsResponseBody model) {
this.databaseAccounts = model.databaseAccounts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The returned database accounts.</p>
*/
public Builder databaseAccounts(java.util.List<DatabaseAccounts> databaseAccounts) {
this.databaseAccounts = databaseAccounts;
return this;
}
/**
* <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;
}
/**
* <p>The total number of database accounts returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListDatabaseAccountsResponseBody build() {
return new ListDatabaseAccountsResponseBody(this);
}
}
/**
*
* {@link ListDatabaseAccountsResponseBody} extends {@link TeaModel}
*
* <p>ListDatabaseAccountsResponseBody</p>
*/
public static class DatabaseAccounts 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("DatabaseId")
private String databaseId;
@com.aliyun.core.annotation.NameInMap("DatabaseSchema")
private String databaseSchema;
@com.aliyun.core.annotation.NameInMap("HasPassword")
private String hasPassword;
private DatabaseAccounts(Builder builder) {
this.databaseAccountId = builder.databaseAccountId;
this.databaseAccountName = builder.databaseAccountName;
this.databaseId = builder.databaseId;
this.databaseSchema = builder.databaseSchema;
this.hasPassword = builder.hasPassword;
}
public static Builder builder() {
return new Builder();
}
public static DatabaseAccounts create() {
return builder().build();
}
/**
* @return databaseAccountId
*/
public String getDatabaseAccountId() {
return this.databaseAccountId;
}
/**
* @return databaseAccountName
*/
public String getDatabaseAccountName() {
return this.databaseAccountName;
}
/**
* @return databaseId
*/
public String getDatabaseId() {
return this.databaseId;
}
/**
* @return databaseSchema
*/
public String getDatabaseSchema() {
return this.databaseSchema;
}
/**
* @return hasPassword
*/
public String getHasPassword() {
return this.hasPassword;
}
public static final class Builder {
private String databaseAccountId;
private String databaseAccountName;
private String databaseId;
private String databaseSchema;
private String hasPassword;
private Builder() {
}
private Builder(DatabaseAccounts model) {
this.databaseAccountId = model.databaseAccountId;
this.databaseAccountName = model.databaseAccountName;
this.databaseId = model.databaseId;
this.databaseSchema = model.databaseSchema;
this.hasPassword = model.hasPassword;
}
/**
* <p>The database account ID.</p>
*
* <strong>example:</strong>
* <p>59</p>
*/
public Builder databaseAccountId(String databaseAccountId) {
this.databaseAccountId = databaseAccountId;
return this;
}
/**
* <p>The name of the database account.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder databaseAccountName(String databaseAccountName) {
this.databaseAccountName = databaseAccountName;
return this;
}
/**
* <p>The database ID.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder databaseId(String databaseId) {
this.databaseId = databaseId;
return this;
}
/**
* <p>The name of the database. A value is returned for this parameter if the engine of the database with the specified database ID 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><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder hasPassword(String hasPassword) {
this.hasPassword = hasPassword;
return this;
}
public DatabaseAccounts build() {
return new DatabaseAccounts(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/ListDatabasesForUserGroupRequest.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 ListDatabasesForUserGroupRequest} extends {@link RequestModel}
*
* <p>ListDatabasesForUserGroupRequest</p>
*/
public class ListDatabasesForUserGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseAddress")
private String databaseAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseName")
private String databaseName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseType")
private String databaseType;
@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")
private String networkDomainId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
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 ListDatabasesForUserGroupRequest(Builder builder) {
super(builder);
this.databaseAddress = builder.databaseAddress;
this.databaseName = builder.databaseName;
this.databaseType = builder.databaseType;
this.instanceId = builder.instanceId;
this.networkDomainId = builder.networkDomainId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.userGroupId = builder.userGroupId;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabasesForUserGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAddress
*/
public String getDatabaseAddress() {
return this.databaseAddress;
}
/**
* @return databaseName
*/
public String getDatabaseName() {
return this.databaseName;
}
/**
* @return databaseType
*/
public String getDatabaseType() {
return this.databaseType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return networkDomainId
*/
public String getNetworkDomainId() {
return this.networkDomainId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return userGroupId
*/
public String getUserGroupId() {
return this.userGroupId;
}
public static final class Builder extends Request.Builder<ListDatabasesForUserGroupRequest, Builder> {
private String databaseAddress;
private String databaseName;
private String databaseType;
private String instanceId;
private String networkDomainId;
private String pageNumber;
private String pageSize;
private String regionId;
private String userGroupId;
private Builder() {
super();
}
private Builder(ListDatabasesForUserGroupRequest request) {
super(request);
this.databaseAddress = request.databaseAddress;
this.databaseName = request.databaseName;
this.databaseType = request.databaseType;
this.instanceId = request.instanceId;
this.networkDomainId = request.networkDomainId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.userGroupId = request.userGroupId;
}
/**
* <p>The address of the database to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p><code>47.101.**.**</code></p>
*/
public Builder databaseAddress(String databaseAddress) {
this.putQueryParameter("DatabaseAddress", databaseAddress);
this.databaseAddress = databaseAddress;
return this;
}
/**
* <p>The name of the database to query.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder databaseName(String databaseName) {
this.putQueryParameter("DatabaseName", databaseName);
this.databaseName = databaseName;
return this;
}
/**
* <p>The engine of the database to query. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder databaseType(String databaseType) {
this.putQueryParameter("DatabaseType", databaseType);
this.databaseType = databaseType;
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-7mz2ve7h00a</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* NetworkDomainId.
*/
public Builder networkDomainId(String networkDomainId) {
this.putQueryParameter("NetworkDomainId", networkDomainId);
this.networkDomainId = networkDomainId;
return this;
}
/**
* <p>The page number. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Valid values: 1 to 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder userGroupId(String userGroupId) {
this.putQueryParameter("UserGroupId", userGroupId);
this.userGroupId = userGroupId;
return this;
}
@Override
public ListDatabasesForUserGroupRequest build() {
return new ListDatabasesForUserGroupRequest(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/ListDatabasesForUserGroupResponse.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 ListDatabasesForUserGroupResponse} extends {@link TeaModel}
*
* <p>ListDatabasesForUserGroupResponse</p>
*/
public class ListDatabasesForUserGroupResponse 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 ListDatabasesForUserGroupResponseBody body;
private ListDatabasesForUserGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListDatabasesForUserGroupResponse 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 ListDatabasesForUserGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListDatabasesForUserGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListDatabasesForUserGroupResponseBody body);
@Override
ListDatabasesForUserGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListDatabasesForUserGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListDatabasesForUserGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListDatabasesForUserGroupResponse 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(ListDatabasesForUserGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public ListDatabasesForUserGroupResponse build() {
return new ListDatabasesForUserGroupResponse(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/ListDatabasesForUserGroupResponseBody.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 ListDatabasesForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListDatabasesForUserGroupResponseBody</p>
*/
public class ListDatabasesForUserGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Databases")
private java.util.List<Databases> databases;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListDatabasesForUserGroupResponseBody(Builder builder) {
this.databases = builder.databases;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabasesForUserGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databases
*/
public java.util.List<Databases> getDatabases() {
return this.databases;
}
/**
* @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<Databases> databases;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListDatabasesForUserGroupResponseBody model) {
this.databases = model.databases;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The databases returned.</p>
*/
public Builder databases(java.util.List<Databases> databases) {
this.databases = databases;
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;
}
/**
* <p>The total number of databases returned.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListDatabasesForUserGroupResponseBody build() {
return new ListDatabasesForUserGroupResponseBody(this);
}
}
/**
*
* {@link ListDatabasesForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListDatabasesForUserGroupResponseBody</p>
*/
public static class Databases 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("DatabaseAccountCount")
private Long databaseAccountCount;
@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;
private Databases(Builder builder) {
this.activeAddressType = builder.activeAddressType;
this.comment = builder.comment;
this.databaseAccountCount = builder.databaseAccountCount;
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;
}
public static Builder builder() {
return new Builder();
}
public static Databases create() {
return builder().build();
}
/**
* @return activeAddressType
*/
public String getActiveAddressType() {
return this.activeAddressType;
}
/**
* @return comment
*/
public String getComment() {
return this.comment;
}
/**
* @return databaseAccountCount
*/
public Long getDatabaseAccountCount() {
return this.databaseAccountCount;
}
/**
* @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;
}
public static final class Builder {
private String activeAddressType;
private String comment;
private Long databaseAccountCount;
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 Builder() {
}
private Builder(Databases model) {
this.activeAddressType = model.activeAddressType;
this.comment = model.comment;
this.databaseAccountCount = model.databaseAccountCount;
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;
}
/**
* <p>The address type of the database. Valid values:</p>
* <ul>
* <li><strong>Public</strong></li>
* <li><strong>Private</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Private</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 total number of database accounts returned.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder databaseAccountCount(Long databaseAccountCount) {
this.databaseAccountCount = databaseAccountCount;
return this;
}
/**
* <p>The ID of the database to which the database account belongs.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder databaseId(String databaseId) {
this.databaseId = databaseId;
return this;
}
/**
* <p>The name of the database.</p>
*
* <strong>example:</strong>
* <p>MySQL0</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 address of the database. The value is a domain name or an IP address.</p>
*
* <strong>example:</strong>
* <p>rm-bp1******</p>
*/
public Builder databasePrivateAddress(String databasePrivateAddress) {
this.databasePrivateAddress = databasePrivateAddress;
return this;
}
/**
* <p>The public address of the database. The value is a domain name or an IP address.</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>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</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 where the database resides.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder networkDomainId(String networkDomainId) {
this.networkDomainId = networkDomainId;
return this;
}
/**
* <p>The type of the database. 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>No value is returned for this parameter if <strong>Source</strong> is set to <strong>Local</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>i-wz9c7mjxywmdmqk7q6e4</p>
*/
public Builder sourceInstanceId(String sourceInstanceId) {
this.sourceInstanceId = sourceInstanceId;
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/ListDatabasesForUserRequest.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 ListDatabasesForUserRequest} extends {@link RequestModel}
*
* <p>ListDatabasesForUserRequest</p>
*/
public class ListDatabasesForUserRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseAddress")
private String databaseAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseName")
private String databaseName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseType")
private String databaseType;
@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")
private String networkDomainId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
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 ListDatabasesForUserRequest(Builder builder) {
super(builder);
this.databaseAddress = builder.databaseAddress;
this.databaseName = builder.databaseName;
this.databaseType = builder.databaseType;
this.instanceId = builder.instanceId;
this.networkDomainId = builder.networkDomainId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabasesForUserRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAddress
*/
public String getDatabaseAddress() {
return this.databaseAddress;
}
/**
* @return databaseName
*/
public String getDatabaseName() {
return this.databaseName;
}
/**
* @return databaseType
*/
public String getDatabaseType() {
return this.databaseType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return networkDomainId
*/
public String getNetworkDomainId() {
return this.networkDomainId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
public static final class Builder extends Request.Builder<ListDatabasesForUserRequest, Builder> {
private String databaseAddress;
private String databaseName;
private String databaseType;
private String instanceId;
private String networkDomainId;
private String pageNumber;
private String pageSize;
private String regionId;
private String userId;
private Builder() {
super();
}
private Builder(ListDatabasesForUserRequest request) {
super(request);
this.databaseAddress = request.databaseAddress;
this.databaseName = request.databaseName;
this.databaseType = request.databaseType;
this.instanceId = request.instanceId;
this.networkDomainId = request.networkDomainId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.userId = request.userId;
}
/**
* <p>The address of the database to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p><code>47.101.**.**</code></p>
*/
public Builder databaseAddress(String databaseAddress) {
this.putQueryParameter("DatabaseAddress", databaseAddress);
this.databaseAddress = databaseAddress;
return this;
}
/**
* <p>The name of the database to query.</p>
*
* <strong>example:</strong>
* <p>MySQL-8.0</p>
*/
public Builder databaseName(String databaseName) {
this.putQueryParameter("DatabaseName", databaseName);
this.databaseName = databaseName;
return this;
}
/**
* <p>The engine of the database to query. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder databaseType(String databaseType) {
this.putQueryParameter("DatabaseType", databaseType);
this.databaseType = databaseType;
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-tl32swayw7o</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The ID of the network domain where the database to query resides.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder networkDomainId(String networkDomainId) {
this.putQueryParameter("NetworkDomainId", networkDomainId);
this.networkDomainId = networkDomainId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>. Pages start from page 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Valid values: 1 to 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder userId(String userId) {
this.putQueryParameter("UserId", userId);
this.userId = userId;
return this;
}
@Override
public ListDatabasesForUserRequest build() {
return new ListDatabasesForUserRequest(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/ListDatabasesForUserResponse.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 ListDatabasesForUserResponse} extends {@link TeaModel}
*
* <p>ListDatabasesForUserResponse</p>
*/
public class ListDatabasesForUserResponse 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 ListDatabasesForUserResponseBody body;
private ListDatabasesForUserResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListDatabasesForUserResponse 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 ListDatabasesForUserResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListDatabasesForUserResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListDatabasesForUserResponseBody body);
@Override
ListDatabasesForUserResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListDatabasesForUserResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListDatabasesForUserResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListDatabasesForUserResponse 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(ListDatabasesForUserResponseBody body) {
this.body = body;
return this;
}
@Override
public ListDatabasesForUserResponse build() {
return new ListDatabasesForUserResponse(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/ListDatabasesForUserResponseBody.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 ListDatabasesForUserResponseBody} extends {@link TeaModel}
*
* <p>ListDatabasesForUserResponseBody</p>
*/
public class ListDatabasesForUserResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Databases")
private java.util.List<Databases> databases;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListDatabasesForUserResponseBody(Builder builder) {
this.databases = builder.databases;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabasesForUserResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databases
*/
public java.util.List<Databases> getDatabases() {
return this.databases;
}
/**
* @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<Databases> databases;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListDatabasesForUserResponseBody model) {
this.databases = model.databases;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The databases returned.</p>
*/
public Builder databases(java.util.List<Databases> databases) {
this.databases = databases;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A8A665B9-8550-4942-9DEE-73198051856B</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of databases returned.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListDatabasesForUserResponseBody build() {
return new ListDatabasesForUserResponseBody(this);
}
}
/**
*
* {@link ListDatabasesForUserResponseBody} extends {@link TeaModel}
*
* <p>ListDatabasesForUserResponseBody</p>
*/
public static class Databases 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;
private Databases(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;
}
public static Builder builder() {
return new Builder();
}
public static Databases 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;
}
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 Builder() {
}
private Builder(Databases 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;
}
/**
* <p>The address type of the database. Valid values:</p>
* <ul>
* <li><strong>Public</strong></li>
* <li><strong>Private</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Private</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>36</p>
*/
public Builder databaseId(String databaseId) {
this.databaseId = databaseId;
return this;
}
/**
* <p>The database name.</p>
*
* <strong>example:</strong>
* <p>MySQL56</p>
*/
public Builder databaseName(String databaseName) {
this.databaseName = databaseName;
return this;
}
/**
* <p>The database port.</p>
*
* <strong>example:</strong>
* <p>3306</p>
*/
public Builder databasePort(Long databasePort) {
this.databasePort = databasePort;
return this;
}
/**
* <p>The internal endpoint of the database. The value is a domain name or an IP address.</p>
*
* <strong>example:</strong>
* <p>rm-wz97******</p>
*/
public Builder databasePrivateAddress(String databasePrivateAddress) {
this.databasePrivateAddress = databasePrivateAddress;
return this;
}
/**
* <p>The public endpoint of the database. The value is a domain name or an IP address.</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>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</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 where the database resides.</p>
*
* <strong>example:</strong>
* <p>2</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> No value is returned for this parameter if <strong>Source</strong> is set to <strong>Local</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>i-wz9fv2hwux78x9h1pmje</p>
*/
public Builder sourceInstanceId(String sourceInstanceId) {
this.sourceInstanceId = sourceInstanceId;
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/ListDatabasesRequest.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 ListDatabasesRequest} extends {@link RequestModel}
*
* <p>ListDatabasesRequest</p>
*/
public class ListDatabasesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseType")
private String databaseType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostGroupId")
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("NetworkDomainId")
private String networkDomainId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
private ListDatabasesRequest(Builder builder) {
super(builder);
this.databaseType = builder.databaseType;
this.hostGroupId = builder.hostGroupId;
this.instanceId = builder.instanceId;
this.networkDomainId = builder.networkDomainId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.source = builder.source;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabasesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseType
*/
public String getDatabaseType() {
return this.databaseType;
}
/**
* @return hostGroupId
*/
public String getHostGroupId() {
return this.hostGroupId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return networkDomainId
*/
public String getNetworkDomainId() {
return this.networkDomainId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
public static final class Builder extends Request.Builder<ListDatabasesRequest, Builder> {
private String databaseType;
private String hostGroupId;
private String instanceId;
private String networkDomainId;
private String pageNumber;
private String pageSize;
private String regionId;
private String source;
private Builder() {
super();
}
private Builder(ListDatabasesRequest request) {
super(request);
this.databaseType = request.databaseType;
this.hostGroupId = request.hostGroupId;
this.instanceId = request.instanceId;
this.networkDomainId = request.networkDomainId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.source = request.source;
}
/**
* <p>The engine of the database to query. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder databaseType(String databaseType) {
this.putQueryParameter("DatabaseType", databaseType);
this.databaseType = databaseType;
return this;
}
/**
* <p>The ID of the asset group to query. This operation returns the databases in the asset group.</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 asset group.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder hostGroupId(String hostGroupId) {
this.putQueryParameter("HostGroupId", hostGroupId);
this.hostGroupId = hostGroupId;
return this;
}
/**
* <p>The ID of the bastion host 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-7mz28f5tk0o</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The ID of the network domain where the database to query resides.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder networkDomainId(String networkDomainId) {
this.putQueryParameter("NetworkDomainId", networkDomainId);
this.networkDomainId = networkDomainId;
return this;
}
/**
* <p>The number of the page to return. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.
* Valid values: 1 to100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the bastion host 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;
}
/**
* <p>The type of the database to query. Valid values:</p>
* <ul>
* <li><strong>Local</strong>: on-premises database.</li>
* <li><strong>Rds</strong>: ApsaraDB for RDS instance.</li>
* <li><strong>PolarDB</strong>: PolarDB cluster</li>
* </ul>
*
* <strong>example:</strong>
* <p>Local</p>
*/
public Builder source(String source) {
this.putQueryParameter("Source", source);
this.source = source;
return this;
}
@Override
public ListDatabasesRequest build() {
return new ListDatabasesRequest(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/ListDatabasesResponse.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 ListDatabasesResponse} extends {@link TeaModel}
*
* <p>ListDatabasesResponse</p>
*/
public class ListDatabasesResponse 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 ListDatabasesResponseBody body;
private ListDatabasesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListDatabasesResponse 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 ListDatabasesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListDatabasesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListDatabasesResponseBody body);
@Override
ListDatabasesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListDatabasesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListDatabasesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListDatabasesResponse 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(ListDatabasesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListDatabasesResponse build() {
return new ListDatabasesResponse(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/ListDatabasesResponseBody.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 ListDatabasesResponseBody} extends {@link TeaModel}
*
* <p>ListDatabasesResponseBody</p>
*/
public class ListDatabasesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Databases")
private java.util.List<Databases> databases;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListDatabasesResponseBody(Builder builder) {
this.databases = builder.databases;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListDatabasesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databases
*/
public java.util.List<Databases> getDatabases() {
return this.databases;
}
/**
* @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<Databases> databases;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListDatabasesResponseBody model) {
this.databases = model.databases;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The databases returned.</p>
*/
public Builder databases(java.util.List<Databases> databases) {
this.databases = databases;
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;
}
/**
* <p>The total number of databases returned.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListDatabasesResponseBody build() {
return new ListDatabasesResponseBody(this);
}
}
/**
*
* {@link ListDatabasesResponseBody} extends {@link TeaModel}
*
* <p>ListDatabasesResponseBody</p>
*/
public static class Databases 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 Integer 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 Databases(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 Databases 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 Integer 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 Integer 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(Databases 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><strong>Public</strong></li>
* <li><strong>Private</strong></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>9</p>
*/
public Builder databaseId(String databaseId) {
this.databaseId = databaseId;
return this;
}
/**
* <p>The name of the database.</p>
*
* <strong>example:</strong>
* <p>MySQL0</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(Integer databasePort) {
this.databasePort = databasePort;
return this;
}
/**
* <p>The internal address of the database. The value is a domain name or an IP address.</p>
*
* <strong>example:</strong>
* <p>rm-wz973w7******</p>
*/
public Builder databasePrivateAddress(String databasePrivateAddress) {
this.databasePrivateAddress = databasePrivateAddress;
return this;
}
/**
* <p>The public address of the database. The value is a domain name or an IP address.</p>
*
* <strong>example:</strong>
* <p>rm-uf65n2******</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>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* <li><strong>SQLServer</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 where the database resides.</p>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder networkDomainId(String networkDomainId) {
this.networkDomainId = networkDomainId;
return this;
}
/**
* <p>The type of the database. Valid values:</p>
* <ul>
* <li><strong>Local</strong>: on-premises database.</li>
* <li><strong>Rds</strong>: ApsaraDB for 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 for RDS instance or PolarDB cluster.</p>
* <blockquote>
* <p>No value is returned for this parameter if <strong>Source</strong> is set to <strong>Local</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>i-wz9ejupczf41******</p>
*/
public Builder sourceInstanceId(String sourceInstanceId) {
this.sourceInstanceId = sourceInstanceId;
return this;
}
/**
* <p>The region ID of the ApsaraDB for 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 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/ListHostAccountsForHostShareKeyRequest.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 ListHostAccountsForHostShareKeyRequest} extends {@link RequestModel}
*
* <p>ListHostAccountsForHostShareKeyRequest</p>
*/
public class ListHostAccountsForHostShareKeyRequest 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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListHostAccountsForHostShareKeyRequest(Builder builder) {
super(builder);
this.hostShareKeyId = builder.hostShareKeyId;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostAccountsForHostShareKeyRequest 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 pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListHostAccountsForHostShareKeyRequest, Builder> {
private String hostShareKeyId;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private Builder() {
super();
}
private Builder(ListHostAccountsForHostShareKeyRequest request) {
super(request);
this.hostShareKeyId = request.hostShareKeyId;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
}
/**
* <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>1124</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 number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID 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 ListHostAccountsForHostShareKeyRequest build() {
return new ListHostAccountsForHostShareKeyRequest(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/ListHostAccountsForHostShareKeyResponse.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 ListHostAccountsForHostShareKeyResponse} extends {@link TeaModel}
*
* <p>ListHostAccountsForHostShareKeyResponse</p>
*/
public class ListHostAccountsForHostShareKeyResponse 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 ListHostAccountsForHostShareKeyResponseBody body;
private ListHostAccountsForHostShareKeyResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostAccountsForHostShareKeyResponse 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 ListHostAccountsForHostShareKeyResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostAccountsForHostShareKeyResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostAccountsForHostShareKeyResponseBody body);
@Override
ListHostAccountsForHostShareKeyResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostAccountsForHostShareKeyResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostAccountsForHostShareKeyResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostAccountsForHostShareKeyResponse 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(ListHostAccountsForHostShareKeyResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostAccountsForHostShareKeyResponse build() {
return new ListHostAccountsForHostShareKeyResponse(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/ListHostAccountsForHostShareKeyResponseBody.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 ListHostAccountsForHostShareKeyResponseBody} extends {@link TeaModel}
*
* <p>ListHostAccountsForHostShareKeyResponseBody</p>
*/
public class ListHostAccountsForHostShareKeyResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccounts")
private java.util.List<HostAccounts> hostAccounts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListHostAccountsForHostShareKeyResponseBody(Builder builder) {
this.hostAccounts = builder.hostAccounts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostAccountsForHostShareKeyResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccounts
*/
public java.util.List<HostAccounts> getHostAccounts() {
return this.hostAccounts;
}
/**
* @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<HostAccounts> hostAccounts;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListHostAccountsForHostShareKeyResponseBody model) {
this.hostAccounts = model.hostAccounts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>An array that consists of the host accounts that are associated with the shared key.</p>
*/
public Builder hostAccounts(java.util.List<HostAccounts> hostAccounts) {
this.hostAccounts = hostAccounts;
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;
}
/**
* <p>The total number of the host accounts that are associated with the shared key.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostAccountsForHostShareKeyResponseBody build() {
return new ListHostAccountsForHostShareKeyResponseBody(this);
}
}
/**
*
* {@link ListHostAccountsForHostShareKeyResponseBody} extends {@link TeaModel}
*
* <p>ListHostAccountsForHostShareKeyResponseBody</p>
*/
public static class HostAccounts extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccountName")
private String hostAccountName;
@com.aliyun.core.annotation.NameInMap("HostId")
private String hostId;
@com.aliyun.core.annotation.NameInMap("HostsAccountId")
private String hostsAccountId;
@com.aliyun.core.annotation.NameInMap("ProtocolName")
private String protocolName;
private HostAccounts(Builder builder) {
this.hostAccountName = builder.hostAccountName;
this.hostId = builder.hostId;
this.hostsAccountId = builder.hostsAccountId;
this.protocolName = builder.protocolName;
}
public static Builder builder() {
return new Builder();
}
public static HostAccounts create() {
return builder().build();
}
/**
* @return hostAccountName
*/
public String getHostAccountName() {
return this.hostAccountName;
}
/**
* @return hostId
*/
public String getHostId() {
return this.hostId;
}
/**
* @return hostsAccountId
*/
public String getHostsAccountId() {
return this.hostsAccountId;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
public static final class Builder {
private String hostAccountName;
private String hostId;
private String hostsAccountId;
private String protocolName;
private Builder() {
}
private Builder(HostAccounts model) {
this.hostAccountName = model.hostAccountName;
this.hostId = model.hostId;
this.hostsAccountId = model.hostsAccountId;
this.protocolName = model.protocolName;
}
/**
* <p>The name of the host account.</p>
*
* <strong>example:</strong>
* <p>root1234</p>
*/
public Builder hostAccountName(String hostAccountName) {
this.hostAccountName = hostAccountName;
return this;
}
/**
* <p>The ID of the host.</p>
*
* <strong>example:</strong>
* <p>1113</p>
*/
public Builder hostId(String hostId) {
this.hostId = hostId;
return this;
}
/**
* <p>The ID of the host account.</p>
*
* <strong>example:</strong>
* <p>1235</p>
*/
public Builder hostsAccountId(String hostsAccountId) {
this.hostsAccountId = hostsAccountId;
return this;
}
/**
* <p>The O&M protocol.</p>
*
* <strong>example:</strong>
* <p>SSH</p>
*/
public Builder protocolName(String protocolName) {
this.protocolName = protocolName;
return this;
}
public HostAccounts build() {
return new HostAccounts(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/ListHostAccountsForUserGroupRequest.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 ListHostAccountsForUserGroupRequest} extends {@link RequestModel}
*
* <p>ListHostAccountsForUserGroupRequest</p>
*/
public class ListHostAccountsForUserGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostAccountName")
private String hostAccountName;
@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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
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 ListHostAccountsForUserGroupRequest(Builder builder) {
super(builder);
this.hostAccountName = builder.hostAccountName;
this.hostId = builder.hostId;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.userGroupId = builder.userGroupId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostAccountsForUserGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccountName
*/
public String getHostAccountName() {
return this.hostAccountName;
}
/**
* @return hostId
*/
public String getHostId() {
return this.hostId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return userGroupId
*/
public String getUserGroupId() {
return this.userGroupId;
}
public static final class Builder extends Request.Builder<ListHostAccountsForUserGroupRequest, Builder> {
private String hostAccountName;
private String hostId;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private String userGroupId;
private Builder() {
super();
}
private Builder(ListHostAccountsForUserGroupRequest request) {
super(request);
this.hostAccountName = request.hostAccountName;
this.hostId = request.hostId;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.userGroupId = request.userGroupId;
}
/**
* <p>The name of the host account that you want to query. Exact match is supported.</p>
*
* <strong>example:</strong>
* <p>root</p>
*/
public Builder hostAccountName(String hostAccountName) {
this.putQueryParameter("HostAccountName", hostAccountName);
this.hostAccountName = hostAccountName;
return this;
}
/**
* <p>The ID of the host to query.</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 on which you want to query the host accounts to be managed by the specified user group on the specified 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 number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page.<br>Maximum value: 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the bastion host on which you want to query the host accounts to be managed by the specified user group on the specified 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 for which you want to query authorized 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 ListHostAccountsForUserGroupRequest build() {
return new ListHostAccountsForUserGroupRequest(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/ListHostAccountsForUserGroupResponse.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 ListHostAccountsForUserGroupResponse} extends {@link TeaModel}
*
* <p>ListHostAccountsForUserGroupResponse</p>
*/
public class ListHostAccountsForUserGroupResponse 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 ListHostAccountsForUserGroupResponseBody body;
private ListHostAccountsForUserGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostAccountsForUserGroupResponse 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 ListHostAccountsForUserGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostAccountsForUserGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostAccountsForUserGroupResponseBody body);
@Override
ListHostAccountsForUserGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostAccountsForUserGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostAccountsForUserGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostAccountsForUserGroupResponse 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(ListHostAccountsForUserGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostAccountsForUserGroupResponse build() {
return new ListHostAccountsForUserGroupResponse(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/ListHostAccountsForUserGroupResponseBody.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 ListHostAccountsForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListHostAccountsForUserGroupResponseBody</p>
*/
public class ListHostAccountsForUserGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccounts")
private java.util.List<HostAccounts> hostAccounts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private ListHostAccountsForUserGroupResponseBody(Builder builder) {
this.hostAccounts = builder.hostAccounts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostAccountsForUserGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccounts
*/
public java.util.List<HostAccounts> getHostAccounts() {
return this.hostAccounts;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<HostAccounts> hostAccounts;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(ListHostAccountsForUserGroupResponseBody model) {
this.hostAccounts = model.hostAccounts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>An array that consists of the queried host accounts.</p>
*/
public Builder hostAccounts(java.util.List<HostAccounts> hostAccounts) {
this.hostAccounts = hostAccounts;
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;
}
/**
* <p>The total number of host accounts that were queried.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostAccountsForUserGroupResponseBody build() {
return new ListHostAccountsForUserGroupResponseBody(this);
}
}
/**
*
* {@link ListHostAccountsForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListHostAccountsForUserGroupResponseBody</p>
*/
public static class HostAccounts extends TeaModel {
@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("IsAuthorized")
private Boolean isAuthorized;
@com.aliyun.core.annotation.NameInMap("ProtocolName")
private String protocolName;
private HostAccounts(Builder builder) {
this.hostAccountId = builder.hostAccountId;
this.hostAccountName = builder.hostAccountName;
this.hostId = builder.hostId;
this.isAuthorized = builder.isAuthorized;
this.protocolName = builder.protocolName;
}
public static Builder builder() {
return new Builder();
}
public static HostAccounts create() {
return builder().build();
}
/**
* @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 isAuthorized
*/
public Boolean getIsAuthorized() {
return this.isAuthorized;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
public static final class Builder {
private String hostAccountId;
private String hostAccountName;
private String hostId;
private Boolean isAuthorized;
private String protocolName;
private Builder() {
}
private Builder(HostAccounts model) {
this.hostAccountId = model.hostAccountId;
this.hostAccountName = model.hostAccountName;
this.hostId = model.hostId;
this.isAuthorized = model.isAuthorized;
this.protocolName = model.protocolName;
}
/**
* <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>host1</p>
*/
public Builder hostAccountName(String hostAccountName) {
this.hostAccountName = hostAccountName;
return this;
}
/**
* <p>The ID of the host for which the host accounts were queried.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hostId(String hostId) {
this.hostId = hostId;
return this;
}
/**
* <p>Indicates whether the user group is authorized to manage 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 isAuthorized(Boolean isAuthorized) {
this.isAuthorized = isAuthorized;
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;
}
public HostAccounts build() {
return new HostAccounts(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/ListHostAccountsForUserRequest.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 ListHostAccountsForUserRequest} extends {@link RequestModel}
*
* <p>ListHostAccountsForUserRequest</p>
*/
public class ListHostAccountsForUserRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostAccountName")
private String hostAccountName;
@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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
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 ListHostAccountsForUserRequest(Builder builder) {
super(builder);
this.hostAccountName = builder.hostAccountName;
this.hostId = builder.hostId;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostAccountsForUserRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccountName
*/
public String getHostAccountName() {
return this.hostAccountName;
}
/**
* @return hostId
*/
public String getHostId() {
return this.hostId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
public static final class Builder extends Request.Builder<ListHostAccountsForUserRequest, Builder> {
private String hostAccountName;
private String hostId;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private String userId;
private Builder() {
super();
}
private Builder(ListHostAccountsForUserRequest request) {
super(request);
this.hostAccountName = request.hostAccountName;
this.hostId = request.hostId;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.userId = request.userId;
}
/**
* <p>The name of the host account that you want to query. Exact match is supported.</p>
*
* <strong>example:</strong>
* <p>root</p>
*/
public Builder hostAccountName(String hostAccountName) {
this.putQueryParameter("HostAccountName", hostAccountName);
this.hostAccountName = hostAccountName;
return this;
}
/**
* <p>The ID of the host to query.</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 on which you want to perform the query. The host accounts that the specified user is authorized to manage on the specified host are queried.</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 number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page.<br>Maximum value: 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the bastion host on which you want to perform the query. The host accounts that the specified user is authorized to manage on the specified host are queried.</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 for which you want to query authorized 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 ListHostAccountsForUserRequest build() {
return new ListHostAccountsForUserRequest(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/ListHostAccountsForUserResponse.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 ListHostAccountsForUserResponse} extends {@link TeaModel}
*
* <p>ListHostAccountsForUserResponse</p>
*/
public class ListHostAccountsForUserResponse 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 ListHostAccountsForUserResponseBody body;
private ListHostAccountsForUserResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostAccountsForUserResponse 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 ListHostAccountsForUserResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostAccountsForUserResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostAccountsForUserResponseBody body);
@Override
ListHostAccountsForUserResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostAccountsForUserResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostAccountsForUserResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostAccountsForUserResponse 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(ListHostAccountsForUserResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostAccountsForUserResponse build() {
return new ListHostAccountsForUserResponse(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/ListHostAccountsForUserResponseBody.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 ListHostAccountsForUserResponseBody} extends {@link TeaModel}
*
* <p>ListHostAccountsForUserResponseBody</p>
*/
public class ListHostAccountsForUserResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccounts")
private java.util.List<HostAccounts> hostAccounts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private ListHostAccountsForUserResponseBody(Builder builder) {
this.hostAccounts = builder.hostAccounts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostAccountsForUserResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccounts
*/
public java.util.List<HostAccounts> getHostAccounts() {
return this.hostAccounts;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<HostAccounts> hostAccounts;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(ListHostAccountsForUserResponseBody model) {
this.hostAccounts = model.hostAccounts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>An array that consists of the queried host accounts.</p>
*/
public Builder hostAccounts(java.util.List<HostAccounts> hostAccounts) {
this.hostAccounts = hostAccounts;
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;
}
/**
* <p>The total number of host accounts that were queried.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostAccountsForUserResponseBody build() {
return new ListHostAccountsForUserResponseBody(this);
}
}
/**
*
* {@link ListHostAccountsForUserResponseBody} extends {@link TeaModel}
*
* <p>ListHostAccountsForUserResponseBody</p>
*/
public static class HostAccounts extends TeaModel {
@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("IsAuthorized")
private Boolean isAuthorized;
@com.aliyun.core.annotation.NameInMap("ProtocolName")
private String protocolName;
private HostAccounts(Builder builder) {
this.hostAccountId = builder.hostAccountId;
this.hostAccountName = builder.hostAccountName;
this.hostId = builder.hostId;
this.isAuthorized = builder.isAuthorized;
this.protocolName = builder.protocolName;
}
public static Builder builder() {
return new Builder();
}
public static HostAccounts create() {
return builder().build();
}
/**
* @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 isAuthorized
*/
public Boolean getIsAuthorized() {
return this.isAuthorized;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
public static final class Builder {
private String hostAccountId;
private String hostAccountName;
private String hostId;
private Boolean isAuthorized;
private String protocolName;
private Builder() {
}
private Builder(HostAccounts model) {
this.hostAccountId = model.hostAccountId;
this.hostAccountName = model.hostAccountName;
this.hostId = model.hostId;
this.isAuthorized = model.isAuthorized;
this.protocolName = model.protocolName;
}
/**
* <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>root</p>
*/
public Builder hostAccountName(String hostAccountName) {
this.hostAccountName = hostAccountName;
return this;
}
/**
* <p>The ID of the host for which the host accounts were queried.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hostId(String hostId) {
this.hostId = hostId;
return this;
}
/**
* <p>Indicates whether the user is authorized to manage 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 isAuthorized(Boolean isAuthorized) {
this.isAuthorized = isAuthorized;
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;
}
public HostAccounts build() {
return new HostAccounts(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/ListHostAccountsRequest.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 ListHostAccountsRequest} extends {@link RequestModel}
*
* <p>ListHostAccountsRequest</p>
*/
public class ListHostAccountsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostAccountName")
private String hostAccountName;
@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("HostIds")
private String hostIds;
@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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProtocolName")
private String protocolName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListHostAccountsRequest(Builder builder) {
super(builder);
this.hostAccountName = builder.hostAccountName;
this.hostId = builder.hostId;
this.hostIds = builder.hostIds;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.protocolName = builder.protocolName;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostAccountsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccountName
*/
public String getHostAccountName() {
return this.hostAccountName;
}
/**
* @return hostId
*/
public String getHostId() {
return this.hostId;
}
/**
* @return hostIds
*/
public String getHostIds() {
return this.hostIds;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListHostAccountsRequest, Builder> {
private String hostAccountName;
private String hostId;
private String hostIds;
private String instanceId;
private String pageNumber;
private String pageSize;
private String protocolName;
private String regionId;
private Builder() {
super();
}
private Builder(ListHostAccountsRequest request) {
super(request);
this.hostAccountName = request.hostAccountName;
this.hostId = request.hostId;
this.hostIds = request.hostIds;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.protocolName = request.protocolName;
this.regionId = request.regionId;
}
/**
* <p>The name of the host account that you want to query. The name can be up to 128 characters in length. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder hostAccountName(String hostAccountName) {
this.putQueryParameter("HostAccountName", hostAccountName);
this.hostAccountName = hostAccountName;
return this;
}
/**
* <p>The ID of the specified host whose accounts you want to query.</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;
}
/**
* HostIds.
*/
public Builder hostIds(String hostIds) {
this.putQueryParameter("HostIds", hostIds);
this.hostIds = hostIds;
return this;
}
/**
* <p>The ID of the bastion host in which you want to query accounts of the specified host.</p>
* <blockquote>
* <p> You can call the DescribeInstances 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 number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
* <p>Maximum value: 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The protocol used by the host whose accounts you want to query.</p>
* <p>Valid values:</p>
* <ul>
* <li>SSH</li>
* <li>RDP</li>
* </ul>
*
* <strong>example:</strong>
* <p>SSH</p>
*/
public Builder protocolName(String protocolName) {
this.putQueryParameter("ProtocolName", protocolName);
this.protocolName = protocolName;
return this;
}
/**
* <p>The region ID of the bastion host in which you want to query accounts of the specified 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 ListHostAccountsRequest build() {
return new ListHostAccountsRequest(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/ListHostAccountsResponse.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 ListHostAccountsResponse} extends {@link TeaModel}
*
* <p>ListHostAccountsResponse</p>
*/
public class ListHostAccountsResponse 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 ListHostAccountsResponseBody body;
private ListHostAccountsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostAccountsResponse 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 ListHostAccountsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostAccountsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostAccountsResponseBody body);
@Override
ListHostAccountsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostAccountsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostAccountsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostAccountsResponse 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(ListHostAccountsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostAccountsResponse build() {
return new ListHostAccountsResponse(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/ListHostAccountsResponseBody.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 ListHostAccountsResponseBody} extends {@link TeaModel}
*
* <p>ListHostAccountsResponseBody</p>
*/
public class ListHostAccountsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccounts")
private java.util.List<HostAccounts> hostAccounts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private ListHostAccountsResponseBody(Builder builder) {
this.hostAccounts = builder.hostAccounts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostAccountsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccounts
*/
public java.util.List<HostAccounts> getHostAccounts() {
return this.hostAccounts;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<HostAccounts> hostAccounts;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(ListHostAccountsResponseBody model) {
this.hostAccounts = model.hostAccounts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>An array that consists of the queried host accounts.</p>
*/
public Builder hostAccounts(java.util.List<HostAccounts> hostAccounts) {
this.hostAccounts = hostAccounts;
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;
}
/**
* <p>The total number of host accounts that are queried.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostAccountsResponseBody build() {
return new ListHostAccountsResponseBody(this);
}
}
/**
*
* {@link ListHostAccountsResponseBody} extends {@link TeaModel}
*
* <p>ListHostAccountsResponseBody</p>
*/
public static class HostAccounts 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 HostAccounts(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 HostAccounts 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(HostAccounts 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.</p>
* <p>Valid values:</p>
* <ul>
* <li>true: A password is configured for the host account.</li>
* <li>false: No passwords are configured for the host account.</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.</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 for the host account.</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.</p>
* <p>Valid values:</p>
* <ul>
* <li>SSH</li>
* <li>RDP</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 HostAccounts build() {
return new HostAccounts(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/ListHostGroupAccountNamesForUserGroupRequest.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 ListHostGroupAccountNamesForUserGroupRequest} extends {@link RequestModel}
*
* <p>ListHostGroupAccountNamesForUserGroupRequest</p>
*/
public class ListHostGroupAccountNamesForUserGroupRequest 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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String userGroupId;
private ListHostGroupAccountNamesForUserGroupRequest(Builder builder) {
super(builder);
this.hostGroupId = builder.hostGroupId;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.userGroupId = builder.userGroupId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostGroupAccountNamesForUserGroupRequest 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;
}
/**
* @return userGroupId
*/
public String getUserGroupId() {
return this.userGroupId;
}
public static final class Builder extends Request.Builder<ListHostGroupAccountNamesForUserGroupRequest, Builder> {
private String hostGroupId;
private String instanceId;
private String regionId;
private String userGroupId;
private Builder() {
super();
}
private Builder(ListHostGroupAccountNamesForUserGroupRequest request) {
super(request);
this.hostGroupId = request.hostGroupId;
this.instanceId = request.instanceId;
this.regionId = request.regionId;
this.userGroupId = request.userGroupId;
}
/**
* <p>The ID of the host group.</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.</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 on which you want to query the host account names the user group is authorized to manage in a host 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 query the host account names the user group is authorized to manage in a host 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.</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 ListHostGroupAccountNamesForUserGroupRequest build() {
return new ListHostGroupAccountNamesForUserGroupRequest(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/ListHostGroupAccountNamesForUserGroupResponse.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 ListHostGroupAccountNamesForUserGroupResponse} extends {@link TeaModel}
*
* <p>ListHostGroupAccountNamesForUserGroupResponse</p>
*/
public class ListHostGroupAccountNamesForUserGroupResponse 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 ListHostGroupAccountNamesForUserGroupResponseBody body;
private ListHostGroupAccountNamesForUserGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostGroupAccountNamesForUserGroupResponse 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 ListHostGroupAccountNamesForUserGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostGroupAccountNamesForUserGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostGroupAccountNamesForUserGroupResponseBody body);
@Override
ListHostGroupAccountNamesForUserGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostGroupAccountNamesForUserGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostGroupAccountNamesForUserGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostGroupAccountNamesForUserGroupResponse 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(ListHostGroupAccountNamesForUserGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostGroupAccountNamesForUserGroupResponse build() {
return new ListHostGroupAccountNamesForUserGroupResponse(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/ListHostGroupAccountNamesForUserGroupResponseBody.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 ListHostGroupAccountNamesForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListHostGroupAccountNamesForUserGroupResponseBody</p>
*/
public class ListHostGroupAccountNamesForUserGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccountNames")
private java.util.List<String> hostAccountNames;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListHostGroupAccountNamesForUserGroupResponseBody(Builder builder) {
this.hostAccountNames = builder.hostAccountNames;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostGroupAccountNamesForUserGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccountNames
*/
public java.util.List<String> getHostAccountNames() {
return this.hostAccountNames;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<String> hostAccountNames;
private String requestId;
private Builder() {
}
private Builder(ListHostGroupAccountNamesForUserGroupResponseBody model) {
this.hostAccountNames = model.hostAccountNames;
this.requestId = model.requestId;
}
/**
* <p>The names of host accounts returned.</p>
*/
public Builder hostAccountNames(java.util.List<String> hostAccountNames) {
this.hostAccountNames = hostAccountNames;
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 ListHostGroupAccountNamesForUserGroupResponseBody build() {
return new ListHostGroupAccountNamesForUserGroupResponseBody(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/ListHostGroupAccountNamesForUserRequest.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 ListHostGroupAccountNamesForUserRequest} extends {@link RequestModel}
*
* <p>ListHostGroupAccountNamesForUserRequest</p>
*/
public class ListHostGroupAccountNamesForUserRequest 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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserId")
@com.aliyun.core.annotation.Validation(required = true)
private String userId;
private ListHostGroupAccountNamesForUserRequest(Builder builder) {
super(builder);
this.hostGroupId = builder.hostGroupId;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostGroupAccountNamesForUserRequest 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;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
public static final class Builder extends Request.Builder<ListHostGroupAccountNamesForUserRequest, Builder> {
private String hostGroupId;
private String instanceId;
private String regionId;
private String userId;
private Builder() {
super();
}
private Builder(ListHostGroupAccountNamesForUserRequest request) {
super(request);
this.hostGroupId = request.hostGroupId;
this.instanceId = request.instanceId;
this.regionId = request.regionId;
this.userId = request.userId;
}
/**
* <p>The ID of the host group.</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.</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 to which the user belongs.</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 to which the user 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.</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 ListHostGroupAccountNamesForUserRequest build() {
return new ListHostGroupAccountNamesForUserRequest(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/ListHostGroupAccountNamesForUserResponse.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 ListHostGroupAccountNamesForUserResponse} extends {@link TeaModel}
*
* <p>ListHostGroupAccountNamesForUserResponse</p>
*/
public class ListHostGroupAccountNamesForUserResponse 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 ListHostGroupAccountNamesForUserResponseBody body;
private ListHostGroupAccountNamesForUserResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostGroupAccountNamesForUserResponse 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 ListHostGroupAccountNamesForUserResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostGroupAccountNamesForUserResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostGroupAccountNamesForUserResponseBody body);
@Override
ListHostGroupAccountNamesForUserResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostGroupAccountNamesForUserResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostGroupAccountNamesForUserResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostGroupAccountNamesForUserResponse 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(ListHostGroupAccountNamesForUserResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostGroupAccountNamesForUserResponse build() {
return new ListHostGroupAccountNamesForUserResponse(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/ListHostGroupAccountNamesForUserResponseBody.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 ListHostGroupAccountNamesForUserResponseBody} extends {@link TeaModel}
*
* <p>ListHostGroupAccountNamesForUserResponseBody</p>
*/
public class ListHostGroupAccountNamesForUserResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccountNames")
private java.util.List<String> hostAccountNames;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListHostGroupAccountNamesForUserResponseBody(Builder builder) {
this.hostAccountNames = builder.hostAccountNames;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostGroupAccountNamesForUserResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccountNames
*/
public java.util.List<String> getHostAccountNames() {
return this.hostAccountNames;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<String> hostAccountNames;
private String requestId;
private Builder() {
}
private Builder(ListHostGroupAccountNamesForUserResponseBody model) {
this.hostAccountNames = model.hostAccountNames;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the names of host accounts.</p>
*/
public Builder hostAccountNames(java.util.List<String> hostAccountNames) {
this.hostAccountNames = hostAccountNames;
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 ListHostGroupAccountNamesForUserResponseBody build() {
return new ListHostGroupAccountNamesForUserResponseBody(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/ListHostGroupsForUserGroupRequest.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 ListHostGroupsForUserGroupRequest} extends {@link RequestModel}
*
* <p>ListHostGroupsForUserGroupRequest</p>
*/
public class ListHostGroupsForUserGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostGroupName")
private String hostGroupName;
@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("Mode")
private String mode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
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 ListHostGroupsForUserGroupRequest(Builder builder) {
super(builder);
this.hostGroupName = builder.hostGroupName;
this.instanceId = builder.instanceId;
this.mode = builder.mode;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.userGroupId = builder.userGroupId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostGroupsForUserGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostGroupName
*/
public String getHostGroupName() {
return this.hostGroupName;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return mode
*/
public String getMode() {
return this.mode;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return userGroupId
*/
public String getUserGroupId() {
return this.userGroupId;
}
public static final class Builder extends Request.Builder<ListHostGroupsForUserGroupRequest, Builder> {
private String hostGroupName;
private String instanceId;
private String mode;
private String pageNumber;
private String pageSize;
private String regionId;
private String userGroupId;
private Builder() {
super();
}
private Builder(ListHostGroupsForUserGroupRequest request) {
super(request);
this.hostGroupName = request.hostGroupName;
this.instanceId = request.instanceId;
this.mode = request.mode;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.userGroupId = request.userGroupId;
}
/**
* <p>The name of the host group that you want to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>group</p>
*/
public Builder hostGroupName(String hostGroupName) {
this.putQueryParameter("HostGroupName", hostGroupName);
this.hostGroupName = hostGroupName;
return this;
}
/**
* <p>The ID of the bastion host to which the user group belongs.</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>Specifies the category of the host group that you want to query. Valid values:</p>
* <ul>
* <li><strong>Authorized</strong>: queries the host groups that the user group is authorized to manage. This is the default value.</li>
* <li><strong>Unauthorized</strong>: queries the host groups that the user group is not authorized to manage.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Authorized</p>
*/
public Builder mode(String mode) {
this.putQueryParameter("Mode", mode);
this.mode = mode;
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(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page.<br>Maximum value: 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the bastion host to which the user group 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 group.</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 ListHostGroupsForUserGroupRequest build() {
return new ListHostGroupsForUserGroupRequest(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/ListHostGroupsForUserGroupResponse.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 ListHostGroupsForUserGroupResponse} extends {@link TeaModel}
*
* <p>ListHostGroupsForUserGroupResponse</p>
*/
public class ListHostGroupsForUserGroupResponse 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 ListHostGroupsForUserGroupResponseBody body;
private ListHostGroupsForUserGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostGroupsForUserGroupResponse 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 ListHostGroupsForUserGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostGroupsForUserGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostGroupsForUserGroupResponseBody body);
@Override
ListHostGroupsForUserGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostGroupsForUserGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostGroupsForUserGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostGroupsForUserGroupResponse 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(ListHostGroupsForUserGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostGroupsForUserGroupResponse build() {
return new ListHostGroupsForUserGroupResponse(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/ListHostGroupsForUserGroupResponseBody.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 ListHostGroupsForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListHostGroupsForUserGroupResponseBody</p>
*/
public class ListHostGroupsForUserGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostGroups")
private java.util.List<HostGroups> hostGroups;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private ListHostGroupsForUserGroupResponseBody(Builder builder) {
this.hostGroups = builder.hostGroups;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostGroupsForUserGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostGroups
*/
public java.util.List<HostGroups> getHostGroups() {
return this.hostGroups;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<HostGroups> hostGroups;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(ListHostGroupsForUserGroupResponseBody model) {
this.hostGroups = model.hostGroups;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The host groups returned.</p>
*/
public Builder hostGroups(java.util.List<HostGroups> hostGroups) {
this.hostGroups = hostGroups;
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;
}
/**
* <p>The total number of host groups returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostGroupsForUserGroupResponseBody build() {
return new ListHostGroupsForUserGroupResponseBody(this);
}
}
/**
*
* {@link ListHostGroupsForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListHostGroupsForUserGroupResponseBody</p>
*/
public static class HostGroups 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 HostGroups(Builder builder) {
this.comment = builder.comment;
this.hostGroupId = builder.hostGroupId;
this.hostGroupName = builder.hostGroupName;
}
public static Builder builder() {
return new Builder();
}
public static HostGroups 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(HostGroups model) {
this.comment = model.comment;
this.hostGroupId = model.hostGroupId;
this.hostGroupName = model.hostGroupName;
}
/**
* <p>The description of the host group.</p>
*
* <strong>example:</strong>
* <p>comment</p>
*/
public Builder comment(String comment) {
this.comment = comment;
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>The name of the host group.</p>
*
* <strong>example:</strong>
* <p>group</p>
*/
public Builder hostGroupName(String hostGroupName) {
this.hostGroupName = hostGroupName;
return this;
}
public HostGroups build() {
return new HostGroups(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/ListHostGroupsForUserRequest.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 ListHostGroupsForUserRequest} extends {@link RequestModel}
*
* <p>ListHostGroupsForUserRequest</p>
*/
public class ListHostGroupsForUserRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostGroupName")
private String hostGroupName;
@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("Mode")
private String mode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
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 ListHostGroupsForUserRequest(Builder builder) {
super(builder);
this.hostGroupName = builder.hostGroupName;
this.instanceId = builder.instanceId;
this.mode = builder.mode;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostGroupsForUserRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostGroupName
*/
public String getHostGroupName() {
return this.hostGroupName;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return mode
*/
public String getMode() {
return this.mode;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
public static final class Builder extends Request.Builder<ListHostGroupsForUserRequest, Builder> {
private String hostGroupName;
private String instanceId;
private String mode;
private String pageNumber;
private String pageSize;
private String regionId;
private String userId;
private Builder() {
super();
}
private Builder(ListHostGroupsForUserRequest request) {
super(request);
this.hostGroupName = request.hostGroupName;
this.instanceId = request.instanceId;
this.mode = request.mode;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.userId = request.userId;
}
/**
* <p>The name of the host group to query. The name can be up to 128 characters in length. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>group</p>
*/
public Builder hostGroupName(String hostGroupName) {
this.putQueryParameter("HostGroupName", hostGroupName);
this.hostGroupName = hostGroupName;
return this;
}
/**
* <p>The ID of the bastion host whose user 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 category of the host groups to query. Valid values:</p>
* <ul>
* <li><strong>Authorized</strong> (default): queries the host groups that the user is authorized to manage.</li>
* <li><strong>Unauthorized</strong>: queries the host groups that the user is not authorized to manage.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Authorized</p>
*/
public Builder mode(String mode) {
this.putQueryParameter("Mode", mode);
this.mode = mode;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Valid values: 1 to 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the bastion host whose user you want 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;
}
/**
* <p>The user ID.</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 ListHostGroupsForUserRequest build() {
return new ListHostGroupsForUserRequest(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/ListHostGroupsForUserResponse.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 ListHostGroupsForUserResponse} extends {@link TeaModel}
*
* <p>ListHostGroupsForUserResponse</p>
*/
public class ListHostGroupsForUserResponse 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 ListHostGroupsForUserResponseBody body;
private ListHostGroupsForUserResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostGroupsForUserResponse 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 ListHostGroupsForUserResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostGroupsForUserResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostGroupsForUserResponseBody body);
@Override
ListHostGroupsForUserResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostGroupsForUserResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostGroupsForUserResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostGroupsForUserResponse 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(ListHostGroupsForUserResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostGroupsForUserResponse build() {
return new ListHostGroupsForUserResponse(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/ListHostGroupsForUserResponseBody.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 ListHostGroupsForUserResponseBody} extends {@link TeaModel}
*
* <p>ListHostGroupsForUserResponseBody</p>
*/
public class ListHostGroupsForUserResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostGroups")
private java.util.List<HostGroups> hostGroups;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private ListHostGroupsForUserResponseBody(Builder builder) {
this.hostGroups = builder.hostGroups;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostGroupsForUserResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostGroups
*/
public java.util.List<HostGroups> getHostGroups() {
return this.hostGroups;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<HostGroups> hostGroups;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(ListHostGroupsForUserResponseBody model) {
this.hostGroups = model.hostGroups;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The host groups returned.</p>
*/
public Builder hostGroups(java.util.List<HostGroups> hostGroups) {
this.hostGroups = hostGroups;
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;
}
/**
* <p>The total number of host groups returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostGroupsForUserResponseBody build() {
return new ListHostGroupsForUserResponseBody(this);
}
}
/**
*
* {@link ListHostGroupsForUserResponseBody} extends {@link TeaModel}
*
* <p>ListHostGroupsForUserResponseBody</p>
*/
public static class HostGroups 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 HostGroups(Builder builder) {
this.comment = builder.comment;
this.hostGroupId = builder.hostGroupId;
this.hostGroupName = builder.hostGroupName;
}
public static Builder builder() {
return new Builder();
}
public static HostGroups 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(HostGroups model) {
this.comment = model.comment;
this.hostGroupId = model.hostGroupId;
this.hostGroupName = model.hostGroupName;
}
/**
* <p>The remarks of the host group.</p>
*
* <strong>example:</strong>
* <p>comment</p>
*/
public Builder comment(String comment) {
this.comment = comment;
return this;
}
/**
* <p>The host group ID.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hostGroupId(String hostGroupId) {
this.hostGroupId = hostGroupId;
return this;
}
/**
* <p>The name of the host group.</p>
*
* <strong>example:</strong>
* <p>group</p>
*/
public Builder hostGroupName(String hostGroupName) {
this.hostGroupName = hostGroupName;
return this;
}
public HostGroups build() {
return new HostGroups(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/ListHostGroupsRequest.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 ListHostGroupsRequest} extends {@link RequestModel}
*
* <p>ListHostGroupsRequest</p>
*/
public class ListHostGroupsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostGroupName")
private String hostGroupName;
@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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListHostGroupsRequest(Builder builder) {
super(builder);
this.hostGroupName = builder.hostGroupName;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostGroupsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostGroupName
*/
public String getHostGroupName() {
return this.hostGroupName;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListHostGroupsRequest, Builder> {
private String hostGroupName;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private Builder() {
super();
}
private Builder(ListHostGroupsRequest request) {
super(request);
this.hostGroupName = request.hostGroupName;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
}
/**
* <p>The name of the host group that you want to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>Host group 1</p>
*/
public Builder hostGroupName(String hostGroupName) {
this.putQueryParameter("HostGroupName", hostGroupName);
this.hostGroupName = hostGroupName;
return this;
}
/**
* <p>The ID of the bastion host to query.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/462953.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 page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid values: 1 to 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the bastion host in which you want to query the host 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;
}
@Override
public ListHostGroupsRequest build() {
return new ListHostGroupsRequest(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/ListHostGroupsResponse.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 ListHostGroupsResponse} extends {@link TeaModel}
*
* <p>ListHostGroupsResponse</p>
*/
public class ListHostGroupsResponse 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 ListHostGroupsResponseBody body;
private ListHostGroupsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostGroupsResponse 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 ListHostGroupsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostGroupsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostGroupsResponseBody body);
@Override
ListHostGroupsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostGroupsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostGroupsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostGroupsResponse 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(ListHostGroupsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostGroupsResponse build() {
return new ListHostGroupsResponse(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/ListHostGroupsResponseBody.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 ListHostGroupsResponseBody} extends {@link TeaModel}
*
* <p>ListHostGroupsResponseBody</p>
*/
public class ListHostGroupsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostGroups")
private java.util.List<HostGroups> hostGroups;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private ListHostGroupsResponseBody(Builder builder) {
this.hostGroups = builder.hostGroups;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostGroupsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostGroups
*/
public java.util.List<HostGroups> getHostGroups() {
return this.hostGroups;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<HostGroups> hostGroups;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(ListHostGroupsResponseBody model) {
this.hostGroups = model.hostGroups;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The asset groups returned.</p>
*/
public Builder hostGroups(java.util.List<HostGroups> hostGroups) {
this.hostGroups = hostGroups;
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;
}
/**
* <p>The total number of asset groups returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostGroupsResponseBody build() {
return new ListHostGroupsResponseBody(this);
}
}
/**
*
* {@link ListHostGroupsResponseBody} extends {@link TeaModel}
*
* <p>ListHostGroupsResponseBody</p>
*/
public static class HostGroups 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;
@com.aliyun.core.annotation.NameInMap("MemberCount")
private Integer memberCount;
private HostGroups(Builder builder) {
this.comment = builder.comment;
this.hostGroupId = builder.hostGroupId;
this.hostGroupName = builder.hostGroupName;
this.memberCount = builder.memberCount;
}
public static Builder builder() {
return new Builder();
}
public static HostGroups 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;
}
/**
* @return memberCount
*/
public Integer getMemberCount() {
return this.memberCount;
}
public static final class Builder {
private String comment;
private String hostGroupId;
private String hostGroupName;
private Integer memberCount;
private Builder() {
}
private Builder(HostGroups model) {
this.comment = model.comment;
this.hostGroupId = model.hostGroupId;
this.hostGroupName = model.hostGroupName;
this.memberCount = model.memberCount;
}
/**
* <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;
}
/**
* <p>The number of hosts in the asset group.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder memberCount(Integer memberCount) {
this.memberCount = memberCount;
return this;
}
public HostGroups build() {
return new HostGroups(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/ListHostShareKeysRequest.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 ListHostShareKeysRequest} extends {@link RequestModel}
*
* <p>ListHostShareKeysRequest</p>
*/
public class ListHostShareKeysRequest 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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListHostShareKeysRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostShareKeysRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListHostShareKeysRequest, Builder> {
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private Builder() {
super();
}
private Builder(ListHostShareKeysRequest request) {
super(request);
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
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 number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 ListHostShareKeysRequest build() {
return new ListHostShareKeysRequest(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/ListHostShareKeysResponse.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 ListHostShareKeysResponse} extends {@link TeaModel}
*
* <p>ListHostShareKeysResponse</p>
*/
public class ListHostShareKeysResponse 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 ListHostShareKeysResponseBody body;
private ListHostShareKeysResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostShareKeysResponse 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 ListHostShareKeysResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostShareKeysResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostShareKeysResponseBody body);
@Override
ListHostShareKeysResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostShareKeysResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostShareKeysResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostShareKeysResponse 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(ListHostShareKeysResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostShareKeysResponse build() {
return new ListHostShareKeysResponse(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/ListHostShareKeysResponseBody.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 ListHostShareKeysResponseBody} extends {@link TeaModel}
*
* <p>ListHostShareKeysResponseBody</p>
*/
public class ListHostShareKeysResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostShareKeys")
private java.util.List<HostShareKeys> hostShareKeys;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListHostShareKeysResponseBody(Builder builder) {
this.hostShareKeys = builder.hostShareKeys;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostShareKeysResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostShareKeys
*/
public java.util.List<HostShareKeys> getHostShareKeys() {
return this.hostShareKeys;
}
/**
* @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<HostShareKeys> hostShareKeys;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListHostShareKeysResponseBody model) {
this.hostShareKeys = model.hostShareKeys;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>An array that consists of the shared keys.</p>
*/
public Builder hostShareKeys(java.util.List<HostShareKeys> hostShareKeys) {
this.hostShareKeys = hostShareKeys;
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;
}
/**
* <p>The total number of the shared keys.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostShareKeysResponseBody build() {
return new ListHostShareKeysResponseBody(this);
}
}
/**
*
* {@link ListHostShareKeysResponseBody} extends {@link TeaModel}
*
* <p>ListHostShareKeysResponseBody</p>
*/
public static class HostShareKeys extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccountCount")
private Long hostAccountCount;
@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 HostShareKeys(Builder builder) {
this.hostAccountCount = builder.hostAccountCount;
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 HostShareKeys create() {
return builder().build();
}
/**
* @return hostAccountCount
*/
public Long getHostAccountCount() {
return this.hostAccountCount;
}
/**
* @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 Long hostAccountCount;
private String hostShareKeyId;
private String hostShareKeyName;
private Long lastModifyKeyAt;
private String privateKeyFingerPrint;
private Builder() {
}
private Builder(HostShareKeys model) {
this.hostAccountCount = model.hostAccountCount;
this.hostShareKeyId = model.hostShareKeyId;
this.hostShareKeyName = model.hostShareKeyName;
this.lastModifyKeyAt = model.lastModifyKeyAt;
this.privateKeyFingerPrint = model.privateKeyFingerPrint;
}
/**
* <p>The number of the associated host accounts.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hostAccountCount(Long hostAccountCount) {
this.hostAccountCount = hostAccountCount;
return this;
}
/**
* <p>The shared key ID.</p>
*
* <strong>example:</strong>
* <p>10247</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 shared key was last modified. The value is a UNIX timestamp. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1644806406</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 HostShareKeys build() {
return new HostShareKeys(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/ListHostsForUserGroupRequest.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 ListHostsForUserGroupRequest} extends {@link RequestModel}
*
* <p>ListHostsForUserGroupRequest</p>
*/
public class ListHostsForUserGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostAddress")
private String hostAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostName")
private String hostName;
@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("Mode")
private String mode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OSType")
private String OSType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
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 ListHostsForUserGroupRequest(Builder builder) {
super(builder);
this.hostAddress = builder.hostAddress;
this.hostName = builder.hostName;
this.instanceId = builder.instanceId;
this.mode = builder.mode;
this.OSType = builder.OSType;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.userGroupId = builder.userGroupId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostsForUserGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAddress
*/
public String getHostAddress() {
return this.hostAddress;
}
/**
* @return hostName
*/
public String getHostName() {
return this.hostName;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return mode
*/
public String getMode() {
return this.mode;
}
/**
* @return OSType
*/
public String getOSType() {
return this.OSType;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return userGroupId
*/
public String getUserGroupId() {
return this.userGroupId;
}
public static final class Builder extends Request.Builder<ListHostsForUserGroupRequest, Builder> {
private String hostAddress;
private String hostName;
private String instanceId;
private String mode;
private String OSType;
private String pageNumber;
private String pageSize;
private String regionId;
private String userGroupId;
private Builder() {
super();
}
private Builder(ListHostsForUserGroupRequest request) {
super(request);
this.hostAddress = request.hostAddress;
this.hostName = request.hostName;
this.instanceId = request.instanceId;
this.mode = request.mode;
this.OSType = request.OSType;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.userGroupId = request.userGroupId;
}
/**
* <p>The endpoint of the host that you want to query. You can set this parameter to a domain name or an IP address. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder hostAddress(String hostAddress) {
this.putQueryParameter("HostAddress", hostAddress);
this.hostAddress = hostAddress;
return this;
}
/**
* <p>The name of the host that you want to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder hostName(String hostName) {
this.putQueryParameter("HostName", hostName);
this.hostName = hostName;
return this;
}
/**
* <p>The ID of the bastion host on which you want to query the hosts that the user group is authorized or not authorized to manage.</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>Specifies the category of the hosts that you want to query. Valid values:</p>
* <ul>
* <li><strong>Authorized</strong>: queries the hosts that the user group is authorized to manage. This is the default value.</li>
* <li><strong>Unauthorized</strong>: queries the hosts that the user group is not authorized to manage.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Authorized</p>
*/
public Builder mode(String mode) {
this.putQueryParameter("Mode", mode);
this.mode = mode;
return this;
}
/**
* <p>The operating system of the host that you want to query. 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.putQueryParameter("OSType", OSType);
this.OSType = OSType;
return this;
}
/**
* <p>The number of the page. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Maximum value: 100. Default value: 20. If you leave this parameter empty, 20 entries are returned per page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the bastion host on which you want to query the hosts that the user group is authorized or not authorized to manage.</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 for which you want to query hosts.</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 ListHostsForUserGroupRequest build() {
return new ListHostsForUserGroupRequest(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/ListHostsForUserGroupResponse.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 ListHostsForUserGroupResponse} extends {@link TeaModel}
*
* <p>ListHostsForUserGroupResponse</p>
*/
public class ListHostsForUserGroupResponse 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 ListHostsForUserGroupResponseBody body;
private ListHostsForUserGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostsForUserGroupResponse 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 ListHostsForUserGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostsForUserGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostsForUserGroupResponseBody body);
@Override
ListHostsForUserGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostsForUserGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostsForUserGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostsForUserGroupResponse 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(ListHostsForUserGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostsForUserGroupResponse build() {
return new ListHostsForUserGroupResponse(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/ListHostsForUserGroupResponseBody.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 ListHostsForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListHostsForUserGroupResponseBody</p>
*/
public class ListHostsForUserGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Hosts")
private java.util.List<Hosts> hosts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private ListHostsForUserGroupResponseBody(Builder builder) {
this.hosts = builder.hosts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostsForUserGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hosts
*/
public java.util.List<Hosts> getHosts() {
return this.hosts;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<Hosts> hosts;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(ListHostsForUserGroupResponseBody model) {
this.hosts = model.hosts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The hosts returned.</p>
*/
public Builder hosts(java.util.List<Hosts> hosts) {
this.hosts = hosts;
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;
}
/**
* <p>The total number of hosts returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostsForUserGroupResponseBody build() {
return new ListHostsForUserGroupResponseBody(this);
}
}
/**
*
* {@link ListHostsForUserGroupResponseBody} extends {@link TeaModel}
*
* <p>ListHostsForUserGroupResponseBody</p>
*/
public static class Hosts 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("OSType")
private String OSType;
private Hosts(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.OSType = builder.OSType;
}
public static Builder builder() {
return new Builder();
}
public static Hosts 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 OSType
*/
public String getOSType() {
return this.OSType;
}
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 OSType;
private Builder() {
}
private Builder(Hosts 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.OSType = model.OSType;
}
/**
* <p>The address type of the host. Valid values:</p>
* <ul>
* <li><strong>Public</strong>: public endpoint</li>
* <li><strong>Private</strong>: internal endpoint</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>comment</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 name of the host.</p>
*
* <strong>example:</strong>
* <p>host1</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 endpoint of the host. The value is a domain name or an IP address.</p>
*
* <strong>example:</strong>
* <p>10.158.XX.XX</p>
*/
public Builder hostPublicAddress(String hostPublicAddress) {
this.hostPublicAddress = hostPublicAddress;
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;
}
public Hosts build() {
return new Hosts(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/ListHostsForUserRequest.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 ListHostsForUserRequest} extends {@link RequestModel}
*
* <p>ListHostsForUserRequest</p>
*/
public class ListHostsForUserRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostAddress")
private String hostAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostName")
private String hostName;
@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("Mode")
private String mode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OSType")
private String OSType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
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 ListHostsForUserRequest(Builder builder) {
super(builder);
this.hostAddress = builder.hostAddress;
this.hostName = builder.hostName;
this.instanceId = builder.instanceId;
this.mode = builder.mode;
this.OSType = builder.OSType;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static ListHostsForUserRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAddress
*/
public String getHostAddress() {
return this.hostAddress;
}
/**
* @return hostName
*/
public String getHostName() {
return this.hostName;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return mode
*/
public String getMode() {
return this.mode;
}
/**
* @return OSType
*/
public String getOSType() {
return this.OSType;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
public static final class Builder extends Request.Builder<ListHostsForUserRequest, Builder> {
private String hostAddress;
private String hostName;
private String instanceId;
private String mode;
private String OSType;
private String pageNumber;
private String pageSize;
private String regionId;
private String userId;
private Builder() {
super();
}
private Builder(ListHostsForUserRequest request) {
super(request);
this.hostAddress = request.hostAddress;
this.hostName = request.hostName;
this.instanceId = request.instanceId;
this.mode = request.mode;
this.OSType = request.OSType;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.userId = request.userId;
}
/**
* <p>The endpoint of the host that you want to query. You can set this parameter to a domain name or an IP address. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder hostAddress(String hostAddress) {
this.putQueryParameter("HostAddress", hostAddress);
this.hostAddress = hostAddress;
return this;
}
/**
* <p>The name of the host that you want to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder hostName(String hostName) {
this.putQueryParameter("HostName", hostName);
this.hostName = hostName;
return this;
}
/**
* <p>The ID of the bastion host on which you want to query the hosts that the user is authorized or not authorized to manage.</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>Specifies the category of the hosts that you want to query. Valid values:</p>
* <ul>
* <li><strong>Authorized</strong>: queries the hosts that the user is authorized to manage. This is the default value.</li>
* <li><strong>Unauthorized</strong>: queries the hosts that the user is not authorized to manage.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Authorized</p>
*/
public Builder mode(String mode) {
this.putQueryParameter("Mode", mode);
this.mode = mode;
return this;
}
/**
* <p>The operating system of the host that you want to query. 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.putQueryParameter("OSType", OSType);
this.OSType = OSType;
return this;
}
/**
* <p>The number of the page. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Maximum value: 100. Default value: 20. If you leave this parameter empty, 20 entries are returned per page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the bastion host on which you want to query the hosts that the user is authorized or not authorized to manage.</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.</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 ListHostsForUserRequest build() {
return new ListHostsForUserRequest(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/ListHostsForUserResponse.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 ListHostsForUserResponse} extends {@link TeaModel}
*
* <p>ListHostsForUserResponse</p>
*/
public class ListHostsForUserResponse 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 ListHostsForUserResponseBody body;
private ListHostsForUserResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostsForUserResponse 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 ListHostsForUserResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostsForUserResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostsForUserResponseBody body);
@Override
ListHostsForUserResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostsForUserResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostsForUserResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostsForUserResponse 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(ListHostsForUserResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostsForUserResponse build() {
return new ListHostsForUserResponse(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/ListHostsForUserResponseBody.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 ListHostsForUserResponseBody} extends {@link TeaModel}
*
* <p>ListHostsForUserResponseBody</p>
*/
public class ListHostsForUserResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Hosts")
private java.util.List<Hosts> hosts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private ListHostsForUserResponseBody(Builder builder) {
this.hosts = builder.hosts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostsForUserResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hosts
*/
public java.util.List<Hosts> getHosts() {
return this.hosts;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<Hosts> hosts;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(ListHostsForUserResponseBody model) {
this.hosts = model.hosts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The hosts returned.</p>
*/
public Builder hosts(java.util.List<Hosts> hosts) {
this.hosts = hosts;
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;
}
/**
* <p>The total number of hosts returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostsForUserResponseBody build() {
return new ListHostsForUserResponseBody(this);
}
}
/**
*
* {@link ListHostsForUserResponseBody} extends {@link TeaModel}
*
* <p>ListHostsForUserResponseBody</p>
*/
public static class Hosts 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("OSType")
private String OSType;
private Hosts(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.OSType = builder.OSType;
}
public static Builder builder() {
return new Builder();
}
public static Hosts 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 OSType
*/
public String getOSType() {
return this.OSType;
}
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 OSType;
private Builder() {
}
private Builder(Hosts 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.OSType = model.OSType;
}
/**
* <p>The endpoint type of the host. Valid values:</p>
* <ul>
* <li><strong>Public</strong>: public endpoint</li>
* <li><strong>Private</strong>: internal endpoint</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>comment</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 name of the host.</p>
*
* <strong>example:</strong>
* <p>host01</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 endpoint of the host. The value is a domain name or an IP address.</p>
*
* <strong>example:</strong>
* <p>10.158.XX.XX</p>
*/
public Builder hostPublicAddress(String hostPublicAddress) {
this.hostPublicAddress = hostPublicAddress;
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;
}
public Hosts build() {
return new Hosts(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/ListHostsRequest.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 ListHostsRequest} extends {@link RequestModel}
*
* <p>ListHostsRequest</p>
*/
public class ListHostsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostAddress")
private String hostAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostGroupId")
private String hostGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostName")
private String hostName;
@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("OSType")
private String OSType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceInstanceId")
private String sourceInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceInstanceState")
private String sourceInstanceState;
private ListHostsRequest(Builder builder) {
super(builder);
this.hostAddress = builder.hostAddress;
this.hostGroupId = builder.hostGroupId;
this.hostName = builder.hostName;
this.instanceId = builder.instanceId;
this.OSType = builder.OSType;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.source = builder.source;
this.sourceInstanceId = builder.sourceInstanceId;
this.sourceInstanceState = builder.sourceInstanceState;
}
public static Builder builder() {
return new Builder();
}
public static ListHostsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAddress
*/
public String getHostAddress() {
return this.hostAddress;
}
/**
* @return hostGroupId
*/
public String getHostGroupId() {
return this.hostGroupId;
}
/**
* @return hostName
*/
public String getHostName() {
return this.hostName;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return OSType
*/
public String getOSType() {
return this.OSType;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @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 extends Request.Builder<ListHostsRequest, Builder> {
private String hostAddress;
private String hostGroupId;
private String hostName;
private String instanceId;
private String OSType;
private String pageNumber;
private String pageSize;
private String regionId;
private String source;
private String sourceInstanceId;
private String sourceInstanceState;
private Builder() {
super();
}
private Builder(ListHostsRequest request) {
super(request);
this.hostAddress = request.hostAddress;
this.hostGroupId = request.hostGroupId;
this.hostName = request.hostName;
this.instanceId = request.instanceId;
this.OSType = request.OSType;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.source = request.source;
this.sourceInstanceId = request.sourceInstanceId;
this.sourceInstanceState = request.sourceInstanceState;
}
/**
* <p>The address of the host that you want to query. You can set this parameter to a domain name or an IP address. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>1.1.XX.XX</p>
*/
public Builder hostAddress(String hostAddress) {
this.putQueryParameter("HostAddress", hostAddress);
this.hostAddress = hostAddress;
return this;
}
/**
* <p>The ID of the host group to which the host to be queried belongs.</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.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hostGroupId(String hostGroupId) {
this.putQueryParameter("HostGroupId", hostGroupId);
this.hostGroupId = hostGroupId;
return this;
}
/**
* <p>The name of the host that you want to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>host</p>
*/
public Builder hostName(String hostName) {
this.putQueryParameter("HostName", hostName);
this.hostName = hostName;
return this;
}
/**
* <p>The ID of the bastion host on which you want to query hosts.</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 operating system of the host that you want to query. 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.putQueryParameter("OSType", OSType);
this.OSType = OSType;
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(String 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>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the bastion host on which you want to query hosts.</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 source of the host that you want to query. 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.putQueryParameter("Source", source);
this.source = source;
return this;
}
/**
* <p>The ID of the ECS instance or the host in an ApsaraDB MyBase dedicated cluster that you want to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>i-bp19ienyt0yax748****</p>
*/
public Builder sourceInstanceId(String sourceInstanceId) {
this.putQueryParameter("SourceInstanceId", sourceInstanceId);
this.sourceInstanceId = sourceInstanceId;
return this;
}
/**
* <p>The status of the host that you want to query. 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.putQueryParameter("SourceInstanceState", sourceInstanceState);
this.sourceInstanceState = sourceInstanceState;
return this;
}
@Override
public ListHostsRequest build() {
return new ListHostsRequest(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/ListHostsResponse.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 ListHostsResponse} extends {@link TeaModel}
*
* <p>ListHostsResponse</p>
*/
public class ListHostsResponse 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 ListHostsResponseBody body;
private ListHostsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListHostsResponse 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 ListHostsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListHostsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListHostsResponseBody body);
@Override
ListHostsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListHostsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListHostsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListHostsResponse 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(ListHostsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListHostsResponse build() {
return new ListHostsResponse(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/ListHostsResponseBody.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 ListHostsResponseBody} extends {@link TeaModel}
*
* <p>ListHostsResponseBody</p>
*/
public class ListHostsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Hosts")
private java.util.List<Hosts> hosts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private ListHostsResponseBody(Builder builder) {
this.hosts = builder.hosts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListHostsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hosts
*/
public java.util.List<Hosts> getHosts() {
return this.hosts;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.List<Hosts> hosts;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(ListHostsResponseBody model) {
this.hosts = model.hosts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>An array that consists of the hosts returned.</p>
*/
public Builder hosts(java.util.List<Hosts> hosts) {
this.hosts = hosts;
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;
}
/**
* <p>The total number of hosts returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public ListHostsResponseBody build() {
return new ListHostsResponseBody(this);
}
}
/**
*
* {@link ListHostsResponseBody} extends {@link TeaModel}
*
* <p>ListHostsResponseBody</p>
*/
public static class Hosts 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("HostAccountCount")
private Integer hostAccountCount;
@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("OSType")
private String OSType;
@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 Hosts(Builder builder) {
this.activeAddressType = builder.activeAddressType;
this.comment = builder.comment;
this.hostAccountCount = builder.hostAccountCount;
this.hostId = builder.hostId;
this.hostName = builder.hostName;
this.hostPrivateAddress = builder.hostPrivateAddress;
this.hostPublicAddress = builder.hostPublicAddress;
this.OSType = builder.OSType;
this.source = builder.source;
this.sourceInstanceId = builder.sourceInstanceId;
this.sourceInstanceState = builder.sourceInstanceState;
}
public static Builder builder() {
return new Builder();
}
public static Hosts create() {
return builder().build();
}
/**
* @return activeAddressType
*/
public String getActiveAddressType() {
return this.activeAddressType;
}
/**
* @return comment
*/
public String getComment() {
return this.comment;
}
/**
* @return hostAccountCount
*/
public Integer getHostAccountCount() {
return this.hostAccountCount;
}
/**
* @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 OSType
*/
public String getOSType() {
return this.OSType;
}
/**
* @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 Integer hostAccountCount;
private String hostId;
private String hostName;
private String hostPrivateAddress;
private String hostPublicAddress;
private String OSType;
private String source;
private String sourceInstanceId;
private String sourceInstanceState;
private Builder() {
}
private Builder(Hosts model) {
this.activeAddressType = model.activeAddressType;
this.comment = model.comment;
this.hostAccountCount = model.hostAccountCount;
this.hostId = model.hostId;
this.hostName = model.hostName;
this.hostPrivateAddress = model.hostPrivateAddress;
this.hostPublicAddress = model.hostPublicAddress;
this.OSType = model.OSType;
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 number of host accounts.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hostAccountCount(Integer hostAccountCount) {
this.hostAccountCount = hostAccountCount;
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 name of the host.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder hostName(String hostName) {
this.hostName = hostName;
return this;
}
/**
* <p>The private address 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 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 source of the host. Valid values:</p>
* <ul>
* <li><strong>Local</strong>: a host in a data center</li>
* <li><strong>Ecs</strong>: an 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>No value is returned for this parameter if the <strong>Source</strong> parameter is set to <strong>Local</strong>.</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 Hosts build() {
return new Hosts(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/ListInstanceRdMembersRequest.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 ListInstanceRdMembersRequest} extends {@link RequestModel}
*
* <p>ListInstanceRdMembersRequest</p>
*/
public class ListInstanceRdMembersRequest 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("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListInstanceRdMembersRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListInstanceRdMembersRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListInstanceRdMembersRequest, Builder> {
private String instanceId;
private Integer maxResults;
private String nextToken;
private String regionId;
private Builder() {
super();
}
private Builder(ListInstanceRdMembersRequest request) {
super(request);
this.instanceId = request.instanceId;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
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;
}
/**
* MaxResults.
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* NextToken.
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public ListInstanceRdMembersRequest build() {
return new ListInstanceRdMembersRequest(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/ListInstanceRdMembersResponse.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 ListInstanceRdMembersResponse} extends {@link TeaModel}
*
* <p>ListInstanceRdMembersResponse</p>
*/
public class ListInstanceRdMembersResponse 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 ListInstanceRdMembersResponseBody body;
private ListInstanceRdMembersResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListInstanceRdMembersResponse 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 ListInstanceRdMembersResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListInstanceRdMembersResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListInstanceRdMembersResponseBody body);
@Override
ListInstanceRdMembersResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListInstanceRdMembersResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListInstanceRdMembersResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListInstanceRdMembersResponse 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(ListInstanceRdMembersResponseBody body) {
this.body = body;
return this;
}
@Override
public ListInstanceRdMembersResponse build() {
return new ListInstanceRdMembersResponse(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/ListInstanceRdMembersResponseBody.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 ListInstanceRdMembersResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceRdMembersResponseBody</p>
*/
public class ListInstanceRdMembersResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.NameInMap("Members")
private java.util.List<Members> members;
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListInstanceRdMembersResponseBody(Builder builder) {
this.maxResults = builder.maxResults;
this.members = builder.members;
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListInstanceRdMembersResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return members
*/
public java.util.List<Members> getMembers() {
return this.members;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer maxResults;
private java.util.List<Members> members;
private String nextToken;
private String requestId;
private Builder() {
}
private Builder(ListInstanceRdMembersResponseBody model) {
this.maxResults = model.maxResults;
this.members = model.members;
this.nextToken = model.nextToken;
this.requestId = model.requestId;
}
/**
* MaxResults.
*/
public Builder maxResults(Integer maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* Members.
*/
public Builder members(java.util.List<Members> members) {
this.members = members;
return this;
}
/**
* NextToken.
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListInstanceRdMembersResponseBody build() {
return new ListInstanceRdMembersResponseBody(this);
}
}
/**
*
* {@link ListInstanceRdMembersResponseBody} extends {@link TeaModel}
*
* <p>ListInstanceRdMembersResponseBody</p>
*/
public static class Members extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MemberId")
private String memberId;
private Members(Builder builder) {
this.memberId = builder.memberId;
}
public static Builder builder() {
return new Builder();
}
public static Members create() {
return builder().build();
}
/**
* @return memberId
*/
public String getMemberId() {
return this.memberId;
}
public static final class Builder {
private String memberId;
private Builder() {
}
private Builder(Members model) {
this.memberId = model.memberId;
}
/**
* MemberId.
*/
public Builder memberId(String memberId) {
this.memberId = memberId;
return this;
}
public Members build() {
return new Members(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/ListNetworkDomainsRequest.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 ListNetworkDomainsRequest} extends {@link RequestModel}
*
* <p>ListNetworkDomainsRequest</p>
*/
public class ListNetworkDomainsRequest 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("NetworkDomainName")
private String networkDomainName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkDomainType")
private String networkDomainType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListNetworkDomainsRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.networkDomainName = builder.networkDomainName;
this.networkDomainType = builder.networkDomainType;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListNetworkDomainsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return networkDomainName
*/
public String getNetworkDomainName() {
return this.networkDomainName;
}
/**
* @return networkDomainType
*/
public String getNetworkDomainType() {
return this.networkDomainType;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListNetworkDomainsRequest, Builder> {
private String instanceId;
private String networkDomainName;
private String networkDomainType;
private String pageNumber;
private String pageSize;
private String regionId;
private Builder() {
super();
}
private Builder(ListNetworkDomainsRequest request) {
super(request);
this.instanceId = request.instanceId;
this.networkDomainName = request.networkDomainName;
this.networkDomainType = request.networkDomainType;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
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-tl329pvu70x</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the network domain.</p>
*/
public Builder networkDomainName(String networkDomainName) {
this.putQueryParameter("NetworkDomainName", networkDomainName);
this.networkDomainName = networkDomainName;
return this;
}
/**
* <p>The connection mode of the network domain. Valid values:</p>
* <ul>
* <li><strong>Direct</strong></li>
* <li><strong>Proxy</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Proxy</p>
*/
public Builder networkDomainType(String networkDomainType) {
this.putQueryParameter("NetworkDomainType", networkDomainType);
this.networkDomainType = networkDomainType;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Valid values: 1 to 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 ListNetworkDomainsRequest build() {
return new ListNetworkDomainsRequest(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/ListNetworkDomainsResponse.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 ListNetworkDomainsResponse} extends {@link TeaModel}
*
* <p>ListNetworkDomainsResponse</p>
*/
public class ListNetworkDomainsResponse 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 ListNetworkDomainsResponseBody body;
private ListNetworkDomainsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListNetworkDomainsResponse 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 ListNetworkDomainsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListNetworkDomainsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListNetworkDomainsResponseBody body);
@Override
ListNetworkDomainsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListNetworkDomainsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListNetworkDomainsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListNetworkDomainsResponse 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(ListNetworkDomainsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListNetworkDomainsResponse build() {
return new ListNetworkDomainsResponse(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/ListNetworkDomainsResponseBody.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 ListNetworkDomainsResponseBody} extends {@link TeaModel}
*
* <p>ListNetworkDomainsResponseBody</p>
*/
public class ListNetworkDomainsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NetworkDomains")
private java.util.List<NetworkDomains> networkDomains;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListNetworkDomainsResponseBody(Builder builder) {
this.networkDomains = builder.networkDomains;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListNetworkDomainsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return networkDomains
*/
public java.util.List<NetworkDomains> getNetworkDomains() {
return this.networkDomains;
}
/**
* @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<NetworkDomains> networkDomains;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListNetworkDomainsResponseBody model) {
this.networkDomains = model.networkDomains;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The network domains that are returned.</p>
*/
public Builder networkDomains(java.util.List<NetworkDomains> networkDomains) {
this.networkDomains = networkDomains;
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;
}
/**
* <p>The total number of network domains that are returned.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListNetworkDomainsResponseBody build() {
return new ListNetworkDomainsResponseBody(this);
}
}
/**
*
* {@link ListNetworkDomainsResponseBody} extends {@link TeaModel}
*
* <p>ListNetworkDomainsResponseBody</p>
*/
public static class ProxiesState extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NodeType")
private String nodeType;
@com.aliyun.core.annotation.NameInMap("ProxyState")
private String proxyState;
private ProxiesState(Builder builder) {
this.nodeType = builder.nodeType;
this.proxyState = builder.proxyState;
}
public static Builder builder() {
return new Builder();
}
public static ProxiesState create() {
return builder().build();
}
/**
* @return nodeType
*/
public String getNodeType() {
return this.nodeType;
}
/**
* @return proxyState
*/
public String getProxyState() {
return this.proxyState;
}
public static final class Builder {
private String nodeType;
private String proxyState;
private Builder() {
}
private Builder(ProxiesState model) {
this.nodeType = model.nodeType;
this.proxyState = model.proxyState;
}
/**
* <p>The node type of the proxy server. Valid values:</p>
* <ul>
* <li><strong>Master</strong>: primary proxy server.</li>
* <li><strong>Slave</strong>: secondary proxy server.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Master</p>
*/
public Builder nodeType(String nodeType) {
this.nodeType = nodeType;
return this;
}
/**
* <p>The status of the proxy server.</p>
* <ul>
* <li><strong>Available</strong></li>
* <li><strong>Unavailable</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder proxyState(String proxyState) {
this.proxyState = proxyState;
return this;
}
public ProxiesState build() {
return new ProxiesState(this);
}
}
}
/**
*
* {@link ListNetworkDomainsResponseBody} extends {@link TeaModel}
*
* <p>ListNetworkDomainsResponseBody</p>
*/
public static class NetworkDomains extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Comment")
private String comment;
@com.aliyun.core.annotation.NameInMap("Default")
private Boolean _default;
@com.aliyun.core.annotation.NameInMap("NetworkDomainId")
private String networkDomainId;
@com.aliyun.core.annotation.NameInMap("NetworkDomainName")
private String networkDomainName;
@com.aliyun.core.annotation.NameInMap("NetworkDomainType")
private String networkDomainType;
@com.aliyun.core.annotation.NameInMap("ProxiesState")
private java.util.List<ProxiesState> proxiesState;
private NetworkDomains(Builder builder) {
this.comment = builder.comment;
this._default = builder._default;
this.networkDomainId = builder.networkDomainId;
this.networkDomainName = builder.networkDomainName;
this.networkDomainType = builder.networkDomainType;
this.proxiesState = builder.proxiesState;
}
public static Builder builder() {
return new Builder();
}
public static NetworkDomains create() {
return builder().build();
}
/**
* @return comment
*/
public String getComment() {
return this.comment;
}
/**
* @return _default
*/
public Boolean get_default() {
return this._default;
}
/**
* @return networkDomainId
*/
public String getNetworkDomainId() {
return this.networkDomainId;
}
/**
* @return networkDomainName
*/
public String getNetworkDomainName() {
return this.networkDomainName;
}
/**
* @return networkDomainType
*/
public String getNetworkDomainType() {
return this.networkDomainType;
}
/**
* @return proxiesState
*/
public java.util.List<ProxiesState> getProxiesState() {
return this.proxiesState;
}
public static final class Builder {
private String comment;
private Boolean _default;
private String networkDomainId;
private String networkDomainName;
private String networkDomainType;
private java.util.List<ProxiesState> proxiesState;
private Builder() {
}
private Builder(NetworkDomains model) {
this.comment = model.comment;
this._default = model._default;
this.networkDomainId = model.networkDomainId;
this.networkDomainName = model.networkDomainName;
this.networkDomainType = model.networkDomainType;
this.proxiesState = model.proxiesState;
}
/**
* <p>The remarks of the network domain.</p>
*
* <strong>example:</strong>
* <p>comment</p>
*/
public Builder comment(String comment) {
this.comment = comment;
return this;
}
/**
* <p>Indicates whether the network domain is built-in.</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder _default(Boolean _default) {
this._default = _default;
return this;
}
/**
* <p>The network domain ID.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder networkDomainId(String networkDomainId) {
this.networkDomainId = networkDomainId;
return this;
}
/**
* <p>The name of the network domain.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder networkDomainName(String networkDomainName) {
this.networkDomainName = networkDomainName;
return this;
}
/**
* <p>The connection mode of the network domain. Valid values:</p>
* <ul>
* <li><strong>Direct</strong></li>
* <li><strong>Proxy</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Proxy</p>
*/
public Builder networkDomainType(String networkDomainType) {
this.networkDomainType = networkDomainType;
return this;
}
/**
* ProxiesState.
*/
public Builder proxiesState(java.util.List<ProxiesState> proxiesState) {
this.proxiesState = proxiesState;
return this;
}
public NetworkDomains build() {
return new NetworkDomains(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/ListOperationDatabaseAccountsRequest.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 ListOperationDatabaseAccountsRequest} extends {@link RequestModel}
*
* <p>ListOperationDatabaseAccountsRequest</p>
*/
public class ListOperationDatabaseAccountsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseAccountName")
private String databaseAccountName;
@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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListOperationDatabaseAccountsRequest(Builder builder) {
super(builder);
this.databaseAccountName = builder.databaseAccountName;
this.databaseId = builder.databaseId;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationDatabaseAccountsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAccountName
*/
public String getDatabaseAccountName() {
return this.databaseAccountName;
}
/**
* @return databaseId
*/
public String getDatabaseId() {
return this.databaseId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListOperationDatabaseAccountsRequest, Builder> {
private String databaseAccountName;
private String databaseId;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private Builder() {
super();
}
private Builder(ListOperationDatabaseAccountsRequest request) {
super(request);
this.databaseAccountName = request.databaseAccountName;
this.databaseId = request.databaseId;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
}
/**
* <p>The name of the database account. Exact match is supported.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder databaseAccountName(String databaseAccountName) {
this.putQueryParameter("DatabaseAccountName", databaseAccountName);
this.databaseAccountName = databaseAccountName;
return this;
}
/**
* <p>The database ID.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/2758856.html">ListOperationDatabases</a> operation to query the database ID.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>56</p>
*/
public Builder databaseId(String databaseId) {
this.putQueryParameter("DatabaseId", databaseId);
this.databaseId = databaseId;
return this;
}
/**
* <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-2r42t9cvf0i</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Maximum value: 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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;
}
@Override
public ListOperationDatabaseAccountsRequest build() {
return new ListOperationDatabaseAccountsRequest(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/ListOperationDatabaseAccountsResponse.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 ListOperationDatabaseAccountsResponse} extends {@link TeaModel}
*
* <p>ListOperationDatabaseAccountsResponse</p>
*/
public class ListOperationDatabaseAccountsResponse 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 ListOperationDatabaseAccountsResponseBody body;
private ListOperationDatabaseAccountsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListOperationDatabaseAccountsResponse 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 ListOperationDatabaseAccountsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListOperationDatabaseAccountsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListOperationDatabaseAccountsResponseBody body);
@Override
ListOperationDatabaseAccountsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListOperationDatabaseAccountsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListOperationDatabaseAccountsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListOperationDatabaseAccountsResponse 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(ListOperationDatabaseAccountsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListOperationDatabaseAccountsResponse build() {
return new ListOperationDatabaseAccountsResponse(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/ListOperationDatabaseAccountsResponseBody.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 ListOperationDatabaseAccountsResponseBody} extends {@link TeaModel}
*
* <p>ListOperationDatabaseAccountsResponseBody</p>
*/
public class ListOperationDatabaseAccountsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DatabaseAccounts")
private java.util.List<DatabaseAccounts> databaseAccounts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListOperationDatabaseAccountsResponseBody(Builder builder) {
this.databaseAccounts = builder.databaseAccounts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationDatabaseAccountsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAccounts
*/
public java.util.List<DatabaseAccounts> getDatabaseAccounts() {
return this.databaseAccounts;
}
/**
* @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<DatabaseAccounts> databaseAccounts;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListOperationDatabaseAccountsResponseBody model) {
this.databaseAccounts = model.databaseAccounts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The database accounts returned.</p>
*/
public Builder databaseAccounts(java.util.List<DatabaseAccounts> databaseAccounts) {
this.databaseAccounts = databaseAccounts;
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;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListOperationDatabaseAccountsResponseBody build() {
return new ListOperationDatabaseAccountsResponseBody(this);
}
}
/**
*
* {@link ListOperationDatabaseAccountsResponseBody} extends {@link TeaModel}
*
* <p>ListOperationDatabaseAccountsResponseBody</p>
*/
public static class DatabaseAccounts extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.NameInMap("DatabaseAccountId")
private String databaseAccountId;
@com.aliyun.core.annotation.NameInMap("DatabaseAccountName")
private String databaseAccountName;
@com.aliyun.core.annotation.NameInMap("DatabaseId")
private String databaseId;
@com.aliyun.core.annotation.NameInMap("HasPassword")
private String hasPassword;
@com.aliyun.core.annotation.NameInMap("LoginAttribute")
private String loginAttribute;
@com.aliyun.core.annotation.NameInMap("ProtocolName")
private String protocolName;
private DatabaseAccounts(Builder builder) {
this.DBName = builder.DBName;
this.databaseAccountId = builder.databaseAccountId;
this.databaseAccountName = builder.databaseAccountName;
this.databaseId = builder.databaseId;
this.hasPassword = builder.hasPassword;
this.loginAttribute = builder.loginAttribute;
this.protocolName = builder.protocolName;
}
public static Builder builder() {
return new Builder();
}
public static DatabaseAccounts create() {
return builder().build();
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return databaseAccountId
*/
public String getDatabaseAccountId() {
return this.databaseAccountId;
}
/**
* @return databaseAccountName
*/
public String getDatabaseAccountName() {
return this.databaseAccountName;
}
/**
* @return databaseId
*/
public String getDatabaseId() {
return this.databaseId;
}
/**
* @return hasPassword
*/
public String getHasPassword() {
return this.hasPassword;
}
/**
* @return loginAttribute
*/
public String getLoginAttribute() {
return this.loginAttribute;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
public static final class Builder {
private String DBName;
private String databaseAccountId;
private String databaseAccountName;
private String databaseId;
private String hasPassword;
private String loginAttribute;
private String protocolName;
private Builder() {
}
private Builder(DatabaseAccounts model) {
this.DBName = model.DBName;
this.databaseAccountId = model.databaseAccountId;
this.databaseAccountName = model.databaseAccountName;
this.databaseId = model.databaseId;
this.hasPassword = model.hasPassword;
this.loginAttribute = model.loginAttribute;
this.protocolName = model.protocolName;
}
/**
* <p>The name of the PostgreSQL or Oracle database.</p>
*
* <strong>example:</strong>
* <p>xe</p>
*/
public Builder DBName(String DBName) {
this.DBName = DBName;
return this;
}
/**
* <p>The database account ID.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder databaseAccountId(String databaseAccountId) {
this.databaseAccountId = databaseAccountId;
return this;
}
/**
* <p>The name of the database account.</p>
*
* <strong>example:</strong>
* <p>system</p>
*/
public Builder databaseAccountName(String databaseAccountName) {
this.databaseAccountName = databaseAccountName;
return this;
}
/**
* <p>The database ID.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder databaseId(String databaseId) {
this.databaseId = databaseId;
return this;
}
/**
* <p>Indicates whether a password is configured for the database host account.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder hasPassword(String hasPassword) {
this.hasPassword = hasPassword;
return this;
}
/**
* <p>The logon attribute. One of the following values is returned if the database engine is Oracle:</p>
* <ul>
* <li><strong>SERVICENAME</strong></li>
* <li><strong>SID</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>SID</p>
*/
public Builder loginAttribute(String loginAttribute) {
this.loginAttribute = loginAttribute;
return this;
}
/**
* <p>The protocol that is used by the database account.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder protocolName(String protocolName) {
this.protocolName = protocolName;
return this;
}
public DatabaseAccounts build() {
return new DatabaseAccounts(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/ListOperationDatabasesRequest.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 ListOperationDatabasesRequest} extends {@link RequestModel}
*
* <p>ListOperationDatabasesRequest</p>
*/
public class ListOperationDatabasesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseAddress")
private String databaseAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseName")
private String databaseName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatabaseType")
private String databaseType;
@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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceInstanceId")
private String sourceInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceInstanceState")
private String sourceInstanceState;
private ListOperationDatabasesRequest(Builder builder) {
super(builder);
this.databaseAddress = builder.databaseAddress;
this.databaseName = builder.databaseName;
this.databaseType = builder.databaseType;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.source = builder.source;
this.sourceInstanceId = builder.sourceInstanceId;
this.sourceInstanceState = builder.sourceInstanceState;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationDatabasesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databaseAddress
*/
public String getDatabaseAddress() {
return this.databaseAddress;
}
/**
* @return databaseName
*/
public String getDatabaseName() {
return this.databaseName;
}
/**
* @return databaseType
*/
public String getDatabaseType() {
return this.databaseType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @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 extends Request.Builder<ListOperationDatabasesRequest, Builder> {
private String databaseAddress;
private String databaseName;
private String databaseType;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private String source;
private String sourceInstanceId;
private String sourceInstanceState;
private Builder() {
super();
}
private Builder(ListOperationDatabasesRequest request) {
super(request);
this.databaseAddress = request.databaseAddress;
this.databaseName = request.databaseName;
this.databaseType = request.databaseType;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.source = request.source;
this.sourceInstanceId = request.sourceInstanceId;
this.sourceInstanceState = request.sourceInstanceState;
}
/**
* <p>The address of the database.</p>
*
* <strong>example:</strong>
* <p>10.167.66.167</p>
*/
public Builder databaseAddress(String databaseAddress) {
this.putQueryParameter("DatabaseAddress", databaseAddress);
this.databaseAddress = databaseAddress;
return this;
}
/**
* <p>The name of the database instance. The system supports exact search.</p>
*
* <strong>example:</strong>
* <p>aaa</p>
*/
public Builder databaseName(String databaseName) {
this.putQueryParameter("DatabaseName", databaseName);
this.databaseName = databaseName;
return this;
}
/**
* <p>The type of the database. Valid values:</p>
* <ul>
* <li><strong>MySQL</strong></li>
* <li><strong>SQLServer</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>PostgreSQL</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder databaseType(String databaseType) {
this.putQueryParameter("DatabaseType", databaseType);
this.databaseType = databaseType;
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-tl32wloo90y</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Maximum value: 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 source of the database instance. Valid values:</p>
* <ul>
* <li><strong>Local</strong></li>
* <li><strong>Rds</strong></li>
* <li><strong>PolarDB</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Local</p>
*/
public Builder source(String source) {
this.putQueryParameter("Source", source);
this.source = source;
return this;
}
/**
* <p>The ID of the ApsaraDB RDS instance. The system supports exact search.</p>
*
* <strong>example:</strong>
* <p>i-bp19ienyt0yax748****</p>
*/
public Builder sourceInstanceId(String sourceInstanceId) {
this.putQueryParameter("SourceInstanceId", sourceInstanceId);
this.sourceInstanceId = sourceInstanceId;
return this;
}
/**
* <p>The instance state.</p>
* <ul>
* <li><strong>Normal</strong></li>
* <li><strong>RemoteRelease</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder sourceInstanceState(String sourceInstanceState) {
this.putQueryParameter("SourceInstanceState", sourceInstanceState);
this.sourceInstanceState = sourceInstanceState;
return this;
}
@Override
public ListOperationDatabasesRequest build() {
return new ListOperationDatabasesRequest(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/ListOperationDatabasesResponse.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 ListOperationDatabasesResponse} extends {@link TeaModel}
*
* <p>ListOperationDatabasesResponse</p>
*/
public class ListOperationDatabasesResponse 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 ListOperationDatabasesResponseBody body;
private ListOperationDatabasesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListOperationDatabasesResponse 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 ListOperationDatabasesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListOperationDatabasesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListOperationDatabasesResponseBody body);
@Override
ListOperationDatabasesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListOperationDatabasesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListOperationDatabasesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListOperationDatabasesResponse 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(ListOperationDatabasesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListOperationDatabasesResponse build() {
return new ListOperationDatabasesResponse(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/ListOperationDatabasesResponseBody.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 ListOperationDatabasesResponseBody} extends {@link TeaModel}
*
* <p>ListOperationDatabasesResponseBody</p>
*/
public class ListOperationDatabasesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Databases")
private java.util.List<Databases> databases;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListOperationDatabasesResponseBody(Builder builder) {
this.databases = builder.databases;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationDatabasesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return databases
*/
public java.util.List<Databases> getDatabases() {
return this.databases;
}
/**
* @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<Databases> databases;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListOperationDatabasesResponseBody model) {
this.databases = model.databases;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The databases returned.</p>
*/
public Builder databases(java.util.List<Databases> databases) {
this.databases = databases;
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;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListOperationDatabasesResponseBody build() {
return new ListOperationDatabasesResponseBody(this);
}
}
/**
*
* {@link ListOperationDatabasesResponseBody} extends {@link TeaModel}
*
* <p>ListOperationDatabasesResponseBody</p>
*/
public static class Databases 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("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 Databases(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.source = builder.source;
this.sourceInstanceId = builder.sourceInstanceId;
this.sourceInstanceRegionId = builder.sourceInstanceRegionId;
this.sourceInstanceState = builder.sourceInstanceState;
}
public static Builder builder() {
return new Builder();
}
public static Databases 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 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 source;
private String sourceInstanceId;
private String sourceInstanceRegionId;
private String sourceInstanceState;
private Builder() {
}
private Builder(Databases 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.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><strong>Public</strong></li>
* <li><strong>Private</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Private</p>
*/
public Builder activeAddressType(String activeAddressType) {
this.activeAddressType = activeAddressType;
return this;
}
/**
* <p>The remarks of the database.</p>
*
* <strong>example:</strong>
* <p>cpp</p>
*/
public Builder comment(String comment) {
this.comment = comment;
return this;
}
/**
* <p>The database ID.</p>
*
* <strong>example:</strong>
* <p>26</p>
*/
public Builder databaseId(String databaseId) {
this.databaseId = databaseId;
return this;
}
/**
* <p>The database name.</p>
*
* <strong>example:</strong>
* <p>zDatabase</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 private address of the database.</p>
*
* <strong>example:</strong>
* <p>rm-b******9b.mysql.rds.aliyuncs.com</p>
*/
public Builder databasePrivateAddress(String databasePrivateAddress) {
this.databasePrivateAddress = databasePrivateAddress;
return this;
}
/**
* <p>The public address of the database.</p>
*
* <strong>example:</strong>
* <p>rm-uf******p45.mysql.rds.aliyuncs.com</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>PostgreSQL</strong></li>
* <li><strong>Oracle</strong></li>
* <li><strong>SQLServer</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder databaseType(String databaseType) {
this.databaseType = databaseType;
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.</p>
*
* <strong>example:</strong>
* <p>i-wz9225bhipya******</p>
*/
public Builder sourceInstanceId(String sourceInstanceId) {
this.sourceInstanceId = sourceInstanceId;
return this;
}
/**
* <p>The region ID of the ApsaraDB RDS instance.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder sourceInstanceRegionId(String sourceInstanceRegionId) {
this.sourceInstanceRegionId = sourceInstanceRegionId;
return this;
}
/**
* <p>The database status. 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 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/ListOperationHostAccountsRequest.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 ListOperationHostAccountsRequest} extends {@link RequestModel}
*
* <p>ListOperationHostAccountsRequest</p>
*/
public class ListOperationHostAccountsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostAccountName")
private String hostAccountName;
@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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListOperationHostAccountsRequest(Builder builder) {
super(builder);
this.hostAccountName = builder.hostAccountName;
this.hostId = builder.hostId;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationHostAccountsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccountName
*/
public String getHostAccountName() {
return this.hostAccountName;
}
/**
* @return hostId
*/
public String getHostId() {
return this.hostId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListOperationHostAccountsRequest, Builder> {
private String hostAccountName;
private String hostId;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private Builder() {
super();
}
private Builder(ListOperationHostAccountsRequest request) {
super(request);
this.hostAccountName = request.hostAccountName;
this.hostId = request.hostId;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
}
/**
* <p>The name of the host account to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>root</p>
*/
public Builder hostAccountName(String hostAccountName) {
this.putQueryParameter("HostAccountName", hostAccountName);
this.hostAccountName = hostAccountName;
return this;
}
/**
* <p>The ID of the host whose accounts you want to query.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/2758857.html">ListOperationHosts</a> operation to query the host ID.</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 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 page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Valid values: 1 to 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 ListOperationHostAccountsRequest build() {
return new ListOperationHostAccountsRequest(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/ListOperationHostAccountsResponse.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 ListOperationHostAccountsResponse} extends {@link TeaModel}
*
* <p>ListOperationHostAccountsResponse</p>
*/
public class ListOperationHostAccountsResponse 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 ListOperationHostAccountsResponseBody body;
private ListOperationHostAccountsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListOperationHostAccountsResponse 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 ListOperationHostAccountsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListOperationHostAccountsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListOperationHostAccountsResponseBody body);
@Override
ListOperationHostAccountsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListOperationHostAccountsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListOperationHostAccountsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListOperationHostAccountsResponse 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(ListOperationHostAccountsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListOperationHostAccountsResponse build() {
return new ListOperationHostAccountsResponse(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/ListOperationHostAccountsResponseBody.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 ListOperationHostAccountsResponseBody} extends {@link TeaModel}
*
* <p>ListOperationHostAccountsResponseBody</p>
*/
public class ListOperationHostAccountsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("HostAccounts")
private java.util.List<HostAccounts> hostAccounts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListOperationHostAccountsResponseBody(Builder builder) {
this.hostAccounts = builder.hostAccounts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationHostAccountsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAccounts
*/
public java.util.List<HostAccounts> getHostAccounts() {
return this.hostAccounts;
}
/**
* @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<HostAccounts> hostAccounts;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListOperationHostAccountsResponseBody model) {
this.hostAccounts = model.hostAccounts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The host accounts returned.</p>
*/
public Builder hostAccounts(java.util.List<HostAccounts> hostAccounts) {
this.hostAccounts = hostAccounts;
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;
}
/**
* <p>The total number of host accounts returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListOperationHostAccountsResponseBody build() {
return new ListOperationHostAccountsResponseBody(this);
}
}
/**
*
* {@link ListOperationHostAccountsResponseBody} extends {@link TeaModel}
*
* <p>ListOperationHostAccountsResponseBody</p>
*/
public static class SSHConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EnableSFTPChannel")
private Boolean enableSFTPChannel;
@com.aliyun.core.annotation.NameInMap("EnableSSHChannel")
private Boolean enableSSHChannel;
private SSHConfig(Builder builder) {
this.enableSFTPChannel = builder.enableSFTPChannel;
this.enableSSHChannel = builder.enableSSHChannel;
}
public static Builder builder() {
return new Builder();
}
public static SSHConfig create() {
return builder().build();
}
/**
* @return enableSFTPChannel
*/
public Boolean getEnableSFTPChannel() {
return this.enableSFTPChannel;
}
/**
* @return enableSSHChannel
*/
public Boolean getEnableSSHChannel() {
return this.enableSSHChannel;
}
public static final class Builder {
private Boolean enableSFTPChannel;
private Boolean enableSSHChannel;
private Builder() {
}
private Builder(SSHConfig model) {
this.enableSFTPChannel = model.enableSFTPChannel;
this.enableSSHChannel = model.enableSSHChannel;
}
/**
* <p>Indicates whether SFTP channels are enabled for the account.</p>
*/
public Builder enableSFTPChannel(Boolean enableSFTPChannel) {
this.enableSFTPChannel = enableSFTPChannel;
return this;
}
/**
* <p>Indicates whether SSH channels are enabled for the account.</p>
*/
public Builder enableSSHChannel(Boolean enableSSHChannel) {
this.enableSSHChannel = enableSSHChannel;
return this;
}
public SSHConfig build() {
return new SSHConfig(this);
}
}
}
/**
*
* {@link ListOperationHostAccountsResponseBody} extends {@link TeaModel}
*
* <p>ListOperationHostAccountsResponseBody</p>
*/
public static class HostAccounts 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("PrivateKeyFingerprint")
private String privateKeyFingerprint;
@com.aliyun.core.annotation.NameInMap("ProtocolName")
private String protocolName;
@com.aliyun.core.annotation.NameInMap("SSHConfig")
private SSHConfig SSHConfig;
private HostAccounts(Builder builder) {
this.hasPassword = builder.hasPassword;
this.hostAccountId = builder.hostAccountId;
this.hostAccountName = builder.hostAccountName;
this.hostId = builder.hostId;
this.hostShareKeyId = builder.hostShareKeyId;
this.privateKeyFingerprint = builder.privateKeyFingerprint;
this.protocolName = builder.protocolName;
this.SSHConfig = builder.SSHConfig;
}
public static Builder builder() {
return new Builder();
}
public static HostAccounts 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 privateKeyFingerprint
*/
public String getPrivateKeyFingerprint() {
return this.privateKeyFingerprint;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
/**
* @return SSHConfig
*/
public SSHConfig getSSHConfig() {
return this.SSHConfig;
}
public static final class Builder {
private Boolean hasPassword;
private String hostAccountId;
private String hostAccountName;
private String hostId;
private String hostShareKeyId;
private String privateKeyFingerprint;
private String protocolName;
private SSHConfig SSHConfig;
private Builder() {
}
private Builder(HostAccounts model) {
this.hasPassword = model.hasPassword;
this.hostAccountId = model.hostAccountId;
this.hostAccountName = model.hostAccountName;
this.hostId = model.hostId;
this.hostShareKeyId = model.hostShareKeyId;
this.privateKeyFingerprint = model.privateKeyFingerprint;
this.protocolName = model.protocolName;
this.SSHConfig = model.SSHConfig;
}
/**
* <p>Indicates whether a password is configured for the host account.</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>The host account ID.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hostAccountId(String hostAccountId) {
this.hostAccountId = hostAccountId;
return this;
}
/**
* <p>The host account name.</p>
*
* <strong>example:</strong>
* <p>root</p>
*/
public Builder hostAccountName(String hostAccountName) {
this.hostAccountName = hostAccountName;
return this;
}
/**
* <p>The host ID.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hostId(String hostId) {
this.hostId = hostId;
return this;
}
/**
* <p>The ID of the shared key that is associated with the host.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder hostShareKeyId(String hostShareKeyId) {
this.hostShareKeyId = hostShareKeyId;
return this;
}
/**
* <p>The fingerprint of the private key for the host account.</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;
}
/**
* <p>The protocol that is used by the host account.</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;
}
/**
* <p>Indicates whether the Secure File Transfer Protocol (SFTP) channels or the SSH channels are enabled for the host account that uses the SSH protocol.</p>
*/
public Builder SSHConfig(SSHConfig SSHConfig) {
this.SSHConfig = SSHConfig;
return this;
}
public HostAccounts build() {
return new HostAccounts(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/ListOperationHostsRequest.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 ListOperationHostsRequest} extends {@link RequestModel}
*
* <p>ListOperationHostsRequest</p>
*/
public class ListOperationHostsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostAddress")
private String hostAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HostName")
private String hostName;
@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("OSType")
private String OSType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceInstanceId")
private String sourceInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceInstanceState")
private String sourceInstanceState;
private ListOperationHostsRequest(Builder builder) {
super(builder);
this.hostAddress = builder.hostAddress;
this.hostName = builder.hostName;
this.instanceId = builder.instanceId;
this.OSType = builder.OSType;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.source = builder.source;
this.sourceInstanceId = builder.sourceInstanceId;
this.sourceInstanceState = builder.sourceInstanceState;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationHostsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAddress
*/
public String getHostAddress() {
return this.hostAddress;
}
/**
* @return hostName
*/
public String getHostName() {
return this.hostName;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return OSType
*/
public String getOSType() {
return this.OSType;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @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 extends Request.Builder<ListOperationHostsRequest, Builder> {
private String hostAddress;
private String hostName;
private String instanceId;
private String OSType;
private String pageNumber;
private String pageSize;
private String regionId;
private String source;
private String sourceInstanceId;
private String sourceInstanceState;
private Builder() {
super();
}
private Builder(ListOperationHostsRequest request) {
super(request);
this.hostAddress = request.hostAddress;
this.hostName = request.hostName;
this.instanceId = request.instanceId;
this.OSType = request.OSType;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.source = request.source;
this.sourceInstanceId = request.sourceInstanceId;
this.sourceInstanceState = request.sourceInstanceState;
}
/**
* <p>The address of the host that you want to query. You can set this parameter to a domain name or an IP address. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>10.162.172.132</p>
*/
public Builder hostAddress(String hostAddress) {
this.putQueryParameter("HostAddress", hostAddress);
this.hostAddress = hostAddress;
return this;
}
/**
* <p>The name of the host that you want to query. Only exact match is supported.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder hostName(String hostName) {
this.putQueryParameter("HostName", hostName);
this.hostName = hostName;
return this;
}
/**
* <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-09k22avmw0q</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The operating system of the host that you want to query. 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.putQueryParameter("OSType", OSType);
this.OSType = OSType;
return this;
}
/**
* <p>The page number. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Maximum value: 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 source of the host that you want to query. Valid values:</p>
* <ul>
* <li><strong>Local</strong></li>
* <li><strong>Ecs</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Local</p>
*/
public Builder source(String source) {
this.putQueryParameter("Source", source);
this.source = source;
return this;
}
/**
* <p>The ID of the Elastic Compute Service (ECS) instance. Exact match is supported.</p>
*
* <strong>example:</strong>
* <p>i-bp19ienyt0yax748****</p>
*/
public Builder sourceInstanceId(String sourceInstanceId) {
this.putQueryParameter("SourceInstanceId", sourceInstanceId);
this.sourceInstanceId = sourceInstanceId;
return this;
}
/**
* <p>The status of the host that you want to query. 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.putQueryParameter("SourceInstanceState", sourceInstanceState);
this.sourceInstanceState = sourceInstanceState;
return this;
}
@Override
public ListOperationHostsRequest build() {
return new ListOperationHostsRequest(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/ListOperationHostsResponse.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 ListOperationHostsResponse} extends {@link TeaModel}
*
* <p>ListOperationHostsResponse</p>
*/
public class ListOperationHostsResponse 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 ListOperationHostsResponseBody body;
private ListOperationHostsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListOperationHostsResponse 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 ListOperationHostsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListOperationHostsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListOperationHostsResponseBody body);
@Override
ListOperationHostsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListOperationHostsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListOperationHostsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListOperationHostsResponse 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(ListOperationHostsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListOperationHostsResponse build() {
return new ListOperationHostsResponse(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/ListOperationHostsResponseBody.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 ListOperationHostsResponseBody} extends {@link TeaModel}
*
* <p>ListOperationHostsResponseBody</p>
*/
public class ListOperationHostsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Hosts")
private java.util.List<Hosts> hosts;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListOperationHostsResponseBody(Builder builder) {
this.hosts = builder.hosts;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationHostsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hosts
*/
public java.util.List<Hosts> getHosts() {
return this.hosts;
}
/**
* @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<Hosts> hosts;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListOperationHostsResponseBody model) {
this.hosts = model.hosts;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The hosts returned.</p>
*/
public Builder hosts(java.util.List<Hosts> hosts) {
this.hosts = hosts;
return this;
}
/**
* <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;
}
/**
* <p>The total number of hosts returned.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListOperationHostsResponseBody build() {
return new ListOperationHostsResponseBody(this);
}
}
/**
*
* {@link ListOperationHostsResponseBody} extends {@link TeaModel}
*
* <p>ListOperationHostsResponseBody</p>
*/
public static class Hosts 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("OSType")
private String OSType;
@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 Hosts(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.OSType = builder.OSType;
this.source = builder.source;
this.sourceInstanceId = builder.sourceInstanceId;
this.sourceInstanceState = builder.sourceInstanceState;
}
public static Builder builder() {
return new Builder();
}
public static Hosts 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 OSType
*/
public String getOSType() {
return this.OSType;
}
/**
* @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 OSType;
private String source;
private String sourceInstanceId;
private String sourceInstanceState;
private Builder() {
}
private Builder(Hosts 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.OSType = model.OSType;
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></li>
* <li><strong>Private</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Public</p>
*/
public Builder activeAddressType(String activeAddressType) {
this.activeAddressType = activeAddressType;
return this;
}
/**
* <p>The remarks of the host.</p>
*
* <strong>example:</strong>
* <p>comment</p>
*/
public Builder comment(String comment) {
this.comment = comment;
return this;
}
/**
* <p>The host ID.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder hostId(String hostId) {
this.hostId = hostId;
return this;
}
/**
* <p>The host name.</p>
*
* <strong>example:</strong>
* <p>host1</p>
*/
public Builder hostName(String hostName) {
this.hostName = hostName;
return this;
}
/**
* <p>The private IP address of the host.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder hostPrivateAddress(String hostPrivateAddress) {
this.hostPrivateAddress = hostPrivateAddress;
return this;
}
/**
* <p>The public IP address of the host.</p>
*
* <strong>example:</strong>
* <p>10.158.XX.XX</p>
*/
public Builder hostPublicAddress(String hostPublicAddress) {
this.hostPublicAddress = hostPublicAddress;
return this;
}
/**
* <p>The host OS.</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 host type. Valid values:</p>
* <ul>
* <li><strong>Local</strong>: on-premises host.</li>
* <li><strong>Ecs</strong>: Elastic Compute Service (ECS) instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Local</p>
*/
public Builder source(String source) {
this.source = source;
return this;
}
/**
* <p>The ECS instance ID.</p>
*
* <strong>example:</strong>
* <p>i-bp19ienyt0yax748****</p>
*/
public Builder sourceInstanceId(String sourceInstanceId) {
this.sourceInstanceId = sourceInstanceId;
return this;
}
/**
* <p>The host status. 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 Hosts build() {
return new Hosts(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/ListOperationTicketsRequest.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 ListOperationTicketsRequest} extends {@link RequestModel}
*
* <p>ListOperationTicketsRequest</p>
*/
public class ListOperationTicketsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssetAddress")
private String assetAddress;
@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("PageNumber")
private String pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private String pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListOperationTicketsRequest(Builder builder) {
super(builder);
this.assetAddress = builder.assetAddress;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationTicketsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assetAddress
*/
public String getAssetAddress() {
return this.assetAddress;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public String getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public String getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListOperationTicketsRequest, Builder> {
private String assetAddress;
private String instanceId;
private String pageNumber;
private String pageSize;
private String regionId;
private Builder() {
super();
}
private Builder(ListOperationTicketsRequest request) {
super(request);
this.assetAddress = request.assetAddress;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
}
/**
* <p>The IP address of the asset that is contained in the O&M application to be reviewed.</p>
*
* <strong>example:</strong>
* <p>10.167.XX.XX</p>
*/
public Builder assetAddress(String assetAddress) {
this.putQueryParameter("AssetAddress", assetAddress);
this.assetAddress = assetAddress;
return this;
}
/**
* <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 number of the page. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.<br>Maximum value: 1000. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 ListOperationTicketsRequest build() {
return new ListOperationTicketsRequest(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/ListOperationTicketsResponse.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 ListOperationTicketsResponse} extends {@link TeaModel}
*
* <p>ListOperationTicketsResponse</p>
*/
public class ListOperationTicketsResponse 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 ListOperationTicketsResponseBody body;
private ListOperationTicketsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListOperationTicketsResponse 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 ListOperationTicketsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListOperationTicketsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListOperationTicketsResponseBody body);
@Override
ListOperationTicketsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListOperationTicketsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListOperationTicketsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListOperationTicketsResponse 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(ListOperationTicketsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListOperationTicketsResponse build() {
return new ListOperationTicketsResponse(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/ListOperationTicketsResponseBody.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 ListOperationTicketsResponseBody} extends {@link TeaModel}
*
* <p>ListOperationTicketsResponseBody</p>
*/
public class ListOperationTicketsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("OperationTickets")
private java.util.List<OperationTickets> operationTickets;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private ListOperationTicketsResponseBody(Builder builder) {
this.operationTickets = builder.operationTickets;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListOperationTicketsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return operationTickets
*/
public java.util.List<OperationTickets> getOperationTickets() {
return this.operationTickets;
}
/**
* @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<OperationTickets> operationTickets;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListOperationTicketsResponseBody model) {
this.operationTickets = model.operationTickets;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The O&M applications to be reviewed.</p>
*/
public Builder operationTickets(java.util.List<OperationTickets> operationTickets) {
this.operationTickets = operationTickets;
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;
}
/**
* <p>The total number of O&M applications to be reviewed.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListOperationTicketsResponseBody build() {
return new ListOperationTicketsResponseBody(this);
}
}
/**
*
* {@link ListOperationTicketsResponseBody} extends {@link TeaModel}
*
* <p>ListOperationTicketsResponseBody</p>
*/
public static class OperationTickets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ApplyUserId")
private String applyUserId;
@com.aliyun.core.annotation.NameInMap("ApplyUsername")
private String applyUsername;
@com.aliyun.core.annotation.NameInMap("ApproveComment")
private String approveComment;
@com.aliyun.core.annotation.NameInMap("AssetAccountId")
private String assetAccountId;
@com.aliyun.core.annotation.NameInMap("AssetAccountName")
private String assetAccountName;
@com.aliyun.core.annotation.NameInMap("AssetAddress")
private String assetAddress;
@com.aliyun.core.annotation.NameInMap("AssetId")
private String assetId;
@com.aliyun.core.annotation.NameInMap("AssetName")
private String assetName;
@com.aliyun.core.annotation.NameInMap("AssetNetworkDomainId")
private String assetNetworkDomainId;
@com.aliyun.core.annotation.NameInMap("AssetOs")
private String assetOs;
@com.aliyun.core.annotation.NameInMap("AssetSource")
private String assetSource;
@com.aliyun.core.annotation.NameInMap("AssetSourceInstanceId")
private String assetSourceInstanceId;
@com.aliyun.core.annotation.NameInMap("CreatedTime")
private Long createdTime;
@com.aliyun.core.annotation.NameInMap("EffectCount")
private Integer effectCount;
@com.aliyun.core.annotation.NameInMap("EffectEndTime")
private Integer effectEndTime;
@com.aliyun.core.annotation.NameInMap("EffectStartTime")
private Integer effectStartTime;
@com.aliyun.core.annotation.NameInMap("OperationTicketId")
private String operationTicketId;
@com.aliyun.core.annotation.NameInMap("ProtocolName")
private String protocolName;
@com.aliyun.core.annotation.NameInMap("State")
private String state;
private OperationTickets(Builder builder) {
this.applyUserId = builder.applyUserId;
this.applyUsername = builder.applyUsername;
this.approveComment = builder.approveComment;
this.assetAccountId = builder.assetAccountId;
this.assetAccountName = builder.assetAccountName;
this.assetAddress = builder.assetAddress;
this.assetId = builder.assetId;
this.assetName = builder.assetName;
this.assetNetworkDomainId = builder.assetNetworkDomainId;
this.assetOs = builder.assetOs;
this.assetSource = builder.assetSource;
this.assetSourceInstanceId = builder.assetSourceInstanceId;
this.createdTime = builder.createdTime;
this.effectCount = builder.effectCount;
this.effectEndTime = builder.effectEndTime;
this.effectStartTime = builder.effectStartTime;
this.operationTicketId = builder.operationTicketId;
this.protocolName = builder.protocolName;
this.state = builder.state;
}
public static Builder builder() {
return new Builder();
}
public static OperationTickets create() {
return builder().build();
}
/**
* @return applyUserId
*/
public String getApplyUserId() {
return this.applyUserId;
}
/**
* @return applyUsername
*/
public String getApplyUsername() {
return this.applyUsername;
}
/**
* @return approveComment
*/
public String getApproveComment() {
return this.approveComment;
}
/**
* @return assetAccountId
*/
public String getAssetAccountId() {
return this.assetAccountId;
}
/**
* @return assetAccountName
*/
public String getAssetAccountName() {
return this.assetAccountName;
}
/**
* @return assetAddress
*/
public String getAssetAddress() {
return this.assetAddress;
}
/**
* @return assetId
*/
public String getAssetId() {
return this.assetId;
}
/**
* @return assetName
*/
public String getAssetName() {
return this.assetName;
}
/**
* @return assetNetworkDomainId
*/
public String getAssetNetworkDomainId() {
return this.assetNetworkDomainId;
}
/**
* @return assetOs
*/
public String getAssetOs() {
return this.assetOs;
}
/**
* @return assetSource
*/
public String getAssetSource() {
return this.assetSource;
}
/**
* @return assetSourceInstanceId
*/
public String getAssetSourceInstanceId() {
return this.assetSourceInstanceId;
}
/**
* @return createdTime
*/
public Long getCreatedTime() {
return this.createdTime;
}
/**
* @return effectCount
*/
public Integer getEffectCount() {
return this.effectCount;
}
/**
* @return effectEndTime
*/
public Integer getEffectEndTime() {
return this.effectEndTime;
}
/**
* @return effectStartTime
*/
public Integer getEffectStartTime() {
return this.effectStartTime;
}
/**
* @return operationTicketId
*/
public String getOperationTicketId() {
return this.operationTicketId;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
/**
* @return state
*/
public String getState() {
return this.state;
}
public static final class Builder {
private String applyUserId;
private String applyUsername;
private String approveComment;
private String assetAccountId;
private String assetAccountName;
private String assetAddress;
private String assetId;
private String assetName;
private String assetNetworkDomainId;
private String assetOs;
private String assetSource;
private String assetSourceInstanceId;
private Long createdTime;
private Integer effectCount;
private Integer effectEndTime;
private Integer effectStartTime;
private String operationTicketId;
private String protocolName;
private String state;
private Builder() {
}
private Builder(OperationTickets model) {
this.applyUserId = model.applyUserId;
this.applyUsername = model.applyUsername;
this.approveComment = model.approveComment;
this.assetAccountId = model.assetAccountId;
this.assetAccountName = model.assetAccountName;
this.assetAddress = model.assetAddress;
this.assetId = model.assetId;
this.assetName = model.assetName;
this.assetNetworkDomainId = model.assetNetworkDomainId;
this.assetOs = model.assetOs;
this.assetSource = model.assetSource;
this.assetSourceInstanceId = model.assetSourceInstanceId;
this.createdTime = model.createdTime;
this.effectCount = model.effectCount;
this.effectEndTime = model.effectEndTime;
this.effectStartTime = model.effectStartTime;
this.operationTicketId = model.operationTicketId;
this.protocolName = model.protocolName;
this.state = model.state;
}
/**
* <p>The ID of the O&M applicant.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder applyUserId(String applyUserId) {
this.applyUserId = applyUserId;
return this;
}
/**
* <p>The username of the O&M applicant.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder applyUsername(String applyUsername) {
this.applyUsername = applyUsername;
return this;
}
/**
* <p>The remarks entered when the O&M personnel applies for O&M permissions.</p>
*
* <strong>example:</strong>
* <p>Apply for O&M</p>
*/
public Builder approveComment(String approveComment) {
this.approveComment = approveComment;
return this;
}
/**
* <p>The ID of the asset account.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder assetAccountId(String assetAccountId) {
this.assetAccountId = assetAccountId;
return this;
}
/**
* <p>The username of the asset account.</p>
*
* <strong>example:</strong>
* <p>root</p>
*/
public Builder assetAccountName(String assetAccountName) {
this.assetAccountName = assetAccountName;
return this;
}
/**
* <p>The IP address of the asset.</p>
*
* <strong>example:</strong>
* <p>10.167.XX.XX</p>
*/
public Builder assetAddress(String assetAddress) {
this.assetAddress = assetAddress;
return this;
}
/**
* <p>The ID of the asset.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder assetId(String assetId) {
this.assetId = assetId;
return this;
}
/**
* <p>The name of the asset.</p>
*
* <strong>example:</strong>
* <p>poros-test</p>
*/
public Builder assetName(String assetName) {
this.assetName = assetName;
return this;
}
/**
* <p>The network domain ID of the asset.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder assetNetworkDomainId(String assetNetworkDomainId) {
this.assetNetworkDomainId = assetNetworkDomainId;
return this;
}
/**
* <p>The operating system of the asset.</p>
*
* <strong>example:</strong>
* <p>Linux</p>
*/
public Builder assetOs(String assetOs) {
this.assetOs = assetOs;
return this;
}
/**
* <p>The name of the asset source to which the asset belongs. Valid values:</p>
* <ul>
* <li><strong>Local</strong>: an on-premises host.</li>
* <li><strong>Ecs</strong>: an Elastic Compute Service (ECS) instance.</li>
* <li><strong>Rds</strong>: an ApsaraDB RDS instance.</li>
* <li>A third-party asset source.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Local</p>
*/
public Builder assetSource(String assetSource) {
this.assetSource = assetSource;
return this;
}
/**
* <p>The ID of the asset source to which the asset belongs.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder assetSourceInstanceId(String assetSourceInstanceId) {
this.assetSourceInstanceId = assetSourceInstanceId;
return this;
}
/**
* <p>The time when the O&M application was submitted. The value is a UNIX timestamp. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1669965908</p>
*/
public Builder createdTime(Long createdTime) {
this.createdTime = createdTime;
return this;
}
/**
* <p>The maximum number of logons applied by the O&M engineer. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The number of logons is unlimited. The O&M engineer can log on to the specified asset for unlimited times during the validity period.</li>
* <li><strong>1</strong>: The O&M engineer can log on to the specified asset only once during the validity period.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder effectCount(Integer effectCount) {
this.effectCount = effectCount;
return this;
}
/**
* <p>The end time of the validity period. The value is a UNIX timestamp. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1679393152</p>
*/
public Builder effectEndTime(Integer effectEndTime) {
this.effectEndTime = effectEndTime;
return this;
}
/**
* <p>The start time of the validity period. The value is a UNIX timestamp. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1685600242</p>
*/
public Builder effectStartTime(Integer effectStartTime) {
this.effectStartTime = effectStartTime;
return this;
}
/**
* <p>The ID of the O&M application to be reviewed.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder operationTicketId(String operationTicketId) {
this.operationTicketId = operationTicketId;
return this;
}
/**
* <p>The O&M protocol.</p>
*
* <strong>example:</strong>
* <p>SSH</p>
*/
public Builder protocolName(String protocolName) {
this.protocolName = protocolName;
return this;
}
/**
* <p>The status of the review. Valid value:</p>
* <ul>
* <li>Normal: to be reviewed</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder state(String state) {
this.state = state;
return this;
}
public OperationTickets build() {
return new OperationTickets(this);
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.